/* ============================================================
   DaytonaHandy — Design System
   Mobile-first • System fonts • Fast loading
   ============================================================ */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* === VARIABLES === */
:root {
  --green: #2d5016;
  --green-dark: #1a3a0a;
  --green-light: #e8f0e2;
  --green-mid: #3d6b1f;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --amber-light: #fef3c7;
  --text: #1f2937;
  --text-light: #6b7280;
  --text-white: #ffffff;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --border: #e5e7eb;
  --error: #dc2626;
  --success: #16a34a;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-w: 1200px;
}

/* === BASE === */
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  padding-bottom: 64px; /* space for sticky CTA on mobile */
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--green-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: 1.875rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }

@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.875rem; }
  h3 { font-size: 1.5rem; }
}

/* === LAYOUT === */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }

.section { padding: 3rem 0; }
.section--alt { background: var(--bg-alt); }
.section--green { background: var(--green); color: var(--text-white); }
.section--green h2, .section--green h3 { color: var(--text-white); }

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green);
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.75rem 1rem;
}
.header-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.5px;
}
.header-logo:hover { color: var(--amber); }
.header-logo span { color: var(--amber); }
.header-phone {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-white);
  font-weight: 700;
  font-size: 1.125rem;
}
.header-phone:hover { color: var(--amber); }
.header-phone svg { width: 20px; height: 20px; }
@media (min-width: 768px) { .header-phone { display: flex; } }

/* Nav */
.nav-toggle {
  background: none;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
}
.nav-toggle svg { width: 28px; height: 28px; }
@media (min-width: 768px) { .nav-toggle { display: none; } }

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--green-dark);
  box-shadow: var(--shadow-lg);
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; }
.site-nav a {
  display: block;
  padding: 0.875rem 1.25rem;
  color: var(--text-white);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-weight: 500;
}
.site-nav a:hover { background: var(--green); color: var(--amber); }

@media (min-width: 768px) {
  .site-nav {
    display: flex;
    position: static;
    background: none;
    box-shadow: none;
  }
  .site-nav ul { display: flex; gap: 0.25rem; }
  .site-nav a {
    padding: 0.5rem 0.75rem;
    border-bottom: none;
    border-radius: var(--radius);
    font-size: 0.9375rem;
  }
  .site-nav a:hover { background: rgba(255,255,255,0.1); }
}

/* === HERO === */
.hero {
  background: var(--green);
  color: var(--text-white);
  padding: 3rem 0;
  text-align: center;
}
.hero h1 { color: var(--text-white); font-size: 2rem; margin-bottom: 0.75rem; }
.hero p { font-size: 1.125rem; opacity: 0.9; max-width: 600px; margin: 0 auto 1.5rem; }
.hero-price {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}
.hero-actions { display: flex; flex-direction: column; gap: 0.75rem; align-items: center; }

@media (min-width: 768px) {
  .hero { padding: 4.5rem 0; text-align: left; }
  .hero h1 { font-size: 3rem; }
  .hero p { margin: 0 0 1.5rem; }
  .hero-actions { flex-direction: row; }
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  min-width: 200px;
}
.btn svg { width: 20px; height: 20px; }
.btn--primary {
  background: var(--amber);
  color: var(--text);
}
.btn--primary:hover { background: var(--amber-dark); color: var(--text); }
.btn--outline {
  background: transparent;
  color: var(--text-white);
  border: 2px solid var(--text-white);
}
.btn--outline:hover { background: var(--text-white); color: var(--green); }
.btn--green {
  background: var(--green);
  color: var(--text-white);
}
.btn--green:hover { background: var(--green-dark); color: var(--text-white); }

/* === SERVICE CARDS === */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green);
}
.service-card h3 { margin-bottom: 0.5rem; }
.service-card h3 a { color: var(--text); }
.service-card h3 a:hover { color: var(--green); }
.service-card p {
  color: var(--text-light);
  font-size: 0.9375rem;
  flex: 1;
}
.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--green);
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 0.75rem;
}
.service-card .card-link:hover { color: var(--green-dark); }

/* === LOCATION LIST === */
.location-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) { .location-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .location-grid { grid-template-columns: repeat(5, 1fr); } }

.location-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s;
}
.location-card:hover {
  border-color: var(--green);
  background: var(--green-light);
  color: var(--green);
}

/* === PRICING BLOCK === */
.pricing-block {
  background: var(--green-light);
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}
.pricing-block .price-main {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}
.pricing-block .price-label {
  font-size: 1rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}
.pricing-block .price-after {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.75rem;
}

/* === FAQ ACCORDION === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font);
  line-height: 1.4;
}
.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--green);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.2s;
}
.faq-item.is-open .faq-question::after {
  content: "−";
}
.faq-answer {
  display: none;
  padding: 0 0 1.25rem;
  color: var(--text-light);
  line-height: 1.6;
}
.faq-item.is-open .faq-answer { display: block; }

/* === FOOTER === */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }

.footer-col h4 {
  color: var(--text-white);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  padding: 0.25rem 0;
  font-size: 0.9375rem;
}
.footer-col a:hover { color: var(--amber); }
.footer-col p { font-size: 0.9375rem; margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--amber); }

/* === STICKY CTA BAR (Mobile) === */
.cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--green);
  display: flex;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
}
.cta-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  color: var(--text-white);
  font-weight: 700;
  font-size: 0.9375rem;
}
.cta-bar a:first-child { background: var(--amber); color: var(--text); }
.cta-bar a svg { width: 20px; height: 20px; }
@media (min-width: 768px) { .cta-bar { display: none; } }

/* === BREADCRUMBS === */
.breadcrumbs {
  padding: 0.75rem 0;
  font-size: 0.8125rem;
  color: var(--text-light);
}
.breadcrumbs a { color: var(--green); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { margin: 0 0.375rem; }

/* === CONTENT STYLES === */
.content h2 { margin-top: 2rem; }
.content ul, .content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.content li { margin-bottom: 0.375rem; }
.content blockquote {
  border-left: 4px solid var(--green);
  padding: 1rem 1.25rem;
  background: var(--green-light);
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* === SERVICES LIST (for service detail pages) === */
.services-included {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
@media (min-width: 640px) { .services-included { grid-template-columns: repeat(2, 1fr); } }
.services-included li {
  padding: 0.625rem 0.75rem;
  padding-left: 2rem;
  background: var(--green-light);
  border-radius: var(--radius);
  position: relative;
  font-size: 0.9375rem;
}
.services-included li::before {
  content: "✓";
  position: absolute;
  left: 0.75rem;
  color: var(--green);
  font-weight: 700;
}

/* === CONTACT FORM === */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,80,22,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* === UTILITY === */
.text-center { text-align: center; }
.text-green { color: var(--green); }
.text-amber { color: var(--amber); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
