/* ==========================================================================
   DELSEN landing page - styles.css
   Sections:  1. Brand variables (edit here)   2. Base   3. Layout helpers
              4. Buttons   5. Header   6. Hero   7. Sections
              8. Gallery   9. Floor plans   10. Contact form
              11. Footer   12. Lightbox   13. Placeholders   14. Motion
   ========================================================================== */

/* ==========================================================================
   1. BRAND VARIABLES  (change colours, fonts and spacing here)
   Fonts: only system fonts are used by default. To self-host a licensed font
   (for example Montserrat), put the .woff2 files in assets/fonts/, add an
   @font-face rule below, and keep the name first in the font stacks.
   ========================================================================== */
:root {
  --navy: #142D4E;          /* primary accent */
  --navy-deep: #0D1F37;     /* header on scroll, footer, hover */
  --charcoal: #23272E;      /* headings */
  --slate: #4A5666;         /* body text */
  --line: #DDE2E8;          /* hairlines */
  --tint: #F4F6F8;          /* alternate section background */
  --tab: #C8D2DA;           /* gallery arrow tabs */
  --tab-hover: #B3C0CB;
  --field-border: #7B8794;
  --error: #B3261E;
  --white: #FFFFFF;

  --font-head: "Montserrat", "Avenir Next", "Avenir", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --header-h: 76px;
  --maxw: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 2px;
}

/* ==========================================================================
   2. BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--navy); text-underline-offset: 0.2em; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible, .lightbox :focus-visible { outline-color: var(--white); }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--white); color: var(--navy); padding: 12px 18px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   3. LAYOUT HELPERS
   ========================================================================== */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tint { background: var(--tint); }

/* Section titles: bold first word + light, widely spaced remainder + navy slash */
.title {
  font-family: var(--font-head);
  font-weight: 300;
  text-transform: uppercase;
  color: var(--charcoal);
  font-size: clamp(1.5rem, 1rem + 2.2vw, 2.7rem);
  line-height: 1.25;
  letter-spacing: 0.04em;
  margin-bottom: clamp(32px, 5vw, 64px);
  overflow-wrap: break-word;
}
.title strong { font-weight: 700; letter-spacing: 0.06em; }
.title .light { font-weight: 300; letter-spacing: 0.26em; margin-right: -0.26em; }
.title .slash { color: var(--navy); font-weight: 700; margin-left: 0.5em; letter-spacing: 0; }
.title--center { text-align: center; }
.title--stack strong { display: block; }
.title--stack .light { margin-right: 0; }
.title--stack .slash { margin-left: 0.35em; }
.subhead {
  font-family: var(--font-head); font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--charcoal); margin: 32px 0 12px;
}

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 28px;
  font: 700 0.875rem/1.25 var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; text-align: center; text-decoration: none;
  color: var(--white); background: var(--navy); border: 2px solid var(--navy); border-radius: var(--radius);
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn--outline { background: transparent; color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--light:hover { background: #E6ECF3; border-color: #E6ECF3; }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: 0.8125rem; }
.btn--nav { min-height: 44px; padding: 10px 20px; font-size: 0.8125rem; background: transparent; color: var(--white); border-color: var(--white); }
.btn--nav:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
/* REVISION 7: extra breathing room between the note above and these two
   buttons, so they don't crowd the text. */
.featured__details .btn-row { margin-top: 14px; }

/* ==========================================================================
   5. HEADER
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--white);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-solid, .site-header.menu-open { background: var(--navy-deep); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.wordmark {
  font-family: var(--font-head); font-weight: 700; font-size: 1.375rem; letter-spacing: 0.32em;
  color: var(--white); text-decoration: none; line-height: 1; margin: 0; padding: 8px 0;
  display: inline-flex; align-items: center; min-height: 44px;
}
/* REVISION 1: the wordmark is now the DELSEN logo (white PNG on transparent).
   The logo already carries the raised D and S, so no type treatment is applied.
   White artwork relies on the header/footer staying dark. */
.wordmark img { display: block; height: 24px; width: auto; }
.wordmark--footer img { height: 26px; }
@media (max-width: 420px) { .wordmark img { height: 20px; } }
/* REVISION 7: header logo (not footer) ~10% smaller on small phones so it has more breathing room */
@media (max-width: 420px) { .wordmark:not(.wordmark--footer) img { height: 18px; } }

.header-tools { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; align-items: center; color: rgba(255,255,255,.8); }
.lang button {
  min-width: 44px; min-height: 44px; padding: 0 6px; background: none; border: 0; cursor: pointer;
  font: 600 0.8125rem var(--font-head); letter-spacing: 0.1em; color: rgba(255,255,255,.85);
}
.lang button[aria-pressed="true"] { color: var(--white); font-weight: 800; text-decoration: underline; text-underline-offset: 0.45em; text-decoration-thickness: 2px; }
.lang button:hover { color: var(--white); }

.menu-toggle { width: 48px; height: 48px; padding: 0; background: none; border: 0; cursor: pointer; color: var(--white); position: relative; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  position: absolute; left: 12px; width: 24px; height: 2px; background: currentColor; transition: transform .25s, background-color .25s;
}
.menu-toggle__bars { top: 23px; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; left: 0; }
.menu-toggle__bars::before { top: -8px; }
.menu-toggle__bars::after { top: 8px; }
.menu-open .menu-toggle__bars { background: transparent; }
.menu-open .menu-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

/* Mobile / tablet: dropdown panel */
.primary-nav {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--navy-deep); padding: 8px var(--gutter) 28px; max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
}
.menu-open .primary-nav { display: block; }
.primary-nav ul { margin-bottom: 20px; }
.primary-nav li a {
  display: flex; align-items: center; min-height: 52px; color: var(--white); text-decoration: none;
  font: 600 0.9375rem var(--font-head); letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.14);
}
.primary-nav .btn--nav { display: flex; width: 100%; }

@media (min-width: 1120px) {
  .header-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; }
  .menu-toggle { display: none; }
  .primary-nav { display: flex; position: static; background: none; padding: 0; max-height: none; overflow: visible; align-items: center; justify-content: flex-end; gap: 32px; }
  .primary-nav ul { display: flex; gap: 32px; margin: 0; }
  .primary-nav li a { min-height: 44px; border: 0; border-bottom: 2px solid transparent; font-size: 0.8125rem; transition: border-color .2s; }
  .primary-nav li a:hover { border-bottom-color: var(--white); }
  .primary-nav .btn--nav { display: inline-flex; width: auto; }
}

/* ==========================================================================
   6. HERO
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; display: grid; place-items: center; text-align: center;
  min-height: max(560px, 100svh); padding-block: calc(var(--header-h) + 48px) 72px; color: var(--white); background: var(--navy-deep);
}
.hero .hero__media { position: absolute; inset: 0; z-index: -2; background: var(--navy-deep); }
.hero .hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }  /* .hero prefix beats the generic .media rule */
.hero .hero__slide.is-active { opacity: 1; }
.hero__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 55%; }
.hero #hero-slide-1 img { object-position: 62% 50%; }   /* keeps the tallest towers in frame when the wide skyline is cropped */
.hero__arrow {
  position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 56px; height: 72px; padding: 0;
  display: grid; place-items: center; background: none; border: 0; color: var(--white); cursor: pointer; opacity: 0.85; transition: opacity .2s;
}
.hero__arrow:hover { opacity: 1; }
.hero__arrow--prev { left: clamp(4px, 2vw, 32px); }
.hero__arrow--next { right: clamp(4px, 2vw, 32px); }
@media (max-width: 719px) {
  .hero { padding-bottom: 104px; }
  /* REVISION 7: arrows were pinned to the bottom edge and oversized; now ~55%
     smaller and vertically centered with the hero content (around the
     "Real Estate Development | Tampa Bay, FL" line) instead of dropping low. */
  .hero__arrow { width: 25px; height: 32px; }
}
/* Hero overlay: tinted with the exact --navy-deep hue (13,31,55) rather than a
   near-black blue, so the overlaid photo stays in the same colour family as the
   solid header and footer. Slightly denser at the top, where the header sits. */
/* REVISION 7: overlay lightened ~25% (same navy hue, lower opacity) so the
   photo reads brighter while the header/footer colour match is kept. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom,
      rgba(13, 31, 55, 0.66) 0,
      rgba(13, 31, 55, 0.57) 180px,
      rgba(13, 31, 55, 0.54) 100%);
}
.hero h1 {
  font-family: var(--font-head); font-weight: 300; text-transform: uppercase; letter-spacing: 0.12em; padding-left: 0.12em;
  font-size: clamp(2.1rem, 0.9rem + 6.2vw, 5.4rem); line-height: 1.14; text-wrap: balance; overflow-wrap: break-word;
}
.hero__lead { max-width: 40rem; margin: 28px auto 40px; font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem); line-height: 1.6; }
.hero .btn-row { justify-content: center; }

/* ==========================================================================
   7. SECTIONS: What we do / About / Featured home
   ========================================================================== */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 72px); }
.col { border-top: 1px solid var(--line); padding-top: 28px; }
/* REVISION 3: What We Do column headers — serif font for visual differentiation */
.col h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1.1875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--charcoal); margin-bottom: 14px; overflow-wrap: break-word; }
.col p { max-width: 34ch; }
@media (max-width: 799px) { .cols { grid-template-columns: 1fr; gap: 36px; } .col p { max-width: none; } }

.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__image { aspect-ratio: 6 / 5; }
.about__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.about__text .title { margin-bottom: 28px; }
.about__text p { max-width: 62ch; margin-bottom: 1.1em; }
/* REVISION 4: "Stay connected" line styling */
.about__stay { margin-top: 24px; margin-bottom: 1.1em; }
.about__text .btn { margin-top: 12px; }
@media (max-width: 899px) { .about { grid-template-columns: 1fr; } }

.featured { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "gallery" "details"; }
.featured__head { grid-area: head; }
.featured__head .title { margin-bottom: 20px; }
.featured .gallery { grid-area: gallery; }
.featured__details { grid-area: details; }
@media (min-width: 1000px) {
  .featured { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: clamp(40px, 5vw, 80px); grid-template-areas: "head gallery" "details gallery"; }
}
/* REVISION 7: thinner, lighter-weight outline so this reads as a status tag,
   not a button. */
.status {
  display: inline-block; border: 1px solid rgba(20, 45, 78, 0.45); color: var(--navy); padding: 4px 12px;
  font: 600 0.6875rem/1.3 var(--font-head); letter-spacing: 0.12em; text-transform: uppercase;
}
.specs { border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--slate); }
.specs dd { color: var(--charcoal); font-weight: 600; text-align: right; }
.features li { position: relative; padding: 4px 0 4px 22px; }
.features li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 10px; height: 2px; background: var(--navy); }
/* REVISION 5: Featured Home note — Sabon-style old-style serif, set larger.
   Sabon itself is a licensed Linotype face; EB Garamond is the closest free
   web equivalent (both are Garamond revivals). If DELSEN licenses Sabon, it
   is already first in the stack and will take over automatically. */
.note {
  margin: 26px 0;
  font-family: "Sabon", "Sabon Next LT", "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.5;
  padding-left: 18px;
  border-left: 2px solid var(--navy);
  color: var(--charcoal);
}

/* ==========================================================================
   8. GALLERY
   ========================================================================== */
.gallery__open { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery__media { aspect-ratio: 3 / 2; }
.gallery__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; transition: opacity .25s ease; }
.gallery.is-fading .gallery__media img { opacity: 0; }
.gallery__hint {
  position: absolute; right: 12px; bottom: 12px; background: rgba(13,31,55,.82); color: var(--white);
  padding: 6px 12px; font: 700 0.75rem var(--font-head); letter-spacing: 0.1em; text-transform: uppercase;
}
.gallery__meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: 0.9375rem; }
.gallery__count { white-space: nowrap; }
.gallery__strip { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 12px; margin-top: 12px; align-items: stretch; }
.tab { display: grid; place-items: center; min-height: 48px; background: var(--tab); color: var(--navy); border: 0; cursor: pointer; transition: background-color .2s; }
.tab:hover { background: var(--tab-hover); }
.thumbs { display: flex; justify-content: center; gap: 10px; }
.thumbs li { flex: 0 1 120px; min-width: 0; }
.thumb { display: block; width: 100%; padding: 0; background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer; opacity: 0.7; transition: opacity .2s, border-color .2s; }
.thumb:hover { opacity: 1; }
.thumb[aria-current="true"] { opacity: 1; border-bottom-color: var(--navy); }
.thumb .media { aspect-ratio: 3 / 2; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   9. FLOOR PLANS
   ========================================================================== */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 759px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--white); border: 1px solid var(--line); }
.plan__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.plan .media img { display: block; width: 100%; height: auto; }   /* shown at true proportions, never cropped */
.plan figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 16px 20px; border-top: 1px solid var(--line); font-family: var(--font-head); font-weight: 600; color: var(--charcoal); }
.plan__na { font: 400 0.875rem var(--font-body); color: var(--slate); }

/* ==========================================================================
   10. CONTACT FORM
   ========================================================================== */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
@media (max-width: 899px) { .contact { grid-template-columns: 1fr; } }
.contact__intro p { max-width: 46ch; }
.rep { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.rep[hidden] { display: none; }
.rep__label { font: 700 0.8125rem var(--font-head); letter-spacing: 0.1em; text-transform: uppercase; color: var(--charcoal); }
.rep__name { font-weight: 700; color: var(--charcoal); }
.form__req { font-size: 0.9375rem; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 639px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--charcoal); }
.req { color: var(--navy); }
.opt { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; color: var(--charcoal);
  background: var(--white); border: 1px solid var(--field-border); border-radius: var(--radius);
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23142D4E' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field__error { color: var(--error); font-size: 0.9375rem; font-weight: 600; margin-top: 6px; }
.field__error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { margin-top: 28px; }
.form__actions .btn { min-width: 220px; }
.form__status { margin-top: 20px; padding: 14px 16px; border-left: 4px solid var(--navy); background: var(--tint); color: var(--charcoal); font-weight: 600; }
.form__status[hidden] { display: none; }
.form__status--preview { border-color: #8A5A00; background: #FFF6E0; }
.form__status--success { border-color: #1F6B3A; background: #EAF5EE; }
.form__status--error { border-color: var(--error); background: #FCEDEC; color: #7A1912; }

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.site-footer { background: var(--navy-deep); color: #D5DDE7; padding-block: 56px 40px; font-size: 0.9375rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 32px 48px; align-items: start; }
.wordmark--footer { padding: 0 0 10px; display: block; }
.footer__nav ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer__nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: #D5DDE7; text-decoration: none; }
.footer__nav a:hover { color: var(--white); text-decoration: underline; }
.footer__legal { text-align: right; }
.credit { margin-top: 6px; font-size: 0.8125rem; color: #AAB6C5; }
@media (max-width: 899px) { .footer__grid { grid-template-columns: 1fr; } .footer__legal { text-align: left; } }

/* ==========================================================================
   12. LIGHTBOX
   ========================================================================== */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(8, 16, 28, 0.98); color: var(--white);
}
.lightbox:not([open]) { display: none; }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.lightbox__bar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 12px 16px; }
.lightbox__count { margin-right: auto; font-size: 0.9375rem; }
.lb-btn { min-height: 44px; padding: 0 18px; background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius); cursor: pointer; font: 700 0.8125rem var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; }
.lb-btn:hover { background: var(--white); color: var(--navy-deep); }
.lb-btn[hidden] { display: none; }
.lightbox__stage { overflow: auto; display: grid; place-items: center; padding: 0 64px 20px; min-height: 0; }
.lightbox__fig { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 100%; }
.lightbox__fig img { display: block; max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; background: #fff; }
.lightbox__fig img.is-zoomed { max-width: none; max-height: none; cursor: zoom-out; }
.lightbox__fig figcaption { font-size: 0.9375rem; text-align: center; }
.lightbox__missing { padding: 48px 32px; border: 1px dashed rgba(255,255,255,.6); text-align: center; max-width: 40ch; }
.lightbox__missing[hidden] { display: none; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; display: grid; place-items: center; background: rgba(200,210,218,.95); color: var(--navy); border: 0; cursor: pointer; z-index: 2; }
.lb-nav:hover { background: var(--white); }
.lb-nav[hidden] { display: none; }
.lb-nav--prev { left: 8px; }
.lb-nav--next { right: 8px; }
@media (max-width: 599px) { .lightbox__stage { padding: 0 8px 72px; } .lb-nav { top: auto; bottom: 12px; transform: none; height: 48px; } .lb-nav--prev { left: calc(50% - 56px); } .lb-nav--next { right: calc(50% - 56px); } }

/* ==========================================================================
   13. PLACEHOLDERS (shown automatically when an image file is missing)
   ========================================================================== */
.media { position: relative; display: block; overflow: hidden; background: #E8ECF0; }
.media img { display: block; }
.media__ph { display: none; }
.media.is-missing { aspect-ratio: var(--ar, 3 / 2); background: repeating-linear-gradient(135deg, #E8ECF0 0 14px, #DFE5EB 14px 28px); }
.media.is-missing img { display: none; }
.media.is-missing .media__ph {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center;
  font: 600 0.875rem/1.4 var(--font-body); color: var(--slate); overflow-wrap: anywhere;
}
.hero .hero__slide.is-missing { aspect-ratio: auto; background: var(--navy-deep); }
.hero__slide.is-missing .media__ph { color: #B8C4D2; place-items: end center; padding-bottom: 24px; }
.thumb .media.is-missing .media__ph { font-size: 0; }

/* ==========================================================================
   14. MOTION PREFERENCES
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

/* Stacked buttons on phones: more air between them */
@media (max-width: 719px) { .btn-row { row-gap: 24px; } }
