/* ============================================================
   style.css — JADE Electrical Limited
   Loads after grid.css and core.css.

   Palette extracted from the approved mockup. Theme is "anchored
   dark": ink bands at the header, hero, emergency strip and footer;
   white / off-white everywhere between.

   ONE card style site-wide (.card), ONE icon treatment (jade stroke
   SVG in a mint disc), TWO heading sizes per section (h2 + h3).
   ============================================================ */

/* ── 1. BRAND / COLOR OVERRIDES ──────────────────────────────
   Every custom property core.css re-declares inside its
   `prefers-color-scheme: dark` block (core.css §2) is pinned here,
   outside any media query, so the site renders identically whatever
   the visitor's OS appearance is set to. Do not move these into a
   media query.                                                    */

:root {
  /* Jade */
  --color-brand: #2b713a;
  --color-brand-hover: #38954e;
  --color-accent: #4ede72; /* dark backgrounds ONLY — fails contrast on white */
  --color-ink: #0f1511;
  --color-forest: #153c1f;
  --color-mint: #e2f2e5;

  /* Surfaces + text */
  --color-bg: #ffffff;
  --color-surface: #f4f7f4;
  --color-surface-alt: #e9efe9;
  --color-text: #3d4a42;
  --color-text-strong: #1a201c;
  --color-text-muted: #5c6b60;
  --color-border: #e1e8e2;
  --color-link: var(--color-brand);
  --color-link-hover: var(--color-brand-hover);

  /* Header — dark bar */
  --color-header-bg: var(--color-ink);
  --color-header-text: #ffffff;
  --color-header-shadow: rgba(0, 0, 0, 0.45);

  /* Nav */
  --color-nav-a: rgba(255, 255, 255, 0.82);
  --color-nav-a-hover: var(--color-accent);
  --color-nav-mobile-bg: var(--color-ink);
  --color-nav-mobile-a: rgba(255, 255, 255, 0.9);
  --color-nav-mobile-a-hover: var(--color-accent);

  /* Footer */
  --color-footer-bg: var(--color-ink);
  --color-footer-text: rgba(255, 255, 255, 0.72);
  --color-footer-a: rgba(255, 255, 255, 0.72);
  --color-footer-a-hover: #ffffff;

  /* Typography */
  --font-sans:
    "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: var(--font-sans);
  --font-heading: var(--font-sans);

  /* Shared shape language — one radius scale, one shadow scale */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(15, 21, 17, 0.06);
  --shadow-md: 0 6px 20px rgba(15, 21, 17, 0.08);

  /* Header / nav sizing (structural defaults in core.css §4) */
  --header-height: 96px;
  --header-height-compact: 68px;
  --header-height-mobile: 68px;
  --header-padding-top: 10px;
  --header-padding-bottom: 10px;
  --logo-max-width: 64px;
  --nav-gap: 28px;

  /* Disc behind the koru. Off-white rather than #fff, and slightly
     transparent so the ink bar shows through — pure white reads as a
     hard cut-out. The ring restores the edge the transparency costs. */
  /* TEMP: disc disabled so the logo can be judged on the bare background.
     Restore by swapping back to the commented values below. */
  --logo-disc-bg: transparent; /* was rgba(244, 247, 244, 0.50) */
  --logo-disc-ring: transparent; /* was rgba(78, 222, 114, 0.22) */
}

/* ── 2. TYPE SCALE ───────────────────────────────────────────
   Four sizes total across the whole page. The mockup used seven. */

body {
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--color-text-strong);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.5em;
}
h3 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h4 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

p {
  margin-bottom: 1em;
}
p:last-child {
  margin-bottom: 0;
}

/* Eyebrow pill — the single "badge" style, light and dark variants */
.eyebrow {
  display: inline-block;
  padding: 5px 14px;
  margin-bottom: 1rem;
  border-radius: var(--radius-pill);
  background: var(--color-mint);
  color: var(--color-brand);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
}
.eyebrow-dark {
  background: rgba(78, 222, 114, 0.14);
  border: 1px solid rgba(78, 222, 114, 0.3);
  color: var(--color-accent);
}

/* ── 3. BUTTONS ──────────────────────────────────────────────
   Two variants only: solid jade, and outline. Outline inherits
   currentColor so it works on both light and dark bands.        */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.btn-primary {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-brand-hover);
  border-color: var(--color-brand-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
}

/* On light bands the outline hover needs a tint, not a white wash */
.section-light .btn-outline:hover,
.bg-white .btn-outline:hover {
  background: var(--color-mint);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.02rem;
}
.btn-block {
  display: flex;
  width: 100%;
}

/* ── 4. HEADER ───────────────────────────────────────────────
   Dark bar. The koru sits on a softened disc — on ink it would
   otherwise read as a dark smudge, which is what went wrong in the
   mockup (it also used mix-blend-mode: multiply on a dark bg).    */

header .logo-link {
  gap: 12px;
  flex: 0 1 auto; /* the lockup compresses rather than shoving the nav */
  min-width: 0;
}

header .logo {
  height: 58px;
  width: 58px;
  max-height: 58px;
  flex: 0 0 auto;
  padding: 3px;
  background: var(--logo-disc-bg);
  box-shadow: 0 0 0 1px var(--logo-disc-ring);
  border-radius: 50%;
  object-fit: contain;
  transition:
    height var(--transition-base),
    width var(--transition-base);
}
header.compact .logo {
  height: 44px;
  width: 44px;
}

/* Wordmark — live text, not part of the PNG, so it stays crisp and
   scales with the bar. white-space:nowrap keeps it on one line at
   every width; the clamp handles the rest. */
.logo-wordmark {
  font-size: clamp(1.2rem, 1.8vw, 1.44rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  white-space: nowrap;
  color: var(--color-accent);
}
.logo-wordmark span {
  color: #fff;
}

@media (max-width: 1023.98px) {
  header .logo,
  header.compact .logo {
    height: 42px;
    width: 42px;
  }
}

/* 1024–1200px is the tightest point on the page: full desktop nav plus
   the lockup plus the CTA. Tightening the nav gap buys headroom. */
@media (min-width: 1024px) and (max-width: 1200px) {
  :root {
    --nav-gap: 22px;
  }
}

/* Phone CTA pinned right of the nav */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  flex: 0 0 auto;
  margin-left: 20px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: var(--color-brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--transition-fast);
}
.header-cta:hover {
  background: var(--color-brand-hover);
  color: #fff;
}
.header-cta svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

/* Mobile: the CTA sits between the logo and the burger, and collapses
   to an icon-only tap target so the bar never crowds. */
@media (max-width: 1023.98px) {
  .header-cta {
    margin-left: auto;
    margin-right: 14px;
    padding: 10px 14px;
  }
  .header-cta .header-cta-label {
    display: none;
  }
  .header-cta svg {
    width: 18px;
    height: 18px;
  }
}
@media (max-width: 400px) {
  header .logo,
  header.compact .logo {
    height: 38px;
    width: 38px;
  }
  .logo-wordmark {
    font-size: 1.08rem;
  }
}

/* core.css puts margin-left:auto on the burger. With the CTA also carrying an
   auto margin the free space splits between them and the CTA lands mid-bar —
   so the CTA takes the auto margin and the burger sits flush after it. */
.burger-btn {
  align-self: center;
  flex: 0 0 auto;
  margin-left: 0;
}

/* ── 5. SECTION COMPONENT ────────────────────────────────────
   One vertical rhythm for the whole page. Bands alternate
   white / off-white, with two ink bands (hero, emergency).      */

.section {
  --section-padding-y: clamp(56px, 8vw, 88px);
  --section-padding-y-sm: clamp(40px, 6vw, 60px);

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

.section-light {
  background: var(--color-surface);
}
.section-white {
  background: var(--color-bg);
}

.section-dark {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.78);
}
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #fff;
}
.section-dark a {
  color: var(--color-accent);
}
.section-dark a:hover {
  color: #fff;
}

/* ── 6. INTRO-BLOCK COMPONENT ────────────────────────────────
   Eyebrow / heading / lead. Centred by default, .intro-left for
   two-column layouts.                                           */

.intro-block {
  --intro-max-width: 62ch;
  max-width: var(--intro-max-width);
  margin-inline: auto;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  text-align: center;
}
.intro-block.intro-left {
  margin-inline: 0;
  max-width: 100%;
  text-align: left;
}
.intro-lead {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}
.section-dark .intro-lead {
  color: rgba(255, 255, 255, 0.75);
}

/* ── 7. THE CARD ─────────────────────────────────────────────
   The single card style used by every grid on the page: services,
   why-choose, contact panel. White, hairline border, one radius.
   No gradients, no coloured headers, no competing variants.      */

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}
.card:hover {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card h3 {
  margin-bottom: 0.6rem;
}
.card p {
  font-size: 0.94rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

/* Card variant with a horizontal icon (why-choose). Same chrome —
   only the icon's position differs. */
.card-row {
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
}
.card-row .card-body {
  flex: 1;
}

/* ── 8. ICONS ────────────────────────────────────────────────
   One treatment everywhere: a jade stroke SVG inside a mint disc.
   Never more than one colour per icon.                           */

.icon-disc {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--color-mint);
  color: var(--color-brand);
  transition:
    background var(--transition-fast),
    color var(--transition-fast);
}
.icon-disc svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card:hover .icon-disc {
  background: var(--color-brand);
  color: #fff;
}
.card-row .icon-disc {
  margin-bottom: 0;
  width: 44px;
  height: 44px;
}
.card-row .icon-disc svg {
  width: 21px;
  height: 21px;
}

/* Dark-band version */
.icon-disc-dark {
  background: rgba(78, 222, 114, 0.14);
  color: var(--color-accent);
}

/* ── 9. TICK LIST ────────────────────────────────────────────
   Service pillar bullets. The tick is a CSS mask so it inherits
   the single jade colour — no coloured glyphs.                  */

.tick-list {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--color-border);
}
.tick-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--color-text);
}
.tick-list li:last-child {
  margin-bottom: 0;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 16px;
  height: 16px;
  background: var(--color-brand);
  -webkit-mask: var(--tick-mask) center / contain no-repeat;
  mask: var(--tick-mask) center / contain no-repeat;
}
:root {
  --tick-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
}

/* ── 10. HERO ────────────────────────────────────────────────
   Ink→forest gradient over the photograph, so the type stays legible
   whatever image is dropped in behind it. This is the treatment
   carried over from the mockup.                                  */

.hero {
  position: relative;
  padding-block: clamp(48px, 8vw, 76px);
  background-color: var(--color-ink);
  background-image:
    linear-gradient(
      135deg,
      rgba(15, 21, 17, 0.95) 0%,
      rgba(21, 60, 31, 0.88) 100%
    ),
    url("/assets/jade-electrical-hawkes-bay-mobile.jpg");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  color: rgba(255, 255, 255, 0.86);
}
@media (min-width: 600px) {
  .hero {
    background-image:
      linear-gradient(
        135deg,
        rgba(15, 21, 17, 0.95) 0%,
        rgba(21, 60, 31, 0.88) 100%
      ),
      url("/assets/jade-electrical-hawkes-bay.jpg");
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero h1 {
  color: #fff;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2rem;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

/* Trust badge bar */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  list-style: none;
  margin: 0;
}
.trust-bar li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-accent);
}
.trust-bar svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Contact panel — solid, not glass. backdrop-filter renders
   inconsistently and made the mockup's card muddy. */
.hero-panel {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: rgba(21, 32, 24, 0.92);
  border: 1px solid rgba(78, 222, 114, 0.28);
  border-radius: var(--radius);
}
.hero-panel h2 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 1.5rem;
}

/* ── 11. CONTACT LIST ────────────────────────────────────────
   From contact-list.md, retuned to the single icon treatment.    */

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}
.contact-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.contact-item .icon-disc {
  width: 40px;
  height: 40px;
  margin-bottom: 0;
}
.contact-item .icon-disc svg {
  width: 19px;
  height: 19px;
}

.contact-text {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
  min-width: 0;
}
.contact-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}
.contact-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-strong);
  word-break: break-word;
}
a.contact-value {
  color: var(--color-brand);
  text-decoration: none;
}
a.contact-value:hover {
  color: var(--color-brand-hover);
}
.contact-note {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* Dark band (hero panel) */
.contact-list-dark .contact-item {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.contact-list-dark .contact-label {
  color: rgba(255, 255, 255, 0.5);
}
.contact-list-dark .contact-value {
  color: #fff;
}
.contact-list-dark a.contact-value {
  color: var(--color-accent);
}
.contact-list-dark a.contact-value:hover {
  color: #fff;
}
.contact-list-dark .contact-note {
  color: rgba(255, 255, 255, 0.55);
}

/* ── 12. ABOUT ───────────────────────────────────────────────*/

.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 768px) {
  .split-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.split-grid-wide {
  align-items: start;
}
@media (min-width: 1024px) {
  .split-grid-wide {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

/* ── 13. IMAGE PLACEHOLDERS ──────────────────────────────────
   No photography supplied yet. Each slot renders as a soft jade
   panel captioned with the subject to shoot, so nothing appears
   broken and the brief stays visible. Replace the whole element
   with an <img> once real photos arrive.                        */

.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  aspect-ratio: 4 / 3;
  padding: 2rem;
  border: 1px dashed var(--color-brand);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f0f9f2 0%, var(--color-mint) 100%);
  color: var(--color-brand);
  text-align: center;
}
.img-placeholder svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
}
.img-placeholder span {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.5;
  max-width: 32ch;
}

/* ── 14. EMERGENCY STRIP ─────────────────────────────────────*/

.emergency {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}
@media (min-width: 900px) {
  .emergency {
    grid-template-columns: 1fr auto;
    gap: 3rem;
  }
}
.emergency h2 {
  margin-bottom: 0.5rem;
}
.emergency p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 62ch;
  margin-bottom: 0;
}
.emergency-action {
  justify-self: start;
}
@media (min-width: 900px) {
  .emergency-action {
    justify-self: end;
  }
}

.emergency-phone {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  margin-bottom: 0.75rem;
}
.emergency-phone:hover {
  color: var(--color-accent);
}

/* ── 15. SERVICE AREAS ───────────────────────────────────────*/

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}
.area-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--color-text-strong);
}
.area-list svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  stroke: var(--color-brand);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.note-panel {
  padding: 1.25rem 1.5rem;
  background: var(--color-mint);
  border-left: 3px solid var(--color-brand);
  border-radius: var(--radius-sm);
}
.note-panel p {
  font-size: 0.92rem;
  color: var(--color-text);
  margin-bottom: 0;
}

/* ── 16. QUOTE FORM ──────────────────────────────────────────
   From contact-form.md + form-fields.md. Submits via a mailto:
   URL built in jade.js — there is no server-side handler.        */

.quote-form {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.quote-form h3 {
  margin-bottom: 1.5rem;
}

.contact-field {
  --field-focus-ring: rgba(43, 113, 58, 0.18);
  margin-bottom: 1.1rem;
}
.contact-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-strong);
  margin-bottom: 0.35rem;
}
.contact-field .req {
  color: var(--color-brand);
}

.contact-field input,
.contact-field textarea,
.contact-field select {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
  background: var(--color-bg);
  color: var(--color-text-strong);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  appearance: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}
.contact-field input:focus,
.contact-field textarea:focus,
.contact-field select:focus {
  outline: 0;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px var(--field-focus-ring);
}
.contact-field textarea {
  min-height: 110px;
  resize: vertical;
}
.contact-field ::placeholder {
  color: var(--color-text-muted);
  opacity: 1;
}

.contact-field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><polyline points='0,0 5,6 10,0' fill='none' stroke='%235C6B60' stroke-width='2'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
  cursor: pointer;
}

/* Inline validation, driven by jade.js */
.contact-field.has-error input,
.contact-field.has-error textarea,
.contact-field.has-error select {
  border-color: #c0392b;
}
.field-error {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #c0392b;
}
.contact-field.has-error .field-error {
  display: block;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ── 17. FOOTER ──────────────────────────────────────────────*/

footer {
  margin-top: 0;
  padding-block: 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
/* 900px, not 768px: at tablet width the right-justified nav wraps to two
   ragged lines, which reads worse than the stacked layout. */
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: auto 1fr;
    gap: 3rem;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand img {
  width: 46px;
  height: 46px;
  padding: 3px;
  background: var(--logo-disc-bg);
  box-shadow: 0 0 0 1px var(--logo-disc-ring);
  border-radius: 50%;
  object-fit: contain;
}
.footer-name {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.footer-legal {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 900px) {
  .footer-nav {
    justify-content: flex-end;
  }
}
.footer-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2rem 0 1.25rem;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}
.footer-bottom a:hover {
  color: #fff;
}

/* ── 18. ACCESSIBILITY ───────────────────────────────────────*/

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--color-brand);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
  color: #fff;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn:hover,
  .card:hover {
    transform: none;
  }
}
