/* Wildfern Wellness — static demo site. Deliberately distinct from the
   Vidalistic platform design: terracotta on warm white, Fraunces display. */

:root {
  --bg: #fdfbf7;
  --bg-alt: #f6e9de;
  --ink: #29211a;
  --ink-soft: #6d6157;
  --terracotta: #b4552d;
  --terracotta-dark: #94431f;
  --olive: #708053;
  --cream: #fbf3ea;
  --line: rgba(41, 33, 26, 0.14);
  --footer: #2e2620;
  --radius: 1.1rem;
  --font-display: "Fraunces", serif;
  --font-body: "Outfit", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 300;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; }

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

button { font-family: inherit; cursor: pointer; }

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:active { transform: scale(0.97); }

.btn-lg { padding: 0.9rem 1.9rem; font-size: 1.05rem; }

.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-outline { background: transparent; border-color: var(--terracotta); color: var(--terracotta); }
.btn-outline:hover { background: rgba(180, 85, 45, 0.08); }

.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { color: var(--ink); background: rgba(41, 33, 26, 0.05); }

.btn-cream { background: var(--cream); color: var(--terracotta-dark); }
.btn-cream:hover { background: #fff; }

.btn-cream-outline { background: transparent; border-color: rgba(251, 243, 234, 0.5); color: var(--cream); }
.btn-cream-outline:hover { border-color: var(--cream); }

/* ── Animations ── */

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* Hero entrance (on load) */
.hero-copy > * { animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.32s; }
.hero-photo { animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both; }

/* Floating fern decorations in the hero — varied timing + a touch of scale
   "breathing" so the drift doesn't read as a single mechanical loop. */
@keyframes floatDrift {
  0%   { transform: translateY(0) rotate(0deg) scale(1); }
  28%  { transform: translateY(-11px) rotate(3deg) scale(1.035); }
  55%  { transform: translateY(-18px) rotate(-2deg) scale(0.97); }
  80%  { transform: translateY(-6px) rotate(2deg) scale(1.015); }
  100% { transform: translateY(0) rotate(0deg) scale(1); }
}

.hero { position: relative; }

.hero-flora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.flora {
  position: absolute;
  color: var(--terracotta);
  opacity: 0.1;
  animation: floatDrift 9s ease-in-out infinite;
}

.flora-1 { width: 140px; top: 4%; left: -34px; animation-duration: 10.5s; }
.flora-2 { width: 95px; bottom: 4%; left: 44%; animation-duration: 14s; animation-delay: -4s; }

/* ── Grain overlay ──
   Cheap paper-texture: a tiny inline SVG feTurbulence noise, tiled and painted
   at very low opacity above everything but below the modal. Purely visual, no
   layout cost, and unaffected by reduced-motion (it doesn't animate). */
.grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

@media (max-width: 600px) {
  .grain { opacity: 0.035; }
}

/* ── Magnetic buttons ── */
.magnetic { transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1); will-change: transform; }

/* Logo fern sways when hovering the brand */
@keyframes sway {
  0%, 100% { transform: rotate(0); }
  40%      { transform: rotate(-8deg); }
  70%      { transform: rotate(4deg); }
}

.brand:hover .brand-mark {
  animation: sway 1.1s ease-in-out;
  transform-origin: bottom center;
}

/* Selection pop for chips and service options in the booking modal */
@keyframes pop {
  0%   { transform: scale(0.94); }
  60%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.chip.selected, .option.selected { animation: pop 0.28s ease; }

/* FAQ answers slide open */
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.faq-list details[open] p { animation: faqIn 0.32s ease both; }

/* Scroll reveal — the .reveal class is only ever added by script.js (and only
   when the visitor doesn't prefer reduced motion), so no-JS users see everything. */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease var(--rd, 0s),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--rd, 0s);
}

.reveal.in { opacity: 1; transform: none; }

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

/* ── Navbar ── */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 5vw;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand-mark { width: 30px; height: 30px; color: var(--terracotta); flex-shrink: 0; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-name em { font-style: normal; font-weight: 400; color: var(--terracotta); }

.nav-links { display: flex; gap: 1.6rem; }

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1.5px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover { color: var(--terracotta); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Mobile-menu book button: the header CTA is hidden on small screens. */
.nav-book-inmenu { display: none; }

.nav-toggle { display: none; background: none; border: none; flex-direction: column; gap: 6px; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; }

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 5vw 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 0; }
  .nav-links .nav-book-inmenu { display: inline-flex; margin-top: 0.75rem; align-self: flex-start; }
  .nav-toggle { display: flex; }
  .nav-book { display: none; }
}

/* ── Hero ── */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  max-width: 74rem;
  margin: 0 auto;
  padding: 5rem 5vw 6rem;
}

.kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--terracotta);
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); margin-bottom: 1.4rem; }

.accent { color: var(--terracotta); font-style: italic; }

.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 34rem; margin-bottom: 2.2rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.4rem; }

.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-badges li {
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--cream);
}

.hero-photo { position: relative; }

.hero-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 42% 42% var(--radius) var(--radius) / 30% 30% var(--radius) var(--radius);
  transition: transform 0.6s ease;
}

.hero-photo:hover img { transform: scale(1.025); }

.hero-photo figcaption {
  margin-top: 0.8rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 3rem; }
  .hero-photo { max-width: 380px; }
}

/* ── Sections ── */

.section { padding: 5rem 5vw; }

.section > * { max-width: 74rem; margin-left: auto; margin-right: auto; }

.section-alt { background: var(--bg-alt); }

.section-head { margin-bottom: 3rem; }

.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); max-width: 30ch; }

/* ── About ── */

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 2.75rem;
  align-items: start;
}

.about-text p { color: var(--ink-soft); font-size: 1.05rem; }
.about-text p + p { margin-top: 1.1rem; }

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  filter: sepia(0.15) saturate(1.1);
}

.about-photo .illustration-banner {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
}

.about-photo .illustration-banner svg {
  width: 56%;
  max-width: 16rem;
}

.about-stats {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.about-stats li {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
}

.about-stats strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--terracotta); }
.about-stats span { color: var(--ink-soft); font-size: 0.95rem; }

@media (max-width: 1000px) { .about-grid { grid-template-columns: 1fr 1fr; } .about-text { grid-column: span 2; } }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; gap: 2rem; } .about-text { grid-column: auto; } }

/* ── Services ── */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.4rem;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(41, 33, 26, 0.08);
}

.service-card h3 { font-size: 1.3rem; }

.service-card p { color: var(--ink-soft); font-size: 0.95rem; flex-grow: 1; }

.service-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px dashed var(--line);
  padding-top: 0.9rem;
}

.service-meta span { color: var(--ink-soft); font-size: 0.9rem; }
.service-meta strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--terracotta-dark); }

/* ── Approach ── */

/* Vine that draws itself as the Approach section scrolls into view. Default
   (no-JS / reduced-motion) state is fully drawn and leaves fully unfurled —
   script.js only adds the hidden-then-revealed animation when motion is on. */
.vine-wrap { max-width: 74rem; margin: 0 auto 1.5rem; color: var(--olive); }

.vine { width: 100%; height: auto; display: block; }

.vine-path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.5;
}

.vine-leaf { transform: scale(1) rotate(0deg); transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }
.vine-leaf path { fill: var(--terracotta); opacity: 0.75; }

@media (max-width: 720px) { .vine-wrap { display: none; } }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  counter-reset: step;
}

.steps li { border-top: 2px solid var(--terracotta); padding-top: 1.4rem; }

.step-num { font-family: var(--font-display); color: var(--terracotta); font-size: 1rem; letter-spacing: 0.1em; }

.steps h3 { font-size: 1.5rem; margin: 0.5rem 0 0.6rem; }

.steps p { color: var(--ink-soft); font-size: 0.98rem; }

@media (max-width: 720px) { .steps { grid-template-columns: 1fr; gap: 1.8rem; } }

/* ── Testimonials ── */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.4rem;
}

.quote-grid blockquote {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quote-grid blockquote:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(41, 33, 26, 0.07);
}

.quote-grid p { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.5; margin-bottom: 1.2rem; }

.quote-grid cite { font-style: normal; font-size: 0.85rem; color: var(--ink-soft); letter-spacing: 0.06em; text-transform: uppercase; }

/* ── FAQ ── */

.faq-list { max-width: 46rem; }

.faq-list details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }

.faq-list summary {
  font-family: var(--font-display);
  font-size: 1.15rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-list summary::after { content: "+"; color: var(--terracotta); font-size: 1.4rem; font-family: var(--font-body); }

.faq-list details[open] summary::after { content: "–"; }

.faq-list details p { margin-top: 0.7rem; color: var(--ink-soft); max-width: 60ch; }

/* ── CTA band ── */

@keyframes breathe {
  0%, 100% { opacity: 0.45; scale: 1; }
  50%      { opacity: 0.9; scale: 1.15; }
}

.cta-band {
  background: var(--terracotta);
  color: var(--cream);
  text-align: center;
  padding: 5rem 5vw;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 70vw;
  height: 70vw;
  border-radius: 50%;
  top: -40vw;
  left: 50%;
  translate: -50% 0;
  background: radial-gradient(circle, rgba(251, 243, 234, 0.16), transparent 62%);
  animation: breathe 7s ease-in-out infinite;
  pointer-events: none;
}

.cta-band > * { position: relative; }

.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.8rem; }

.cta-band p { color: rgba(251, 243, 234, 0.85); margin-bottom: 2.2rem; }

.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.9rem; }

.map-frame {
  position: relative;
  max-width: 30rem;
  aspect-ratio: 16 / 8;
  margin: 2.75rem auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(251, 243, 234, 0.35);
}

.map-frame svg { width: 100%; height: 100%; display: block; }

.map-bg { fill: rgba(251, 243, 234, 0.06); }

.map-roads path { stroke: rgba(251, 243, 234, 0.22); stroke-width: 3; fill: none; }
.map-roads .map-road-main { stroke: rgba(251, 243, 234, 0.32); stroke-width: 5; }

.map-blocks rect { fill: rgba(251, 243, 234, 0.12); }

.map-pin { fill: var(--cream); }
.map-pin-dot { fill: var(--terracotta); }

.map-pulse {
  fill: var(--cream);
  opacity: 0.4;
  transform-origin: 215px 95px;
  animation: mapPulse 2.4s ease-out infinite;
}

@keyframes mapPulse {
  0%   { transform: scale(0.6); opacity: 0.5; }
  100% { transform: scale(2.6); opacity: 0; }
}

.map-label {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  background: rgba(41, 33, 26, 0.55);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.72rem;
  color: var(--cream);
}

@media (prefers-reduced-motion: reduce) {
  .map-pulse { animation: none; opacity: 0.3; }
}

/* ── Footer ── */

.footer { background: var(--footer); color: rgba(251, 243, 234, 0.75); padding: 3.5rem 5vw; }

.footer-inner { max-width: 74rem; margin: 0 auto; display: grid; gap: 1.2rem; justify-items: center; text-align: center; }

.footer-brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--cream); }

.footer-brand .brand-mark { color: #d8916c; }

.footer address { font-style: normal; font-size: 0.95rem; }

.footer-note { font-size: 0.8rem; color: rgba(251, 243, 234, 0.45); }

/* ── Booking modal ── */

/* Our display rules (flex/inline-flex) would beat the UA style for [hidden]. */
[hidden] { display: none !important; }

@keyframes backdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(41, 33, 26, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: backdropIn 0.25s ease both;
}

.modal {
  position: relative;
  animation: modalIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
  background: var(--bg);
  border-radius: var(--radius);
  width: min(34rem, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 2.2rem 2rem 1.8rem;
}

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--ink-soft);
  line-height: 1;
}

.modal-close:hover { color: var(--ink); }

.modal h3 { font-size: 1.45rem; margin-bottom: 1.2rem; }

.progress {
  list-style: none;
  display: flex;
  gap: 0.4rem;
  margin: 0.4rem 0 1.8rem;
}

.progress li {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  padding-top: 0.5rem;
  border-top: 3px solid var(--line);
}

.progress li.active { color: var(--terracotta); border-top-color: var(--terracotta); }
.progress li.done { border-top-color: var(--olive); color: var(--olive); }

.option-list { display: grid; gap: 0.7rem; }

.option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 1rem 1.2rem;
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.option small { color: var(--ink-soft); display: block; }

.option strong { font-family: var(--font-display); color: var(--terracotta-dark); }

.option.selected { border-color: var(--terracotta); background: #fff; box-shadow: 0 0 0 1px var(--terracotta); }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }

.chip {
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
  color: var(--ink);
}

.chip.selected { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-grid label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.88rem; color: var(--ink-soft); }

.form-grid .span2 { grid-column: span 2; }

.form-grid input,
.form-grid textarea,
.fake-card input {
  font-family: inherit;
  font-size: 0.98rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: #fff;
  color: var(--ink);
}

.form-grid input:focus,
.form-grid textarea:focus { outline: 2px solid var(--terracotta); outline-offset: 1px; }

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: span 1; }
}

.summary {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.summary strong { font-family: var(--font-display); }

.summary .sum-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.2rem 0; }

.demo-wall {
  background: #fdf1e8;
  border: 1.5px dashed var(--terracotta);
  border-radius: 0.8rem;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.2rem;
}

.demo-wall strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--terracotta-dark);
  margin-bottom: 0.25rem;
}

.demo-wall p { font-size: 0.92rem; color: var(--ink-soft); }

.fake-card { display: grid; gap: 0.8rem; opacity: 0.55; }

.fake-card label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.88rem; color: var(--ink-soft); }

.fake-card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }

.modal-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.6rem;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}

.modal-nav .btn-primary { margin-left: auto; }

body.modal-open { overflow: hidden; }

/* ── Blog ── */

.blog-hero {
  max-width: 74rem;
  margin: 0 auto;
  padding: 4.5rem 5vw 3rem;
}

.blog-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); max-width: 22ch; margin-bottom: 1rem; }
.blog-hero .lede { margin-bottom: 0; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 2rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(41, 33, 26, 0.1);
}

.blog-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.15) saturate(1.1);
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-media img { transform: scale(1.06); }

.blog-tag {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  background: rgba(253, 251, 247, 0.92);
  color: var(--terracotta-dark);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.blog-card-body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; gap: 0.7rem; flex-grow: 1; }

.blog-card-body h3 { font-size: 1.28rem; line-height: 1.25; }

.blog-card-body p { color: var(--ink-soft); font-size: 0.95rem; flex-grow: 1; }

.blog-meta {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-meta .dot { opacity: 0.5; }

.blog-card-cta {
  margin-top: 0.3rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--terracotta);
}

/* ── Blog article ── */

.article-header {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3.5rem 5vw 2rem;
  text-align: center;
}

.article-header .blog-meta { justify-content: center; margin-bottom: 1rem; }

.article-header h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); margin-bottom: 0.4rem; }

.article-hero-media {
  max-width: 60rem;
  margin: 0 auto 3rem;
  padding: 0 5vw;
}

.article-hero-media img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: var(--radius);
  filter: sepia(0.15) saturate(1.1);
}

/* ── Illustrated banners (replace stock photography) ── */

.illustration-banner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--olive) 100%);
  color: var(--cream);
}

.article-hero-media .illustration-banner {
  aspect-ratio: 16 / 8;
  border-radius: var(--radius);
}

.illustration-banner svg {
  width: 34%;
  max-width: 9rem;
  height: auto;
  stroke: currentColor;
}

.article-body {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 5vw 5rem;
}

.article-body p { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 1.2rem; }

.article-body h2 { font-size: 1.5rem; margin: 2.2rem 0 0.9rem; color: var(--ink); }

.article-body .byline { color: var(--ink); font-weight: 500; }

.article-cta {
  margin-top: 2.5rem;
  padding: 1.8rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  text-align: center;
}

.article-cta p { color: var(--ink-soft); margin-bottom: 1rem; }

.article-back-wrap { max-width: 60rem; margin: 0 auto; padding: 2rem 5vw 0; }

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--terracotta);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.article-back:hover { text-decoration: underline; }
