/* ==========================================================================
   Longwall House - longwallhouse.com
   A warm, editorial stylesheet. No frameworks, no external fonts, no trackers.
   ========================================================================== */

/* ---------- Tokens ---------------------------------------------------- */

:root {
  /* Colour, drawn from the house itself: brick, woodland, lime mortar */
  --cream:      #faf7f1;
  --cream-deep: #f2ece1;
  --paper:      #ffffff;
  --ink:        #23201c;
  --ink-soft:   #554d44;
  --ink-mute:   #7d7267;
  --brick:      #9a4f36;
  --brick-dark: #7c3d28;
  --green:      #2f4a3c;
  --green-mid:  #3f6151;
  --green-pale: #e6ede8;
  --gold:       #b8873f;
  --line:       #e2dacd;
  --line-soft:  #ece5d9;

  /* Type */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, sans-serif;

  /* Rhythm */
  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --wrap: 72rem;
  --wrap-wide: 84rem;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--brick-dark); text-underline-offset: 0.2em; }
a:hover { color: var(--brick); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.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; left: 0.5rem; top: -4rem; z-index: 200;
  background: var(--ink); color: #fff; padding: 0.7rem 1.1rem;
  border-radius: 4px; text-decoration: none; font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0.5rem; color: #fff; }

/* ---------- Typography ------------------------------------------------ */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 4rem); }
h2 { font-size: clamp(1.7rem, 1.25rem + 2.1vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem); }
h4 { font-size: 1.0625rem; font-family: var(--sans); font-weight: 700; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.02rem + 0.6vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 38rem;
}

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 1rem;
}
.eyebrow.on-dark { color: var(--gold); }

.rule {
  width: 3rem; height: 2px; background: var(--brick);
  border: 0; margin: 0 0 1.5rem;
}
.center .rule { margin-inline: auto; }

/* ---------- Layout ---------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-wide { max-width: var(--wrap-wide); }
.wrap-narrow { max-width: 46rem; }

section { position: relative; }

.band { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.band-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.band-paper { background: var(--paper); }
.band-deep  { background: var(--cream-deep); }
.band-green { background: var(--green); color: #eef3ef; }
.band-green h2, .band-green h3 { color: #fff; }
.band-green p { color: #d3ded7; }
.band-green a { color: var(--gold); }

.center { text-align: center; }
.center p { margin-inline: auto; }

.stack > * + * { margin-top: 1.1em; }

/* ---------- Header ---------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem;
}

.brand {
  display: flex; align-items: center; gap: 0.65rem;
  color: var(--ink); text-decoration: none;
}

/* The favicon doubles as the logo, so the tab and the header agree. */
.brand-mark {
  width: 2.15rem; height: 2.15rem; flex: none; display: block;
  border-radius: 5px;
}

.brand-name {
  display: flex; align-items: baseline; gap: 0.55rem;
  font-family: var(--serif); font-size: 1.2rem; font-weight: 600;
  letter-spacing: -0.01em; white-space: nowrap;
}
.brand-name span {
  font-family: var(--sans); font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute);
}

/* On the narrowest phones the mark, the name and the Menu button stop fitting
   on one line - the county is the least useful part, so it goes first. */
@media (max-width: 24rem) {
  .brand-name span { display: none; }
}

.nav { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.9rem); }
.nav a {
  font-size: 0.9rem; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--brick); }
.nav a[aria-current="page"] { font-weight: 600; }

/* The call-to-action in the nav is a button, not a nav link. `.nav a` above is
   more specific than `.btn-primary`, so without this it would inherit the muted
   link colour and sit unreadably on the brick background. */
.nav a.btn-primary,
.nav a.btn-primary:hover,
.nav a.btn-primary:focus,
.nav a.btn-primary[aria-current="page"] { color: #fff; }
.nav a.btn { font-weight: 600; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 4px; padding: 0.45rem 0.7rem; cursor: pointer;
  font: inherit; font-size: 0.85rem; color: var(--ink);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav .btn { margin-top: 0.8rem; text-align: center; border-bottom: 0; }
}

/* ---------- Buttons --------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  line-height: 1.2;
  border: 1.5px solid transparent; border-radius: 3px;
  text-decoration: none; cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

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

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

.btn-light { background: #fff; color: var(--green); border-color: #fff; }
.btn-light:hover { background: var(--green-pale); color: var(--green); }

.btn-lg { padding: 1rem 2rem; font-size: 1.02rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.center .btn-row { justify-content: center; }

/* ---------- Hero ------------------------------------------------------ */

.hero { position: relative; background: var(--green); overflow: hidden; }

.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(20, 30, 24, 0.62) 0%,
    rgba(20, 30, 24, 0.44) 45%,
    rgba(20, 30, 24, 0.78) 100%);
}

.hero-body {
  position: relative; z-index: 2;
  padding-block: clamp(5rem, 16vh, 9rem);
  color: #fff;
  max-width: 46rem;
}
.hero-body h1 { color: #fff; margin-bottom: 0.45em; }
.hero-body .lede { color: #eae4d8; max-width: 34rem; }
.hero-body .btn-row { margin-top: 2rem; }

.hero-status {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  padding: 0.4rem 1rem 0.4rem 0.75rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em;
  color: #fff; margin-bottom: 1.6rem;
}
.hero-status::before {
  content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--gold); flex: none;
}

.hero-foot {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-block: 1.1rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem;
  font-size: 0.85rem; color: #dfe6e0;
}
.hero-foot span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-foot span::before { content: " - "; color: var(--gold); }

/* ---------- Page header (inner pages) --------------------------------- */

.page-head {
  background: var(--green);
  color: #fff;
  padding-block: clamp(3rem, 8vw, 5.5rem);
}
.page-head h1 { color: #fff; }
.page-head .lede { color: #cfdad3; }
.page-head .eyebrow { color: var(--gold); }

/* ---------- Cards ----------------------------------------------------- */

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.card:hover { box-shadow: 0 12px 30px -14px rgba(35, 32, 28, 0.3); }

.card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--cream-deep); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }

.card-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 0.5rem; }
.card-body p { font-size: 0.95rem; color: var(--ink-soft); }
.card-link {
  margin-top: auto; padding-top: 1.1rem;
  font-weight: 600; font-size: 0.9rem; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.card-link::after { content: "→"; transition: transform 0.2s var(--ease); }
.card-link:hover::after { transform: translateX(3px); }

.card-tag {
  align-self: flex-start;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green);
  background: var(--green-pale); border-radius: 3px;
  padding: 0.28rem 0.6rem; margin-bottom: 0.9rem;
}
.card-tag.accent { color: var(--brick-dark); background: #f7e9e3; }

/* ---------- Split (image + text) -------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split-media img { border-radius: 5px; width: 100%; }
.split-media figcaption {
  margin-top: 0.7rem; font-size: 0.82rem; color: var(--ink-mute); font-style: italic;
}
.split figure { margin: 0; }
@media (min-width: 60rem) {
  .split.reverse .split-media { order: 2; }
}

/* ---------- Feature list ---------------------------------------------- */

.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.4rem; }
.features.cols { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.features li { padding-left: 1.9rem; position: relative; }
.features li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  border: 2px solid var(--brick);
}
.features strong { display: block; font-size: 1rem; margin-bottom: 0.15rem; }
.features span { font-size: 0.92rem; color: var(--ink-soft); }
.band-green .features li::before { border-color: var(--gold); }
.band-green .features span { color: #c8d5cd; }

/* ---------- Spec table ------------------------------------------------ */

.spec { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec th, .spec td { text-align: left; padding: 0.85rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 42%; font-weight: 600; color: var(--ink); }
.spec td { color: var(--ink-soft); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

/* ---------- Stats ----------------------------------------------------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1.5rem; }
.stat { text-align: center; }
.stat b {
  display: block; font-family: var(--serif); font-weight: 600;
  font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); line-height: 1; color: var(--brick);
}
.band-green .stat b { color: var(--gold); }
.stat span {
  display: block; margin-top: 0.5rem; font-size: 0.82rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute);
}
.band-green .stat span { color: #b9c8bf; }

/* ---------- Gallery --------------------------------------------------- */

.gallery-nav {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem;
}
.gallery-nav button {
  font: inherit; font-size: 0.85rem; font-weight: 600;
  padding: 0.5rem 1rem; border-radius: 100px; cursor: pointer;
  background: transparent; color: var(--ink-soft);
  border: 1px solid var(--line);
  transition: all 0.18s var(--ease);
}
.gallery-nav button:hover { border-color: var(--ink-mute); color: var(--ink); }
.gallery-nav button[aria-pressed="true"] {
  background: var(--ink); border-color: var(--ink); color: var(--cream);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.9rem;
}
.gallery figure { margin: 0; }
.gallery button.shot {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: var(--cream-deep); border-radius: 4px; overflow: hidden;
  position: relative; aspect-ratio: 3 / 2;
}
.gallery button.shot img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.3s var(--ease);
}
.gallery button.shot:hover img { transform: scale(1.05); }
.gallery button.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.8rem 0.85rem 0.7rem;
  background: linear-gradient(transparent, rgba(20, 18, 16, 0.75));
  color: #fff; font-size: 0.8rem; text-align: left;
  opacity: 0; transition: opacity 0.25s var(--ease);
}
.gallery button.shot:hover figcaption,
.gallery button.shot:focus-visible figcaption { opacity: 1; }
.gallery [hidden] { display: none; }

/* Standalone zoomable image, e.g. the floor plan */
.zoomable {
  display: block; cursor: zoom-in; text-decoration: none;
  transition: transform 0.3s var(--ease);
}
.zoomable:hover { transform: translateY(-2px); }

/* Lightbox - kept in the layout and faded, so it can animate both ways */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(18, 20, 18, 0.94);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; visibility: hidden; pointer-events: none;
  backdrop-filter: blur(2px);
  transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; pointer-events: auto; }

.lightbox figure {
  transform: scale(0.94); opacity: 0;
  transition: transform 0.34s var(--ease), opacity 0.34s var(--ease);
}
.lightbox.open figure { transform: none; opacity: 1; }

/* Direction-aware slide when stepping between photographs */
.lightbox figure.from-right { animation: lb-from-right 0.32s var(--ease); }
.lightbox figure.from-left  { animation: lb-from-left  0.32s var(--ease); }

@keyframes lb-from-right {
  from { opacity: 0; transform: translateX(34px); }
  to   { opacity: 1; transform: none; }
}
@keyframes lb-from-left {
  from { opacity: 0; transform: translateX(-34px); }
  to   { opacity: 1; transform: none; }
}

.lightbox img {
  max-width: 100%; max-height: 82vh; border-radius: 4px;
  box-shadow: 0 30px 70px -30px #000;
}
.lightbox [hidden] { display: none; }
.lightbox figcaption {
  color: #e6e0d5; text-align: center; margin-top: 1rem; font-size: 0.9rem;
}
.lightbox figure { margin: 0; max-width: 100%; }
.lb-btn {
  position: absolute; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; width: 3rem; height: 3rem; border-radius: 50%;
  font-size: 1.4rem; cursor: pointer; display: grid; place-items: center;
  transition: background 0.18s var(--ease);
}
.lb-btn:hover { background: rgba(255,255,255,0.24); transform: scale(1.08); }
.lb-prev:hover { transform: translateY(-50%) scale(1.08); }
.lb-next:hover { transform: translateY(-50%) scale(1.08); }
.lb-btn:active { transform: scale(0.96); }
.lb-prev:active, .lb-next:active { transform: translateY(-50%) scale(0.96); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 40rem) {
  .lb-prev { left: 0.5rem; } .lb-next { right: 0.5rem; }
}

/* ---------- Notice / callout ------------------------------------------ */

.notice {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  padding: 1.4rem 1.6rem;
}
.notice h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.notice p { font-size: 0.94rem; color: var(--ink-soft); }
.notice.green { border-left-color: var(--green); background: var(--green-pale); }
.notice.brick { border-left-color: var(--brick); }

.quote {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.65rem);
  line-height: 1.45; font-style: italic;
  border-left: 3px solid var(--gold);
  padding-left: clamp(1.2rem, 3vw, 2rem);
  margin: 0; max-width: 40rem; color: var(--ink);
}
.band-green .quote { color: #f2f6f3; }
.quote cite {
  display: block; margin-top: 1rem; font-family: var(--sans);
  font-size: 0.85rem; font-style: normal; color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.band-green .quote cite { color: #a9bcb1; }

/* ---------- FAQ ------------------------------------------------------- */

.faq { border-top: 1px solid var(--line); max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-weight: 600; font-size: 1.02rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.4rem; top: 50%;
  transform: translateY(-50%); font-size: 1.4rem; font-weight: 400;
  color: var(--brick); transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--brick); }
.faq .answer { padding: 0 2.5rem 1.4rem 0; }
.faq .answer p { font-size: 0.97rem; color: var(--ink-soft); }

/* ---------- Forms ----------------------------------------------------- */

.form-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: 0 20px 50px -34px rgba(35, 32, 28, 0.45);
}

.field { margin-bottom: 1.3rem; }
.field label, .fieldset-label {
  display: block; font-size: 0.87rem; font-weight: 600;
  margin-bottom: 0.45rem; color: var(--ink);
}
.field .hint { font-weight: 400; color: var(--ink-mute); font-size: 0.83rem; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%; font: inherit; font-size: 1rem;
  padding: 0.75rem 0.9rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 4px; color: var(--ink);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  background: #fff; border-color: var(--green-mid); outline-offset: 1px;
}
.field textarea { min-height: 7rem; resize: vertical; }

fieldset { border: 0; padding: 0; margin: 0 0 1.3rem; }

.checks { display: grid; gap: 0.6rem; }
.check {
  display: flex; gap: 0.7rem; align-items: flex-start;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--cream); cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.check:hover { border-color: var(--ink-mute); }
.check input { margin-top: 0.28rem; flex: none; accent-color: var(--brick); width: 1rem; height: 1rem; }
.check:has(input:checked) { border-color: var(--brick); background: #fdf6f2; }
.check b { display: block; font-size: 0.95rem; font-weight: 600; }
.check small { display: block; color: var(--ink-mute); font-size: 0.85rem; line-height: 1.45; }

.form-foot { margin-top: 1.6rem; }
.form-foot .btn { width: 100%; }
.form-note { font-size: 0.82rem; color: var(--ink-mute); margin-top: 1rem; line-height: 1.55; }

/* Honeypot - hidden from people, visible to naive bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error, .form-ok {
  border-radius: 4px; padding: 0.9rem 1.1rem; margin-bottom: 1.3rem;
  font-size: 0.92rem; font-weight: 500;
}
.form-error { background: #fbeae5; border: 1px solid #e0b3a4; color: #8a3418; }
.form-ok { background: var(--green-pale); border: 1px solid #b9cfc2; color: var(--green); }

/* ---------- Footer ---------------------------------------------------- */

.site-footer {
  background: var(--ink); color: #b8afa4;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.9rem;
}
.site-footer h4 {
  color: #fff; font-size: 0.76rem; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.site-footer a { color: #ded5c8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.footer-brand { font-family: var(--serif); font-size: 1.3rem; color: #fff; margin-bottom: 0.7rem; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid #3a352f;
  display: flex; flex-wrap: wrap; gap: 0.75rem 2rem;
  justify-content: space-between; font-size: 0.82rem; color: #8c8377;
}
.site-footer p { color: #b8afa4; }

/* ---------- Scroll reveal --------------------------------------------- */

/* The .js-reveal class is added by script, so nothing is hidden without it. */
.js-reveal .gallery figure,
.js-reveal .card,
.js-reveal .split-media,
.js-reveal .zoomable {
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.js-reveal .gallery figure:not(.in),
.js-reveal .card:not(.in),
.js-reveal .split-media:not(.in),
.js-reveal .zoomable:not(.in) {
  opacity: 0; transform: translateY(16px);
}

/* Thumbnails come in one after another rather than all at once. */
.js-reveal .gallery figure:nth-child(3n+2) { transition-delay: 0.06s; }
.js-reveal .gallery figure:nth-child(3n+3) { transition-delay: 0.12s; }
.js-reveal .grid > .card:nth-child(2) { transition-delay: 0.08s; }
.js-reveal .grid > .card:nth-child(3) { transition-delay: 0.16s; }

/* ---------- Motion preference ----------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  /* Nothing should arrive off-position or invisible when motion is unwanted. */
  .js-reveal .gallery figure:not(.in),
  .js-reveal .card:not(.in),
  .js-reveal .split-media:not(.in),
  .js-reveal .zoomable:not(.in) { opacity: 1; transform: none; }
}

/* ---------- Print ----------------------------------------------------- */

@media print {
  .site-header, .site-footer, .gallery-nav, .lightbox, .btn { display: none !important; }
  body { background: #fff; }
  .hero-media::after { display: none; }
}
