@import url('./fonts.css');

/* ==========================================================================
   CLEAR WAY SOLUTIONS — Design System
   --------------------------------------------------------------------------
   Everything brand-related lives in the :root token block below.
   To re-skin the whole site, change the six --cw-* brand values and nothing
   else. Every component reads from the semantic tokens beneath them.
   ========================================================================== */

:root {
  /* ---- 1. BRAND PALETTE (sampled from the logo + lawn care flyer) -------- */
  --cw-ink: #0a0c0a;          /* logo background black                       */
  --cw-green: #57a430;        /* logo hexagon / "SOLUTIONS" green            */
  --cw-green-bright: #8dc63f; /* flyer highlight green — primary CTA         */
  --cw-green-deep: #14401b;   /* flyer deep forest green                     */
  --cw-cream: #f6f7f2;        /* flyer off-white background                  */
  --cw-white: #ffffff;

  /* Accessible green variants for text on light backgrounds.
     --cw-green itself is only 3.1:1 on white, so it is reserved for
     large display type, icons, rules and fills — never small body text. */
  --cw-green-text: #3f7a22;        /* 5.3:1 on white — AA for all text       */
  --cw-green-text-strong: #2e5c18; /* 7.9:1 on white — AAA for body text     */

  /* ---- 2. NEUTRAL RAMP --------------------------------------------------- */
  --cw-slate-900: #14171a;
  --cw-slate-800: #232a2e;
  --cw-slate-700: #3a4247;
  --cw-slate-500: #5e686e;
  --cw-slate-400: #8b959a;
  --cw-slate-300: #c9d0d3;
  --cw-slate-200: #e3e8ea;
  --cw-slate-100: #f1f4f5;

  /* ---- 3. SEMANTIC COLOR ------------------------------------------------- */
  --color-bg: var(--cw-white);
  --color-bg-alt: var(--cw-cream);
  --color-bg-dark: var(--cw-ink);
  --color-surface: var(--cw-white);
  --color-text: var(--cw-slate-900);
  --color-text-muted: var(--cw-slate-700);
  --color-text-subtle: var(--cw-slate-500);
  --color-text-on-dark: #eef2ec;
  --color-text-on-dark-muted: #b3bdb2;
  --color-border: var(--cw-slate-200);
  --color-border-strong: var(--cw-slate-300);
  --color-accent: var(--cw-green);
  --color-accent-text: var(--cw-green-text);
  --color-focus: #1d7fe0; /* deliberately non-green so it reads as UI, not brand */

  /* ---- 4. TYPOGRAPHY ----------------------------------------------------- */
  --font-display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Fluid type scale — min at 360px viewport, max at 1280px */
  --text-xs: 0.78rem;
  --text-sm: 0.875rem;
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --text-lg: clamp(1.075rem, 1rem + 0.35vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.12rem + 0.6vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --text-3xl: clamp(1.9rem, 1.5rem + 1.9vw, 2.9rem);
  --text-4xl: clamp(2.4rem, 1.7rem + 3.2vw, 4.25rem);

  --leading-tight: 1.04;
  --leading-snug: 1.22;
  --leading-normal: 1.65;

  /* ---- 5. SPACING (4px base) --------------------------------------------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-9: 4rem;
  --space-10: 5rem;
  --section-y: clamp(3.5rem, 2rem + 6vw, 6.5rem);
  --container: 1180px;
  --container-narrow: 780px;

  /* ---- 6. RADII, SHADOWS, MOTION ----------------------------------------- */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(10, 12, 10, 0.06), 0 1px 3px rgba(10, 12, 10, 0.08);
  --shadow: 0 4px 12px rgba(10, 12, 10, 0.07), 0 2px 4px rgba(10, 12, 10, 0.05);
  --shadow-lg: 0 18px 40px rgba(10, 12, 10, 0.13), 0 4px 12px rgba(10, 12, 10, 0.07);
  --shadow-green: 0 10px 26px rgba(87, 164, 48, 0.32);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 220ms;

  --header-h: 68px;
}

/* ==========================================================================
   RESET / BASE
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* stop anchor targets from hiding behind the sticky header */
  scroll-padding-top: calc(var(--header-h) + 12px);
  /* The closed off-canvas nav sits at translateX(100%) and, being fixed,
     still contributes to the document's scrollable overflow. `clip` removes
     that sideways scroll without creating a scroll container — which is what
     `overflow-x: hidden` would do, breaking the sticky header. */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: 0.005em;
  text-wrap: balance;
}

h1 { font-size: var(--text-4xl); text-transform: uppercase; }
h2 { font-size: var(--text-3xl); text-transform: uppercase; }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

/* Card and form headings read better in the body face at small sizes */
h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: var(--leading-snug);
  letter-spacing: -0.011em;
}

p { margin: 0 0 var(--space-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--color-accent-text); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--cw-green-text-strong); }

img, svg, picture { max-width: 100%; display: block; }
img { height: auto; }

ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25rem; }
li { margin-bottom: var(--space-2); }

strong { font-weight: 700; }

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: var(--space-6) 0;
}

/* Visible, high-contrast focus for keyboard users only */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 200;
  padding: var(--space-3) var(--space-5);
  background: var(--cw-ink);
  color: var(--cw-white);
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 0; color: var(--cw-white); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--color-bg-alt); }
.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}
.section--dark h2,
.section--dark h3 { color: var(--cw-white); }
.section--dark p { color: var(--color-text-on-dark-muted); }

.section-head {
  max-width: 60ch;
  margin-bottom: var(--space-8);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: 0;
}
.section--dark .section-head p { color: var(--color-text-on-dark-muted); }

/* Small green eyebrow label above each section heading */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-text);
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 3px;
  background: var(--cw-green);
  border-radius: 2px;
}
.section--dark .eyebrow { color: var(--cw-green-bright); }
.section--dark .eyebrow::before { background: var(--cw-green-bright); }
.section-head--center .eyebrow { justify-content: center; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.875rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn svg { flex: none; width: 1.15em; height: 1.15em; }

/* Primary — bright flyer green on ink text: 9.7:1 contrast */
.btn--primary {
  background: var(--cw-green-bright);
  color: var(--cw-ink);
  box-shadow: var(--shadow-green);
}
.btn--primary:hover {
  background: #9ed653;
  color: var(--cw-ink);
  box-shadow: 0 14px 32px rgba(141, 198, 63, 0.42);
}

/* Secondary — outlined, for use on dark backgrounds */
.btn--outline {
  background: transparent;
  color: var(--cw-white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--cw-white);
  color: var(--cw-white);
}

/* Secondary on light backgrounds */
.btn--ink {
  background: var(--cw-ink);
  color: var(--cw-white);
}
.btn--ink:hover { background: var(--cw-slate-800); color: var(--cw-white); }

.btn--lg { padding: 1.0625rem 2rem; font-size: var(--text-lg); }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 10, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.header.is-scrolled {
  background: rgba(10, 12, 10, 0.98);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex: none;
}
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cw-white);
}
.brand__name em { font-style: normal; color: var(--cw-green-bright); }
.brand__tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-on-dark-muted);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: var(--space-5); }

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__list li { margin: 0; }

.nav__link {
  position: relative;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-on-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--cw-green-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover { color: var(--cw-green-bright); }
.nav__link:hover::after,
.nav__link[aria-current='true']::after { transform: scaleX(1); }
.nav__link[aria-current='true'] { color: var(--cw-green-bright); }

.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cw-white);
  text-decoration: none;
  white-space: nowrap;
}
.nav__phone:hover { color: var(--cw-green-bright); }
.nav__phone svg { width: 18px; height: 18px; color: var(--cw-green-bright); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  color: var(--cw-white);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded='true'] .icon-close { display: block; }
.nav-toggle[aria-expanded='true'] .icon-open { display: none; }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  background: var(--cw-ink);
  color: var(--color-text-on-dark);
  padding-block: clamp(3.5rem, 2rem + 7vw, 7rem) clamp(3rem, 2rem + 5vw, 5.5rem);
  overflow: hidden;
}

/* Layered green glow + subtle diagonal texture, echoing the logo badge */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 55% at 78% 8%, rgba(141, 198, 63, 0.26), transparent 62%),
    radial-gradient(ellipse 60% 60% at 8% 92%, rgba(87, 164, 48, 0.20), transparent 66%),
    linear-gradient(160deg, #101410 0%, var(--cw-ink) 55%, #060806 100%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.028) 0 2px,
    transparent 2px 9px
  );
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent 78%);
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  padding: 0.4rem 0.9rem 0.4rem 0.5rem;
  background: rgba(141, 198, 63, 0.14);
  border: 1px solid rgba(141, 198, 63, 0.34);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--cw-green-bright);
}
.hero__badge span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.5rem;
  background: var(--cw-green-bright);
  border-radius: var(--radius-pill);
  color: var(--cw-ink);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero h1 {
  margin-bottom: var(--space-5);
  color: var(--cw-white);
  letter-spacing: 0.002em;
}
.hero h1 em {
  font-style: normal;
  color: var(--cw-green-bright);
  /* keeps the highlight readable if the green ever changes */
  text-shadow: 0 2px 18px rgba(141, 198, 63, 0.28);
}

.hero__lede {
  max-width: 56ch;
  margin-bottom: var(--space-6);
  font-size: var(--text-lg);
  color: #cdd6cb;
}

.hero .btn-row { margin-bottom: var(--space-6); }

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero__points li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: #d5ddd3;
}
.hero__points svg {
  flex: none;
  width: 18px; height: 18px;
  color: var(--cw-green-bright);
}

/* Hero side card — the "free estimate" conversion panel */
.hero__card {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.028));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero__card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(141, 198, 63, 0.6), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.hero__card h2 {
  font-size: var(--text-xl);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.012em;
  text-transform: none;
  color: var(--cw-white);
  margin-bottom: var(--space-2);
}
.hero__card > p {
  font-size: var(--text-sm);
  color: var(--color-text-on-dark-muted);
  margin-bottom: var(--space-5);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}
.hero__stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cw-green-bright);
  line-height: 1.1;
}
.hero__stat span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text-on-dark-muted);
}

/* ==========================================================================
   TRUST BAR
   ========================================================================== */

.trustbar {
  background: var(--cw-green-deep);
  border-block: 1px solid rgba(255, 255, 255, 0.09);
}
.trustbar__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin: 0;
  padding-block: var(--space-5);
  list-style: none;
  padding-left: 0;
}
.trustbar__list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin: 0;
  text-align: left;
  color: #e8efe4;
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1.3;
}
.trustbar__list svg {
  flex: none;
  width: 26px; height: 26px;
  color: var(--cw-green-bright);
}

/* ==========================================================================
   SERVICES
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
/* green top rule that fills in on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cw-green), var(--cw-green-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease);
}
.service-card:hover,
.service-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--cw-green);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before,
.service-card:focus-within::before { transform: scaleX(1); }

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  margin-bottom: var(--space-5);
  background: linear-gradient(150deg, rgba(87, 164, 48, 0.16), rgba(141, 198, 63, 0.1));
  border: 1px solid rgba(87, 164, 48, 0.28);
  border-radius: 14px;
  color: var(--cw-green-text);
}
.service-card__icon svg { width: 28px; height: 28px; }

.service-card h3 { margin-bottom: var(--space-3); }
.service-card > p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.service-card__list {
  margin: 0 0 var(--space-5);
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
}
.service-card__list li {
  position: relative;
  margin-bottom: var(--space-2);
  padding-left: 1.5rem;
  color: var(--color-text-muted);
}
.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  background: var(--cw-green);
  border-radius: 2px;
  transform: rotate(45deg);
}

.service-card__cta {
  margin-top: auto;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-accent-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.service-card__cta::after {
  content: '→';
  transition: transform var(--dur) var(--ease);
}
.service-card__cta:hover::after { transform: translateX(4px); }

/* Banner under the services grid */
.service-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  margin-top: var(--space-6);
  padding: var(--space-6);
  background: linear-gradient(135deg, var(--cw-green-deep), #1d5a26);
  border-radius: var(--radius-lg);
  color: #e8efe4;
}
.service-note h3 {
  margin-bottom: var(--space-1);
  color: var(--cw-white);
  font-size: var(--text-xl);
}
.service-note p { margin: 0; font-size: var(--text-sm); color: #c7d6c2; }

/* ==========================================================================
   WORK / GALLERY
   ========================================================================== */

/* Two-up on desktop: real job photos earn more space than the icon-sized
   cards elsewhere, and 4:3 shots read poorly below ~400px wide. */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: var(--space-5);
}

.work-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.work-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--cw-slate-100);
  overflow: hidden;
}
.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms var(--ease);
}
.work-card:hover .work-card__media img { transform: scale(1.04); }

.work-card__tag {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: 0.25rem 0.7rem;
  background: rgba(10, 12, 10, 0.86);
  border-radius: var(--radius-pill);
  color: var(--cw-green-bright);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.work-card__body { padding: var(--space-5); }
.work-card__body h3 { margin-bottom: var(--space-2); font-size: var(--text-lg); }
.work-card__body p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.work-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}
.work-card__meta svg { width: 14px; height: 14px; color: var(--cw-green); }

/* ==========================================================================
   WHY US / FEATURES (dark section)
   ========================================================================== */

.why-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
}

.feature-list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-5); }
.feature-list li {
  display: flex;
  gap: var(--space-4);
  margin: 0;
}
.feature-list__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  background: rgba(141, 198, 63, 0.13);
  border: 1px solid rgba(141, 198, 63, 0.3);
  border-radius: 12px;
  color: var(--cw-green-bright);
}
.feature-list__icon svg { width: 22px; height: 22px; }
.feature-list h3 {
  margin-bottom: var(--space-1);
  font-size: var(--text-base);
  color: var(--cw-white);
}
.feature-list p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-on-dark-muted);
}

/* Quote / owner panel */
.owner-card {
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 4px solid var(--cw-green-bright);
  border-radius: var(--radius-lg);
}
.owner-card blockquote {
  margin: 0 0 var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.3;
  color: var(--cw-white);
}
.owner-card__who {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.owner-card__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  background: var(--cw-green-bright);
  border-radius: 50%;
  color: var(--cw-ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}
.owner-card__who b { display: block; color: var(--cw-white); }
.owner-card__who span {
  font-size: var(--text-sm);
  color: var(--color-text-on-dark-muted);
}

/* ==========================================================================
   SERVICE AREA
   ========================================================================== */

.area-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}

.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: 0 0 var(--space-6);
  padding: 0;
  list-style: none;
}
/* no trailing gap when the chips are the last thing in the column */
.area-chips:last-child { margin-bottom: 0; }
.area-chips li { margin: 0; }
.area-chips span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.55rem 1.05rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}
.area-chips li:first-child span {
  background: var(--cw-green-deep);
  border-color: var(--cw-green-deep);
  color: var(--cw-white);
}
.area-chips svg { width: 14px; height: 14px; color: var(--cw-green); }
.area-chips li:first-child svg { color: var(--cw-green-bright); }

.area-map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  background: var(--cw-slate-100);
}
.area-map img { width: 100%; height: auto; }

/* ==========================================================================
   FAQ (accordion)
   ========================================================================== */

.faq-list {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.faq-list li { margin: 0; }

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq-item:hover { border-color: var(--color-border-strong); }
.faq-item.is-open {
  border-color: var(--cw-green);
  box-shadow: var(--shadow);
}

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-5);
  background: none;
  border: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  color: var(--color-text);
  cursor: pointer;
}
.faq-item__q:hover { color: var(--cw-green-text-strong); }

.faq-item__chev {
  flex: none;
  width: 22px; height: 22px;
  color: var(--cw-green-text);
  transition: transform var(--dur) var(--ease);
}
.faq-item.is-open .faq-item__chev { transform: rotate(180deg); }

.faq-item__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 260ms var(--ease);
}
.faq-item.is-open .faq-item__a { grid-template-rows: 1fr; }
.faq-item__a > div { overflow: hidden; }
.faq-item__a p {
  padding: 0 var(--space-5) var(--space-5);
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: start;
}

.form-card {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.field--full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 0.4rem; }

.field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.field label .req { color: #c0392b; margin-left: 2px; }
.field .hint {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  background: var(--cw-white);
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e686e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 18px;
  padding-right: 2.5rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cw-green);
  box-shadow: 0 0 0 3px rgba(87, 164, 48, 0.2);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 1px;
}

.field .error-msg {
  display: none;
  font-size: var(--text-xs);
  font-weight: 600;
  color: #c0392b;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #c0392b; }
.field.has-error .error-msg { display: block; }

/* honeypot — hidden from humans, catches naive spam bots */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-consent {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  margin-top: var(--space-4);
}

.form-status {
  display: none;
  margin-top: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
}
.form-status.is-visible { display: block; }
.form-status.is-success {
  background: #eaf6e3;
  border: 1px solid var(--cw-green);
  color: var(--cw-green-text-strong);
}
.form-status.is-error {
  background: #fdecea;
  border: 1px solid #e6a49c;
  color: #922b21;
}

/* Contact detail panel */
.contact-info {
  display: grid;
  gap: var(--space-4);
}

.contact-card {
  padding: var(--space-6);
  background: var(--cw-ink);
  border-radius: var(--radius-lg);
  color: var(--color-text-on-dark);
}
.contact-card h3 { color: var(--cw-white); margin-bottom: var(--space-5); }

.contact-list { margin: 0; padding: 0; display: grid; gap: var(--space-5); }
.contact-list > div { display: flex; gap: var(--space-4); margin: 0; }
.contact-list__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  background: rgba(141, 198, 63, 0.14);
  border-radius: 10px;
  color: var(--cw-green-bright);
}
.contact-list__icon svg { width: 20px; height: 20px; }
.contact-list dt {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-on-dark-muted);
  margin-bottom: 2px;
}
.contact-list dd { margin: 0; }
.contact-list a {
  color: var(--cw-white);
  font-weight: 700;
  font-size: var(--text-lg);
  text-decoration: none;
}
.contact-list a:hover { color: var(--cw-green-bright); }
.contact-list .plain {
  color: var(--color-text-on-dark);
  font-weight: 500;
  font-size: var(--text-sm);
}

.hours-card {
  padding: var(--space-6);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.hours-card h3 { margin-bottom: var(--space-4); font-size: var(--text-base); }
.hours-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.hours-table th,
.hours-table td { padding: 0.5rem 0; text-align: left; }
.hours-table th { font-weight: 600; color: var(--color-text-muted); }
.hours-table td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.hours-table tr + tr { border-top: 1px solid var(--color-border); }
.hours-table .is-closed { color: var(--color-text-subtle); font-weight: 500; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: var(--cw-ink);
  color: var(--color-text-on-dark-muted);
  padding-block: var(--space-9) var(--space-6);
  font-size: var(--text-sm);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer h3 {
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cw-white);
}
.footer p { color: var(--color-text-on-dark-muted); }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { margin-bottom: var(--space-2); }
.footer a { color: var(--color-text-on-dark-muted); text-decoration: none; }
.footer a:hover { color: var(--cw-green-bright); }
.footer .brand { margin-bottom: var(--space-4); }

.footer__tagline {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cw-green-bright);
  margin-bottom: var(--space-3);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: var(--color-text-on-dark);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.footer__social a:hover {
  background: var(--cw-green-bright);
  border-color: var(--cw-green-bright);
  color: var(--cw-ink);
}
.footer__social svg { width: 19px; height: 19px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-5);
  font-size: var(--text-xs);
}

/* ==========================================================================
   STICKY MOBILE CALL BAR
   Conversion path for paid social traffic landing on a phone.
   ========================================================================== */

.callbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(10, 12, 10, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.callbar__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.callbar .btn { padding: 0.8rem 1rem; font-size: var(--text-sm); }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1080px) {
  .nav__list { gap: var(--space-4); }
  .nav__link { font-size: 0.82rem; }
}

@media (max-width: 960px) {
  :root { --header-h: 62px; }

  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 99;
    display: block;
    padding: var(--space-6) clamp(1rem, 4vw, 2rem) var(--space-9);
    background: var(--cw-ink);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 280ms var(--ease), visibility 280ms var(--ease);
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-bottom: var(--space-6);
  }
  .nav__list li { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .nav__link {
    display: block;
    padding: var(--space-4) 0;
    font-size: var(--text-lg);
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .nav__link::after { display: none; }

  .nav__phone {
    justify-content: center;
    width: 100%;
    padding: var(--space-4);
    background: rgba(141, 198, 63, 0.13);
    border: 1px solid rgba(141, 198, 63, 0.32);
    border-radius: var(--radius-pill);
    font-size: 1.4rem;
  }

  .hero__grid,
  .why-grid,
  .area-grid,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }

  .hero__card { max-width: 520px; }

  .trustbar__list { grid-template-columns: repeat(2, 1fr); }

  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }

  .trustbar__list { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .trustbar__list li { justify-content: flex-start; }

  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
  .hero__stat b { font-size: 1.3rem; }

  .btn-row .btn { width: 100%; }

  .callbar { display: block; }
  /* keep the fixed bar from covering the end of the page */
  body { padding-bottom: 74px; }

  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   MOTION / PRINT
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover,
  .service-card:hover,
  .work-card:hover { transform: none; }
}

@media print {
  .header, .nav, .callbar, .footer__social, .btn { display: none !important; }
  body { padding-bottom: 0; color: #000; background: #fff; }
  .hero, .section--dark, .contact-card, .trustbar {
    background: #fff !important;
    color: #000 !important;
  }
  .hero h1, .section--dark h2, .section--dark h3, .contact-card h3 { color: #000 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 0.8em; }
}
