/* Famhisto — "The Open Archive" design system. See docs/design/design-system.md */

/* ---------- Fonts (self-hosted variable WOFF2) ---------- */
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-var.woff2') format('woff2-variations');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('/fonts/source-serif-var.woff2') format('woff2-variations');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --parchment: #f6f1e7;
  --parchment-deep: #efe7d6;
  --card: #fffdf7;
  --ink: #21251f;
  --ink-soft: #4d5246;
  --ink-faint: #8a8674;
  --library-green: #1e3d2f;
  --library-green-2: #2c5743;
  --brass: #a6802e;
  --brass-bright: #c9a14b;
  --error: #8c3a2b;
  --dark-ground: #16241d;
  --dark-text: #ece5d3;
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --radius: 2px;
  --container: 1180px;
  --shadow-card: 0 1px 2px rgba(33, 37, 31, 0.06), 0 4px 16px rgba(33, 37, 31, 0.05);
  --shadow-card-hover: 0 2px 4px rgba(33, 37, 31, 0.08), 0 10px 28px rgba(33, 37, 31, 0.09);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--parchment);
  font-variant-numeric: oldstyle-nums;
  /* paper grain: inline SVG noise at 2% */
  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.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 580;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.375rem); }
h3, .h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
h4, .h4 { font-size: 1.2rem; }
.h2 { font-size: clamp(1.75rem, 3.2vw, 2.375rem); font-family: var(--font-display); }
p { margin: 0 0 1em; }
a { color: var(--library-green); }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 2px solid var(--library-green-2); outline-offset: 3px; border-radius: 1px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--library-green); color: var(--parchment);
  padding: 0.6em 1.2em; border-radius: var(--radius);
}
.skip-link:focus { left: 8px; top: 8px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow, .container .narrow, .narrow { max-width: 880px; }
.portal-narrow { max-width: 560px; }
.centre { text-align: center; }
.section { padding: 88px 0; }
.section-alt { background: var(--parchment-deep); }
.section-gap { margin-top: 56px; }
.section-heading { text-align: center; margin-bottom: 48px; }

/* ---------- Type details ---------- */
.kicker {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 0.9em;
}
.kicker-centre { text-align: center; }
.text-link {
  color: var(--library-green);
  text-decoration-color: var(--brass-bright);
  text-underline-offset: 3px;
  font-weight: 560;
}
.text-link:hover { text-decoration-thickness: 2px; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }
.article-meta { color: var(--ink-faint); font-size: 0.875rem; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 620;
  letter-spacing: 0.02em;
  padding: 0.78em 1.5em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  min-height: 44px;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  font-variant-numeric: lining-nums;
}
.button-lg { padding: 0.95em 1.9em; font-size: 1rem; }
.button-primary { background: var(--library-green); color: var(--parchment); }
.button-primary:hover { background: var(--library-green-2); box-shadow: inset 0 0 0 1px var(--brass-bright); }
.button-secondary { background: transparent; color: var(--ink); border-color: var(--ink-soft); }
.button-secondary:hover { border-color: var(--library-green); color: var(--library-green); background: rgba(30, 61, 47, 0.04); }
.button-light { background: var(--parchment); color: var(--library-green); }
.button-light:hover { background: #fff; }
.button-ghost-light { background: transparent; color: var(--dark-text); border-color: rgba(236, 229, 211, 0.5); }
.button-ghost-light:hover { border-color: var(--dark-text); }
.button:disabled { opacity: 0.55; cursor: wait; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.2em 0 0.4em; }
.button-row-centre { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 231, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(138, 134, 116, 0.35);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 620;
  color: var(--library-green); text-decoration: none; letter-spacing: 0.01em;
}
.wordmark-glyph { color: var(--brass); }
.nav-menu { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-item > a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.9375rem; font-weight: 560;
  padding: 6px 2px;
}
.nav-item > a:hover, .nav-item > a[aria-current] { color: var(--library-green); box-shadow: 0 2px 0 var(--brass-bright); }
/* CTA in nav: out-specific .nav-item > a's colour, which would grey the button text */
.nav-item.nav-cta > a { color: var(--parchment); box-shadow: none !important; }
.nav-item.nav-cta > a:hover { color: var(--parchment); }
.nav-toggle { display: none; }
.has-children { position: relative; }
.nav-dropdown {
  visibility: hidden; opacity: 0; transform: translateY(6px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms;
  position: absolute; top: calc(100% + 10px); left: -14px; min-width: 230px;
  background: var(--card); border: 1px solid rgba(138, 134, 116, 0.4); border-radius: var(--radius);
  box-shadow: var(--shadow-card-hover); list-style: none; margin: 0; padding: 8px 0; z-index: 60;
}
.has-children:hover .nav-dropdown,
.has-children:focus-within .nav-dropdown { visibility: visible; opacity: 1; transform: translateY(0); }
.nav-dropdown a { display: block; padding: 9px 18px; color: var(--ink-soft); text-decoration: none; font-size: 0.9375rem; }
.nav-dropdown a:hover { background: var(--parchment-deep); color: var(--library-green); }

/* ---------- Hero ---------- */
.hero { padding: 92px 0 72px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; }
.hero-sub { font-size: 1.2rem; color: var(--ink-soft); max-width: 56ch; }
.hero-reassure { color: var(--ink-faint); font-size: 0.9rem; margin-top: 1em; }
.hero-card { padding: 28px; }
.hero-card-caption { color: var(--ink-faint); font-size: 0.875rem; text-align: center; margin: 0.8em 0 0; }
.hero-tree-labels { font-family: var(--font-body); }
.page-hero { padding: 76px 0 22px; }
.page-hero .hero-sub { font-size: 1.15rem; }

/* staggered load reveal */
.reveal-group > * { opacity: 0; transform: translateY(12px); animation: rise 480ms ease-out forwards; }
.reveal-group > *:nth-child(1) { animation-delay: 0ms; }
.reveal-group > *:nth-child(2) { animation-delay: 60ms; }
.reveal-group > *:nth-child(3) { animation-delay: 120ms; }
.reveal-group > *:nth-child(4) { animation-delay: 180ms; }
.reveal-group > *:nth-child(5) { animation-delay: 240ms; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 38px;
  padding: 18px 24px;
  border-top: 1px solid rgba(138, 134, 116, 0.35);
  border-bottom: 1px solid rgba(138, 134, 116, 0.35);
  font-size: 0.9rem; color: var(--ink-soft);
}
.trust-strip span::before { content: '◆'; color: var(--brass-bright); font-size: 0.6em; vertical-align: 2px; margin-right: 9px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.record-card {
  background: var(--card);
  border: 1px solid rgba(138, 134, 116, 0.45);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 160ms ease, transform 160ms ease;
  position: relative;
}
a .record-card:hover, .record-card:has(a:hover) { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.record-no {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-faint); border-bottom: 1px solid rgba(138, 134, 116, 0.35);
  padding-bottom: 10px; margin: 0 0 16px;
}
.service-card h3 a, .service-card .h3 a, .record-card h2 a, .record-card h3 a { color: var(--ink); text-decoration: none; }
.service-card h3 a:hover, .record-card h2 a:hover, .record-card h3 a:hover { color: var(--library-green); }
.card-price { color: var(--library-green); font-weight: 620; font-variant-numeric: lining-nums; }
.card-link { color: var(--brass); font-weight: 600; font-size: 0.9375rem; margin-bottom: 0; }
/* whole-card click target: stretch the single heading link over the card,
   so the "Explore →" affordance (a plain <p>) actually navigates */
.card-clickable h2 a::after, .card-clickable h3 a::after { content: ''; position: absolute; inset: 0; }
.case-era { color: var(--ink-faint); font-size: 0.9rem; }
.case-feature { max-width: 760px; margin: 0 auto; }
.quote-card {
  background: var(--card); border: 1px solid rgba(138, 134, 116, 0.45); border-radius: var(--radius);
  margin: 0; padding: 30px 28px 24px; position: relative; box-shadow: var(--shadow-card);
}
.quote-card::before {
  content: '“'; position: absolute; top: -6px; left: 14px;
  font-family: var(--font-display); font-size: 5.5rem; color: var(--brass); opacity: 0.18; line-height: 1;
}
.quote-card cite { font-style: normal; color: var(--ink-faint); font-size: 0.875rem; }
.guarantee-card { border-left: 3px solid var(--brass); }

/* check list */
.check-list { list-style: none; padding: 0; }
.check-list li { padding-left: 26px; position: relative; margin-bottom: 0.65em; }
.check-list li::before { content: '◆'; position: absolute; left: 2px; top: 1px; color: var(--brass-bright); font-size: 0.65em; }
.check-list-left { text-align: left; }

/* ---------- Archive photography (sepia duotone, mounted-print frame) ---------- */
.archive-photo {
  display: block;
  width: 100%;
  filter: sepia(0.32) contrast(1.04) saturate(0.92);
  border: 1px solid rgba(138, 134, 116, 0.5);
  background: var(--card);
  padding: 8px;
  box-shadow: var(--shadow-card);
}
.archive-photo--bare { padding: 0; border: none; box-shadow: none; }
.case-thumb { aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 16px; }
.case-feature-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 28px; align-items: center; }
.case-hero-img { aspect-ratio: 16 / 9; object-fit: cover; margin: 18px 0 26px; }
.aside-photo { margin-top: 28px; }
.aside-photo figcaption, .photo-caption { color: var(--ink-faint); font-size: 0.85rem; margin-top: 8px; }
.lead-magnet-photo { aspect-ratio: 4 / 3; object-fit: cover; }
/* hero gallery — record card beside an aligned strip of archival prints */
.hero-art { display: grid; grid-template-columns: 1fr 138px; gap: 16px; align-items: stretch; }
.hero-strip { display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.hero-strip .archive-photo { flex: 1 1 0; min-height: 0; min-width: 0; width: 100%; object-fit: cover; }
.hero-strip .archive-photo:nth-child(2) { object-position: 50% 42%; }
.hero-strip .archive-photo:nth-child(3) { object-position: 50% 22%; }
@media (max-width: 1100px) {
  .hero-art { grid-template-columns: 1fr; }
  .hero-strip { flex-direction: row; }
  .hero-strip .archive-photo { aspect-ratio: 1; }
}
@media (max-width: 980px) {
  .case-feature-grid { grid-template-columns: 1fr; }
}

/* hero tree — pedigree draws itself upward, generation by generation */
.hero-tree path { stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .hero-tree .tree-tier path {
    stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: tree-draw 650ms cubic-bezier(0.45, 0, 0.25, 1) forwards;
  }
  .hero-tree .tree-tier-1 path { animation-delay: 300ms; }
  .hero-tree .tree-tier-2 path { animation-delay: 780ms; }
  .hero-tree .tree-tier-3 path { animation-delay: 1260ms; }
  .hero-tree circle, .hero-tree text, .hero-tree .tree-beyond {
    opacity: 0; animation: tree-fade 450ms ease-out forwards;
  }
  .hero-tree .g1 { animation-delay: 180ms; }
  .hero-tree .g2 { animation-delay: 850ms; }
  .hero-tree .g3 { animation-delay: 1330ms; }
  .hero-tree .g4 { animation-delay: 1810ms; }
  .hero-tree .g5 { animation-delay: 2150ms; }
  .hero-tree .tree-beyond { animation-name: tree-fade-beyond; animation-delay: 2150ms; }
}
@keyframes tree-draw { to { stroke-dashoffset: 0; } }
@keyframes tree-fade { to { opacity: 1; } }
@keyframes tree-fade-beyond { to { opacity: 0.45; } }

/* ---------- Timeline (ancestry line) ---------- */
.timeline { list-style: none; counter-reset: step; padding: 0; margin: 0; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 17px; top: 8px; bottom: 8px;
  width: 1px; background: var(--brass-bright);
}
.timeline li { position: relative; padding: 0 0 30px 58px; counter-increment: step; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--parchment); border: 1px solid var(--brass);
  color: var(--brass); font-size: 0.8rem; font-weight: 620;
  display: flex; align-items: center; justify-content: center;
  font-variant-numeric: lining-nums;
}
.section-alt .timeline li::before { background: var(--parchment-deep); }
.timeline h3, .timeline .h3, .timeline h2 { margin-bottom: 0.25em; }
.timeline-portal li::before { content: ''; width: 14px; height: 14px; left: 11px; top: 6px; }
.timeline-portal li { padding-left: 50px; }
.milestone-done::before { background: var(--brass) !important; }
.milestone-current::before { background: var(--parchment); border-width: 2px !important; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(201, 161, 75, 0.25); } }
.milestone-upcoming { opacity: 0.6; }

/* ---------- Packages ---------- */
.package-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }
.package-featured { transform: translateY(-10px) scale(1.015); border-color: var(--brass); box-shadow: var(--shadow-card-hover); }
.stamp-badge {
  position: absolute; top: -13px; right: 16px;
  background: var(--card); border: 1px solid var(--brass); color: var(--brass);
  font-size: 0.7rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 4px 11px; border-radius: var(--radius); transform: rotate(-2deg);
  margin: 0;
}
.package-name { margin-bottom: 0.1em; }
.package-price { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; color: var(--library-green); margin: 0 0 0.35em; font-variant-numeric: lining-nums; }
.package-tagline { color: var(--ink-soft); }
.package-meta { color: var(--ink-faint); font-size: 0.875rem; border-top: 1px solid rgba(138,134,116,0.3); padding-top: 12px; }
.package-card .button-row { flex-direction: column; }
.package-card .button { width: 100%; }

/* compare table */
.compare-table { width: 100%; border-collapse: collapse; margin-top: 56px; background: var(--card); border: 1px solid rgba(138,134,116,0.45); font-size: 0.9375rem; }
.compare-table caption { text-align: left; font-family: var(--font-display); font-size: 1.2rem; padding: 0 0 14px; }
.compare-table th, .compare-table td { padding: 13px 16px; border: 1px solid rgba(138,134,116,0.3); text-align: left; vertical-align: top; }
.compare-table thead th { background: var(--parchment-deep); font-family: var(--font-display); font-size: 1.02rem; }
.compare-table tbody th { font-weight: 600; color: var(--ink-soft); width: 22%; }

/* price list */
.price-list { list-style: none; padding: 0; }
.price-list li {
  display: flex; justify-content: space-between; gap: 18px;
  padding: 13px 2px; border-bottom: 1px solid rgba(138,134,116,0.3);
}
.price-list li span:last-child { white-space: nowrap; font-weight: 620; color: var(--library-green); font-variant-numeric: lining-nums; }

/* vouchers */
.voucher-grid { grid-template-columns: repeat(3, 1fr); }
.voucher-card { text-align: center; }
.voucher-card .record-no { text-align: left; }
.voucher-amount { font-family: var(--font-display); font-size: 2.3rem; color: var(--library-green); margin: 0.1em 0; font-variant-numeric: lining-nums; }
.voucher-note { color: var(--ink-soft); min-height: 2.6em; }
.voucher-card .field { text-align: left; }

/* ---------- Sections: split layouts ---------- */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.split-form { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.split-form-aside { padding-top: 10px; }

/* ---------- Forms ---------- */
.form-card { padding: 32px; }
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-weight: 620; font-size: 0.9375rem; margin-bottom: 7px; }
.label-optional { color: var(--ink-faint); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="password"], .field input[type="number"], .field textarea,
.newsletter-row input[type="email"] {
  width: 100%; padding: 11px 13px;
  background: var(--parchment-deep);
  border: 1px solid rgba(138, 134, 116, 0.55);
  border-radius: var(--radius);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
}
.field input:focus, .field textarea:focus, .newsletter-row input:focus {
  outline: 2px solid var(--library-green-2); outline-offset: 0; border-color: var(--library-green-2);
}
.field textarea { resize: vertical; }
fieldset.field { border: none; padding: 0; margin-left: 0; margin-right: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.choice-row label { font-weight: 400; display: inline-flex; gap: 8px; align-items: center; margin: 0; }
.form-small { font-size: 0.85rem; color: var(--ink-faint); margin-top: 0.9em; }
.form-status { font-weight: 600; margin-top: 0.8em; min-height: 1.4em; }
.form-status.is-success { color: var(--library-green-2); }
.form-status.is-error { color: var(--error); }
.form-error { color: var(--error); font-weight: 600; }
/* honeypot: visually removed, still in the form for bots (not display:none — some skip those) */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- Lead magnet / CTA banner ---------- */
.lead-magnet { background: var(--parchment-deep); border-top: 1px solid rgba(138,134,116,0.35); border-bottom: 1px solid rgba(138,134,116,0.35); padding: 64px 0; }
.lead-magnet-inner { display: grid; grid-template-columns: 6fr 6fr; gap: 48px; align-items: center; }
.newsletter-row { display: flex; gap: 10px; }
.newsletter-row input { flex: 1; }
.cta-banner { background: var(--dark-ground); color: var(--dark-text); padding: 76px 0; }
.cta-banner h2 { color: var(--dark-text); }
.cta-banner p { color: rgba(236, 229, 211, 0.8); max-width: 52ch; }
.cta-banner-inner { text-align: center; }
.cta-banner .cta-banner-inner p { margin-inline: auto; }
.cta-banner .button-row { justify-content: center; }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--card); border: 1px solid rgba(138,134,116,0.45); border-radius: var(--radius);
  margin-bottom: 12px; padding: 0 22px;
}
.faq-item summary {
  cursor: pointer; list-style: none; font-weight: 620; padding: 17px 30px 17px 0; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  color: var(--brass); font-size: 1.4rem; transition: transform 160ms ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding-bottom: 18px; color: var(--ink-soft); max-width: 65ch; }
.faq-group { margin: 1.8em 0 0.8em; }

/* ---------- Articles ---------- */
.article-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.article-list { list-style: none; padding: 0; }
.article-list li { padding: 12px 2px; border-bottom: 1px solid rgba(138,134,116,0.3); }
.article-body h2 { margin-top: 1.5em; }
.article-body blockquote { border-left: 3px solid var(--brass-bright); margin-left: 0; padding-left: 1.2em; color: var(--ink-soft); }
.article-author { border-top: 1px solid rgba(138,134,116,0.35); margin-top: 2.5em; padding-top: 1.2em; color: var(--ink-soft); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 18px 24px 0; max-width: var(--container); margin: 0 auto; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: 0.85rem; color: var(--ink-faint); }
.breadcrumbs li + li::before { content: '›'; margin-right: 6px; color: var(--brass-bright); }
.breadcrumbs a { color: var(--ink-faint); }

/* ---------- Portal ---------- */
.portal-section { min-height: 50vh; }
.portal-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 40px; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: 0.7em; }
.contact-list strong { display: inline-block; min-width: 84px; }
.portrait-slot { max-width: 300px; float: right; margin: 0 0 20px 28px; text-align: center; }
.portrait-placeholder { color: var(--ink-faint); font-size: 0.875rem; padding: 36px 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-ground); color: var(--dark-text); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.6fr; gap: 40px; padding: 64px 24px 40px; }
.footer-wordmark { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 8px; }
.footer-tag { color: rgba(236,229,211,0.75); }
.footer-meta { color: rgba(236,229,211,0.5); font-size: 0.85rem; }
.footer-heading { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--brass-bright); margin: 0 0 14px; font-family: var(--font-body); font-weight: 650; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: rgba(236,229,211,0.85); text-decoration: none; font-size: 0.9375rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--brass-bright); }
.footer-newsletter { margin-top: 22px; }
.footer-newsletter label { display: block; margin-bottom: 10px; }
.footer-newsletter input { background: rgba(236,229,211,0.08); border: 1px solid rgba(236,229,211,0.25); color: var(--dark-text); }
.footer-newsletter input::placeholder { color: rgba(236,229,211,0.4); }
.footer-legal { border-top: 1px solid rgba(236,229,211,0.15); padding-top: 22px; padding-bottom: 26px; font-size: 0.85rem; color: rgba(236,229,211,0.55); }
.footer-legal a { color: rgba(236,229,211,0.7); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { max-width: 420px; }
  .card-grid, .package-grid, .voucher-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split-2, .split-form, .lead-magnet-inner { grid-template-columns: 1fr; gap: 32px; }
  .package-featured { transform: none; }
  .compare-table { display: block; overflow-x: auto; }
}
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 44px; }
  .card-grid, .package-grid, .voucher-grid, .article-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 9px;
    background: none; border: 1px solid var(--ink-soft); border-radius: var(--radius);
    padding: 8px 14px; font-family: var(--font-body); font-size: 0.9rem; color: var(--ink);
    cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 16px; height: 2px; background: var(--ink); position: relative; content: '';
  }
  .nav-toggle-bar::before { position: absolute; top: -5px; }
  .nav-toggle-bar::after { position: absolute; top: 5px; }
  .nav-menu {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--parchment); border-bottom: 1px solid rgba(138,134,116,0.4);
    padding: 8px 24px 20px; box-shadow: var(--shadow-card-hover);
  }
  .nav-menu.is-open { display: flex; }
  .nav-item > a { display: block; padding: 13px 2px; font-size: 1.05rem; }
  .nav-item > a:hover, .nav-item > a[aria-current] { box-shadow: none; }
  .nav-dropdown {
    visibility: visible; opacity: 1; transform: none; position: static;
    border: none; box-shadow: none; background: transparent; padding: 0 0 4px 18px;
  }
  .nav-cta { margin-top: 12px; }
  .nav-cta a { display: block; }
  .newsletter-row { flex-direction: column; }
  .portal-head { flex-direction: column; }
  .portrait-slot { float: none; margin: 0 0 24px; }
}

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

/* ---------- Print (voucher & pages read well on paper) ---------- */
@media print {
  .site-header, .site-footer, .cta-banner, .lead-magnet, .nav-toggle { display: none; }
  body { background: #fff; }
}
