﻿/* ============================================================
   Tree Care Experts â€” Standalone Site Stylesheet
   Replaces Tailwind CDN entirely. No build step, no framework.
   Drop this single file in as /assets/css/site.css (replacing the
   old file) and remove the Tailwind <script> tags from every page.
   ============================================================ */

/* ---------- 1. Design tokens (CSS variables) ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* ── Premium Forest Green Palette ── */
  --color-primary:               #123524;   /* Deep Forest Green */
  --color-primary-dark:          #0B2A1D;   /* Dark Green – hero/footer/dark sections */
  --color-primary-container:     #2E5E4E;   /* Secondary Green – cards, secondary btns */
  --color-primary-fixed:         #EDF3EE;   /* Very light green tint for hover bg */
  --color-primary-fixed-dim:     #A8C5AE;   /* Light Green – section bg, FAQ bg */
  --color-on-primary:            #ffffff;
  --color-on-primary-container:  #ffffff;
  --color-on-primary-fixed:      #0B2A1D;
  --color-on-primary-fixed-variant: #2E5E4E;

  --color-secondary:             #2E5E4E;   /* Secondary Green */
  --color-secondary-container:   #EDF3EE;
  --color-on-secondary:          #ffffff;
  --color-on-secondary-container:#123524;

  --color-accent:                #4C7C59;   /* Accent Green – icons, badges, checks */
  --color-accent-light:          #A8C5AE;   /* Light Green */

  --color-tertiary:              #4C7C59;
  --color-tertiary-container:    #A8C5AE;
  --color-tertiary-fixed:        #A8C5AE;
  --color-tertiary-fixed-dim:    #8eaf96;
  --color-on-tertiary:           #ffffff;
  --color-on-tertiary-container: #0B2A1D;
  --color-on-tertiary-fixed:     #0B2A1D;
  --color-on-tertiary-fixed-variant: #2E5E4E;

  --color-error:                 #ba1a1a;
  --color-error-container:       #ffdad6;
  --color-on-error:              #ffffff;
  --color-on-error-container:    #93000a;

  /* ── Surfaces & Backgrounds ── */
  --color-background:            #F6F8F4;   /* Warm Off-White */
  --color-on-background:         #1A1A1A;
  --color-surface:               #F6F8F4;
  --color-surface-bright:        #ffffff;
  --color-surface-dim:           #dde4de;
  --color-surface-container:     #EDF3EE;
  --color-surface-container-low: #f0f5f1;
  --color-surface-container-lowest: #ffffff;
  --color-surface-container-high:#D7E2D8;
  --color-surface-container-highest: #ccd9ce;
  --color-surface-variant:       #D7E2D8;   /* Premium Border Color */
  --color-on-surface:            #1A1A1A;
  --color-on-surface-variant:    #5A5A5A;

  --color-outline:               #a8b8aa;
  --color-outline-variant:       #D7E2D8;
  --color-inverse-surface:       #1A1A1A;
  --color-inverse-on-surface:    #F6F8F4;
  --color-inverse-primary:       #A8C5AE;

  /* ── CTA / Button ── */
  --color-cta:                   #1F6B45;   /* Premium Green Button */
  --color-cta-hover:             #174F34;
  --color-on-cta:                #ffffff;

  /* ── Layout tokens ── */
  --max-width:       1280px;
  --grid-margin:     2rem;
  --grid-gutter:     1.5rem;
  --stack-gap:       2rem;
  --section-padding: 5rem;

  /* ── Radii ── */
  --radius-default:  0.5rem;
  --radius-lg:       0.75rem;
  --radius-xl:       1rem;
  --radius-full:     9999px;

  /* ── Type ── */
  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Inter', sans-serif;
}

/* ---------- Header dropdown navigation ---------- */
.nav-dropdown {
  position: relative;
  padding-block: 1rem;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% - 0.25rem);
  left: 50%;
  z-index: 100;
  min-width: 15rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid rgba(18, 53, 36, 0.1);
  border-radius: 0.75rem;
  box-shadow: 0 12px 36px rgba(11, 42, 29, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 0.5rem);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}

.nav-dropdown-menu.services-dropdown {
  width: 35rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.65rem 0.8rem;
  color: var(--color-on-surface);
  font-size: 0.875rem;
  line-height: 1.25rem;
  border-radius: 0.5rem;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus {
  color: var(--color-primary);
  background: var(--color-primary-fixed);
  outline: none;
}

@media (max-width: 767px) {
  .nav-dropdown-menu {
    display: none;
  }
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--color-background);
  color: var(--color-on-background);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;

}
.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: inherit;
  text-decoration: none;
}
ul, ol {
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
img {
  max-width: 100%;
  display: block;
}
details summary {
  cursor: pointer;
  list-style: none;
}
details summary::-webkit-details-marker {
  display: none;
}
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* ---------- 3. Layout primitives ---------- */
.relative   { position: relative; }
.absolute   { position: absolute; }
.fixed      { position: fixed; }
.inset-0    { top: 0; right: 0; bottom: 0; left: 0; }
.top-0      { top: 0; }
.top-8      { top: 2rem; }
.left-\[12\%\]  { left: 12%; }
.right-\[12\%\] { right: 12%; }
.z-0  { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }

.block        { display: block; }
.inline-block { display: inline-block; }
.flex         { display: flex; }
.inline-flex  { display: inline-flex; }
.grid         { display: grid; }
.hidden       { display: none; }

.flex-col     { flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.flex-shrink-0{ flex-shrink: 0; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }

.order-1 { order: 1; }
.order-2 { order: 2; }

.overflow-hidden   { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }

.w-full   { width: 100%; }
.w-auto   { width: auto; }
.w-4      { width: 1rem; }
.w-5      { width: 1.25rem; }
.w-6      { width: 1.5rem; }
.w-7      { width: 1.75rem; }
.w-8      { width: 2rem; }
.w-12     { width: 3rem; }
.w-16     { width: 4rem; }
.w-40     { width: 10rem; }

.h-4  { height: 1rem; }
.h-5  { height: 1.25rem; }
.h-6  { height: 1.5rem; }
.h-7  { height: 1.75rem; }
.h-8  { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-40 { height: 10rem; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }
.h-80 { height: 20rem; }
.h-96 { height: 24rem; }
.aspect-square { aspect-ratio: 1 / 1; }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.service-intro-image {
  width: 500px;
  height: 500px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  justify-self: center;
}
img[data-image-id^="intro-"] {
  width: 500px !important;
  height: 500px !important;
  max-width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  object-position: center !important;
  justify-self: center;
}
.h-\[400px\]  { height: 400px; }
.h-0\.5       { height: 0.125rem; }
.h-1          { height: 0.25rem; }

.min-h-\[60vh\] { min-height: 60vh; }
.min-h-\[70vh\] { min-height: 70vh; }
.min-h-\[90vh\] { min-height: 90vh; }

.max-w-xs { max-width: 20rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-max-width { max-width: var(--max-width); }

.mx-auto { margin-left: auto; margin-right: auto; }
.px-grid-margin { padding-left: var(--grid-margin); padding-right: var(--grid-margin); }
.py-section-padding { padding-top: var(--section-padding); padding-bottom: var(--section-padding); }
.pb-section-padding { padding-bottom: var(--section-padding); }
.gap-grid-gutter { gap: var(--grid-gutter); }

.aspect-square { aspect-ratio: 1 / 1; }

/* Spacing scale (margin/padding utilities actually used) */
.gap-1   { gap: 0.25rem; }
.gap-1\.5{ gap: 0.375rem; }
.gap-2   { gap: 0.5rem; }
.gap-3   { gap: 0.75rem; }
.gap-4   { gap: 1rem; }
.gap-6   { gap: 1.5rem; }
.gap-8   { gap: 2rem; }

.mb-1  { margin-bottom: 0.25rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-0\.5 { margin-top: 0.125rem; }
.mt-2  { margin-top: 0.5rem; }
.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.-mt-2 { margin-top: -0.5rem; }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.pt-0  { padding-top: 0; }
.pt-20 { padding-top: 5rem; }
.pt-32 { padding-top: 8rem; }
.pb-16 { padding-bottom: 4rem; }
.pb-20 { padding-bottom: 5rem; }

.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10{ padding-left: 2.5rem; padding-right: 2.5rem; }

.py-1   { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5{ padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2   { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5{ padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3   { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4   { padding-top: 1rem; padding-bottom: 1rem; }
.py-8   { padding-top: 2rem; padding-bottom: 2rem; }
.py-12  { padding-top: 3rem; padding-bottom: 3rem; }
.py-20  { padding-top: 5rem; padding-bottom: 5rem; }

.space-y-2  > * + * { margin-top: 0.5rem; }
.space-y-3  > * + * { margin-top: 0.75rem; }
.space-y-4  > * + * { margin-top: 1rem; }
.space-y-10 > * + * { margin-top: 2.5rem; }

.divide-x > * + *               { border-left: 1px solid var(--color-outline-variant); }
.divide-outline-variant\/50 > * + * { border-color: rgba(192, 201, 193, 0.5); }

.self-start { align-self: flex-start; }
.text-left  { text-align: left; }
.text-center{ text-align: center; }

/* ---------- 4. Grid system ---------- */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.col-span-1  { grid-column: span 1 / span 1; }

@media (min-width: 768px) {
  .md\:flex          { display: flex; }
  .md\:hidden        { display: none; }
  .md\:block         { display: block; }
  .md\:flex-row      { flex-direction: row; }
  .md\:items-end     { align-items: flex-end; }
  .md\:self-auto     { align-self: auto; }
  .md\:col-span-2    { grid-column: span 2 / span 2; }
  .md\:grid-cols-2   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3   { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4   { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:grid-cols-5   { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .md\:font-display-lg  { font-family: var(--font-display); }
  .md\:font-headline-lg { font-family: var(--font-display); }
  .md\:text-display-lg  { font-size: 56px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
  .md\:text-headline-lg { font-size: 32px; line-height: 1.3; font-weight: 600; }
}
@media (min-width: 1024px) {
  .lg\:col-span-5   { grid-column: span 5 / span 5; }
  .lg\:col-span-7   { grid-column: span 7 / span 7; }
  .lg\:grid-cols-2  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:order-1 { order: 1; }
  .lg\:order-2 { order: 2; }
}
@media (min-width: 640px) {
  .sm\:flex-row  { flex-direction: row; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:w-auto    { width: auto; }
}

/* ---------- 5. Typography ---------- */
.font-display-lg-mobile  { font-family: var(--font-display); font-size: 40px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; }
.font-headline-lg-mobile { font-family: var(--font-display); font-size: 28px; line-height: 1.3; font-weight: 600; }
.font-headline-md        { font-family: var(--font-display); font-size: 24px; line-height: 1.4; font-weight: 600; }
.font-body-lg             { font-family: var(--font-body); font-size: 18px; line-height: 1.6; font-weight: 400; }
.font-body-md             { font-family: var(--font-body); font-size: 16px; line-height: 1.6; font-weight: 400; }
.font-label-md            { font-family: var(--font-body); font-size: 14px; line-height: 1.2; letter-spacing: 0.05em; font-weight: 500; }
.font-bold     { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium   { font-weight: 500; }
.italic        { font-style: italic; }
.uppercase     { text-transform: uppercase; }
.tracking-wider{ letter-spacing: 0.05em; }
.underline     { text-decoration: underline; }

.text-display-lg-mobile  { font-size: 40px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; }
.text-headline-lg-mobile { font-size: 28px; line-height: 1.3; font-weight: 600; }
.text-headline-md        { font-size: 24px; line-height: 1.4; font-weight: 600; }
.text-body-lg { font-size: 18px; line-height: 1.6; }
.text-body-md { font-size: 16px; line-height: 1.6; }
.text-label-md{ font-size: 14px; line-height: 1.2; letter-spacing: 0.05em; }

.text-xs   { font-size: 0.75rem; }
.text-sm   { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }
.text-3xl  { font-size: 1.875rem; }
.text-4xl  { font-size: 2.25rem; }
.text-6xl  { font-size: 3.75rem; }
.text-\[18px\] { font-size: 18px; }
.text-\[20px\] { font-size: 20px; }
.text-\[28px\] { font-size: 28px; }
.text-\[32px\] { font-size: 32px; }

/* ---------- 6. Colors (text / background / border) ---------- */
.text-on-background      { color: var(--color-on-background); }
.text-on-primary         { color: var(--color-on-primary); }
.text-on-primary\/70     { color: rgba(255,255,255,0.7); }
.text-on-primary\/80     { color: rgba(255,255,255,0.8); }
.text-on-primary\/90     { color: rgba(255,255,255,0.9); }
.text-on-surface-variant { color: var(--color-on-surface-variant); }
.text-on-tertiary-container { color: var(--color-on-tertiary-container); }
.text-primary             { color: var(--color-primary); }
.text-primary-container   { color: var(--color-primary-container); }
.text-tertiary             { color: var(--color-tertiary); }
.text-tertiary-container   { color: var(--color-tertiary-container); }
.text-tertiary-fixed       { color: #A8C5AE; }
.text-white                { color: #ffffff; }
.opacity-90 { opacity: 0.9; }

.bg-background { background-color: var(--color-background); }
.bg-primary    { background-color: var(--color-primary); }
.bg-primary\/70 { background-color: rgba(18, 53, 36, 0.7); }
.bg-primary\/75 { background-color: rgba(18, 53, 36, 0.75); }
.bg-primary-container { background-color: #2E5E4E; }
.bg-primary-container\/20 { background-color: rgba(46, 94, 78, 0.2); }
.bg-primary-container\/30 { background-color: rgba(46, 94, 78, 0.3); }
.bg-surface { background-color: var(--color-surface); }
.bg-surface\/10 { background-color: rgba(248, 249, 250, 0.1); }
.bg-surface\/20 { background-color: rgba(248, 249, 250, 0.2); }
.bg-surface\/90 { background-color: rgba(248, 249, 250, 0.9); }
.bg-surface-container          { background-color: var(--color-surface-container); }
.bg-surface-container-low      { background-color: var(--color-surface-container-low); }
.bg-surface-container-lowest   { background-color: var(--color-surface-container-lowest); }
.bg-surface-container-lowest\/20 { background-color: rgba(255,255,255,0.2); }
.bg-surface-container-highest  { background-color: var(--color-surface-container-highest); }
.bg-tertiary-container { background-color: var(--color-tertiary-container); }
.bg-tertiary-container\/20 { background-color: rgba(191, 170, 108, 0.2); }
.bg-transparent { background-color: transparent; }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to)); }
.from-primary\/90 { --tw-gradient-from: rgba(18, 53, 36, 0.9); --tw-gradient-to: rgba(2, 55, 34, 0); }
.via-primary\/70  { --tw-gradient-stops: var(--tw-gradient-from), rgba(18, 53, 36, 0.7), var(--tw-gradient-to); }
.to-transparent   { --tw-gradient-to: transparent; }

.border          { border-width: 1px; border-style: solid; border-color: var(--color-surface-variant); }
.border-2        { border-width: 2px; border-style: solid; }
.border-b        { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t        { border-top-width: 1px; border-top-style: solid; }
.border-y        { border-top-width: 1px; border-bottom-width: 1px; border-style: solid; }
.border-on-primary { border-color: var(--color-on-primary); }
.border-on-primary\/30 { border-color: rgba(255,255,255,0.3); }
.border-outline-variant\/30 { border-color: rgba(192, 201, 193, 0.3); }
.border-primary  { border-color: var(--color-primary); }
.border-primary\/20 { border-color: rgba(18, 53, 36, 0.2); }
.border-surface-dim { border-color: var(--color-surface-dim); }
.border-surface-variant     { border-color: var(--color-surface-variant); }
.border-surface-variant\/30 { border-color: rgba(225, 227, 228, 0.3); }
.border-surface-variant\/50 { border-color: rgba(225, 227, 228, 0.5); }
.border-surface\/30 { border-color: rgba(248, 249, 250, 0.3); }
.border-white\/20 { border-color: rgba(255,255,255,0.2); }

/* ---------- 7. Effects ---------- */
.rounded-2xl { border-radius: 1rem; }
.rounded-full{ border-radius: var(--radius-full); }
.rounded-lg  { border-radius: var(--radius-lg); }
.rounded-xl  { border-radius: var(--radius-xl); }

.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }

.backdrop-blur-md { backdrop-filter: blur(12px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }

.cursor-pointer { cursor: pointer; }

.transition-colors    { transition: color 0.2s, background-color 0.2s, border-color 0.2s; }
.transition-transform { transition: transform 0.2s; }
.duration-300 { transition-duration: 0.3s; }

.hover\:bg-on-primary\/10:hover { background-color: rgba(255,255,255,0.1); }
.hover\:bg-primary:hover { background-color: var(--color-primary); }
.hover\:bg-primary\/5:hover { background-color: rgba(2, 55, 34, 0.05); }
.hover\:bg-surface-container-high:hover { background-color: var(--color-surface-container-high); }
.hover\:bg-surface-container-low:hover { background-color: var(--color-surface-container-low); }
.hover\:bg-surface-variant:hover { background-color: var(--color-surface-variant); }
.hover\:bg-surface\/20:hover { background-color: rgba(248, 249, 250, 0.2); }
.hover\:bg-tertiary-fixed:hover { background-color: #A8C5AE; }
.hover\:border-primary\/30:hover { border-color: rgba(18, 53, 36, 0.3); }
.hover\:no-underline:hover { text-decoration: none; }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:text-primary:hover { color: var(--color-primary); }
.hover\:text-primary-fixed-variant:hover { color: var(--color-on-primary-fixed-variant); }
.hover\:text-tertiary-fixed:hover { color: #A8C5AE; }
.hover\:text-white:hover { color: #ffffff; }
.hover\:underline:hover { text-decoration: underline; }

.focus\:border-primary:focus { border-color: var(--color-primary); }
.focus\:ring-primary:focus { box-shadow: 0 0 0 3px rgba(18, 53, 36, 0.2); outline: none; }

.group:hover .group-hover\:rotate-180,
.group[open] .group-open\:rotate-180 { transform: rotate(180deg); }

/* dark mode variants used in the source markup: kept inert since the site
   doesn't toggle a dark theme, but defined so nothing breaks if added later */
.dark\:bg-surface-container-lowest,
.dark\:bg-surface-dim\/90,
.dark\:shadow-none,
.dark\:text-on-surface\/80,
.dark\:text-primary-fixed-dim { /* no-op until a dark theme toggle exists */ }

/* ---------- 8. Site-specific helper classes ---------- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}
.icon-fill {
  font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}
.ambient-shadow {
  box-shadow: 0 10px 40px -10px rgba(18, 53, 36, 0.06);
}
.ambient-shadow-hover:hover {
  box-shadow: 0 10px 30px -4px rgba(18, 53, 36, 0.09);
}
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(18, 53, 36, 0.09);
}
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.nav-link {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-on-surface-variant);
  padding-bottom: 4px;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: var(--color-primary);
}

/* Mobile: hamburger dark green on light header */
@media (max-width: 767px) {
  #mobile-menu-btn {
    color: var(--color-primary);
  }
}

/* Home-page service cards */
#services .grid > a {
  transition: background-color 0.25s ease, color 0.25s ease,
    transform 0.3s ease, box-shadow 0.3s ease;
}
#services .grid > a:hover {
  background-color: #2E5E4E;
}
#services .grid > a:hover h3,
#services .grid > a:hover p {
  color: inherit;
}

/* Mobile navigation dropdown panels */
#mobile-menu-panel .mobile-submenu {
  margin-top: 0.5rem;
  padding: 0.9rem 1rem;
  max-height: none;
  overflow: visible;
  background: var(--color-surface-container-low);
  border: 1px solid var(--color-surface-variant);
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(18, 53, 36, 0.06);
  animation: mobile-submenu-open 0.28s ease-out both;
  transform-origin: top;
}
#mobile-menu-panel .mobile-submenu a {
  color: var(--color-primary);
  font-size: 0.92rem;
  font-weight: 500;
}
#mobile-menu-panel .mobile-submenu a:hover {
  color: var(--color-on-primary-fixed-variant);
}
#mobile-menu-panel .mobile-submenu-btn[aria-expanded="true"] {
  color: var(--color-primary);
  font-weight: 700;
}

@media (max-width: 767px) {
  .service-intro-image {
    width: min(350px, calc(100vw - 4rem));
    height: min(350px, calc(100vw - 4rem));
  }
  img[data-image-id^="intro-"] {
    width: min(350px, calc(100vw - 4rem)) !important;
    height: min(350px, calc(100vw - 4rem)) !important;
  }

  .homepage-hero {
    min-height: 112svh;
    padding-bottom: 4rem;
    box-sizing: border-box;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }
  #mobile-menu-panel {
    height: calc(100dvh - 6rem);
    max-height: calc(100dvh - 6rem);
    min-height: calc(100dvh - 6rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: var(--color-surface);
    box-sizing: border-box;
  }
}

@keyframes mobile-submenu-open {
  from {
    opacity: 0;
    transform: translateY(-8px) scaleY(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

.footer-link {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}
.footer-link:hover {
  color: #A8C5AE;
}
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    #e7e8e9,
    #e7e8e9 10px,
    #f3f4f5 10px,
    #f3f4f5 20px
  );
  color: #717972;
  font-family: var(--font-body);
  font-size: 14px;
  text-align: center;
  padding: 1rem;
  border: 1px dashed #c0c9c1;
}

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

/* Skip layout and paint work for below-the-fold sections until needed. */
@supports (content-visibility: auto) {
  body > section,
  body > main > section,
  #site-footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 700px;
  }
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Header call-to-action: the logo stands alone and the phone number is the CTA. */
#site-header nav > div:first-child > div.hidden.md\:flex:last-of-type > a[href^="tel:"] {
  background: var(--color-primary-container);
  color: var(--color-on-primary);
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 700;
  animation: call-button-shake 4s ease-in-out infinite;
}
#site-header nav > div:first-child > div.hidden.md\:flex:last-of-type > a[href^="tel:"] + a[href^="tel:"] {
  display: none;
}
#mobile-menu-panel a[href^="tel:"] {
  align-self: center;
  justify-content: center;
  width: fit-content;
  min-width: 11rem;
  margin: 0.5rem auto 0;
  padding: 0.8rem 1.25rem;
  border-radius: 0.6rem;
  background: var(--color-primary-container);
  color: var(--color-on-primary);
  font-weight: 700;
  animation: call-button-shake 4s ease-in-out infinite;
}

@media (max-width: 767px) {
  #site-header nav > div:first-child {
    gap: 0.5rem;
    position: relative;
  }
  #site-header nav > div:first-child > a:first-child img {
    width: 4rem;
    height: 4rem;
  }
  #site-header nav > div:first-child > a[href^="tel:"],
  #site-header nav > div:first-child > div.md\:hidden a[href^="tel:"] {
    width: auto;
    height: 2.75rem;
    padding: 0 0.8rem;
    gap: 0.35rem;
    border-radius: 0.5rem;
    background: var(--color-primary-container);
    color: var(--color-on-primary);
    font-weight: 700;
    white-space: nowrap;
    animation: call-button-shake 4s ease-in-out infinite;
  }
  #site-header .mobile-header-call,
  #site-header nav > div:first-child > div.md\:hidden a[href^="tel:"] {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }
  #site-header #mobile-menu-btn,
  #site-header nav > div:first-child > div.md\:hidden {
    margin-left: auto;
  }
  .mobile-call-number {
    display: inline;
    position: relative;
    font-size: 0.84rem;
  }
}

@keyframes call-button-shake {
  0%, 82%, 100% { rotate: 0deg; }
  85% { rotate: -8deg; }
  88% { rotate: 8deg; }
  91% { rotate: -6deg; }
  94% { rotate: 6deg; }
  97% { rotate: -3deg; }
}

/* ══════════════════════════════════════════
   PREMIUM FOREST GREEN BRAND SYSTEM
   ══════════════════════════════════════════ */

/* ── Primary CTA Button ── */
.btn-cta,
.btn-primary,
a.btn-cta,
a.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-cta);
  color: #ffffff !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(31, 107, 69, 0.28);
}
.btn-cta:hover,
.btn-primary:hover {
  background: var(--color-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(31, 107, 69, 0.35);
}

/* ── Nav phone button → premium green ── */
#site-header a[href^="tel:"] {
  background: var(--color-cta) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  transition: background 0.2s ease, transform 0.18s ease !important;
  box-shadow: 0 3px 10px rgba(31,107,69,0.25) !important;
  animation: none !important;
}
#site-header a[href^="tel:"]:hover {
  background: var(--color-cta-hover) !important;
  transform: translateY(-1px) !important;
}

/* ── Premium Card ── */
.card-premium {
  background: #ffffff;
  border: 1px solid var(--color-surface-variant);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(18,53,36,0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card-premium:hover {
  box-shadow: 0 10px 30px rgba(18,53,36,0.10);
  transform: translateY(-3px);
}

/* ── Section backgrounds ── */
.bg-forest      { background: #123524; }
.bg-dark-green  { background: #0B2A1D; }
.bg-olive       { background: #2E5E4E; }
.bg-light-green { background: #A8C5AE; }
.bg-off-white   { background: #F6F8F4; }

/* ── Accent helpers ── */
.text-accent    { color: #4C7C59; }
.bg-accent      { background: #4C7C59; }
.border-premium { border-color: #D7E2D8; }

/* ── Subtle divider ── */
.divider-green {
  border: none;
  border-top: 1px solid #D7E2D8;
  margin: 2rem 0;
}

/* ── Icon color ── */
svg.icon-green path,
svg.icon-green circle,
svg.icon-green polyline,
svg.icon-green line,
svg.icon-green rect {
  stroke: #4C7C59;
}

/* ── Hero text centering – all inner pages ── */
header.relative .relative.z-10 {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
header.relative .relative.z-10 .flex.items-center {
  justify-content: center;
}
header.relative .relative.z-10 h1,
header.relative .relative.z-10 p {
  text-align: center;
}

/* -----------------------------------------------
   MOBILE RESPONSIVE - service pages + homepage
   Breakpoint: 767px
   ----------------------------------------------- */
@media (max-width: 767px) {

  /* ── Nuclear catch-all: every inline grid → single column ── */
  /* This fires before the exceptions below so order matters   */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Exception: 4-col card grids → 2-col on mobile */
  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }

  /* 3-col stat strip — keep centered */
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns:1.4fr 1fr 1fr"] {
    text-align: center !important;
  }

  /* ── Class-based grids → single column on mobile ── */
  .grid-cols-2,
  .sm\:grid-cols-2 {
    grid-template-columns: 1fr !important;
  }

  /* Why-choose-us: more breathing room between stacked cols */
  #why-choose-us [style*="grid-template-columns"] {
    gap: 2rem !important;
  }

  /* Sidebar sections need more gap when stacked */
  [style*="grid-template-columns:1fr 360px"],
  [style*="grid-template-columns:1fr 380px"],
  [style*="grid-template-columns:1fr 420px"],
  [style*="grid-template-columns:1fr auto"] {
    gap: 2rem !important;
  }

  /* Kill sticky sidebar on mobile */
  [style*="position:sticky"] {
    position: static !important;
  }

  /* CTA cards - comfortable padding */
  [style*="border-radius:14px"] {
    padding: 1.25rem !important;
  }

  /* Process steps - tighter gap */
  [style*="display:flex"][style*="gap:2rem"] {
    gap: 1rem !important;
  }

  /* Urgency dark section padding */
  section[style*="background:#0B2A1D"] {
    padding: 2.5rem 0 !important;
  }

  /* Homepage hero checklist cards 1fr 1fr -> 1fr */
  .hero-checklist-grid {
    grid-template-columns: 1fr !important;
  }

  /* Wrap nav pills */
  .flex.items-center.gap-4,
  .flex.items-center.gap-3 {
    flex-wrap: wrap;
  }

  /* Section headings - no overflow */
  h1, h2 {
    word-break: break-word;
  }

  /* FAQ accordion tighter padding */
  details summary {
    padding: 1rem 1.25rem !important;
  }
  details > div {
    padding: 1rem 1.25rem !important;
    padding-top: 0 !important;
  }

  /* Images in sidebar slots: full width when stacked */
  [style*="grid-template-columns"] img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
}

/* Tablet (768px - 1023px) - 2-col sidebar grids -> 1 col */
@media (max-width: 900px) {
  section [style*="grid-template-columns:1fr 360px"],
  section [style*="grid-template-columns:1fr 380px"],
  section [style*="grid-template-columns:1fr 420px"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  [style*="position:sticky"] {
    position: static !important;
  }
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr 1fr 1fr !important;
  }
}
