/* ================================================================
   Alder & Green — main.css
   Visual direction: Refined Local Garden Care (Stage 7)
   ================================================================ */

/* ----------------------------------------------------------------
   1. CSS custom properties
   ---------------------------------------------------------------- */
:root {
  /* Brand greens */
  --ag-green-900: #173A2A;
  --ag-green-800: #234B36;
  --ag-green-700: #2F684B;

  /* Sage */
  --ag-sage-500: #7F9A7A;
  --ag-sage-200: #D7E3D5;
  --ag-sage-100: #E7EFE6;

  /* Neutrals */
  --ag-cream: #F7F3EA;
  --ag-white: #FFFDF8;
  --ag-stone-100: #EFE8DD;
  --ag-stone-200: #DDD3C3;
  --ag-stone-600: #817665;
  --ag-charcoal: #26302B;

  /* Accents and states */
  --ag-ochre: #B08A42;
  --ag-error: #8A2F2A;
  --ag-success: #245B3C;

  /* Typography */
  --ag-font-heading: "Lora", Georgia, "Times New Roman", serif;
  --ag-font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --ag-container-max: 1140px;
  --ag-section-padding-y: 5rem;
  --ag-section-padding-y-sm: 3.25rem;

  /* Radius */
  --ag-radius-sm: 0.5rem;
  --ag-radius-md: 0.875rem;
  --ag-radius-lg: 1.25rem;

  /* Borders and shadows */
  --ag-border-subtle: 1px solid rgba(23, 58, 42, 0.14);
  --ag-border-table: 1px solid rgba(23, 58, 42, 0.32);
  --ag-shadow-card: 0 12px 30px rgba(23, 58, 42, 0.07);
  --ag-shadow-soft: 0 8px 22px rgba(23, 58, 42, 0.06);

  /* Focus */
  --ag-focus-ring: 0 0 0 0.2rem rgba(176, 138, 66, 0.38);
}


/* ----------------------------------------------------------------
   2. Base / reset
   ---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--ag-font-body);
  color: var(--ag-charcoal);
  background-color: #ffffff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.ag-heading {
  font-family: var(--ag-font-heading);
  color: var(--ag-green-900);
  letter-spacing: -0.015em;
  line-height: 1.12;
}

a {
  color: var(--ag-green-800);
}

a:hover {
  color: var(--ag-green-900);
}

/* Reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* ----------------------------------------------------------------
   3. Focus states (visible, non-colour-only)
   ---------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--ag-ochre);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Override Bootstrap focus for form controls */
.form-control:focus,
.form-select:focus {
  border-color: var(--ag-ochre);
  box-shadow: var(--ag-focus-ring);
  outline: none;
}


/* ----------------------------------------------------------------
   4. Skip link
   ---------------------------------------------------------------- */
.ag-skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--ag-green-900);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--ag-radius-sm) 0;
}

.ag-skip-link:focus {
  clip: auto !important;
  clip-path: none !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  white-space: nowrap;
}


/* ----------------------------------------------------------------
   5. Navbar
   ---------------------------------------------------------------- */
.ag-navbar {
  background: var(--ag-green-900);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

/* Brand wordmark */
.ag-brand {
  font-family: var(--ag-font-heading);
  color: var(--ag-cream) !important;
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.ag-brand:hover {
  color: var(--ag-white) !important;
  text-decoration: none;
}

@media (max-width: 991.98px) {
  .ag-brand {
    font-size: 2.2rem;
  }

  .ag-navbar .container {
    flex-direction: column;
    align-items: center;
  }

  .ag-navbar .navbar-toggler {
    margin-top: 1rem;
  }
}

.ag-brand-tagline {
  font-family: var(--ag-font-body);
  font-size: 0.93rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(247, 243, 234, 0.65);
  margin-top: 0.1rem;
}

/* Nav links */
.ag-navbar .nav-link {
  font-family: var(--ag-font-body);
  color: var(--ag-cream);
  font-size: 1.24rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  position: relative;
}

.ag-navbar .nav-link:hover {
  color: #fff;
}

.ag-navbar .nav-link.active,
.ag-navbar .nav-link[aria-current="page"] {
  color: #fff;
  font-weight: 700;
}

/* Active underline — cream on dark green (not colour-only) */
.ag-navbar .nav-link.active::after,
.ag-navbar .nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--ag-cream);
  border-radius: 1px;
}

/* Mobile nav toggler */
.ag-navbar .navbar-toggler {
  border-color: rgba(247, 243, 234, 0.40);
}

.ag-navbar .navbar-toggler:focus {
  box-shadow: var(--ag-focus-ring);
}

.ag-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2c255%2c255%2c1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Callback CTA button in navbar: cream bg with dark green text */
.ag-navbar .ag-btn-primary {
  background: var(--ag-cream);
  border-color: var(--ag-cream);
  color: var(--ag-green-900) !important;
}

.ag-navbar .ag-btn-primary:hover {
  background: var(--ag-white);
  border-color: var(--ag-white);
  color: var(--ag-green-900) !important;
}


/* ----------------------------------------------------------------
   6. Buttons
   ---------------------------------------------------------------- */
.ag-btn {
  display: inline-block;
  border-radius: var(--ag-radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.15rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1.3;
}

.ag-btn-primary {
  background: var(--ag-green-900);
  color: #fff !important;
  border: 1px solid var(--ag-green-900);
}

.ag-btn-primary:hover {
  background: var(--ag-green-800);
  border-color: var(--ag-green-800);
  color: #fff !important;
}

.ag-btn-secondary {
  background: transparent;
  color: var(--ag-green-900) !important;
  border: 1px solid var(--ag-green-800);
}

.ag-btn-secondary:hover {
  background: var(--ag-sage-100);
  color: var(--ag-green-900) !important;
}

.ag-link-cta {
  color: var(--ag-green-800);
  font-weight: 700;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.ag-btn-primary:disabled,
.ag-btn-primary[disabled],
.ag-btn-primary[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.ag-btn-secondary:disabled,
.ag-btn-secondary[disabled],
.ag-btn-secondary[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}


/* ----------------------------------------------------------------
   7. Footer
   ---------------------------------------------------------------- */
.ag-footer {
  background: var(--ag-green-900);
  color: var(--ag-white);
  padding-top: 3.5rem;
  padding-bottom: 2rem;
  margin-top: auto;
}

.ag-footer-brand {
  display: block;
  font-family: var(--ag-font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ag-white);
  margin-bottom: 0.6rem;
  text-decoration: none;
}

.ag-footer-brand:hover {
  color: var(--ag-white);
  opacity: 0.8;
}

.ag-footer-summary {
  font-size: 0.9rem;
  color: var(--ag-sage-200);
  line-height: 1.6;
  margin-bottom: 0;
}

.ag-footer-heading {
  font-family: var(--ag-font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ag-sage-500);
  margin-bottom: 0.85rem;
}

.ag-footer-area-note {
  font-size: 0.82rem;
  color: var(--ag-sage-200);
  margin-bottom: 0.5rem;
}

.ag-footer-links {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.ag-footer-links li {
  margin-bottom: 0.4rem;
}

.ag-footer-links a {
  color: var(--ag-sage-100);
  text-decoration: none;
  text-underline-offset: 0.18em;
}

.ag-footer-links a:hover {
  color: var(--ag-white);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
}

.ag-footer-links li:not(:has(a)) {
  color: var(--ag-sage-200);
}

.ag-footer-cta {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ag-sage-100);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.ag-footer-cta:hover {
  color: var(--ag-white);
}

@media (max-width: 767.98px) {
  .ag-footer-brand,
  .ag-footer-summary,
  .ag-footer-heading,
  .ag-footer-links {
    text-align: center;
  }
  .ag-footer-cta {
    display: block;
    text-align: center;
    margin-top: 1.75rem;
  }
}

.ag-footer-rule {
  border-color: rgba(255, 255, 255, 0.12);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

.ag-footer-copy {
  font-size: 0.82rem;
  color: var(--ag-stone-600);
  margin-bottom: 0;
  text-align: center;
}

.ag-footer-disclaimer {
  font-size: 0.75rem;
  color: var(--ag-stone-600);
  opacity: 0.8;
  margin-top: 0.5rem;
  margin-bottom: 0;
  text-align: center;
}


/* ----------------------------------------------------------------
   8. Sections (scaffold — full styling in Ticket 03)
   ---------------------------------------------------------------- */
.ag-section {
  padding-block: var(--ag-section-padding-y);
}

.ag-section-sm {
  padding-block: var(--ag-section-padding-y-sm);
}

@media (max-width: 767.98px) {
  .ag-section {
    padding-block: 3.25rem;
  }

  .ag-section-sm {
    padding-block: 2rem;
  }

  .ag-section--hero {
    padding-bottom: 2rem;
  }
}


/* ----------------------------------------------------------------
   9. Typography scale
   ---------------------------------------------------------------- */

/* Section heading underline */
.ag-card-section h2 {
  text-decoration: underline;
  text-decoration-color: var(--ag-sage-500);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
h2 {
  font-size: 2.1rem;
}

h3 {
  font-size: 1.35rem;
}

.ag-h1-home {
  font-size: 3.25rem;
}

.ag-h1-sub {
  font-size: 3.25rem;
}

.ag-lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ag-charcoal);
}

.ag-small {
  font-size: 0.9rem;
}

.ag-eyebrow {
  font-family: var(--ag-font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ag-green-700);
  display: block;
  margin-bottom: 0.6rem;
}

.ag-eyebrow--lg {
  font-family: var(--ag-font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

@media (max-width: 767.98px) {
  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .ag-h1-home {
    font-size: 2.35rem;
  }

  .ag-h1-sub {
    font-size: 2.35rem;
  }
}


/* ----------------------------------------------------------------
   10. Cards
   ---------------------------------------------------------------- */
.ag-card {
  background: #ffffff;
  border: 2px solid var(--ag-green-900);
  border-radius: var(--ag-radius-md);
  box-shadow: 0 8px 20px rgba(23, 58, 42, 0.06);
  padding: 1.5rem;
}

.ag-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.ag-card .ag-plan-name { font-size: 1.9rem; }

.ag-plan-essential { background-color: var(--ag-cream); }

.ag-plan-regular { background-color: var(--ag-sage-200); }

.ag-plan-signature {
  background-color: var(--ag-green-900);
  border-color: var(--ag-green-700);
  color: var(--ag-cream);
}
.ag-plan-signature h3,
.ag-plan-signature .ag-heading {
  color: var(--ag-cream);
}
.ag-plan-signature .ag-btn-secondary {
  color: var(--ag-cream) !important;
  border-color: var(--ag-sage-200);
}
.ag-plan-signature .ag-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--ag-white);
}
.ag-plan-signature img {
  filter: brightness(0) invert(1);
}

.ag-plan-signature .ag-eyebrow {
  color: var(--ag-cream);
}

.ag-plan-pill {
  display: inline-block;
  padding: 0.3rem 1.1rem;
  border-radius: 2rem;
  border: 1px solid rgba(23, 58, 42, 0.2);
  font-family: var(--ag-font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ag-green-800);
}

.ag-plan-pill.ag-plan-signature {
  color: var(--ag-cream);
  border-color: var(--ag-green-700);
}

.ag-portfolio-plan-strip .ag-card {
  text-align: center;
}

.ag-portfolio-plan-strip .ag-eyebrow {
  font-size: 1.05rem;
}

.ag-portfolio-plan-strip .ag-small {
  font-size: 1rem;
}


/* ----------------------------------------------------------------
   11. Hero image frame
   ---------------------------------------------------------------- */
.ag-hero-image {
  border-radius: var(--ag-radius-lg);
  box-shadow: var(--ag-shadow-soft);
  border: var(--ag-border-subtle);
  overflow: hidden;
}

.ag-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Carousel within home hero */
.ag-hero-image .carousel {
  aspect-ratio: 3 / 2;
  border-radius: var(--ag-radius-lg);
}

.ag-hero-image .carousel-inner,
.ag-hero-image .carousel-item {
  height: 100%;
  border-radius: var(--ag-radius-lg);
}

.ag-hero-image .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--ag-radius-lg);
}

.ag-hero-image .carousel-control-prev,
.ag-hero-image .carousel-control-next {
  width: 2.5rem;
  opacity: 0.6;
}

.ag-hero-image .carousel-control-prev:hover,
.ag-hero-image .carousel-control-next:hover {
  opacity: 1;
}


/* ----------------------------------------------------------------
   12. CTA band
   ---------------------------------------------------------------- */
.ag-cta-band {
  background: var(--ag-sage-100);
  border: var(--ag-border-subtle);
  border-radius: var(--ag-radius-lg);
  padding: 3rem;
}

@media (max-width: 767.98px) {
  .ag-cta-band {
    padding: 2rem 1.5rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}


/* ----------------------------------------------------------------
   13. Note box
   ---------------------------------------------------------------- */
.ag-note-box {
  background: var(--ag-sage-100);
  border: none;
  border-radius: var(--ag-radius-lg);
  padding: 1.25rem 1.5rem;
}

.ag-note-box--warning {
  background: var(--ag-stone-100);
  border-color: var(--ag-stone-200);
}

.ag-note-box--highlight {
  border-color: var(--ag-green-900);
}

.ag-note-box__heading {
  font-family: var(--ag-font-body);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ag-green-900);
  margin-bottom: 0.35rem;
}

.ag-note-box__body {
  font-size: 1rem;
  color: var(--ag-charcoal);
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .ag-note-box {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}


/* ----------------------------------------------------------------
   14. Plan badge
   ---------------------------------------------------------------- */
.ag-plan-badge {
  display: inline-block;
  background: var(--ag-sage-100);
  color: var(--ag-green-900);
  border: 1px solid var(--ag-sage-200);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.75rem;
}


/* ----------------------------------------------------------------
   15. Table wrapper
   ---------------------------------------------------------------- */
.ag-table-wrapper {
  overflow-x: auto;
  border: var(--ag-border-table);
  border-radius: var(--ag-radius-md);
  background: var(--ag-white);
}

.ag-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.ag-table th {
  font-family: var(--ag-font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ag-green-700);
  padding: 0.55rem 1rem;
  border-bottom: var(--ag-border-table);
  text-align: left;
  white-space: nowrap;
  background: var(--ag-white);
}

.ag-table td {
  padding: 0.4rem 1rem;
  border-bottom: var(--ag-border-table);
  color: var(--ag-charcoal);
  vertical-align: middle;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
}

.ag-table tr:last-child td {
  border-bottom: none;
}


/* ----------------------------------------------------------------
   16. Form panel and callback card
   ---------------------------------------------------------------- */
.ag-form-panel {
  background: var(--ag-white);
  border: var(--ag-border-subtle);
  border-radius: var(--ag-radius-lg);
  box-shadow: var(--ag-shadow-card);
  padding: 2rem;
}

.ag-callback-card {
  background: var(--ag-sage-100);
  border: 1px solid var(--ag-sage-200);
  border-radius: var(--ag-radius-md);
  padding: 1.5rem;
}


/* ----------------------------------------------------------------
   17. Area badges
   ---------------------------------------------------------------- */
.ag-area-badge {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--ag-green-900);
  background: var(--ag-white);
  color: var(--ag-green-900);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.3rem 0.9rem;
}


/* ----------------------------------------------------------------
   18. Before/after frame
   ---------------------------------------------------------------- */
.ag-before-after-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--ag-radius-md);
  border: var(--ag-border-subtle);
  background: var(--ag-stone-100);
}

.ag-before-after-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ----------------------------------------------------------------
   19. Section background modifier
   ---------------------------------------------------------------- */
.ag-section--alt {
  background: transparent;
}


/* ----------------------------------------------------------------
   19a. Section card layout (CX-01B)
   ---------------------------------------------------------------- */

/* Zero out section padding when a card container is present */
.ag-section.ag-section--card,
.ag-section-sm.ag-section--card {
  padding-block: 0;
}

/* Match horizontal padding of non-card containers to card sections */
.ag-section > .container:not(.ag-card-section),
.ag-section-sm > .container:not(.ag-card-section) {
  padding-inline: 2.5rem;
}

@media (max-width: 767.98px) {
  .ag-section > .container:not(.ag-card-section),
  .ag-section-sm > .container:not(.ag-card-section) {
    padding-inline: 1.5rem;
  }
}

/* Card container — visual card floating on white page */
.ag-card-section {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 16px rgba(23, 58, 42, 0.06);
}

/* Pale sage variant */
.ag-card-section--sage {
  background-color: #ffffff;
}

@media (max-width: 767.98px) {
  .ag-card-section {
    padding-block: 2rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
  }
}


/* ----------------------------------------------------------------
   20. Step number (How it works)
   ---------------------------------------------------------------- */
.ag-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--ag-sage-100);
  border: 2px solid var(--ag-green-900);
  color: var(--ag-green-900);
  font-family: var(--ag-font-body);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.ag-step-arrow {
  color: var(--ag-sage-500);
}


/* ----------------------------------------------------------------
   21. Before/after state label
   ---------------------------------------------------------------- */
.ag-before-after-state {
  font-family: var(--ag-font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ag-green-700);
}


/* ----------------------------------------------------------------
   22. Before/after toggle button
   ---------------------------------------------------------------- */
.ag-before-after-toggle {
  display: inline-block;
  border-radius: var(--ag-radius-sm);
  font-family: var(--ag-font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--ag-green-800);
  background: transparent;
  color: var(--ag-green-900);
  cursor: pointer;
  line-height: 1.3;
  transition: background 0.15s, color 0.15s;
}

.ag-before-after-toggle:hover {
  background: var(--ag-sage-100);
}


/* ----------------------------------------------------------------
   23. Task list (service cards)
   ---------------------------------------------------------------- */
.ag-task-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.ag-task-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: var(--ag-charcoal);
}

.ag-task-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--ag-green-900);
  font-weight: 700;
}


/* ----------------------------------------------------------------
   24. Table row-scope header overrides
   ---------------------------------------------------------------- */
.ag-table th[scope="row"] {
  text-transform: none;
  letter-spacing: 0;
  color: var(--ag-charcoal);
  font-size: 0.95rem;
  font-weight: 600;
}

.ag-table--comparison th[scope="row"] {
  min-width: 200px;
  font-weight: 500;
}

.ag-table tr:last-child th {
  border-bottom: none;
}

.ag-table-th-sub {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ag-stone-600);
  margin-top: 0.2rem;
}


/* ----------------------------------------------------------------
   25. Pricing page — recommended row and column highlight
   ---------------------------------------------------------------- */
.ag-table--pricing .ag-row-recommended th,
.ag-table--pricing .ag-row-recommended td {
  background: var(--ag-sage-100);
}

.ag-table--comparison th.ag-col-recommended,
.ag-table--comparison td.ag-col-recommended {
  background: var(--ag-sage-100);
}

.ag-table th .ag-plan-badge {
  text-transform: none;
  letter-spacing: 0.04em;
  display: block;
  width: fit-content;
  margin-top: 0.35rem;
}

.ag-table thead th {
  background: var(--ag-green-900);
  color: var(--ag-cream);
  font-size: 0.9rem;
}

.ag-table thead th .ag-table-th-sub {
  color: var(--ag-sage-200);
}

.ag-table--comparison thead th a {
  color: var(--ag-cream);
}

.ag-table--comparison th.ag-col-recommended {
  border-left: 3px solid var(--ag-sage-500);
}

.ag-table--comparison thead th.ag-col-recommended {
  background: var(--ag-green-900);
}

.ag-table--comparison th[scope="col"]:first-child,
.ag-table--comparison th[scope="row"] {
  border-right: var(--ag-border-table);
  white-space: normal;
}


/* ----------------------------------------------------------------
   26. Visually hidden (screen reader only)
   ---------------------------------------------------------------- */
.ag-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ----------------------------------------------------------------
   26a. Text utility — muted / secondary colour
   ---------------------------------------------------------------- */
.ag-text-muted {
  color: var(--ag-stone-600);
}

/* Compact sub-label: small size + muted colour (e.g. garden size ranges) */
.ag-label-sm {
  font-size: 0.75rem;
  color: var(--ag-stone-600);
}


/* ----------------------------------------------------------------
   27. Portfolio — case study section
   ---------------------------------------------------------------- */
.ag-case-study {
  padding-block: 4.5rem;
  border-top: 1px solid rgba(23, 58, 42, 0.12);
}

@media (max-width: 767.98px) {
  .ag-case-study {
    padding-block: 3rem;
  }
}


/* ----------------------------------------------------------------
   28. Before/after — controls bar
   ---------------------------------------------------------------- */
.ag-before-after-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}


/* ----------------------------------------------------------------
   28a. Before/after — portfolio overlay (C27)
   ---------------------------------------------------------------- */
.ag-before-after--portfolio .ag-before-after-frame {
  position: relative;
}

.ag-before-after--portfolio .ag-before-after-toggle {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(23, 58, 42, 0.85);
  color: var(--ag-cream);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.ag-before-after--portfolio .ag-before-after-toggle:hover {
  background: rgba(23, 58, 42, 1);
}


/* ----------------------------------------------------------------
   28b. Lightbox overlay (C28)
   ---------------------------------------------------------------- */
.ag-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 1.5rem 1.5rem;
}

.ag-lightbox[hidden] { display: none; }

.ag-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}

.ag-lightbox-prev,
.ag-lightbox-next {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.ag-lightbox-prev:hover,
.ag-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

.ag-lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100vw - 12rem);
  max-height: 88vh;
}

.ag-lightbox-img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--ag-radius-md);
  display: block;
}

.ag-lightbox-toggle {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(23, 58, 42, 0.85);
  color: var(--ag-cream);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--ag-radius-sm);
  font-family: var(--ag-font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  line-height: 1.3;
  transition: background 0.15s;
}

.ag-lightbox-toggle:hover {
  background: rgba(23, 58, 42, 1);
}


/* ----------------------------------------------------------------
   28c. Case study title, location, sub-headings (C29)
   ---------------------------------------------------------------- */
.ag-case-study-title {
  text-decoration: underline;
  text-decoration-color: var(--ag-green-700);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.ag-case-study-location {
  font-size: 1rem;
  color: var(--ag-green-700);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.ag-case-study-subheading {
  font-family: var(--ag-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ag-green-900);
  border-bottom: 2px solid var(--ag-sage-300);
  padding-bottom: 0.3rem;
  margin-bottom: 0.5rem;
  text-align: center;
}


/* ----------------------------------------------------------------
   28d. Case study — CSS Grid layout
   ---------------------------------------------------------------- */
.ag-case-study-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .ag-case-study-layout {
    display: grid;
    grid-template-columns: 5fr 7fr;
    grid-template-areas:
      "intro images"
      "detail images";
    column-gap: 1.5rem;
    row-gap: 1.5rem;
  }

  .ag-case-study-intro  { grid-area: intro; }
  .ag-case-study-images { grid-area: images; }
  .ag-case-study-detail { grid-area: detail; }
}


/* ----------------------------------------------------------------
   29. Contact page
   ---------------------------------------------------------------- */

/* Contact detail rows */
.ag-contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.ag-contact-detail-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ag-contact-detail-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ag-stone-600);
}

.ag-contact-detail-value {
  color: var(--ag-charcoal);
  font-size: 1rem;
}

a.ag-contact-detail-value {
  color: var(--ag-green-800);
}

a.ag-contact-detail-value:hover {
  color: var(--ag-green-900);
}

.ag-contact-detail-note {
  color: var(--ag-stone-600);
  font-size: 0.9rem;
  border-top: 1px solid var(--ag-stone-200);
  padding-top: 0.75rem;
}

.ag-contact-panel {
  background: var(--ag-white);
  border: var(--ag-border-subtle);
  border-radius: var(--ag-radius-lg);
  box-shadow: var(--ag-shadow-card);
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Callback card — strip inner card when nested inside contact panel */
.ag-contact-panel .ag-callback-card {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  border-top: 1px solid var(--ag-stone-200);
  padding-top: 1.5rem;
}

/* Callback card */
.ag-callback-card__heading {
  font-family: var(--ag-font-heading);
  color: var(--ag-green-900);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.ag-callback-card__body,
.ag-callback-card__helper {
  color: var(--ag-charcoal);
  margin: 0;
}

.ag-callback-card__helper {
  color: var(--ag-stone-600);
}

.ag-callback-card__icon {
  flex-shrink: 0;
}

/* Form panel heading */
.ag-form-panel__heading {
  font-family: var(--ag-font-heading);
  color: var(--ag-green-900);
  font-size: 1.45rem;
  margin: 0;
}

.ag-form-panel__helper {
  color: var(--ag-stone-600);
  font-size: 0.95rem;
}

/* Labels */
.ag-form-label {
  font-weight: 600;
  color: var(--ag-charcoal);
  font-size: 0.95rem;
}

.ag-required-mark {
  color: var(--ag-error);
  margin-left: 0.15rem;
}

.ag-optional-mark {
  font-weight: 400;
  color: var(--ag-stone-600);
  font-size: 0.85rem;
  margin-left: 0.35rem;
}

.ag-required-note {
  color: var(--ag-stone-600);
}

/* Form controls */
.ag-form-control {
  border: 1px solid var(--ag-stone-200);
  border-radius: var(--ag-radius-sm);
  padding: 0.75rem 0.85rem;
  background: #fff;
  color: var(--ag-charcoal);
  width: 100%;
}

.ag-form-control:focus {
  border-color: var(--ag-ochre);
  box-shadow: var(--ag-focus-ring);
  outline: none;
}

.ag-form-control.is-invalid {
  border-color: var(--ag-error);
}

/* Field-level error messages */
.ag-form-error {
  color: var(--ag-error);
  font-size: 0.875rem;
}

.ag-form-error-summary {
  color: var(--ag-error);
  font-size: 0.9rem;
  font-weight: 600;
  border-left: 3px solid var(--ag-error);
  padding-left: 0.75rem;
}

/* Success / error alert panels */
.ag-form-alert {
  border-radius: var(--ag-radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
}

.ag-form-alert--success {
  background: #e8f4ee;
  border: 1px solid var(--ag-success);
  color: var(--ag-success);
}

.ag-form-alert--error {
  background: #f5e8e8;
  border: 1px solid var(--ag-error);
  color: var(--ag-error);
}

/* Honeypot — must be invisible and not affect layout */
.ag-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

/* ----------------------------------------------------------------
   30. Callback modal
   ---------------------------------------------------------------- */
.ag-modal-header {
  background: var(--ag-green-900);
  border-bottom: none;
  padding: 1.25rem 1.5rem;
}

.ag-modal-title {
  color: var(--ag-cream);
  font-size: 1.35rem;
  margin: 0;
  text-decoration: none;
  line-height: 1.2;
}

.ag-modal-body {
  padding: 1.75rem;
}

#callbackSuccess .ag-lead {
  color: var(--ag-green-900);
}


/* Service area section */
.ag-section--service-areas {
  background: var(--ag-sage-100);
}

.ag-service-area-map img {
  border-radius: var(--ag-radius-md);
  border: var(--ag-border-subtle);
  width: 100%;
  height: auto;
}


/* ----------------------------------------------------------------
   31. Mobile pricing and comparison cards
   ---------------------------------------------------------------- */

.ag-pricing-card--recommended {
  background: var(--ag-sage-100);
}

.ag-pricing-mobile-rows {
  margin-top: 0.75rem;
  border-top: 1px solid var(--ag-border-subtle);
}

.ag-pricing-mobile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--ag-border-subtle);
}

.ag-pricing-mobile-row--last {
  border-bottom: none;
}

.ag-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--ag-border-subtle);
}

.ag-feature-list li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--ag-border-subtle);
  font-size: 0.875rem;
}

.ag-feature-list li:last-child {
  border-bottom: none;
}

.ag-feature-list li::before {
  content: '✓';
  color: var(--ag-green-700);
  font-weight: 700;
  flex-shrink: 0;
}
