/* ──────────────────────────────────────────────────────────────────
   EW Gee Ltd — Electrical Contractors
   Design tokens + components. Brand: EWG red on ink/dark neutrals.
   Base scale adapted from Untitled UI. Font: Inter.
   ────────────────────────────────────────────────────────────────── */

@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@600;700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  /* ── BRAND (EW Gee red, sampled from logo) ─────────────────────── */
  --ewg-red-50:  #fdedeb;
  --ewg-red-100: #fad8d5;
  --ewg-red-200: #f4b0aa;
  --ewg-red-500: #e7332b;   /* PRIMARY — CTAs */
  --ewg-red-600: #c9261f;   /* hover / links */
  --ewg-red-700: #a61f19;   /* deep */
  --ewg-ink:     #1b1e24;   /* body text */
  --ewg-dark:    #15171c;   /* dark sections */

  /* ── NEUTRALS ──────────────────────────────────────────────────── */
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e4e9f0;
  --gray-300: #cbd3df;
  --gray-400: #98a2b3;
  --gray-500: #667085;
  --gray-600: #475467;
  --gray-700: #344054;
  --white: #ffffff;

  /* ── SEMANTIC ──────────────────────────────────────────────────── */
  --success-50:  #ecfdf3;
  --success-100: #d1fadf;
  --success-600: #039855;
  --warning-500: #f79009;

  /* ── TYPE ──────────────────────────────────────────────────────── */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Archivo", var(--font-sans);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* ── SHADOWS ───────────────────────────────────────────────────── */
  --shadow-xs:  0 1px 2px 0 rgba(16, 24, 40, 0.05);
  --shadow-sm:  0 1px 3px 0 rgba(16, 24, 40, 0.10), 0 1px 2px 0 rgba(16, 24, 40, 0.06);
  --shadow-md:  0 4px 8px -2px rgba(16, 24, 40, 0.10), 0 2px 4px -2px rgba(16, 24, 40, 0.06);
  --shadow-lg:  0 12px 16px -4px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.03);
  --shadow-xl:  0 20px 24px -4px rgba(16, 24, 40, 0.08), 0 8px 8px -4px rgba(16, 24, 40, 0.03);

  --maxw: 1280px;
}

/* ── RESET / BASE ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
address { font-style: normal; }
/* Anchor targets clear the sticky header when jumped to */
.section[id] { scroll-margin-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ewg-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: var(--ewg-red-600); }
a:hover { color: var(--ewg-red-700); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); text-wrap: balance; }
::selection { background: var(--ewg-red-100); color: var(--ewg-ink); }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 2px solid var(--ewg-red-500); outline-offset: 3px; border-radius: 6px; }
.hero a:focus-visible, .cta-band a:focus-visible, .site-footer a:focus-visible { outline-color: #fff; }

/* ── LAYOUT HELPERS ────────────────────────────────────────────── */
.container { max-width: var(--maxw); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.section { padding: 96px 0; }
.section--alt { background: var(--gray-50); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head h2 { font-size: 40px; line-height: 46px; letter-spacing: -0.025em; font-weight: 700; margin-bottom: 16px; }
.section-head p { font-size: 18px; line-height: 28px; color: var(--gray-600); margin: 0; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ewg-red-600); margin-bottom: 14px; }
.lede { font-size: 19px; line-height: 30px; color: var(--gray-600); }

/* ── BUTTONS ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 8px;
  font-size: 16px; font-weight: 600; cursor: pointer;
  text-decoration: none; border: 1px solid transparent;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}
.btn svg { flex-shrink: 0; }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--primary { background: var(--ewg-red-600); color: #fff; box-shadow: 0 1px 2px rgba(16,24,40,0.10), 0 6px 14px -6px rgba(16,24,40,0.30); }
.btn--primary:hover { background: var(--ewg-red-700); color: #fff; }
.btn--ghost { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,0.18); color: #fff; }
.btn--outline { background: #fff; border-color: var(--gray-300); color: var(--ewg-ink); }
.btn--outline:hover { border-color: var(--ewg-red-200); color: var(--ewg-red-600); }
.btn--white { background: #fff; color: var(--ewg-red-700); }
.btn--white:hover { transform: translateY(-1px); color: var(--ewg-red-700); }
.btn--tint { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.35); color: #fff; }
.btn--tint:hover { background: rgba(255,255,255,0.24); color: #fff; }

/* ── TOPBAR (emergency strip) ──────────────────────────────────── */
.topbar { background: var(--ewg-red-600); color: #fff; font-size: 13px; font-weight: 500; text-align: center; padding: 8px 16px; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }

/* ── HEADER ────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-xs);
}
.header-inner { display: flex; align-items: center; justify-content: flex-start; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.logo img { height: 42px; width: auto; }
.main-nav { display: flex; gap: 32px; align-items: center; margin-left: 16px; }
.header-actions { margin-left: auto; }
.nav-toggle { margin-left: auto; }
.main-nav > a { font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ewg-ink); }
.main-nav > a:hover { color: var(--ewg-red-600); }
.main-nav > a.is-active { color: var(--ewg-red-600); }
.main-nav__actions { display: none; }
@media (min-width: 861px) {
  .main-nav > a { position: relative; padding: 8px 0; }
  .main-nav > a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--ewg-red-500); }
}
.header-actions { display: flex; gap: 16px; align-items: center; }
.header-badge { height: 60px; width: auto; display: block; margin: -6px 0; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 1px solid var(--gray-200); border-radius: 10px; padding: 0; cursor: pointer; color: var(--ewg-ink); transition: background 150ms ease, border-color 150ms ease; }
.nav-toggle:hover { border-color: var(--gray-300); }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] { background: var(--ewg-ink); border-color: var(--ewg-ink); color: #fff; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* ── HERO ──────────────────────────────────────────────────────── */
.hero { position: relative; background: var(--ewg-dark); color: #fff; overflow: hidden; min-height: clamp(560px, 80vh, 760px); display: flex; align-items: center; }
.hero__bg { position: absolute; inset: 0; opacity: 0.92; background-size: cover; background-position: center; filter: brightness(1.12) contrast(1.04); }
.hero__overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(15,17,22,0.97) 0%, rgba(15,17,22,0.90) 34%, rgba(15,17,22,0.64) 62%, rgba(15,17,22,0.36) 100%),
    linear-gradient(180deg, rgba(15,17,22,0.22) 0%, rgba(15,17,22,0.64) 100%);
}
.hero__inner { position: relative; width: 100%; padding-top: 112px; padding-bottom: 112px; pointer-events: none; }
.hero__content { max-width: 720px; }
.hero__content > * { animation: hero-rise 900ms var(--ease-out) both; }
.hero__content > :nth-child(2) { animation-delay: 90ms; }
.hero__content > :nth-child(3) { animation-delay: 180ms; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes nav-sheet-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes nav-link-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .hero__content > *, .main-nav, .main-nav > a { animation: none !important; } }
.hero__title { font-size: 72px; line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 28px; font-weight: 700; color: #fff; text-wrap: balance; }
.hero__tagline { display: block; margin-top: 18px; font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; color: var(--ewg-red-500); text-wrap: balance; }
.hero__text { font-size: 19px; line-height: 30px; color: rgba(255,255,255,0.8); max-width: 580px; margin: 0 0 40px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; pointer-events: auto; }

/* ── GENERIC TWO-COLUMN ────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.two-col h2 { font-size: 40px; line-height: 46px; letter-spacing: -0.025em; margin-bottom: 24px; font-weight: 700; }
.two-col h3 { font-size: 26px; line-height: 32px; letter-spacing: -0.015em; margin-bottom: 24px; font-weight: 700; }
.prose { font-size: 17px; line-height: 27px; color: var(--gray-600); }
.prose + .prose { margin-top: 16px; }

/* ── STATS ─────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 80px; background: var(--gray-200); border-block: 1px solid var(--gray-200); }
.stat-card { background: #fff; padding: 32px 28px; }
.stat-card__num { font-family: var(--font-display); font-size: 52px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; color: var(--ewg-red-600); font-variant-numeric: tabular-nums; }
.stat-card__label { font-size: 14px; font-weight: 500; color: var(--gray-600); margin-top: 12px; }

/* ── CARD GRID (services, quality) ─────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: 12px; padding: 28px;
  box-shadow: var(--shadow-sm); transition: all 200ms ease;
}
.card--static { box-shadow: none; background: var(--gray-50); padding: 32px; }
.card:not(.card--static):hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--ewg-red-200); }
.card__icon {
  width: 48px; height: 48px; border-radius: 10px; background: var(--ewg-red-50);
  color: var(--ewg-red-600); display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ewg-red-100); margin-bottom: 20px;
}
.card h3 { font-size: 20px; line-height: 26px; letter-spacing: -0.01em; font-weight: 600; margin-bottom: 10px; }
.card__icon { transition: background 200ms ease, color 200ms ease, border-color 200ms ease; }

/* Services: the six core services read as one joined panel */
.card-grid--panel { gap: 1px; background: var(--gray-200); border: 1px solid var(--gray-200); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.card-grid--panel .card { border: 0; border-radius: 0; box-shadow: none; padding: 36px 32px 40px; }
/* Icon sits beside the heading rather than stacked above it */
.card-grid--panel .card, .card--static { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; align-content: start; }
.card-grid--panel .card__icon, .card--static .card__icon { width: 40px; height: 40px; margin: 0; }
.card-grid--panel .card__icon svg, .card--static .card__icon svg { width: 22px; height: 22px; }
.card-grid--panel .card h3, .card--static h3 { margin: 0; }
.card-grid--panel .card p, .card--static p { grid-column: 1 / -1; margin-top: 16px; }
.card-grid--panel .card:hover { transform: none; box-shadow: none; }
.card-grid--panel .card:hover .card__icon { background: var(--ewg-red-500); border-color: var(--ewg-red-500); color: #fff; }
.card--static h3 { margin-bottom: 10px; }
.card p { margin: 0; font-size: 15px; line-height: 23px; color: var(--gray-600); }

/* ── SERVICES PAGE ─────────────────────────────────────────────── */
.section-foot { display: flex; justify-content: center; margin-top: 40px; }
.standards-list { list-style: none; margin: 24px 0 0; padding: 0; border-bottom: 1px solid var(--gray-200); }
.standards-list li { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--gray-200); }
.standards-list strong { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--ewg-ink); }
.standards-list span { font-size: 15px; line-height: 23px; color: var(--gray-600); }

/* ── TAG ROW ───────────────────────────────────────────────────── */
.tag-row { margin-top: 40px; text-align: center; }
.tag-row__label { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 900px; margin: 0 auto; }
.tag { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--gray-200); font-size: 13px; font-weight: 500; color: var(--gray-700); }

/* ── PARTNER SERVICES (services delivered with partners) ───────── */
.partner-services {
  margin-top: 40px; padding: 56px; border-radius: 20px; background: var(--ewg-dark); color: #fff;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 56px; align-items: center;
}
.partner-services__intro { margin: 0; font-family: var(--font-display); font-size: 26px; line-height: 34px; letter-spacing: -0.015em; font-weight: 600; color: #fff; text-wrap: balance; }
.card-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
.partner-services .card--compact {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.09); border-radius: 12px; box-shadow: none;
}
.partner-services .card--compact:hover { transform: none; box-shadow: none; background: rgba(255,255,255,0.07); border-color: rgba(231,51,43,0.45); }
.partner-services .card__icon { width: 40px; height: 40px; margin: 0; flex-shrink: 0; background: rgba(231,51,43,0.14); border-color: rgba(231,51,43,0.3); color: var(--ewg-red-200); }
.partner-services .card__icon svg { width: 22px; height: 22px; }
.partner-services .card--compact h3 { margin: 0; font-family: var(--font-sans); font-size: 15px; line-height: 21px; font-weight: 600; letter-spacing: 0; color: #fff; }

/* ── ACCREDITATIONS ────────────────────────────────────────────── */
.accreditations { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--gray-200); text-align: center; }
.accreditation-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; }
.accreditation { background: #fff; border: 1px solid var(--gray-200); border-radius: 12px; height: 120px; width: 176px; padding: 16px 18px; display: flex; align-items: center; justify-content: center; }
.accreditation img { max-width: 100%; max-height: 84px; width: auto; height: auto; object-fit: contain; }

/* ── REVIEWS ───────────────────────────────────────────────────── */
.rating { display: inline-flex; align-items: center; gap: 10px; }
.stars { display: inline-flex; gap: 3px; }
.rating__score { font-size: 16px; font-weight: 600; color: var(--ewg-ink); }
.rating__meta { font-size: 14px; color: var(--gray-500); }
.review-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.review-card { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.review-card__stars { display: flex; gap: 2px; }
.review-card__quote { font-size: 15px; font-weight: 600; line-height: 22px; }
.review-card__body { margin: 0; font-size: 14px; line-height: 21px; color: var(--gray-600); flex: 1; }
.review-card__source { font-size: 13px; color: var(--gray-500); }
.pullquote { max-width: 900px; margin: 0 auto; text-align: center; }
.pullquote blockquote { margin: 0; font-size: 28px; line-height: 38px; letter-spacing: -0.01em; font-weight: 500; color: var(--ewg-ink); }
.pullquote__meta { margin-top: 28px; font-size: 14px; color: var(--gray-500); }
.pullquote__meta strong { color: var(--ewg-ink); }

/* ── TESTIMONIAL CAROUSEL ──────────────────────────────────────── */
.carousel { position: relative; max-width: 900px; margin: 0 auto; padding: 0 56px; }
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1); }
.carousel__slide { flex: 0 0 100%; min-width: 0; box-sizing: border-box; padding: 0 8px; text-align: center; }
.testimonial__stars { display: inline-flex; gap: 4px; margin-bottom: 24px; }
.testimonial__quote { margin: 0; font-size: 26px; line-height: 36px; letter-spacing: -0.01em; font-weight: 500; color: var(--ewg-ink); }
.testimonial__meta { margin-top: 24px; font-size: 14px; color: var(--gray-500); }
.testimonial__meta strong { color: var(--ewg-ink); }
.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 999px; background: #fff;
  border: 1px solid var(--gray-200); color: var(--ewg-ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); transition: all 150ms ease;
}
.carousel__arrow:hover { border-color: var(--ewg-red-200); color: var(--ewg-red-600); }
.carousel__arrow--prev { left: 0; }
.carousel__arrow--next { right: 0; }
.carousel__dots { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.carousel__dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px; background: var(--gray-300); cursor: pointer; transition: all 200ms ease; }
.carousel__dot.is-active { background: var(--ewg-red-500); width: 24px; }

/* ── PARTNERS ──────────────────────────────────────────────────── */
.partner-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; list-style: none; margin: 0; padding: 0; }
.partner-grid > .partner { flex: 0 0 calc((100% - 48px) / 4); }
.partner {
  background: #fff; border: 1px solid var(--gray-200); border-radius: 12px;
  padding: 28px 24px; display: flex; align-items: center; justify-content: center;
  min-height: 110px;
}
/* Static logos (client 2026-11-19): no links, no hover state */
.partner img { max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: 0.75; }

/* ── CTA BAND ──────────────────────────────────────────────────── */
.cta-band {
  border-radius: 20px; padding: 64px 80px; color: #fff;
  background: linear-gradient(135deg, var(--ewg-red-700) 0%, var(--ewg-red-600) 100%);
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; box-shadow: var(--shadow-xl);
}
.cta-band h2 { font-size: 40px; line-height: 46px; letter-spacing: -0.025em; margin-bottom: 14px; font-weight: 700; color: #fff; }
.cta-band p { font-size: 18px; line-height: 28px; color: rgba(255,255,255,0.88); margin: 0; max-width: 520px; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── CONTACT ───────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.contact-grid--wide { grid-template-columns: 1fr 1.4fr; }
.contact-methods { display: flex; flex-direction: column; gap: 16px; }
.contact-methods--boxed { gap: 20px; }
.contact-method { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ewg-ink); }
.contact-method--boxed { gap: 16px; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 12px; padding: 20px 24px; transition: all 200ms ease; }
.contact-method--boxed:hover { border-color: var(--ewg-red-200); box-shadow: var(--shadow-sm); }
.contact-method__icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--ewg-red-50);
  border: 1px solid var(--ewg-red-100); color: var(--ewg-red-600);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-method--boxed .contact-method__icon { width: 48px; height: 48px; }
.contact-method__label { display: block; font-size: 13px; color: var(--gray-500); }
.contact-method__value { display: block; font-size: 16px; font-weight: 600; }
.contact-method--boxed .contact-method__value { font-size: 17px; }
.callout-dark { background: var(--ewg-dark); color: #fff; border-radius: 12px; padding: 24px; }
.callout-dark strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.callout-dark p { margin: 0; font-size: 14px; line-height: 21px; color: rgba(255,255,255,0.72); }

/* ── FORM ──────────────────────────────────────────────────────── */
.form-card { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 16px; padding: 40px; }
.form-card h2 { font-size: 24px; line-height: 32px; margin-bottom: 24px; font-weight: 600; }
.form { display: flex; flex-direction: column; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea {
  padding: 10px 14px; border: 1px solid var(--gray-300); border-radius: 8px;
  font-family: var(--font-sans); font-size: 14px; color: var(--ewg-ink); background: #fff; outline: none;
}
.field textarea { padding: 12px 14px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5 10 12.5 15 7.5' stroke='%23667085' stroke-width='1.67' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ewg-red-500); box-shadow: 0 0 0 3px rgba(231,51,43,0.12); }
.form button { align-self: flex-start; }
.form button:disabled { opacity: 0.7; cursor: progress; }
.form-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; padding: 12px 14px; border-radius: 8px; background: #fdecea; border: 1px solid #f5c2bf; color: #8a1c15; font-size: 14px; line-height: 20px; }
.form-success:focus { outline: none; }
.form-success { text-align: center; padding: 48px 24px; }
.form-success__icon {
  width: 56px; height: 56px; border-radius: 999px; background: var(--success-50);
  border: 1px solid var(--success-100); color: var(--success-600);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.form-success h3 { font-size: 24px; line-height: 32px; margin-bottom: 8px; font-weight: 600; }
.form-success p { margin: 0; font-size: 15px; color: var(--gray-600); }
.is-hidden { display: none !important; }

/* ── PAGE HEADER (about / contact hero) ────────────────────────── */
.page-header { background: var(--gray-50); border-bottom: 1px solid var(--gray-200); padding: 80px 0; }
.page-header h1 { font-size: 52px; line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 24px; font-weight: 700; max-width: 800px; }
.page-header .lede { margin: 0; max-width: 720px; }
.page-header--split .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.page-header__media { height: 340px; border-radius: 16px; overflow: hidden; border: 1px solid var(--gray-200); box-shadow: var(--shadow-lg); }
.page-header__media img,
.page-header__media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }

/* ── TEAM ──────────────────────────────────────────────────────── */
/* ── ORG CHART (About › The team) ── */
.org { display: flex; flex-direction: column; align-items: center; }
.org__lead { display: flex; flex-direction: column; align-items: stretch; width: min(100%, 420px); }
.org-top { background: #fff; border: 1px solid var(--gray-200); border-top: 0; padding: 18px 24px; text-align: center; display: flex; flex-direction: column; gap: 4px; border-radius: 0 0 12px 12px; }
.org-top--md { background: var(--ewg-red-600); border: 1px solid var(--ewg-red-600); color: #fff; border-radius: 12px 12px 0 0; }
.org-top--md .org-person__name { font-size: 20px; color: #fff; }
.org-top--md .org-person__role { color: rgba(255,255,255,0.85); }
.org__lead::after { content: ""; align-self: center; width: 1px; height: 40px; background: var(--gray-300); }
.org__groups { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-top: 24px; border-top: 1px solid var(--gray-300); }
.org-group { background: #fff; border: 1px solid var(--gray-200); border-top: 3px solid var(--ewg-red-600); border-radius: 12px; padding: 24px; }
.org-group__title { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ewg-red-600); margin: 0 0 16px; }
.org-group__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.org-group__list li { display: flex; flex-direction: column; gap: 2px; }
.org-person__name { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--ewg-ink); }
.org-person__name--plain { font-weight: 500; color: var(--gray-600); }
.org-person__role { font-size: 14px; line-height: 20px; color: var(--gray-500); }
@media (max-width: 1024px) { .org__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .org__groups { grid-template-columns: 1fr; border-top: 0; padding-top: 0; } .org__lead::after { height: 24px; } .org-group { padding: 20px; } }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card { background: #fff; border: 1px solid var(--gray-200); border-radius: 12px; padding: 32px 24px; text-align: center; }
.avatar {
  width: 120px; height: 120px; margin: 0 auto 20px; border-radius: 999px; overflow: hidden;
  background: var(--ewg-red-50); border: 1px solid var(--ewg-red-100); color: var(--ewg-red-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 700; letter-spacing: 0.02em;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card__name { font-size: 18px; font-weight: 600; }
.team-card__role { font-size: 14px; color: var(--gray-500); margin-top: 4px; }

/* ── FOOTER ────────────────────────────────────────────────────── */
.site-footer { background: var(--ewg-dark); color: rgba(255,255,255,0.7); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer-brand img { height: 48px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; margin-bottom: 20px; }
.footer-brand p { font-size: 14px; line-height: 22px; max-width: 320px; margin: 0 0 20px; color: rgba(255,255,255,0.7); }
.social { display: flex; gap: 8px; }
.social a {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.18);
  display: inline-flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7);
  transition: all 150ms ease;
}
.social a:hover { color: #fff; border-color: rgba(255,255,255,0.4); }
.footer-col__title { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col a, .footer-col div { display: block; padding: 6px 0; font-size: 14px; color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px;
}
.footer-bottom__badges { display: flex; gap: 16px; }
.site-credit { white-space: nowrap; }
.site-credit a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; vertical-align: middle; }
.site-credit a:hover { color: #fff; }
.site-credit img { width: 20px; height: 20px; border-radius: 4px; display: block; }
.site-credit span { text-decoration: underline; }

/* ── RESPONSIVE ────────────────────────────────────────────────── */
/* ── CONTACT MODAL ─────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; overflow-y: auto;
  opacity: 0; visibility: hidden;
  /* visibility flips instantly on open, but waits for the fade on close */
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}
.modal.is-open { opacity: 1; visibility: visible; transition: opacity 180ms ease, visibility 0s linear 0s; }
.modal__backdrop { position: fixed; inset: 0; background: rgba(21,23,28,0.6); backdrop-filter: blur(2px); }
.modal__dialog {
  position: relative; width: 100%; max-width: 560px; margin: auto;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px;
  padding: 32px; box-shadow: var(--shadow-xl);
  transform: translateY(8px) scale(0.985); transition: transform 180ms ease;
}
.modal.is-open .modal__dialog { transform: none; }
.modal__head { margin-bottom: 24px; padding-right: 40px; }
.modal__head h2 { font-size: 24px; line-height: 32px; font-weight: 600; margin-bottom: 6px; }
.modal__head p { margin: 0; font-size: 15px; line-height: 23px; color: var(--gray-600); }
.modal__close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent; color: var(--gray-500);
  cursor: pointer; transition: all 150ms ease;
}
.modal__close:hover { background: var(--gray-100); color: var(--ewg-ink); }
.modal__close:focus-visible { outline: none; border-color: var(--ewg-red-500); box-shadow: 0 0 0 3px rgba(231,51,43,0.12); }
body.modal-open { overflow: hidden; }

@media (max-width: 1024px) {
          .card-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-services { grid-template-columns: 1fr; gap: 32px; padding: 48px 40px; }
  .partner-grid > .partner { flex-basis: calc((100% - 32px) / 3); }
  .hero__title { font-size: 58px; }
  .hero__tagline { font-size: 28px; }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section-head h2, .two-col h2, .cta-band h2 { font-size: 34px; line-height: 40px; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .header-badge { height: 40px; }
  .nav-toggle { margin-left: 0; }
  .nav-toggle { display: inline-flex; }
  /* Mobile menu: a full-height sheet under the header */
  .site-header.nav-open .main-nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    height: calc(100vh - var(--header-h, 72px)); height: calc(100dvh - var(--header-h, 72px));
    overflow-y: auto; overscroll-behavior: contain;
    padding: 8px 32px calc(24px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--gray-200);
    animation: nav-sheet-in 260ms var(--ease-out) both;
  }
  .site-header.nav-open .main-nav > a {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: 64px; border-bottom: 1px solid var(--gray-200);
    font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.015em;
    animation: nav-link-in 320ms var(--ease-out) both;
  }
  .site-header.nav-open .main-nav > a:nth-child(2) { animation-delay: 30ms; }
  .site-header.nav-open .main-nav > a:nth-child(3) { animation-delay: 60ms; }
  .site-header.nav-open .main-nav > a:nth-child(4) { animation-delay: 90ms; }
  .site-header.nav-open .main-nav > a::after {
    content: ""; width: 20px; height: 20px; flex-shrink: 0; background: var(--gray-400);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 150ms ease, background 150ms ease;
  }
  .site-header.nav-open .main-nav > a:hover::after, .site-header.nav-open .main-nav > a.is-active::after { background: var(--ewg-red-500); }
  .site-header.nav-open .main-nav > a:active::after { transform: translateX(3px); }
  .site-header.nav-open .main-nav__actions { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 32px; }
  .site-header.nav-open .main-nav__actions .btn { width: 100%; justify-content: center; }
  body.nav-locked { overflow: hidden; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid, .contact-grid--wide { grid-template-columns: 1fr; gap: 40px; }
  .cta-band { grid-template-columns: 1fr; gap: 28px; padding: 48px 40px; }
  .page-header--split .container { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .standards-list li { grid-template-columns: 1fr; gap: 2px; }
  .container { padding-left: 20px; padding-right: 20px; }
  .site-header.nav-open .main-nav { padding-left: 20px; padding-right: 20px; }
  .section { padding: 64px 0; }
  .card-grid, .review-grid, .team-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 56px; }
  .stat-card { padding: 24px 16px; }
  .stat-card__num { font-size: 38px; }
  .partner-grid { gap: 12px; }
  .partner-grid > .partner { flex-basis: calc((100% - 12px) / 2); min-height: 88px; padding: 20px 16px; }
  .card-grid--panel .card { padding: 28px 24px 32px; }
  .card-grid--4 { grid-template-columns: 1fr; gap: 10px; }
  .partner-services { padding: 32px 20px; border-radius: 16px; margin-left: -4px; margin-right: -4px; }
  .partner-services__intro { font-size: 21px; line-height: 29px; }
  .accreditation { width: calc(50% - 8px); height: 96px; }
  .accreditation img { max-height: 60px; }
  .logo img { height: 36px; }
  .header-badge { height: 34px; }
  .field-row { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero__inner { padding-top: 64px; padding-bottom: 72px; }
  .hero__title { font-size: 40px; line-height: 1.05; margin-bottom: 20px; }
  .hero__tagline { margin-top: 12px; font-size: 22px; line-height: 1.2; }
  .hero__text { font-size: 17px; }
  .section-head h2, .two-col h2, .cta-band h2 { font-size: 28px; line-height: 36px; }
  .page-header { padding: 56px 0; }
  .page-header h1 { font-size: 36px; line-height: 1.1; }
  .pullquote blockquote { font-size: 22px; line-height: 32px; }
  .form-card, .card--static { padding: 24px; }
  .btn { width: 100%; justify-content: center; }
  .footer-bottom { flex-direction: column; }
  .modal { padding: 16px; }
  .modal__dialog { padding: 24px; border-radius: 12px; }
  .modal__close { top: 14px; right: 14px; }
  .carousel { padding: 0; }
  .carousel__arrow { display: none; }
  .testimonial__quote { font-size: 21px; line-height: 30px; }
}
