/* Family sessions page (/family/). Builds on /assets/css/style.css. */

/* ---------- Hero ---------- */
.fam-hero { min-height: min(92vh, 960px); }
.fam-slides { position: absolute; inset: 0; }
.fam-hero .hero-slide { background-position: center 40%; }
/* Vertical photo in the hero: show the whole frame, filled in at the sides with a soft blur of itself */
.fam-hero .hero-slide.fit { overflow: hidden; }
.fam-hero .hero-slide.fit::before, .fam-hero .hero-slide.fit::after { content: ""; position: absolute; background-image: inherit; background-position: center; background-repeat: no-repeat; }
.fam-hero .hero-slide.fit::before { inset: -60px; background-size: cover; filter: blur(36px) brightness(.8); }
.fam-hero .hero-slide.fit::after { inset: 0; background-size: contain; }
.fam-hero::after { background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.18) 45%, rgba(0,0,0,.42) 100%); }
.fam-hero h1 { font-size: clamp(46px, 7vw, 92px); line-height: 1.02; }
.fam-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fam-hero-actions .btn { min-width: 190px; }

/* ---------- Intro ---------- */
.fam-intro .frame { aspect-ratio: 4 / 5; }

/* ---------- Chapters ---------- */
.fam-chapter { padding: clamp(64px, 8vw, 104px) 0; }
.fam-ch-title { font-size: clamp(36px, 4.6vw, 60px); margin-bottom: 0; }
.fam-ch-note { margin: 12px auto 0; color: var(--muted); font-style: italic; }
.fam-lead { margin: clamp(28px, 4vw, 48px) 0 clamp(14px, 1.6vw, 20px); overflow: hidden; background: var(--stone-deep); }
.fam-lead img { display: block; width: 100%; height: auto; max-height: 82vh; object-fit: cover; cursor: zoom-in; }
.fam-grid { columns: 3; column-gap: clamp(14px, 1.6vw, 20px); }
.fam-grid figure { margin: 0 0 clamp(14px, 1.6vw, 20px); break-inside: avoid; background: var(--stone-deep); overflow: hidden; }
.fam-grid img, .fam-trio img { display: block; width: 100%; height: auto; cursor: zoom-in; transition: transform 1.2s ease, opacity .6s ease; }
.fam-grid figure:hover img { transform: scale(1.02); }
.fam-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 20px); margin-top: clamp(28px, 4vw, 48px); }
.fam-trio figure { margin: 0; overflow: hidden; background: var(--stone-deep); }
@media (max-width: 900px) { .fam-grid { columns: 2; } }
@media (max-width: 560px) { .fam-trio { grid-template-columns: 1fr; } }

/* ---------- Session options ---------- */
.fam-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); margin-top: 18px; }
.fam-opt { background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; }

.fam-opt .ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone-deep); }
.fam-opt .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.fam-opt .body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.fam-opt h3 { font-family: var(--serif); font-size: 26px; font-weight: 300; color: var(--ink); margin: 0 0 4px; }
.fam-opt .len { font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.fam-opt p { margin: 14px 0 22px; font-size: 17px; flex: 1; }
.fam-opt .price { font-family: var(--serif); font-size: 24px; color: var(--ink); margin-bottom: 18px; }
.fam-opt .price.soon { font-size: 18px; font-style: italic; color: var(--muted); }
@media (max-width: 1100px) { .fam-options { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .fam-options { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; } }

/* ---------- Booking ---------- */
.fam-book { max-width: 900px; }
.fam-book-head { margin-bottom: clamp(28px, 4vw, 44px); }
.fam-progress { list-style: none; padding: 0; margin: 28px 0 0; display: flex; justify-content: center; gap: clamp(10px, 3vw, 36px); flex-wrap: wrap;
  font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fam-progress li { display: flex; align-items: center; gap: 10px; }
.fam-progress span { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 12px; letter-spacing: 0; }
.fam-progress li.is-current { color: var(--ink); }
.fam-progress li.is-current span { border-color: var(--ink); }
.fam-progress li.is-done span { background: var(--ink); border-color: var(--ink); color: #fff; }

.fam-step { border-top: 1px solid var(--line); padding: clamp(28px, 4vw, 44px) 0; transition: opacity .4s ease; }
.fam-step:last-child { border-bottom: 1px solid var(--line); }
.fam-step.is-waiting { opacity: .45; }
.fam-step.is-waiting:hover { opacity: .7; }
.fam-step-head { display: flex; gap: 22px; align-items: baseline; margin-bottom: 24px; }
.fam-step-num { font-family: var(--display); font-size: 40px; font-weight: 300; color: var(--sage); line-height: 1; }
.fam-step-head h3 { font-family: var(--serif); font-size: 26px; font-weight: 300; color: var(--ink); margin: 0 0 4px; }
.fam-step-head p { margin: 0; color: var(--muted); font-size: 17px; }
.fam-step.is-complete .fam-form, .fam-step.is-complete .fam-cal, .fam-step.is-complete .fam-skip { display: none; }
.fam-done { background: var(--stone); padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.fam-done[hidden] { display: none; }
.fam-done p { margin: 0; }
.fam-done strong { font-weight: 400; color: var(--ink); }

.fam-form .types { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.fam-form .types label { position: relative; }
.fam-form .types input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.fam-form .types span { display: inline-block; border: 1px solid var(--line); background: #fff; padding: 10px 16px; font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: background .2s, color .2s, border-color .2s; }
.fam-form .types input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.fam-form .types input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.fam-form textarea.input { min-height: 120px; }
.fam-form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.fam-form-foot .form-note { margin: 0; }

.fam-cal { min-height: 160px; }
.fam-cal .calendly-inline-widget { min-width: 320px; height: 720px; }
.fam-cal-soon { border: 1px dashed var(--line-strong); padding: 34px 28px; text-align: center; }
.fam-cal-soon p { margin: 0 auto; max-width: 52ch; }
.fam-skip { margin: 18px 0 0; text-align: center; }
.fam-skip .link-under { font-size: 11px; }

.fam-pick { grid-template-columns: 1fr; gap: 10px; margin: 0 0 22px; }
.fam-pick span { padding: 18px 18px; font-size: 14px; }
.fam-pick b { font-weight: 400; }
.fam-pick span em { font-style: normal; color: var(--muted); font-size: 12px; letter-spacing: .04em; display: block; margin-top: 3px; }
.fam-pick input:disabled + span { cursor: not-allowed; opacity: .6; }
.fam-reserve-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.fam-reserve-foot .amt { font-family: var(--serif); font-size: 30px; color: var(--ink); line-height: 1.1; margin-top: 4px; }
.fam-reserve .form-note { margin: 14px 0 0; }

@media (max-width: 640px) {
  .fam-step-head { gap: 14px; }
  .fam-step-num { font-size: 32px; }
  .fam-progress { flex-direction: column; align-items: flex-start; width: max-content; margin-left: auto; margin-right: auto; }
}

/* ---------- Lightbox ---------- */
.fam-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20,20,20,.94); display: grid; place-items: center; padding: 4vh 4vw; }
.fam-lightbox[hidden] { display: none; }
.fam-lightbox img { max-width: 100%; max-height: 92vh; object-fit: contain; }
.fam-lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; cursor: pointer; padding: 12px 18px; opacity: .75; }
.fam-lightbox button:hover { opacity: 1; }
.fam-lb-close { top: 10px; right: 14px; }
.fam-lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.fam-lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.fam-trio img { aspect-ratio: 3 / 4; object-fit: cover; object-position: center 30%; }
.fam-quad { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 20px); }
.fam-quad figure { margin: 0; overflow: hidden; background: var(--stone-deep); }
.fam-quad img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-position: center 30%; object-fit: cover; cursor: zoom-in; }
@media (max-width: 900px) { .fam-quad { grid-template-columns: repeat(2, 1fr); } }
.fam-addons { margin: 0 0 22px; }
.fam-addon { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); background: #fff; padding: 14px 18px; margin-bottom: 8px; cursor: pointer; font-family: var(--sans); font-size: 14px; color: var(--ink); }
.fam-addon input { margin-top: 3px; accent-color: var(--ink); }
.fam-addon span { flex: 1; }
.fam-addon b { font-weight: 400; display: block; }
.fam-addon em { font-style: normal; color: var(--muted); font-size: 12px; display: block; margin-top: 3px; }
.fam-addon small { font-size: 14px; white-space: nowrap; }
.fam-options { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .fam-options { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .fam-options { grid-template-columns: 1fr; } }
.fam-included { margin: clamp(24px,3vw,36px) auto 0; max-width: 60ch; color: var(--muted); font-style: italic; font-size: 18px; }
