/* ==========================================================================
   Harriet Shaw Fitness — site styles
   Layout: left-aligned studio pages. Photos sit on offset sky-blue blocks;
   orange is kept for actions and the "four places per class" marker.
   Colours are the original brand palette (sky blue, orange, charcoal, grey).
   ========================================================================== */

:root {
  /* Brand colours (unchanged from the original site) */
  --sky: #C7EAFB;          /* primary — big calm fields, footer */
  --sky-tint: #EAF7FD;     /* pale tint of the primary for page headers */
  --orange: #F7931E;       /* accent — buttons and markers only */
  --orange-hover: #E8850F;
  --orange-text: #A85800;  /* orange that is readable as small text on white */
  --ink: #333333;          /* headings, dark band */
  --text: #4B5257;         /* running text (slightly deeper than the old #747474 for legibility) */
  --muted: #747474;        /* captions and meta on white only */
  --paper: #FFFFFF;
  --mist: #F6F6F6;
  --line: #DCE6EB;

  /* Type */
  --display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Space */
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --section: clamp(64px, 9vw, 120px);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 1.3rem + 3.6vw, 3.75rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.85rem, 1.3rem + 2vw, 2.65rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.prose > * + * { margin-top: 1em; }
.prose { max-width: 62ch; }

a { color: var(--ink); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--orange-text); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); overflow-x: hidden; overflow-x: clip; }
.lede { font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.4rem); line-height: 1.55; color: var(--text); max-width: 46ch; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; font-family: var(--display); font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 52px; padding: 0 26px;
  font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: 0.005em;
  border: 2px solid transparent; border-radius: 3px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--orange-hover); color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { border-color: #fff; color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.wordmark {
  font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.01em;
  color: var(--ink); text-decoration: none; white-space: nowrap; line-height: 1;
}
.wordmark:hover { color: var(--ink); }
.wordmark span { margin-left: 0.32em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 10px 13px;
  font-family: var(--display); font-weight: 600; font-size: 0.95rem;
  color: var(--ink); text-decoration: none;
  box-shadow: inset 0 -3px 0 transparent;
  transition: box-shadow .15s ease;
}
.nav-links a:hover { box-shadow: inset 0 -3px 0 var(--sky); color: var(--ink); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); }
.nav .btn { min-height: 46px; padding: 0 20px; margin-left: 10px; font-size: 0.95rem; }
.menu-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 14px; background: transparent; border: 2px solid var(--ink); border-radius: 3px;
  font-family: var(--display); font-weight: 700; font-size: 0.95rem; color: var(--ink); cursor: pointer;
}
.menu-toggle-bars { width: 18px; height: 12px; position: relative; }
.menu-toggle-bars::before, .menu-toggle-bars::after, .menu-toggle-bars i {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle-bars::before { top: 0; }
.menu-toggle-bars i { top: 5px; }
.menu-toggle-bars::after { bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars i { opacity: 0; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links a { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); box-shadow: none; }
  .nav-links a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--orange); padding-left: 16px; }
  .nav .btn { margin: 18px 0 0; min-height: 54px; }
}
@media (max-width: 420px) {
  .wordmark { font-size: 1.08rem; }
  .menu-toggle-label { display: none; }
}

/* ---------- Four places marker ---------- */
.places { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.places-marks { display: flex; gap: 5px; }
.places-marks i {
  display: block; width: 26px; height: 10px; border-radius: 2px;
  background: var(--orange);
}
.hero .places-marks i { animation: place-fill .5s ease both; }
.hero .places-marks i:nth-child(1) { animation-delay: .35s; }
.hero .places-marks i:nth-child(2) { animation-delay: .5s; }
.hero .places-marks i:nth-child(3) { animation-delay: .65s; }
.hero .places-marks i:nth-child(4) { animation-delay: .8s; }
@keyframes place-fill {
  from { background: transparent; box-shadow: inset 0 0 0 2px var(--orange); }
  to { background: var(--orange); box-shadow: inset 0 0 0 2px var(--orange); }
}

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 112px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 26px; }
.hero h1 { max-width: 15ch; font-size: clamp(2.3rem, 1.2rem + 3.4vw, 3.5rem); }
.hero-photo { position: relative; margin: 0; isolation: isolate; }
.hero-photo::before {
  content: ""; position: absolute; z-index: -1;
  top: 14%; bottom: -10%; left: 16%; right: -100vw;
  background: var(--sky);
}
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; animation: hero-in .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes hero-in { from { transform: translateX(28px); } to { transform: none; } }
.hero-photo figcaption { margin-top: 14px; font-family: var(--display); font-size: 0.85rem; color: var(--ink); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .hero-photo { margin-right: calc(var(--gutter) * -1); }
  .hero-photo::before { left: 22%; top: 18%; bottom: -8%; }
}

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--sky-tint); padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 72px); }
.page-head .wrap { display: grid; gap: 18px; }
.page-head h1 { position: relative; padding-bottom: 22px; }
.page-head h1::after { content: ""; position: absolute; left: 0; bottom: 0; width: 75px; height: 4px; background: var(--orange); }

/* ---------- Bands ---------- */
.band-sky { background: var(--sky); }
.band-mist { background: var(--mist); }
.band-ink { background: var(--ink); color: #E9EEF1; }
.band-ink h2, .band-ink h3 { color: #fff; }
.band-ink a:not(.btn) { color: #fff; }
.band-ink a:not(.btn):hover { color: var(--sky); }

.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 60px); max-width: 720px; }

/* ---------- Reformer feature ---------- */
.reformer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.reformer-copy { display: grid; gap: 24px; align-content: start; }
.reformer-copy .tag {
  justify-self: start; font-family: var(--display); font-weight: 700; font-size: 0.85rem;
  background: var(--ink); color: #fff; padding: 6px 12px; border-radius: 2px;
}
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.benefits li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: baseline; }
.benefits li::before { content: ""; width: 22px; height: 8px; border-radius: 2px; background: var(--orange); transform: translateY(-2px); }
.benefits strong { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 1rem; display: block; }

.mosaic { display: grid; grid-template-columns: 3fr 2fr; grid-template-rows: 1fr 1fr; gap: 10px; }
.mosaic a, .mosaic figure { margin: 0; display: block; overflow: hidden; min-height: 0; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mosaic a:hover img { transform: scale(1.03); }
.mosaic > :first-child { grid-row: 1 / 3; }
.mosaic > :first-child img { aspect-ratio: auto; }
.mosaic > :not(:first-child) img { aspect-ratio: 4 / 3; }

@media (max-width: 860px) {
  .reformer-grid { grid-template-columns: 1fr; }
  .mosaic { order: -1; }
}
@media (max-width: 520px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .mosaic > :first-child { grid-row: auto; grid-column: 1 / 3; }
  .mosaic > :first-child img { aspect-ratio: 4 / 3; }
}

/* ---------- Split (photo + text) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.split-photo { position: relative; margin: 0; isolation: isolate; }
.split-photo::before { content: ""; position: absolute; z-index: -1; inset: -22px 22% 18% -100vw; background: var(--sky-tint); }
.split-photo.on-right::before { inset: -22px -100vw 18% 22%; }
.split-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-copy { display: grid; gap: 22px; align-content: start; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-photo.on-right { order: -1; }
}

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); margin-top: 8px; }
.facts div { padding: 18px 18px 0 0; }
.facts dt { font-family: var(--display); font-weight: 800; font-size: 1.9rem; color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.facts dd { margin: 8px 0 0; font-size: 0.98rem; line-height: 1.45; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts div { padding: 16px 0; border-bottom: 1px solid var(--line); } }

.text-link { font-family: var(--display); font-weight: 700; font-size: 1rem; justify-self: start; }

/* ---------- Other classes ---------- */
.classes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px); }
.class-item { display: grid; grid-template-rows: auto auto 1fr auto; gap: 16px; align-content: start; }
.class-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.class-item h3 { margin-top: 6px; }
.class-item .meta { font-family: var(--display); font-size: 0.9rem; font-weight: 600; color: var(--ink); border-top: 1px solid var(--line); padding-top: 14px; }
@media (max-width: 900px) { .classes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .classes { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 230px); gap: 10px; }
.gallery a { display: block; overflow: hidden; background: var(--mist); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.03); }
.gallery .g-tall { grid-row: span 2; }
.gallery .g-wide { grid-column: span 2; }
.gallery .g-wide img { object-position: 50% 68%; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; grid-auto-flow: dense; }
  .gallery .g-wide { grid-column: span 2; }
}

.studio-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.gallery-3 { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, clamp(170px, 19vw, 260px)); gap: 10px; }
.gallery-3 a { display: block; overflow: hidden; background: var(--mist); }
.gallery-3 a:first-child { grid-row: 1 / 3; }
.gallery-3 img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-3 a:hover img { transform: scale(1.03); }
@media (max-width: 860px) { .studio-split { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .gallery-3 { grid-template-rows: repeat(2, 38vw); } }

/* ---------- Service rows (services page) ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.feature-copy { display: grid; gap: 22px; }
.detail-list { display: grid; gap: 0; margin: 4px 0 0; border-top: 1px solid rgba(51,51,51,.25); }
.detail-list div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(51,51,51,.25); }
.detail-list dt { font-family: var(--display); font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.detail-list dd { margin: 0; font-size: 1.02rem; line-height: 1.5; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .detail-list div { grid-template-columns: 1fr; gap: 2px; } }

.service { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; padding-top: 0; }
.service img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.service-copy { display: grid; gap: 18px; }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; } }

/* ---------- Trainers ---------- */
.trainers { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.trainer { display: grid; gap: 18px; align-content: start; }
.trainer-head { display: flex; align-items: center; gap: 18px; }
.monogram {
  flex: none; width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sky);
  font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--ink); letter-spacing: 0.02em;
}
.trainer-role { font-family: var(--display); font-size: 0.92rem; font-weight: 600; color: var(--muted); margin-top: 4px; }
.quals { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.quals li { font-family: var(--display); font-size: 0.85rem; font-weight: 600; color: var(--ink); background: var(--sky-tint); padding: 6px 10px; border-radius: 2px; }
@media (max-width: 760px) { .trainers { grid-template-columns: 1fr; } }

/* ---------- Call to action band ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.cta-copy { display: grid; gap: 18px; }
.cta-copy p { max-width: 48ch; }
.cta-contact { display: grid; gap: 18px; }
.cta-contact .big-phone { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem); letter-spacing: -0.01em; text-decoration: none; color: #fff; line-height: 1.1; }
.cta-contact .big-phone:hover { color: var(--orange); }
.cta-contact .small { font-size: 1rem; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Blog ---------- */
.post-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.post-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-meta { font-family: var(--display); font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.post-copy { display: grid; gap: 16px; }
@media (max-width: 760px) { .post-card { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact-details { display: grid; gap: 28px; }
.contact-block { display: grid; gap: 6px; }
.contact-block h2 { font-size: 1rem; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.contact-block .value { font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; line-height: 1.3; }
.contact-block a.value:hover { color: var(--orange-text); }
.contact-block address { font-style: normal; font-size: 1.15rem; line-height: 1.55; color: var(--ink); }
.contact-note { background: var(--sky-tint); padding: 22px 24px; font-size: 1.02rem; }

.form-panel { background: var(--mist); padding: clamp(24px, 4vw, 48px); display: grid; gap: 24px; }
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-family: var(--display); font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: inherit; font-size: 1.05rem; color: var(--ink);
  background: #fff; border: 2px solid #C9D3D8; border-radius: 3px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--sky); }
.field .error { font-family: var(--display); font-size: 0.88rem; font-weight: 600; color: #B3261E; }
.field.has-error input, .field.has-error textarea { border-color: #B3261E; }
.form-status { padding: 18px 20px; background: #fff; border: 2px solid var(--sky); font-size: 1rem; }
.form-status strong { font-family: var(--display); color: var(--ink); display: block; margin-bottom: 4px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--sky); color: var(--ink); padding-block: clamp(56px, 7vw, 88px) 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.footer-grid h2 { font-size: 0.95rem; font-weight: 700; margin-bottom: 12px; }
.footer-grid p, .footer-grid address, .footer-grid li { font-size: 1rem; line-height: 1.6; font-style: normal; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-grid a { color: var(--ink); }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand p { max-width: 30ch; }
.footer-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(51,51,51,.2); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-family: var(--display); font-size: 0.85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid .social { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social a {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--ink); text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.social a:hover { background: var(--ink); color: #fff; }
.social svg { width: 20px; height: 20px; display: block; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(30, 34, 36, 0.88); }
.lightbox img { max-width: min(1200px, 94vw); max-height: 84vh; width: auto; height: auto; margin-inline: auto; }
.lightbox p { color: #fff; font-family: var(--display); font-size: 0.95rem; margin-top: 12px; text-align: center; }
.lightbox-close {
  position: absolute; top: 12px; right: 12px; min-height: 44px; padding: 0 16px; box-shadow: 0 2px 10px rgba(0,0,0,.25);
  background: #fff; color: var(--ink); border: 0; border-radius: 3px; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 0.95rem;
}

/* ---------- Utilities ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-lg { margin-top: clamp(40px, 5vw, 64px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Live contact form ---------- */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.grecaptcha-badge { visibility: hidden; }   /* allowed because the form shows the reCAPTCHA notice */
.recaptcha-note { font-size: 0.85rem; line-height: 1.5; color: var(--text); }
.recaptcha-note a { color: var(--text); }
.form-status.is-error { border-color: #B3261E; }
.btn[disabled] { opacity: 0.7; cursor: progress; }
