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

:root {
  --green-dark: #1a3a2a;
  --green-mid: #2d5a3f;
  --green-light: #3a7d53;
  --green-accent: #4caf50;
  --green-tint: #f0fdf4;
  --green-tint-dark: #dcfce7;
  --gold: #d4a843;
  --gold-light: #e8c96a;
  --white: #ffffff;
  --off-white: #f8f7f4;
  --gray-light: #e8e6e1;
  --gray: #6b7280;
  --text: #1f2937;
  --text-light: #4b5563;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Underline inline content links for accessibility (WCAG 1.4.1) */
.content-section a, .faq-answer a, .about-content a, .contact-info a, .inspection-feature a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== BREADCRUMBS ===== */
.breadcrumb {
  background: var(--green-dark);
  padding: 14px 0 0;
  font-size: 0.85rem;
}
.breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,0.4); }
.breadcrumb [aria-current="page"] { color: rgba(255,255,255,0.85); }

/* ===== HEADER / NAV ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 58, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}
.logo span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}
.nav-links a:hover { color: var(--gold); }

.nav-links .dropdown { position: relative; }
.nav-links .dropdown-toggle { cursor: pointer; display: flex; align-items: center; gap: 4px; color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 500; background: none; border: none; font-family: inherit; padding: 0; }
.nav-links .dropdown-toggle::after {
  content: '';
  border: solid rgba(255,255,255,0.6);
  border-width: 0 2px 2px 0;
  padding: 2.5px;
  transform: rotate(45deg);
  margin-top: -3px;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -12px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  padding: 8px 0;
  padding-top: 20px;
  margin-top: 0;
}
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 20px;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  font-size: 0.88rem;
}
.dropdown-menu a:hover { background: var(--off-white); color: var(--green-light); }

.btn-nav {
  background: var(--gold);
  color: var(--green-dark) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all var(--transition);
}
.btn-nav:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-nav-outline { color: rgba(255,255,255,0.9) !important; padding: 10px 18px; border-radius: 50px; font-weight: 600; font-size: 0.88rem; border: 1.5px solid rgba(255,255,255,0.3); transition: all var(--transition); }
.btn-nav-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100dvh;
  background: var(--green-dark);
  z-index: 999;
  padding: 90px 30px 30px;
  transition: right var(--transition);
  overflow-y: auto;
}
.mobile-nav.open { right: 0; }
.mobile-nav a {
  display: block;
  padding: 14px 0;
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav .sub-link { padding-left: 20px; font-size: 0.95rem; color: rgba(255,255,255,0.8); }
.mobile-nav .mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: none;
  border: none;
  padding: 14px 0;
  color: rgba(255,255,255,0.9);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav .mobile-dropdown-toggle:hover { color: var(--gold); }
.mobile-nav .mobile-dropdown-caret {
  display: inline-block;
  font-size: 0.85em;
  transition: transform var(--transition);
  color: rgba(255,255,255,0.6);
}
.mobile-nav .mobile-dropdown-toggle[aria-expanded="true"] .mobile-dropdown-caret { transform: rotate(180deg); color: var(--gold); }
.mobile-nav .mobile-dropdown-menu {
  display: none;
  padding-left: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav .mobile-dropdown-menu.open { display: block; }
.mobile-nav .mobile-dropdown-menu a {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-nav .mobile-dropdown-menu a:last-child { border-bottom: none; }
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}
.mobile-overlay.open { display: block; }
.mobile-nav .btn-mobile-cta {
  display: block;
  background: var(--gold);
  color: var(--green-dark);
  text-align: center;
  padding: 14px;
  border-radius: 50px;
  font-weight: 700;
  margin-top: 24px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--green-dark);
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,168,67,0.3); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  transition: all var(--transition);
  cursor: pointer;
}
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* ===== SECTION LABEL ===== */
.section-label {
  display: inline-block;
  background: rgba(76,175,80,0.1);
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

/* ===== UTILITIES ===== */

/* Alternate mobile CTA (white on dark) */
.btn-mobile-cta-alt {
  background: var(--white);
  color: var(--green-dark);
  margin-top: 12px;
}

/* Hero/CTA button row */
.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn-row-center {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Callout box (green tint with left border) */
.callout-box {
  background: linear-gradient(135deg, var(--green-tint), var(--green-tint-dark));
  border-left: 4px solid var(--green-light);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 20px;
}
.callout-box strong { color: var(--green-dark); }
.callout-box span { color: var(--text-light); }

/* White variant of primary button (phone CTA) */
.btn-primary-alt {
  background: var(--white);
  color: var(--green-dark);
}

/* Section label on dark backgrounds */
.section-label-dark {
  background: rgba(255,255,255,0.1);
  color: var(--gold);
}

/* CTA banner layout */
.cta-banner .container { text-align: center; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 28px; font-size: 1.05rem; }

/* Full-width primary button */
.btn-primary-full { width: 100%; justify-content: center; font-size: 1.05rem; }

/* Phone CTA link (gold text below buttons) */
.phone-cta {
  display: block;
  margin-top: 16px;
  color: var(--gold);
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
}

/* Section header (centered with margin) */
.section-header-inline { text-align: center; margin-bottom: 48px; }
.section-header-inline h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; color: var(--green-dark); margin-bottom: 12px; }
.section-header-inline p { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* Inspection feature gold links */
.inspection-feature a.gold-link { color: var(--gold); }

/* FAQ section title centering */
.faq-title-center { text-align: center; margin-bottom: 32px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
}
.footer-brand .logo { font-size: 1.3rem; margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.footer-links a {
  display: block;
  padding: 5px 0;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-contact a, .footer-contact p {
  padding: 6px 0;
  font-size: 0.9rem;
}
.footer-contact a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}

/* ===== MOBILE STICKY CTA ===== */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--green-dark);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 8px 16px;
  transition: transform 0.3s ease;
}
.mobile-cta-bar.hidden { transform: translateY(100%); }
.mobile-cta-bar .cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-cta-bar .cta-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}
.mobile-cta-bar .btn-book {
  background: var(--gold);
  color: var(--green-dark);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
}

/* ===== SKIP LINK ===== */
.skip-link { position: absolute; top: -100%; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--green-dark); padding: 12px 24px; border-radius: 0 0 8px 8px; font-weight: 700; z-index: 9999; transition: top 0.2s; }
.skip-link:focus { top: 0; }

/* ===== FOCUS ===== */
*:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .mobile-cta-bar { display: block; }

  body { padding-bottom: 48px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
