/* ==========================================================================
   RZ Solar & Battery — Landing Page
   Forked from the Kelp Digital master template. Plain CSS, mobile-first,
   no build step, no framework.
   ========================================================================== */

:root {
  /* Brand colours — RZ Solar & Battery (supplied by Dani) */
  --brand-primary: #00334B;   /* Deep Blue — header, navy sections, primary buttons */
  --brand-secondary: #50AAD1; /* Light Blue — secondary accents, eyebrows, icon fills */
  --brand-accent: #EA6421;    /* Orange — CTA highlight colour */

  /* Derived / supporting colours */
  --color-primary-dark: #002436;
  --color-primary-deep: #001B29;
  --color-accent-dark: #C4501A;
  --color-text: #1B1F27;
  --color-text-muted: #5B6270;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F7FA;
  --color-bg-tint: #EFF5FA;   /* light-blue wash for the services band */
  --color-border: #E2E6EC;
  --color-white: #FFFFFF;
  --color-star: #F5A623;

  /* Fonts — Montserrat (heading; closest Google Fonts match to the logo's
     SOLAR & BATTERY wordmark) + Inter (body) */
  --font-heading: 'Montserrat', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --container-width: 1160px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(20, 30, 50, 0.08);
  --shadow-md: 0 8px 24px rgba(20, 30, 50, 0.10);
  --shadow-lg: 0 18px 48px rgba(0, 27, 41, 0.18);
  --header-height: 76px;
  --mobile-bar-height: 64px;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6rem;
}

@media (min-width: 1001px) {
  :root { --header-height: 104px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* height:auto is what lets the width/height attributes reserve layout space
   without then overriding the aspect-ratio the CSS asks for. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-2);
  color: var(--color-primary-dark);
}
p { margin: 0 0 var(--space-2); }
button { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--brand-accent);
  color: var(--color-white);
  padding: var(--space-1) var(--space-2);
  z-index: 200;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  left: var(--space-2);
  top: var(--space-2);
}

:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 2px;
}

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

section[id] { scroll-margin-top: var(--header-height); }

.section { padding-block: var(--space-6); }
@media (min-width: 768px) { .section { padding-block: var(--space-7); } }

.section-heading { max-width: 640px; margin-bottom: var(--space-5); }
.section-heading.centered { margin-inline: auto; text-align: center; max-width: 720px; }
.eyebrow {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-secondary);
  margin-bottom: var(--space-1);
}
h1 { font-size: clamp(2.1rem, 4.2vw + 1rem, 3.4rem); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 2.4vw + 1rem, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
.section-intro { color: var(--color-text-muted); font-size: 1.05rem; }

.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex-shrink: 0; vertical-align: -0.15em; }
.icon-lg { width: 1.75rem; height: 1.75rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  padding: 0.75em 1.4em;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 0.9em 1.8em; font-size: 1.05rem; }
.btn-sm { padding: 0.55em 1.1em; font-size: 0.88rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--brand-primary); color: var(--color-white); }
.btn-primary:hover { background: var(--color-primary-dark); }

.btn-accent { background: var(--brand-accent); color: var(--color-white); box-shadow: 0 6px 18px rgba(234, 100, 33, 0.28); }
.btn-accent:hover { background: var(--color-accent-dark); }

.btn-outline { background: transparent; color: var(--brand-primary); border-color: var(--brand-primary); }
.btn-outline:hover { background: var(--brand-primary); color: var(--color-white); }

.btn-outline-light { background: rgba(255,255,255,0.06); color: var(--color-white); border-color: rgba(255,255,255,0.65); }
.btn-outline-light:hover { background: rgba(255,255,255,0.16); border-color: var(--color-white); }

/* Header phone button — orange border on the navy header */
.btn-outline-accent { background: transparent; color: var(--color-white); border-color: var(--brand-accent); }
.btn-outline-accent:hover { background: var(--brand-accent); color: var(--color-white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  height: var(--header-height);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.logo { display: flex; align-items: center; }
.logo-img {
  width: auto;
  height: 48px;
  display: block;
}
@media (min-width: 1001px) {
  .logo-img { height: 74px; }
}

.main-nav ul { display: flex; gap: var(--space-3); }
.main-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-white);
  white-space: nowrap;
  padding-block: 0.35em;
  border-bottom: 2px solid transparent;
  transition: color 0.12s ease, border-color 0.12s ease;
}
.main-nav a:hover { color: var(--brand-secondary); border-bottom-color: var(--brand-accent); }

.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.header-call span { display: none; }
@media (min-width: 480px) { .header-call span { display: inline; } }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--color-white); margin-inline: 8px; transition: transform 0.15s ease, opacity 0.15s ease; }

@media (max-width: 1000px) {
  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--brand-primary);
    border-bottom: 0 solid var(--brand-accent); /* only drawn once open */
    /* 0fr -> 1fr beats a magic max-height: the drawer sizes itself to its
       content and there is no dead scroll time at the end of the transition. */
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.22s ease;
  }
  .main-nav.is-open { grid-template-rows: 1fr; border-bottom-width: 3px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 0 var(--space-3); overflow: hidden; }
  .main-nav.is-open ul { padding-block: var(--space-2); }
  .main-nav li { border-bottom: 1px solid rgba(255,255,255,0.14); }
  .main-nav li:last-child { border-bottom: none; }
  .main-nav a { display: block; padding: var(--space-2) 0; border-bottom: none; }
}
@media (min-width: 1001px) {
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  /* The oversized bottom padding here used to make room for trust cards that
     overlapped the hero. They no longer do, so it is just normal section
     padding now. */
  padding-block: var(--space-6) var(--space-4);
  background: var(--brand-primary);
  color: var(--color-white);
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero { padding-block: var(--space-7) var(--space-5); }
}

.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }

/* Navy scrim: heavy on the left so the copy always clears WCAG AA,
   fading right so the roof and sky stay visible. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    /* bottom fade to solid navy so the photo melts into the trust bar
       instead of ending on a hard horizontal seam */
    linear-gradient(180deg, rgba(0, 51, 75, 0) 50%, rgba(0, 51, 75, 0.75) 82%, var(--brand-primary) 100%),
    linear-gradient(100deg, rgba(0, 27, 41, 0.94) 0%, rgba(0, 51, 75, 0.86) 42%, rgba(0, 51, 75, 0.42) 72%, rgba(0, 51, 75, 0.28) 100%),
    linear-gradient(180deg, rgba(0, 27, 41, 0.55) 0%, rgba(0, 27, 41, 0) 35%);
}

.hero-inner { position: relative; }
.hero-copy { max-width: 40rem; }
.hero h1 { color: var(--color-white); text-wrap: balance; }
.hero .eyebrow { color: var(--brand-secondary); }
.hero-subtext { font-size: 1.1rem; color: rgba(255,255,255,0.86); max-width: 48ch; }
/* Both hero CTAs share a width so they read as a matched pair, and go
   full-width once they stack on narrow screens. */
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-block: var(--space-4) var(--space-3); }
.hero-ctas .btn { min-width: 15.5rem; }
@media (max-width: 560px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { min-width: 0; width: 100%; }
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}
.hero-proof li { display: flex; align-items: center; gap: 0.55em; }
.hero-proof li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-accent);
  flex-shrink: 0;
}

/* ---------- Trust strip ----------
   A quiet signature line under the hero: icon + short label, no cards, no
   shadows, no overlap. The navy carries down from the hero so the strip
   never competes with it. */
.trust-bar {
  position: relative;
  /* Carries the hero's navy down and lifts it a shade, so the eye steps from
     the dark hero to the light services band instead of hitting a white slab. */
  background: linear-gradient(180deg, var(--brand-primary) 0%, #08475F 100%);
  padding-block: var(--space-3);
}
/* Hairline rule marking the hero boundary. Fades out at both ends so it reads
   as a seam rather than a hard border across the full width. */
.trust-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(234, 100, 33, 0) 0%,
    rgba(234, 100, 33, 0.55) 50%,
    rgba(234, 100, 33, 0) 100%);
}

.trust-grid {
  display: grid;
  gap: var(--space-2) var(--space-4);
  grid-template-columns: 1fr;
}
/* Four items: 2x2 on tablet, one row on desktop. The divider rule below draws
   between columns, so the last item in each 2-up row has to opt out. */
@media (min-width: 700px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }

.trust-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85em;
  text-align: left;
}
@media (max-width: 699px) { .trust-card { justify-content: flex-start; } }

/* Matching hairlines between the three items, centred in the column gap and
   fading top and bottom. Only while the row is horizontal — once the items
   stack there is nothing to divide. */
@media (min-width: 700px) {
  .trust-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: calc(var(--space-4) / -2);
    transform: translateY(-50%);
    width: 1px;
    height: 46px; /* taller than the 34px icon, so it reads as a strip divider */
    background: linear-gradient(180deg,
      rgba(234, 100, 33, 0) 0%,
      rgba(234, 100, 33, 0.55) 50%,
      rgba(234, 100, 33, 0) 100%);
  }
}

/* In the 2-up layout the second item ends a row, so its divider would hang in
   empty space. This has to come AFTER the rule above: equal specificity, so
   source order is what decides. */
@media (min-width: 700px) and (max-width: 999px) {
  .trust-card:nth-child(2n)::after { content: none; }
}

.trust-icon { display: block; width: 34px; height: 34px; flex-shrink: 0; }
.trust-icon svg { width: 100%; height: 100%; display: block; }

.trust-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-white);
  margin: 0;
  letter-spacing: 0;
}

/* ---------- Services ---------- */
.services {
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(80, 170, 209, 0.16) 0%, rgba(80, 170, 209, 0) 60%),
    linear-gradient(180deg, var(--color-bg-tint) 0%, var(--color-bg-alt) 100%);
}

.services-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 700px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--brand-secondary);
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-bg-tint);
  color: var(--brand-primary);
  margin-bottom: var(--space-3);
}
.service-card h3 { color: var(--brand-primary); }
.service-card > p { color: var(--color-text-muted); font-size: 0.95rem; }

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}
.service-list li {
  position: relative;
  padding-left: 1.7em;
  font-size: 0.9rem;
  color: var(--color-text);
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.95em;
  height: 0.5em;
  border-left: 2.5px solid var(--brand-accent);
  border-bottom: 2.5px solid var(--brand-accent);
  transform: rotate(-45deg);
}

/* Featured card — navy, sits as the visual anchor of the row */
.service-card-featured {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-lg);
}
.service-card-featured::before { background: var(--brand-accent); }
.service-card-featured h3 { color: var(--color-white); }
.service-card-featured > p { color: rgba(255,255,255,0.82); }
.service-card-featured .service-icon { background: rgba(255,255,255,0.10); color: var(--brand-secondary); }
.service-card-featured .service-list { border-top-color: rgba(255,255,255,0.18); }
.service-card-featured .service-list li { color: rgba(255,255,255,0.90); }

.service-flag {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--brand-accent);
  padding: 0.35em 0.7em;
  border-radius: 999px;
}

.services-footnote {
  margin-top: var(--space-4);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.98rem;
}
.services-footnote a { color: var(--brand-primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Why Us ---------- */
.why-us { background: var(--color-bg); }
/* Copy first, image as a wide band underneath — keeps the section short
   instead of pinning its height to a tall portrait photo. */
.why-us-inner { display: block; }
.why-us-copy { max-width: 900px; }
.why-us-media { margin: var(--space-5) 0 0; }
.why-us-media img {
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 6;
  object-fit: cover;
  object-position: center 42%;
  width: 100%;
  box-shadow: var(--shadow-md);
}
@media (max-width: 640px) {
  .why-us-media img { aspect-ratio: 16 / 9; }
}

.feature-list { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
@media (min-width: 820px) { .feature-list { grid-template-columns: repeat(2, 1fr); gap: var(--space-4) var(--space-5); } }
.feature-list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--brand-primary);
  color: var(--brand-accent);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-list strong {
  display: block;
  color: var(--brand-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.02rem;
}
.feature-list p { margin: 0.25em 0 0; color: var(--color-text-muted); font-size: 0.94rem; }

/* ---------- Brands we work with ---------- */
.brands {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}
.brands-head { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: var(--space-4); }
.brands-head h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-primary);
}
.brands-head p { color: var(--color-text-muted); font-size: 0.98rem; margin: 0; }

/* Two centred rows with a hairline between them. 11 logos never divide evenly,
   so the split is fixed at 6 + 5 rather than left to flex-wrap, which orphans
   the last item onto its own line as soon as a row runs long.
   Logos are capped by height, not fitted to a box: matching bounding boxes
   would make a square mark dwarf a wide wordmark. */
.brand-rows { margin-top: var(--space-2); }
.brand-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-3) var(--space-4);
  padding-block: var(--space-3);
}
.brand-row img {
  width: auto;
  max-width: 100%;
  transition: transform 0.15s ease;
}
.brand-row li:hover img { transform: translateY(-2px); }

/* Desktop: fixed columns, so the 6 + 5 read is guaranteed. Cells shrink with
   the viewport and max-width scales the art down rather than letting it wrap. */
@media (min-width: 900px) {
  .brand-row {
    display: grid;
    gap: var(--space-3);
    place-items: center;
    padding-block: var(--space-4);
  }
  .brand-row:first-child { grid-template-columns: repeat(6, 1fr); }
  .brand-row:last-child  { grid-template-columns: repeat(5, 1fr); }
  .brand-row + .brand-row { border-top: 1px solid var(--color-border); }
  .brand-row li { display: flex; align-items: center; justify-content: center; width: 100%; }
  /* Row two has five columns to row one's six, so its cells are wider. Without
     a shared cap its logos come out visibly larger and the two rows stop
     reading as one set. */
  .brand-row img { max-width: min(100%, 170px); }
}

/* Per-logo optical heights. Not one shared value: a filled block reads far
   heavier than a thin wordmark at the same height. Tune these, not the row. */
.b-sigenergy   { max-height: 36px; }
.b-goodwe      { max-height: 32px; }
.b-fox-ess     { max-height: 50px; }
.b-alphaess    { max-height: 48px; }
.b-anker-solix { max-height: 26px; }
.b-saj         { max-height: 30px; }
.b-solax       { max-height: 52px; }
.b-sofar       { max-height: 34px; }
.b-growatt     { max-height: 32px; }
.b-byd         { max-height: 32px; }
.b-sungrow     { max-height: 36px; }

/* Below the two-row layout the set just flows and centres. The divider stops
   helping once both rows wrap, so it goes. Sizes scale down together to keep
   the optical tuning above intact. */
@media (max-width: 899px) {
  .b-sigenergy   { max-height: 30px; }
  .b-goodwe      { max-height: 27px; }
  .b-fox-ess     { max-height: 42px; }
  .b-alphaess    { max-height: 40px; }
  .b-anker-solix { max-height: 22px; }
  .b-saj         { max-height: 25px; }
  .b-solax       { max-height: 44px; }
  .b-sofar       { max-height: 28px; }
  .b-growatt     { max-height: 27px; }
  .b-byd         { max-height: 27px; }
  .b-sungrow     { max-height: 30px; }
}

/* ---------- Gallery ---------- */
.gallery { background: var(--color-bg-alt); }

/* Mobile: one image per row at full width — two columns made these portrait
   installs far too narrow to read. */
.gallery-grid {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: 1fr;
}
.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--color-border);
}
.gallery-grid img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  transition: transform 0.4s ease;
}
.gallery-grid .gallery-wide img { aspect-ratio: 3 / 2; }
.gallery-grid figure:hover img { transform: scale(1.04); }

/* Desktop mosaic on an 8-column grid: row one is wide + portrait + portrait,
   row two mirrors it as portrait + wide + portrait. Every tile is the same
   height, so the rhythm comes from the widths rather than ragged edges. */
@media (min-width: 760px) {
  .gallery-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: var(--space-3);
  }
  .gallery-grid figure { grid-column: span 2; }
  .gallery-grid .gallery-wide { grid-column: span 4; }
  .gallery-grid img,
  .gallery-grid .gallery-wide img {
    aspect-ratio: auto;
    height: clamp(300px, 30vw, 400px);
  }
}

/* ---------- Where We Work ---------- */
/* Blue-tinted rather than the gallery's neutral grey, so the two adjacent
   light sections read as separate blocks. */
.areas {
  background:
    radial-gradient(70% 55% at 100% 0%, rgba(80, 170, 209, 0.14) 0%, rgba(80, 170, 209, 0) 60%),
    var(--color-bg-tint);
}
.areas-inner {
  display: grid;
  gap: var(--space-5);
  align-items: start;
}
@media (min-width: 900px) { .areas-inner { grid-template-columns: 1.05fr 0.95fr; } }

.areas-copy h2 { max-width: 18ch; }
.areas-note { font-size: 0.95rem; color: var(--color-text-muted); }
.areas-note a { color: var(--brand-primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.areas-map {
  margin-top: var(--space-3);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}
.areas-map iframe { width: 100%; height: 100%; border: 0; display: block; }

.areas-list { display: flex; flex-direction: column; gap: var(--space-2); }
.areas-list li {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-sm);
}
.areas-list h3 {
  display: flex;
  align-items: center;
  gap: 0.55em;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 0.45em;
}
.areas-list .icon { color: var(--brand-accent); width: 1.25em; height: 1.25em; }
.areas-list p { margin: 0; color: var(--color-text-muted); font-size: 0.98rem; }

/* ---------- Testimonials (kept for when the section is reactivated) ---------- */
.testimonials { background: var(--color-bg-alt); }
.testimonials-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin: 0;
}
.stars { color: var(--color-star); letter-spacing: 0.1em; margin-bottom: var(--space-1); font-size: 0.95rem; }
.testimonial-card p { font-size: 0.98rem; color: var(--color-text); }
.testimonial-card cite { font-style: normal; font-weight: 600; font-size: 0.88rem; color: var(--color-text-muted); }

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(70% 60% at 15% 0%, rgba(80, 170, 209, 0.18) 0%, rgba(80, 170, 209, 0) 60%),
    var(--brand-primary);
  color: var(--color-white);
}
.contact h2 { color: var(--color-white); }
.contact .eyebrow { color: var(--brand-secondary); }
.contact .section-intro { color: rgba(255,255,255,0.82); }

.contact-inner {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 900px) { .contact-inner { grid-template-columns: 0.9fr 1.1fr; } }

.contact-details { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-4); }
.contact-details li {
  display: flex;
  align-items: center;
  gap: 0.85em;
  color: rgba(255,255,255,0.90);
  font-size: 0.98rem;
}
.contact-details .icon {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.55rem;
  box-sizing: border-box;
  color: var(--brand-accent);
  background: rgba(234, 100, 33, 0.14);
  border: 1px solid rgba(234, 100, 33, 0.35);
  border-radius: var(--radius-sm);
  vertical-align: middle;
}
.contact-details a:hover { color: var(--brand-secondary); }

.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
}
.form-row { margin-bottom: var(--space-2); }
.form-row-split { display: grid; gap: var(--space-2); grid-template-columns: 1fr; }
@media (min-width: 480px) { .form-row-split { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.3em; }
input, textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.65em 0.8em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
}
input:focus, textarea:focus { outline: none; border-color: var(--brand-secondary); background: var(--color-white); }
.hidden-field { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
/* Same navy as the contact section rather than the near-black it used to be.
   The separation comes from the thin orange rule, not from going darker. */
.site-footer {
  background: var(--brand-primary);
  border-top: 2px solid var(--brand-accent);
  color: rgba(255,255,255,0.85);
  padding-top: var(--space-5);
}
.footer-inner {
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-logo { width: auto; height: 62px; margin-bottom: var(--space-2); }
.footer-brand p { font-size: 0.88rem; margin-bottom: 0.3em; color: rgba(255,255,255,0.65); }
.footer-nav ul { display: flex; flex-direction: column; gap: 0.5em; }
.footer-nav a:hover { color: var(--brand-secondary); }
.footer-contact { display: flex; flex-direction: column; gap: 0.6em; }
.footer-contact a { display: flex; align-items: center; gap: 0.65em; }
.footer-contact .icon { color: var(--brand-accent); width: 1.05rem; height: 1.05rem; }
.footer-contact a:hover { color: var(--brand-secondary); }
.footer-contact a:hover .icon { color: var(--brand-accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-1); padding-block: var(--space-3); font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.footer-bottom a { text-decoration: underline; }

/* Room at the bottom on mobile so the sticky call bar doesn't cover the footer */
@media (max-width: 700px) {
  body { padding-bottom: var(--mobile-bar-height); }
}

/* ---------- Sticky mobile call bar ---------- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 16px rgba(20,30,50,0.12);
  padding: 0.6rem var(--space-3);
  gap: var(--space-2);
}
.mobile-cta-bar .btn { flex: 1; }
@media (max-width: 700px) {
  .mobile-cta-bar { display: flex; }
}
