:root {
  /* Augusta Pest Care Palette based on OKLCH requested */
  --forest-deep: oklch(24% 0.05 165); /* deep pine ink */
  --paper: oklch(97.5% 0.008 90); /* paper */
  --surface: oklch(94% 0.012 95); /* surface */
  --amber: oklch(60% 0.15 38); /* red-clay accent */
  --amber-dark: oklch(50% 0.14 38);
  --success: oklch(55% 0.12 155); /* semantic good */
  --caution: oklch(70% 0.14 80); /* caution */
  
  --ink: oklch(20% 0.03 165);
  --muted: oklch(45% 0.02 165);
  --line: oklch(85% 0.01 165);
  --white: #ffffff;
  
  --measure: 68ch;
  --mobile-bar-height: 76px;
  
  --font-display: 'Fraunces', serif;
  --font-body: 'Source Sans 3', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  padding: 0 0 calc(var(--mobile-bar-height) + env(safe-area-inset-bottom));
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  overflow-x: clip; /* required to prevent horizontal overflow */
}
img, svg { display: block; max-width: 100%; }

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-block: 16px;
  background: var(--surface);
  border-bottom: 2px solid var(--forest-deep);
  /* No overflow ancestor issues, keeping layout simple */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.logo {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  color: var(--forest-deep);
  text-decoration: none;
}

.logo-mark {
  flex-shrink: 0;
}

.wordmark-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.wordmark-copy strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.wordmark-copy span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 4px;
}

.menu-toggle {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 16px;
  color: var(--forest-deep);
  background: var(--white);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.menu-toggle:hover, .menu-toggle:focus-visible {
  background: var(--surface);
  border-color: var(--forest-deep);
}

.primary-nav {
  position: absolute;
  top: calc(100% + 16px);
  right: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 2px solid var(--forest-deep);
  border-radius: 12px;
  padding: 16px;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--forest-deep);
  max-height: calc(100dvh - 120px);
  overflow-y: auto;
}

.primary-nav[hidden] {
  display: none;
}

.nav-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.nav-group-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 8px 16px;
  font-weight: 600;
}

.primary-nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  border-radius: 6px;
  padding: 8px 16px;
  color: var(--forest-deep);
  font-weight: 600;
  text-decoration: none;
}

.primary-nav a:hover, .primary-nav a:focus-visible {
  background: var(--forest-deep);
  color: var(--white);
}

.header-phone {
  display: none !important;
}

/* Typography & Links */
h1, h2, h3 {
  color: var(--forest-deep);
  font-family: var(--font-display);
  font-weight: 600;
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 8vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.1;
}

h3 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}

p, li {
  overflow-wrap: anywhere;
  max-width: var(--measure);
}

p {
  margin: 0 0 1.5rem;
}

a {
  color: var(--forest-deep);
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--amber);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

/* Breadcrumbs */
.breadcrumbs {
  max-width: var(--measure);
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: '/';
  margin-right: 8px;
  color: var(--line);
}

.breadcrumbs a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--forest-deep);
  text-decoration: underline;
}

/* Buttons */
.cta-btn {
  display: inline-flex;
  min-height: 56px;
  max-width: 100%;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  border: none;
  border-radius: 4px;
  padding: 12px 24px;
  color: var(--white);
  background: var(--amber);
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--forest-deep);
}

.cta-btn:hover, .cta-btn:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--forest-deep);
  color: var(--white);
}

.cta-btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--forest-deep);
}

.cta-btn strong {
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-display);
}

.cta-large {
  width: 100%;
  max-width: 400px;
}

/* Hero Sections */
.home-hero, .standard-hero {
  position: relative;
  display: grid;
  align-items: center;
  gap: 2rem;
  padding: 3rem 0;
}

.home-hero {
  min-height: 60vh;
}

.standard-hero {
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--line);
  margin-bottom: 3rem;
}

.hero-copy {
  max-width: 600px;
}

.eyebrow, .section-kicker {
  margin: 0 0 1rem;
  color: var(--amber);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-text {
  max-width: 50ch;
  margin: 1.5rem 0 2rem;
  font-size: 1.25rem;
  color: var(--muted);
  line-height: 1.6;
}

.hero-composition {
  display: none;
}

/* Structure */
.home-flow-section, .content-section, .final-contact-section, .mid-cta, .last-updated {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
}

.home-flow-section, .content-section, .final-contact-section {
  padding-block: 4rem;
  border-bottom: 2px solid var(--line);
}

.content-section:last-of-type {
  border-bottom: none;
}

.body-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
}

.body-content > * {
  width: 100%;
}

/* Service Grid */
.service-choice-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.service-choice-grid a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  color: var(--forest-deep);
  background: var(--white);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-decoration: none;
}

.service-choice-grid a:hover {
  border-color: var(--forest-deep);
  transform: translateY(-4px);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--amber);
}

/* Identify Card */
.identify-card {
  border: 2px solid var(--forest-deep);
  border-radius: 12px;
  background: var(--white);
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--line);
}

.identify-header {
  background: var(--surface);
  padding: 24px;
  border-bottom: 2px solid var(--forest-deep);
}

.identify-header h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.identify-header p {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
}

.identify-list {
  display: flex;
  flex-direction: column;
}

.identify-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.identify-item:last-child {
  border-bottom: none;
}

.identify-item:hover {
  background: var(--surface);
}

.identify-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.identify-content strong {
  color: var(--forest-deep);
  font-size: 1.1rem;
}

.identify-content span {
  color: var(--muted);
  font-size: 0.95rem;
}

.identify-arrow {
  color: var(--amber);
  font-size: 1.5rem;
  font-weight: bold;
}

/* Truth Block */
.truth-grid {
  display: grid;
  gap: 32px;
}

.truth-item {
  border-left: 4px solid var(--amber);
  padding-left: 20px;
}

.truth-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* SVG Data Graphics */
.svg-figure {
  margin: 2rem 0;
  width: 100%;
}
.svg-container {
  border: 2px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}
.svg-figure figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

/* Tables & Charts */
.data-block {
  margin: 2.5rem 0;
  width: 100%;
}

.cost-chart-container {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}

.cost-chart-container h3 {
  margin-top: 0;
}

.cost-chart {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px 0;
}

.cost-chart-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cost-chart-label {
  font-weight: 600;
  color: var(--forest-deep);
}

.cost-chart-track {
  position: relative;
  height: 24px;
  background: var(--surface);
  border-radius: 4px;
  overflow: hidden;
}

.cost-chart-bar {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 4px;
}

.cost-low { background: var(--line); }
.cost-typical { background: var(--amber); z-index: 2; }
.cost-high { background: rgba(0,0,0,0.1); z-index: 1; }

.cost-chart-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

.cost-chart-values strong {
  color: var(--forest-deep);
}

.table-scroll-fallback {
  display: none;
}

.table-scroll {
  overflow-x: auto;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

caption {
  font-weight: 600;
  padding: 12px;
  background: var(--surface);
  border-bottom: 2px solid var(--line);
}

th, td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  min-width: 120px;
}

th {
  font-weight: 600;
  background: var(--surface);
  color: var(--forest-deep);
}

.block-source {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* FAQ */
.faq-block {
  margin: 3rem 0;
  width: 100%;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-item {
  border-left: 2px solid var(--amber);
  padding-left: 20px;
}

.faq-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  margin-top: 5rem;
  padding: 4rem 0;
  background: var(--forest-deep);
  color: var(--white);
  border-top: 4px solid var(--amber);
}

.footer a {
  color: var(--white);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
  text-decoration-color: var(--amber);
  color: var(--amber);
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 4px;
}

.footer-brand span {
  color: var(--line);
  font-size: 0.9rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin: 3rem 0;
}

.footer-nav div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav strong {
  color: var(--amber);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  min-height: 24px;
}

.footer a {
  color: var(--white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.disclaimer {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  color: var(--line);
  font-size: 0.85rem;
}

/* Mobile Bar */
.mobile-bar {
  position: fixed;
  z-index: 110;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  min-height: var(--mobile-bar-height);
  justify-content: center;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  visibility: hidden;
  background: var(--surface);
  border-top: 2px solid var(--forest-deep);
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}

.mobile-bar.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.mobile-cta {
  display: flex;
  width: 100%;
  max-width: 420px;
  align-items: center;
  justify-content: space-between;
  border-radius: 4px;
  padding: 10px 20px;
  color: var(--white);
  background: var(--amber);
  font-weight: 600;
  text-decoration: none;
}

.mobile-cta strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

/* Desktop overrides */
@media (min-width: 768px) {
  .service-choice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .truth-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-nav {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .cost-chart-row {
    flex-direction: row;
    align-items: center;
  }
  
  .cost-chart-label {
    width: 25%;
    flex-shrink: 0;
  }
  
  .cost-chart-track {
    flex-grow: 1;
  }
  
  .cost-chart-values {
    width: 25%;
    flex-shrink: 0;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 40px;
  }
  
  .home-hero {
    grid-template-columns: 60% 40%;
  }
  
  .hero-composition {
    display: block;
    width: 100%;
    position: relative;
  }

  .menu-toggle {
    display: none;
  }

  .primary-nav, .primary-nav[hidden] {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    max-height: none;
    overflow: visible;
    border: none;
    padding: 0;
    background: transparent;
    box-shadow: none;
    margin-left: auto;
    margin-right: 24px;
  }

  .nav-group {
    flex-direction: row;
    align-items: center;
    margin: 0;
    padding: 0;
    border: none;
  }

  .nav-group-label {
    display: none;
  }

  .primary-nav a {
    min-height: auto;
    padding: 8px 12px;
  }

  .primary-nav a:hover, .primary-nav a:focus-visible {
    background: var(--surface);
    color: var(--forest-deep);
  }

  .header .container {
    max-width: 1440px;
  }

  .header-phone {
    display: inline-flex !important;
    padding: 8px 16px;
    min-height: 44px;
    max-width: 210px;
    font-size: 0.84rem;
  }

  .header-phone small {
    display: block;
    font-size: 1rem;
    font-family: var(--font-display);
  }

  body {
    padding-bottom: 0; /* No mobile bar */
  }

  .mobile-bar {
    display: none;
  }
}
