/* ============================================================
   EDV Photography — styles.css
   Mobile-first. One stylesheet, no frameworks.

   Contents
   1. Design tokens
   2. Base & typography
   3. Layout primitives (container, section, section head)
   4. Buttons & links
   5. Header / navigation
   6. Hero
   7. Services
   8. Portfolio (masonry)
   9. About
   10. Reviews
   11. Contact
   12. Footer
   13. WhatsApp floating action button
   14. Lightbox
   15. Accessibility & reduced motion
   ============================================================ */


/* ---------- 1. Design tokens ---------- */

:root {
  /* Palette */
  --color-bg:          #FFFFFF;
  --color-bg-alt:      #FAFAFA;
  --color-ink:         #111111;
  --color-ink-soft:    #333333;
  --color-gold:        #C8A55A; /* decorative only — never body text on light bg */
  --color-gold-ink:    #8A6B2D; /* darkened gold, 4.9:1 on white — safe for small text */
  --color-navy:        #0B2341;
  --color-line:        #E8E6E1;

  /* Type. Google Fonts serves Source Sans Pro as "Source Sans 3". */
  --font-display: "Playfair Display", Georgia, serif;
  --font-accent:  "Cormorant Garamond", Georgia, serif;
  --font-body:    "Source Sans 3", "Source Sans Pro", Inter, system-ui, sans-serif;

  /* Spacing scale (8px base) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;

  --container: 1240px;
  --container-wide: 1400px;
  --nav-height: 68px;

  --ease: cubic-bezier(0.33, 1, 0.68, 1);
}


/* ---------- 2. Base & typography ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-ink-soft);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-ink);
  line-height: 1.15;
  margin: 0 0 var(--space-2);
}

p { margin: 0 0 var(--space-2); }

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

.accent-italic {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.08em;
}


/* ---------- 3. Layout primitives ---------- */

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

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

.section { padding-block: var(--space-8); }        /* 64px mobile */
.section-alt { background: var(--color-bg-alt); }

.section-head {
  max-width: 640px;
  margin: 0 auto var(--space-6);
  text-align: center;
}

.section-head-left {
  margin-inline: 0;
  margin-bottom: var(--space-3);
  text-align: left;
}

/* Eyebrow: the aperture mark + small-caps label — the recurring signature */
.eyebrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--space-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold-ink);
}

.section-head-left .eyebrow { align-items: flex-start; }

.eyebrow-mark { color: var(--color-gold); }

.section-title {
  font-size: clamp(30px, 6vw, 32px);
  margin-bottom: var(--space-2);
}

.section-lead {
  font-size: 17px;
  color: var(--color-ink-soft);
  margin-bottom: 0;
}


/* ---------- 4. Buttons & links ---------- */

.button {
  display: inline-block;
  padding: 14px 34px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease),
              border-color 200ms var(--ease);
}

/* Gold buttons carry navy text — gold-on-white fails contrast, navy-on-gold passes. */
.button-gold {
  background: var(--color-gold);
  color: var(--color-navy);
}

.button-gold:hover { background: #B99244; }

.button-outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.button-outline:hover {
  background: var(--color-navy);
  color: #FFFFFF;
}


/* ---------- 5. Header / navigation ---------- */

.skip-link {
  position: absolute;
  top: -72px;
  left: var(--space-2);
  z-index: 200;
  padding: 10px 18px;
  background: var(--color-navy);
  color: #FFFFFF;
  text-decoration: none;
  transition: top 150ms var(--ease);
}

.skip-link:focus { top: var(--space-1); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* The supplied lockup is wide (~1.84:1); height drives the size, width follows. */
.logo-img { height: 46px; width: auto; }

/* Mobile menu toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.nav-toggle-box {
  position: relative;
  width: 22px;
  height: 12px;
}

.nav-toggle-line,
.nav-toggle-box::before,
.nav-toggle-box::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--color-ink);
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}

.nav-toggle-box::before { top: 0; }
.nav-toggle-line        { top: 50%; transform: translateY(-50%); }
.nav-toggle-box::after  { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle-box::before {
  transform: translateY(5.25px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box::after {
  transform: translateY(-5.25px) rotate(-45deg);
}

/* Menu: dropdown panel on mobile, inline row on desktop */
.nav-menu {
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  margin: 0;
  padding: var(--space-2) var(--space-3) var(--space-3);
  list-style: none;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
  display: none;
}

.nav-menu.is-open { display: block; }

.nav-link {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-line);
}

.nav-menu li:last-child .nav-link { border-bottom: none; }

.nav-link:hover { color: var(--color-gold-ink); }

.nav-link.is-active { color: var(--color-gold-ink); }


/* ---------- 6. Hero ---------- */

.hero {
  position: relative;
  /* vh on a phone means the viewport with the browser chrome HIDDEN, so a vh
     hero is taller than what you can actually see on load and then resizes as
     the address bar retracts. svh is the small (chrome-visible) viewport, which
     stays put. The vh line is the fallback for anything without svh. */
  min-height: 70vh;
  min-height: 70svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Two covers stacked in the same box, crossfading on a 14s loop — 6.3s held,
   0.7s fade, each. The second carries a negative delay so it starts halfway
   through the cycle: at t=0 it is already at 50% (transparent), so the first
   frame is the horses with no flash of the second image.
   Reduced-motion is handled in section 15 — it must switch the animation off
   entirely, not merely shorten it. */
/* .hero-image is now a <picture> wrapper; the <img> inside does the covering. */
.hero-image {
  position: absolute;
  inset: 0;
  display: block;
  animation: hero-crossfade 14s ease-in-out infinite;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image--2 { animation-delay: -7s; }

@keyframes hero-crossfade {
  0%, 45%  { opacity: 1; }
  50%, 95% { opacity: 0; }
  100%     { opacity: 1; }
}

/* Darker through the middle than it looks like it needs to be. White text over
   the canola cover — a very bright yellow — sat at roughly 3.4:1 against the old
   0.35 midpoint, which fails AA for the kicker and tagline. At 0.55 it is ~6.4:1
   and passes for every size on both covers. */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6, 16, 30, 0.80) 0%, rgba(6, 16, 30, 0.55) 45%, rgba(6, 16, 30, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-8) var(--space-3);
  color: #FFFFFF;
}

.hero-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}

.hero-title {
  font-size: clamp(38px, 9vw, 44px);
  color: #FFFFFF;
  margin-bottom: 10px;
}

.hero-tagline {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(20px, 5vw, 24px);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: var(--space-4);
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--color-gold);
  opacity: 0.9;
  transition: opacity 200ms var(--ease), transform 400ms var(--ease);
}

.hero-scroll:hover {
  opacity: 1;
  transform: translateX(-50%) rotate(45deg);
}


/* Starting-price note under the Services heading. Echoes the service card's
   gold top rule so it reads as part of the same family. */
.price-note {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin: var(--space-3) 0 0;
  padding: 10px 24px;
  border: 1px solid var(--color-line);
  border-top: 2px solid var(--color-gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink);
}

/* Travel fee. Deliberately stated up front with the prices rather than left to
   surface later in a quote. */
.price-fineprint {
  margin: var(--space-2) 0 0;
  font-size: 14px;
  color: var(--color-ink-soft);
}

.price-note strong {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--color-gold-ink);
}


/* ---------- 7. Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-top: 2px solid var(--color-gold);
}

/* Optional banner. Sources are a mix of portrait and landscape, so the frame
   fixes the ratio and object-fit crops to it.

   The frame is 4:5, deliberately taller than the photographs are wide. Four of
   the six sources are portrait orientation, and a 3:2 frame keeps only ~44% of
   a portrait image's height — enough for a face, never for a figure. At 4:5 a
   portrait source keeps ~83%, so most of the subject survives the crop.

   --focus   moves the crop vertically: the point of the photo held at the same
             point of the frame. 0 pins it to the top, which is what a subject
             with raised arms or a tiara needs.
   --focus-x does the same horizontally, and matters for the landscape sources —
             they keep only ~53% of their width in this frame. */
.service-banner {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: var(--focus-x, center) var(--focus, 50%);
  transition: transform 400ms var(--ease);
}

.service-card:hover .service-banner { transform: scale(1.03); }

/* Body flexes so the Schedule button sits on the baseline across the row,
   whether or not the card above it has a photograph. */
.service-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: var(--space-4);
}

.service-title { font-size: 22px; }

/* "From R___" line, sitting directly under the service name so the price is
   read together with what it buys rather than hunted for at the card's foot.
   Same type treatment as .price-note under the Services heading. */
.service-price {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

/* Tier breakdown under the headline price. "From R450" alone invites the
   question this line answers, so it is worth the space. */
.service-tiers {
  margin: 0 0 var(--space-2);
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-ink-soft);
}

.service-price strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--color-gold-ink);
}

.service-copy { flex-grow: 1; font-size: 16px; }

.service-link {
  align-self: flex-start;
  padding: 4px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-navy);
  border-bottom: 1px solid var(--color-gold);
  transition: color 200ms var(--ease);
}

.service-link:hover { color: var(--color-gold-ink); }

.link-arrow { color: var(--color-gold-ink); }


/* ---------- 8. Portfolio (masonry) ---------- */

.masonry {
  column-count: 1;
  column-gap: 10px;
}

.masonry-item {
  position: relative;
  margin: 0 0 10px;
  break-inside: avoid;
  overflow: hidden;
  background: var(--color-bg-alt);
  cursor: zoom-in;
}

.masonry-item img { width: 100%; }

/* Hover: gentle darkening + caption reveal. Plain CSS transition only. */
.masonry-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 35, 65, 0.38);
  opacity: 0;
  transition: opacity 200ms var(--ease);
  pointer-events: none;
}

.masonry-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FFFFFF;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
  pointer-events: none;
}

.masonry-item:hover::after,
.masonry-item:focus-within::after { opacity: 1; }

.masonry-item:hover .masonry-caption,
.masonry-item:focus-within .masonry-caption {
  opacity: 1;
  transform: translateY(0);
}


/* ---------- 9. About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  /* Copy runs long, so top-align rather than centring a short portrait
     against a tall column of text. */
  align-items: start;
}

.about-portrait {
  margin: 0;
  max-width: 420px;
}

/* A quiet nod to a print mat: thin gold keyline offset around the portrait */
.about-portrait img {
  border: 1px solid var(--color-line);
  outline: 1px solid var(--color-gold);
  outline-offset: 6px;
}

/* Scripture pull-quote: gold keyline + the accent italic used for taglines,
   so it reads as a quotation rather than another body paragraph. */
.about-verse {
  margin: var(--space-3) 0;
  padding: 2px 0 2px var(--space-3);
  border-left: 2px solid var(--color-gold);
}

.about-verse p {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 21px;
  line-height: 1.5;
  color: var(--color-ink);
  margin-bottom: 8px;
}

.about-verse cite {
  display: block;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold-ink);
}

/* Closing line — echoes the hero tagline's voice */
.about-signoff {
  margin: var(--space-3) 0 0;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 25px;
  color: var(--color-gold-ink);
}

.about-copy .button { margin-top: var(--space-3); }


/* ---------- 10. Reviews ---------- */

/* Built around having one review. A lone card in a three-column grid reads as
   a gap where two more should be; centred and given room, it reads as a chosen
   feature quote instead. The row layout below takes over once there are two. */
.review-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  max-width: 820px;
  margin-inline: auto;
}

.review {
  margin: 0;
  padding: var(--space-4);
  text-align: center;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-top: 2px solid var(--color-gold);
}

.review-mark {
  display: block;
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 0.6;
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}

.review-quote {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(20px, 3.2vw, 25px);
  line-height: 1.55;
  color: var(--color-ink);
  margin-bottom: 0;
}

.review-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-line);
}

.review-name {
  font-style: normal;
  font-weight: 600;
  color: var(--color-ink);
}

.review-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold-ink);
}


/* ---------- 11. Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.contact-aside-title {
  font-size: 24px;
}

.contact-aside-copy { max-width: 40ch; }

.social-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-ink);
  transition: color 200ms var(--ease);
}

.social-link svg { color: var(--color-gold-ink); }

.social-link:hover { color: var(--color-gold-ink); }

/* Form */
.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-field label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.label-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-ink-soft);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-ink);
  background: var(--color-bg);
  border: 1px solid #C9C7C1;
  border-radius: 0;
  transition: border-color 150ms var(--ease);
}

.form-field textarea { resize: vertical; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-navy);
  outline-offset: 1px;
  border-color: var(--color-navy);
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: #A33A2B; }

.form-error {
  margin: 0;
  font-size: 14px;
  color: #A33A2B;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.form-status {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.form-status.is-success { color: #2C6E49; }
.form-status.is-error   { color: #A33A2B; }


/* ---------- 12. Footer ---------- */

.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.85);
  padding-block: var(--space-6);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
}

.logo-img-footer { height: 84px; }

.footer-tagline {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 19px;
  color: var(--color-gold);
  margin: 0;
}

.social-list-footer {
  flex-direction: row;
  justify-content: center;
  gap: var(--space-2);
  margin-top: 0;
}

.social-list-footer .social-link { color: rgba(255, 255, 255, 0.85); padding: 6px; }
.social-list-footer .social-link svg { color: var(--color-gold); }
.social-list-footer .social-link:hover { color: #FFFFFF; }

.footer-copy {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}


/* ---------- 13. WhatsApp floating action button ---------- */

.whatsapp-fab {
  position: fixed;
  right: var(--space-3);
  /* env() keeps it clear of the iOS home indicator; the fallback covers
     every browser that does not support safe-area insets. */
  bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  /* Above the sticky header (100), below the lightbox (300). */
  z-index: 150;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  /* WhatsApp green: this is a utility control, and the familiar colour is
     what makes it read as "message me" at a glance. Swap for
     var(--color-navy) if it should sit quieter against the palette. */
  background: #25D366;
  color: #FFFFFF;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(11, 35, 65, 0.28);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 26px rgba(11, 35, 65, 0.34);
}

.whatsapp-fab svg { display: block; }


/* ---------- 14. Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 18, 0.94);
  padding: var(--space-3);
}

.lightbox[hidden] { display: none; }

.lightbox-stage {
  margin: 0;
  max-width: min(1100px, 92vw);
  text-align: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  margin-inline: auto;
}

.lightbox-caption {
  margin-top: var(--space-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  font-size: 20px;
  line-height: 1;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: border-color 150ms var(--ease), color 150ms var(--ease);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.lightbox-close { top: var(--space-2); right: var(--space-2); }
.lightbox-prev  { left: var(--space-2);  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: var(--space-2); top: 50%; transform: translateY(-50%); }


/* ---------- 15. Accessibility & reduced motion ---------- */

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

.site-footer :focus-visible,
.lightbox :focus-visible {
  outline-color: var(--color-gold);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  /* The hero crossfade must be switched OFF, not shortened. The blanket rule
     above would run its 14s loop in 0.01ms — a rapid strobe, which is exactly
     what someone asking for reduced motion needs least. Hold the first cover
     still instead. */
  .hero-image {
    animation: none !important;
    opacity: 0;
  }

  .hero-image--1 { opacity: 1; }
}


/* ============================================================
   Responsive scale-up (mobile-first min-width queries)
   ============================================================ */

/* ~480px — small phones landscape / large phones */
@media (min-width: 480px) {
  .masonry { column-count: 2; }
}

/* ~768px — tablets */
@media (min-width: 768px) {
  .section { padding-block: var(--space-12); }      /* 96px */

  .section-title { font-size: clamp(34px, 4vw, 40px); }

  .hero { min-height: 80vh; min-height: 80svh; }
  .hero-title { font-size: clamp(48px, 7vw, 60px); }

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

  /* Two or more reviews break into a row and drop to body-ish quote size.
     A single review is untouched by this and stays a centred feature quote. */
  .review-list:has(.review + .review) {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: var(--container);
  }

  .review-list:has(.review + .review) .review { padding: var(--space-3); }
  .review-list:has(.review + .review) .review-quote { font-size: 19px; }
  .review-list:has(.review + .review) .review-mark { font-size: 52px; }

  .about-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-8);
  }

  .contact-form { grid-template-columns: repeat(2, 1fr); }
  .form-field-full { grid-column: 1 / -1; }

  .contact-grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: var(--space-8);
  }
}

/* ~1024px — laptops: nav switches to inline row */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }

  .nav-menu {
    position: static;
    display: flex;
    gap: var(--space-4);
    padding: 0;
    background: none;
    border-bottom: none;
  }

  .nav-link {
    position: relative;
    padding: 6px 0;
    font-size: 14px;
    border-bottom: none;
  }

  /* Gold underline slides in on hover / active section */
  .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1.5px;
    background: var(--color-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 200ms var(--ease);
  }

  .nav-link:hover::after,
  .nav-link.is-active::after { transform: scaleX(1); }

  .masonry { column-count: 3; }

  .services-grid { grid-template-columns: repeat(3, 1fr); }

  .hero { min-height: 86vh; min-height: 86svh; }
}

/* ~1280px — desktops */
@media (min-width: 1280px) {
  .section { padding-block: 128px; }
  .hero-title { font-size: clamp(56px, 5vw, 72px); }
}

/* ~1600px+ — wide screens */
@media (min-width: 1600px) {
  .container-wide { max-width: 1520px; }
  .masonry { column-count: 4; }
}
