/* ============================================
   OLGA DOMOKOS — Waldorf Teacher
   Stylesheet
   ============================================ */

/* --- Self-hosted fonts ---
   Served from /fonts/ (static/fonts/). Variable fonts keep their axes, so the
   font-variation-settings (SOFT/opsz) elsewhere in this file still work.
   font-display:swap → text shows immediately in the fallback, then swaps in. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/fraunces-roman.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/fraunces-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/newsreader-roman.woff2') format('woff2');
}
@font-face {
  font-family: 'Petit Formal Script';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/petit-formal-script.woff2') format('woff2');
}

/* --- Tokens --- */
:root {
  --cream:        #FAF5EE;
  --parchment:    #F2E8D5;
  --parchment-2:  #EADFC7;
  --bark:         #3A2818;
  --bark-soft:    #5B4530;
  --ink:          #2A1D10;
  --terracotta:   #C97052;
  --terracotta-d: #A85539;
  --sage:         #8FA67E;
  --sage-d:       #6F8862;
  --honey:        #D4A53D;
  --honey-d:      #B5852A;
  --rose:         #C68B82;
  --sky:          #A4BFC9;
  --plum:         #7C5A6E;

  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Newsreader', Georgia, 'Times New Roman', serif;
  --font-script:  'Petit Formal Script', 'Apple Chancery', cursive;

  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 9rem;

  --rad-sm: 6px;
  --rad-md: 14px;
  --rad-lg: 28px;
  --rad-pill: 999px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(900px 600px at 10% -10%, rgba(212,165,61,0.10), transparent 60%),
    radial-gradient(800px 700px at 110% 20%, rgba(201,112,82,0.10), transparent 60%),
    radial-gradient(1000px 800px at 50% 110%, rgba(143,166,126,0.10), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle paper texture */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.23  0 0 0 0 0.16  0 0 0 0 0.06  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

main, header, footer, section { position: relative; z-index: 2; }

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 380;
  font-variation-settings: "SOFT" 80, "opsz" 144;
  color: var(--bark);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 var(--space-3);
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 320;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 360;
}
h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 420;
}
h4 {
  font-size: 1.15rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--terracotta-d);
}

p { margin: 0 0 var(--space-2); max-width: 65ch; }

a {
  color: var(--terracotta-d);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color .2s ease, border-color .2s ease;
}
a:hover { color: var(--bark); border-color: var(--honey); }

em { font-family: var(--font-display); font-style: italic; font-weight: 380; }

.eyebrow {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--sage-d);
  letter-spacing: 0.02em;
  margin: 0 0 .4rem;
  display: inline-block;
}

.lead {
  font-family: var(--font-display);
  font-weight: 320;
  font-variation-settings: "SOFT" 100, "opsz" 60;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.4;
  color: var(--bark-soft);
  max-width: 38ch;
}

/* Emphasised word — terracotta with a hand-drawn highlighter swash
   (two slightly offset marker passes, with rough, uneven edges). */
.pop {
  position: relative;
  color: var(--terracotta-d);
  font-weight: 600;
  padding: 0 .18em;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20200%2040'%20preserveAspectRatio='none'%3E%3Cpath%20d='M4%2C21%20C34%2C13%2078%2C16%20104%2C15%20C146%2C13%20172%2C19%20197%2C12%20C199%2C20%20198%2C27%20195%2C31%20C158%2C35%20108%2C31%2074%2C32%20C48%2C33%2022%2C34%206%2C33%20C1%2C29%201%2C25%204%2C21%20Z'%20fill='%23D4A53D'%20fill-opacity='0.38'/%3E%3Cpath%20d='M8%2C25%20C40%2C19%2084%2C21%20120%2C20%20C150%2C19%20174%2C23%20192%2C19%20C194%2C24%20193%2C28%20190%2C31%20C150%2C34%20100%2C32%2070%2C33%20C46%2C34%2024%2C34%2010%2C33%20C6%2C30%206%2C28%208%2C25%20Z'%20fill='%23C97052'%20fill-opacity='0.16'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center 88%;
  background-size: 105% 62%;
}

.script {
  font-family: var(--font-script);
  color: var(--sage-d);
}

/* --- Layout --- */
.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

.narrow {
  width: min(720px, 92%);
  margin-inline: auto;
}

section { padding: var(--space-6) 0; }
section + section { padding-top: 0; }

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(250, 245, 238, 0.82);
  border-bottom: 1px solid rgba(58, 40, 24, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 380;
  font-variation-settings: "SOFT" 100, "opsz" 60;
  color: var(--bark);
  border: none;
  letter-spacing: -.01em;
}
.brand .brand-sub {
  font-family: var(--font-script);
  font-size: 1rem;
  color: var(--sage-d);
}
.brand:hover { color: var(--terracotta-d); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--bark-soft);
  border-radius: var(--rad-sm);
  padding: .5rem .75rem;
  font-family: var(--font-body);
  cursor: pointer;
  color: var(--bark);
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  padding: 0; margin: 0;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--bark);
  border: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover,
.nav-links a.current {
  color: var(--terracotta-d);
  border-bottom-color: var(--honey);
}
.nav-cta {
  background: var(--terracotta);
  color: var(--cream) !important;
  padding: .55rem 1rem !important;
  border-radius: var(--rad-pill);
  border: none !important;
}
.nav-cta:hover { background: var(--terracotta-d); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    background: var(--cream);
    border-bottom: 1px solid rgba(58, 40, 24, 0.08);
    padding: 1rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: .9rem 6%;
    border-bottom: 1px solid rgba(58,40,24,.06);
  }
  .nav-cta { margin: .6rem 6%; text-align: center; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: .85rem 1.6rem;
  border-radius: var(--rad-pill);
  border: none;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--cream);
}
.btn-primary:hover { background: var(--terracotta-d); transform: translateY(-2px); box-shadow: 0 8px 22px -10px rgba(168,85,57,.6); color: var(--cream); }
.btn-ghost {
  background: transparent;
  color: var(--bark);
  border: 1.5px solid var(--bark-soft);
}
.btn-ghost:hover { background: var(--bark); color: var(--cream); transform: translateY(-2px); border-color: var(--bark); }

a.btn { border-bottom: none; }

/* --- Hero --- */
.hero {
  padding: var(--space-6) 0 var(--space-5);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-4); }
}

.hero-art {
  position: relative;
  aspect-ratio: 4/5;
}
/* Photo frame: arched window shape — rounded top, soft-cornered bottom */
.hero-art .photo {
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 10% 10% / 42% 42% 8% 8%;
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(58, 40, 24, 0.35);
  transform: rotate(-1deg);
}
.hero-art .photo img { width: 100%; height: 100%; object-fit: cover; }

/* Organic blobs — true asymmetric border-radius + rotation + heavier blur */
.hero-art .blob,
.hero-art .blob-2 {
  position: absolute;
  z-index: -1;
  opacity: .42;
  filter: blur(18px);
  will-change: transform;
}
.hero-art .blob {
  width: 68%; height: 60%;
  background: var(--honey);
  border-radius: 63% 37% 52% 48% / 38% 56% 44% 62%;
  top: -10%; right: -10%;
  transform: rotate(14deg);
  animation: blob-drift-1 18s ease-in-out infinite alternate;
}
.hero-art .blob-2 {
  width: 52%; height: 48%;
  background: var(--sage);
  border-radius: 41% 59% 71% 29% / 56% 32% 68% 44%;
  bottom: -8%; left: -10%;
  transform: rotate(-10deg);
  animation: blob-drift-2 22s ease-in-out infinite alternate;
}

@keyframes blob-drift-1 {
  from { border-radius: 63% 37% 52% 48% / 38% 56% 44% 62%; transform: rotate(14deg) translate(0, 0); }
  to   { border-radius: 47% 53% 38% 62% / 60% 44% 58% 40%; transform: rotate(22deg) translate(-2%, 3%); }
}
@keyframes blob-drift-2 {
  from { border-radius: 41% 59% 71% 29% / 56% 32% 68% 44%; transform: rotate(-10deg) translate(0, 0); }
  to   { border-radius: 58% 42% 35% 65% / 39% 64% 38% 61%; transform: rotate(-4deg) translate(3%, -2%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art .blob, .hero-art .blob-2 { animation: none; }
}

.hero h1 .accent { color: var(--terracotta-d); font-style: italic; font-weight: 320; }

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: var(--space-3);
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3);
}
.card {
  background: rgba(255, 252, 245, 0.6);
  border: 1px solid rgba(58, 40, 24, 0.1);
  border-radius: var(--rad-lg);
  padding: var(--space-3);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  background: rgba(255, 252, 245, 0.95);
  box-shadow: 0 20px 50px -25px rgba(58, 40, 24, 0.35);
}
.card h3 { margin-bottom: .5rem; }
.card .card-icon {
  width: 56px; height: 56px;
  border-radius: 50% 40% 55% 50%;
  background: var(--parchment-2);
  display: grid; place-items: center;
  margin-bottom: var(--space-2);
  color: var(--terracotta-d);
}
.card .card-icon svg { width: 30px; height: 30px; }
.card a { font-weight: 500; }

.card-link {
  display: block;
  color: inherit;
  border: none;
}
.card-link:hover { color: inherit; }

.card-tinted { background: rgba(242, 232, 213, 0.55); }
.card-sage   { background: rgba(143, 166, 126, 0.16); border-color: rgba(111, 136, 98, .25); }
.card-rose   { background: rgba(198, 139, 130, 0.16); border-color: rgba(198, 139, 130, .3); }
.card-honey  { background: rgba(212, 165, 61, 0.16); border-color: rgba(181, 133, 42, .3); }

/* --- Section header --- */
.section-head {
  text-align: center;
  margin-bottom: var(--space-4);
}
.section-head .eyebrow { display: block; }

/* --- Photo collage --- */
.collage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  margin: var(--space-4) 0;
}
.collage .ph {
  --rot: 0deg;
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--rad-md);
  overflow: hidden;
  box-shadow: 0 18px 35px -22px rgba(58,40,24,.45);
  transform: rotate(var(--rot));
  transition: transform .4s ease, box-shadow .4s ease;
}
/* Image is taller than its frame so it can drift vertically (parallax)
   without ever revealing an edge. --py is set per-photo by JS on scroll. */
.collage .ph img {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 124%;
  object-fit: cover;
  transform: translate3d(0, var(--py, -12%), 0);
  will-change: transform;
}
/* Gentle lift + zoom on hover (the frame scales; the image keeps drifting). */
.collage .ph:hover {
  transform: rotate(var(--rot)) scale(1.04);
  box-shadow: 0 28px 50px -22px rgba(58,40,24,.55);
  z-index: 2;
}
/* Equal thirds so all three photos are the same size; gentle rotation and a
   small vertical stagger keep the hand-placed collage feel. */
.collage .ph-1 { grid-column: span 4; --rot: -1.5deg; }
.collage .ph-2 { grid-column: span 4; --rot: 1deg; margin-top: 1.5rem; }
.collage .ph-3 { grid-column: span 4; --rot: -.75deg; margin-top: 3rem; }
@media (max-width: 720px) {
  .collage .ph-1, .collage .ph-2, .collage .ph-3 { grid-column: span 12; margin-top: 0; --rot: 0deg; }
}
/* If motion is reduced, the photo simply sits centred in its frame. */
@media (prefers-reduced-motion: reduce) {
  .collage .ph img { transform: translate3d(0, -12%, 0); }
}

/* --- Two-up --- */
.twoup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
.twoup-img {
  border-radius: var(--rad-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -25px rgba(58,40,24,.4);
}
.twoup-img img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5;
  transition: transform .5s ease;
}
.twoup-img:hover img { transform: scale(1.05); }
.twoup.reverse > :first-child { order: 2; }
@media (max-width: 820px) {
  .twoup { grid-template-columns: 1fr; gap: var(--space-3); }
  .twoup.reverse > :first-child { order: 0; }
}

/* --- Divider --- */
.divider {
  display: block;
  margin: var(--space-4) auto;
  text-align: center;
  color: var(--sage-d);
}
.divider svg { width: 140px; overflow: visible; }

/* Draw-in animation. JS adds .divider-anim (so without JS the divider just
   shows), then toggles .in-view when it scrolls into view. The wavy line
   draws itself left-to-right and the centre dot pops in after. */
.divider.divider-anim svg path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 1.3s ease;
}
.divider.divider-anim svg circle {
  opacity: 0;
  transform: scale(0);
  transform-origin: 70px 12px;
  transition: opacity .45s ease 1s, transform .45s ease 1s;
}
.divider.divider-anim.in-view svg path { stroke-dashoffset: 0; }
.divider.divider-anim.in-view svg circle { opacity: 1; transform: scale(1); }

/* --- Lists --- */
ul.bullet {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-2);
}
ul.bullet li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .7rem;
}
ul.bullet li::before {
  content: "✦";
  color: var(--honey-d);
  position: absolute; left: 0; top: 0;
  font-size: .85em;
  line-height: 1.65;
}

/* --- Pricing --- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.price-card {
  background: rgba(255,252,245,.75);
  border: 1px solid rgba(58,40,24,.12);
  border-radius: var(--rad-lg);
  padding: var(--space-3);
}
.price-card .amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 320;
  color: var(--bark);
  font-variation-settings: "SOFT" 100, "opsz" 144;
}
.price-card .amount span {
  font-size: 1rem;
  color: var(--bark-soft);
  font-family: var(--font-body);
}
.price-card.featured {
  background: var(--bark);
  color: var(--cream);
  border-color: var(--bark);
}
.price-card.featured h3, .price-card.featured .amount { color: var(--cream); }
.price-card.featured .amount span { color: var(--parchment-2); }
.price-card.featured ul.bullet li::before { color: var(--honey); }

/* --- Forms --- */
form.contact-form {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
  background: rgba(255,252,245,.6);
  padding: var(--space-3);
  border-radius: var(--rad-lg);
  border: 1px solid rgba(58,40,24,.1);
}
form.contact-form label {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 500;
  color: var(--bark);
  display: block;
  margin-bottom: .3rem;
}
form.contact-form input,
form.contact-form textarea,
form.contact-form select {
  width: 100%;
  font: inherit;
  padding: .75rem .9rem;
  border-radius: var(--rad-md);
  border: 1.5px solid rgba(58,40,24,.18);
  background: var(--cream);
  color: var(--ink);
  transition: border-color .15s;
}
form.contact-form input:focus,
form.contact-form textarea:focus,
form.contact-form select:focus {
  outline: none;
  border-color: var(--terracotta);
}
form.contact-form textarea { min-height: 130px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* Turnstile widget — light theme matches the cream page; give it breathing room.
   width:fit-content makes the box hug the ~300px widget; overflow:hidden +
   border-radius rounds off the iframe's square corners. The -webkit-mask line
   is a no-op everywhere except Safari, where it forces the rounded clip to
   actually apply to the nested iframe (a long-standing WebKit quirk). */
.cf-turnstile {
  margin-block: .25rem;
  width: fit-content;
  border-radius: var(--rad-md);
  overflow: hidden;
  border: 1.5px solid rgba(58,40,24,.18);
  line-height: 0;          /* kill the inline baseline gap under the iframe */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
/* The iframe is inline by default, which leaves a few px of space below it;
   block display makes the wrapper end exactly at the widget's bottom edge. */
.cf-turnstile iframe { display: block; }

/* Inline validation message (shown if the captcha isn't completed). */
.form-error {
  margin: -.25rem 0 0;
  padding: .6rem .85rem;
  border-radius: var(--rad-md);
  background: rgba(168,85,57,.08);
  border: 1px solid rgba(168,85,57,.25);
  color: var(--terracotta-d);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .95rem;
}
.form-error[hidden] { display: none; }

/* --- Quote / pull --- */
.pull-quote {
  font-family: var(--font-display);
  font-weight: 320;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  line-height: 1.35;
  color: var(--bark);
  text-align: center;
  max-width: 32ch;
  margin: var(--space-4) auto;
  padding: 0 var(--space-3);
  position: relative;
}
.pull-quote::before, .pull-quote::after {
  content: "❛";
  display: block;
  color: var(--honey-d);
  font-family: serif;
  font-size: 2rem;
  line-height: 1;
}
.pull-quote::after { content: "❜"; }

/* --- CTA banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-d) 100%);
  color: var(--cream);
  padding: var(--space-5) var(--space-4);
  border-radius: var(--rad-lg);
  text-align: center;
  margin: var(--space-5) 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  background: rgba(212, 165, 61, 0.4);
  border-radius: 50%;
  top: -120px; right: -100px;
  filter: blur(40px);
}
.cta-banner h2, .cta-banner p { color: var(--cream); position: relative; }
.cta-banner .btn-primary { background: var(--cream); color: var(--terracotta-d); }
.cta-banner .btn-primary:hover { background: var(--parchment); color: var(--terracotta-d); }
.cta-banner p { max-width: 50ch; margin-inline: auto; opacity: .95; }

/* --- Footer --- */
.site-footer {
  background: var(--bark);
  color: var(--parchment);
  padding: var(--space-5) 0 var(--space-3);
  margin-top: var(--space-6);
}
.site-footer h4 { color: var(--honey); margin-bottom: 1rem; }
.site-footer a { color: var(--parchment-2); border-bottom-color: rgba(242,232,213,.3); }
.site-footer a:hover { color: var(--honey); border-bottom-color: var(--honey); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: .5rem; }
.footer-brand .brand { color: var(--cream); }
.footer-brand .brand-sub { color: var(--honey); }
.footer-brand p { color: var(--parchment-2); max-width: 38ch; margin-top: 1rem; }
.footer-bottom {
  border-top: 1px solid rgba(242,232,213,.15);
  padding-top: var(--space-2);
  font-size: .9rem;
  color: rgba(242,232,213,.6);
  text-align: center;
}

/* --- Page header (non-landing pages) --- */
.page-head {
  padding: var(--space-6) 0 var(--space-4);
  text-align: center;
}
.page-head .eyebrow { display: block; margin-bottom: .3rem; }

/* --- Featured class block --- */
.featured-class {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-4);
  align-items: center;
  background: rgba(255,252,245,.55);
  padding: var(--space-4);
  border-radius: var(--rad-lg);
  margin-bottom: var(--space-3);
  border: 1px solid rgba(58,40,24,.08);
}
.featured-class.reverse { grid-template-columns: 1.2fr 1fr; }
.featured-class.reverse > :first-child { order: 2; }
.featured-class .fc-img {
  border-radius: var(--rad-md);
  overflow: hidden;
  box-shadow: 0 18px 35px -22px rgba(58,40,24,.45);
  aspect-ratio: 4/5;
}
.featured-class .fc-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .featured-class, .featured-class.reverse { grid-template-columns: 1fr; }
  .featured-class.reverse > :first-child { order: 0; }
}

/* --- Gallery --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: var(--space-3);
}
.gallery img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: var(--rad-md);
  box-shadow: 0 10px 25px -15px rgba(58,40,24,.4);
  transition: transform .25s ease;
}
.gallery img:hover { transform: scale(1.03) rotate(-1deg); }

/* --- Gallery carousel (snap-scrolling, large slides) --- */
.gallery-carousel {
  position: relative;
  margin-top: var(--space-3);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.gc-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;   /* own horizontal drags; let the page scroll vertically */
  /* fade edges */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.gc-viewport:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
.gc-viewport.is-dragging,
.gc-viewport.is-dragging img { cursor: grabbing; }
.gc-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  will-change: transform;
}
.gc-slide {
  position: relative;
  flex: 0 0 auto;
  width: 40vh;            /* square: width matches height */
  height: 40vh;
  min-width: 240px;
  min-height: 240px;
  border-radius: var(--rad-md);
  overflow: hidden;
  box-shadow: 0 10px 25px -15px rgba(58,40,24,.4);
  background: var(--cream, #f6efe4);
  margin: 0;
}
.gc-slide::before {        /* blurred low-res placeholder (blur-up) */
  content: "";
  position: absolute;
  inset: -8%;
  background: var(--lqip, none) center / cover no-repeat;
  filter: blur(12px);
  transform: scale(1.05);
  z-index: 0;
}
.gc-slide img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;     /* crop to square in the strip */
  display: block;
  transition: transform .3s ease, opacity .5s ease;
}
/* Fade-in is JS-gated (.gc-ready) so the strip still shows with JS disabled. */
[data-gallery].gc-ready .gc-slide img { opacity: 0; }
[data-gallery].gc-ready .gc-slide img.loaded { opacity: 1; }
.gc-slide:hover img { transform: scale(1.04); }

/* nav arrows */
.gc-nav {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--rad-pill);
  background: var(--parchment-2, #EADFC7);
  color: var(--bark, #3A2818);
  cursor: pointer;
  box-shadow: 0 6px 16px -8px rgba(58,40,24,.5);
  transition: background .2s ease, transform .2s ease;
}
.gc-nav:hover { background: var(--terracotta); color: #fff; transform: scale(1.06); }
.gc-nav:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

/* pause / play control */
.gc-controls { display: flex; justify-content: center; margin-top: .9rem; }
.gc-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .85rem;
  border: 1px solid rgba(58,40,24,.15);
  border-radius: var(--rad-pill);
  background: var(--parchment-2, #EADFC7);
  color: var(--bark, #3A2818);
  font-size: .85rem;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.gc-toggle:hover { background: var(--terracotta); color: #fff; }
.gc-toggle:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.gc-toggle .gc-ic { fill: currentColor; }
.gc-toggle .gc-ic-play { display: none; }
.gallery-carousel.is-paused .gc-toggle .gc-ic-pause { display: none; }
.gallery-carousel.is-paused .gc-toggle .gc-ic-play { display: inline; }

/* --- Lightbox --- */
.gc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 5rem;
  background: rgba(42,29,16,.88);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
}
.gc-lightbox[hidden] { display: none; }
.gc-lb-stage {
  position: relative;
  flex: 1 1 auto;
  align-self: stretch;
}
.gc-lb-img {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  margin: auto;
  width: auto; height: auto;
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
  border-radius: var(--rad-md);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.7);
  opacity: 0;
  transition: opacity .35s ease;
}
.gc-lb-img.is-front { opacity: 1; }
.gc-lb-counter {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  letter-spacing: .03em;
  background: rgba(0,0,0,.25);
  padding: .25rem .75rem;
  border-radius: var(--rad-pill);
}
.gc-lb-close {
  position: fixed;
  top: 1rem; right: 1.25rem;
  width: 44px; height: 44px;
  font-size: 2rem; line-height: 1;
  border: none; border-radius: var(--rad-pill);
  background: rgba(255,255,255,.15);
  color: #fff; cursor: pointer;
  transition: background .2s ease;
}
.gc-lb-close:hover { background: rgba(255,255,255,.3); }
/* nav buttons pinned to the viewport edges, independent of image size */
.gc-lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border: none; border-radius: var(--rad-pill);
  background: rgba(255,255,255,.15);
  color: #fff; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.gc-lb-prev { left: 1rem; }
.gc-lb-next { right: 1rem; }
.gc-lb-nav:hover { background: rgba(255,255,255,.3); transform: translateY(-50%) scale(1.06); }
.gc-lb-close:focus-visible,
.gc-lb-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 600px) {
  .gc-slide { width: 60vw; height: 60vw; min-width: 180px; min-height: 180px; }
  .gc-nav { width: 38px; height: 38px; }
  .gc-lightbox { padding: 4vh 3.5rem; }
  .gc-lb-nav { width: 44px; height: 44px; }
  .gc-lb-prev { left: .35rem; }
  .gc-lb-next { right: .35rem; }
}

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .8s ease-out both; }
.delay-1 { animation-delay: .15s; }
.delay-2 { animation-delay: .3s; }
.delay-3 { animation-delay: .45s; }

/* --- Entrance reveal (font-aware) ---
   While fonts load, the page is held hidden (only when JS is present, via the
   .fonts-pending class set in <head>). Once fonts are ready — or after a short
   cap — the page fades in and the rise animations play, so the reader never
   sees the font swap. With JS off, nothing is hidden and behaviour is normal. */
body { opacity: 1; transition: opacity .55s ease; }
html.fonts-pending body { opacity: 0; }
html.fonts-pending .fade-up { animation: none; }   /* hold the rise until reveal */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.fonts-pending body { opacity: 1; }           /* never hide if motion is reduced */
}
