/* =========================================================
   Mesomundo — site styles
   Colors and fonts are set once here in :root. Change them
   here and the whole site updates.
   ========================================================= */
:root {
  --cream: #f8f3ec;
  --sand: #efe6d8;
  --paper: #fffdf9;
  --ink: #1f2638;
  --ink-soft: #4a5068;
  --indigo: #2d3557;
  --gold: #b07a3b;
  --gold-dark: #8e5f29;
  --sage: #6f8471;
  --line: #e2d7c6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 38, 56, 0.08);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-underline-offset: 3px; }
a:hover { color: var(--indigo); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--indigo); margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.1em; }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.narrow { max-width: 720px; }
.center { text-align: center; margin-inline: auto; }
.eyebrow { font-family: var(--sans); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sage); font-weight: 600; margin-bottom: .8em; display: block; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }

/* Skip link for keyboard users */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--indigo); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 243, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 70px; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--indigo); font-family: var(--serif); font-size: 1.6rem; font-weight: 600; letter-spacing: .02em; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold-dark); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }
.nav-links a[aria-current="page"] { border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .45rem .6rem; cursor: pointer; color: var(--indigo); }
.nav-toggle svg { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  cursor: pointer; font-family: var(--sans); line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-dark); color: #fff; }
.btn-outline { border-color: var(--indigo); color: var(--indigo); background: transparent; }
.btn-outline:hover { background: var(--indigo); color: #fff; }
.btn-light { background: #fff; color: var(--indigo); }
.btn-light:hover { background: var(--sand); color: var(--indigo); }
.nav-cta { padding: .6rem 1.15rem; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.center .btn-row { justify-content: center; }

/* ---------- Sections ---------- */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-dark { background: var(--indigo); color: #e9e6f0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: #d8b88d; }

/* Hero */
.hero { padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3.5rem, 8vw, 6rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto -20% -60% auto; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(176,122,59,.18), rgba(176,122,59,0) 65%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 3.5rem; align-items: center; position: relative; }
.hero h1 em { font-style: italic; color: var(--gold-dark); }
.hero-art { aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #fff 0, var(--sand) 55%, #e6d6bf 100%); display: grid; place-items: center; box-shadow: var(--shadow); }
.hero-art svg { width: 70%; height: auto; }
.page-hero { padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3rem); }

/* Cards / grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.section-alt .card { background: var(--cream); }
.card h3 { margin-bottom: .4em; }
.card .icon { width: 44px; height: 44px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; margin-bottom: 1rem; color: var(--gold-dark); font-family: var(--serif); font-size: 1.3rem; font-weight: 700; }
.card-link { font-weight: 600; text-decoration: none; }
.card-link::after { content: " →"; }
.offer { display: flex; flex-direction: column; }
.offer ul { padding-left: 1.2rem; margin: 0 0 1.5rem; }
.offer li { margin-bottom: .35rem; }
.offer .btn { margin-top: auto; align-self: flex-start; }
.offer .price-note { font-size: .9rem; color: var(--sage); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.quote { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.35; color: var(--indigo); font-style: italic; border-left: 3px solid var(--gold); padding-left: 1.4rem; margin: 0; }
.section-dark .quote { color: #fff; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.steps li { counter-increment: step; position: relative; padding: 2rem 1.6rem 1.6rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step); position: absolute; top: -18px; left: 1.6rem; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: #fff; font-weight: 700; display: grid; place-items: center; }

/* Who it's for */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 2rem; position: relative; margin-bottom: .8rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--gold); background: var(--sand); }

/* ---------- Journey timeline (About page) ---------- */
.timeline { list-style: none; margin: 2.5rem 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--line), var(--gold), var(--line)); transform: translateX(-1px); }
.timeline li { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 3rem; position: relative; }
.timeline li::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 3px solid var(--cream); transform: translate(-50%, -50%); box-shadow: 0 0 0 2px var(--gold); }
.timeline li:nth-child(even) .tl-photo { order: 2; }
.tl-photo { margin: 0; }
.photo-frame {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; position: relative;
  background: repeating-linear-gradient(45deg, var(--sand), var(--sand) 12px, #f3ebdf 12px, #f3ebdf 24px);
  border: 1px dashed #cdbb9f; box-shadow: var(--shadow);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
/* Shown behind the photo; visible only until the real photo is added */
.photo-frame .ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1rem; color: var(--ink-soft); font-size: .9rem; z-index: 0; }
.photo-frame .ph strong { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--indigo); }
.photo-frame img.missing { display: none; }
.tl-text .age { font-family: var(--serif); font-size: 2.2rem; color: var(--gold-dark); font-weight: 600; line-height: 1; display: block; margin-bottom: .3rem; }

/* ---------- Videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.8rem; }
.video-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-embed { position: relative; aspect-ratio: 16 / 9; background: var(--indigo); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card .vc-body { padding: 1.2rem 1.4rem 1.4rem; }
.video-card h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.video-card p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.video-placeholder { display: grid; place-items: center; height: 100%; color: #d8d3e6; text-align: center; padding: 1rem; }
.video-placeholder svg { width: 56px; height: 56px; margin: 0 auto .6rem; opacity: .85; }

/* ---------- FAQ ---------- */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.4rem; margin-bottom: .9rem; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--indigo); list-style: none; position: relative; padding-right: 2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.4rem; color: var(--gold); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 0; color: var(--ink-soft); }

/* ---------- Contact form ---------- */
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #d6c9b5; border-radius: 10px; padding: .75rem .9rem;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.hidden { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--ink-soft); margin-top: 1rem; }

/* ---------- Next-step band ---------- */
.next-step { background: linear-gradient(135deg, var(--indigo), #3d4670); color: #ece9f3; text-align: center; }
.next-step h2 { color: #fff; }
.next-step p { max-width: 620px; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { background: #1a2033; color: #b9bccb; padding: 3.5rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { color: #fff; font-size: 1.5rem; }
.site-footer h3 { color: #fff; font-family: var(--sans); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #e3cfae; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #2e3550; margin-top: 2.5rem; padding-top: 1.5rem; font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split, .grid-2 { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-art { max-width: 240px; margin-inline: auto; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .steps { gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .timeline::before { left: 10px; }
  .timeline li { grid-template-columns: 1fr; gap: 1rem; padding-left: 2.4rem; }
  .timeline li::after { left: 10px; top: 1.2rem; }
  .timeline li:nth-child(even) .tl-photo { order: 0; }
}
@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav-links li a[aria-current="page"] { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border: 0; margin-top: .8rem; text-align: center; }
  .nav { position: relative; }
  .nav-right { display: flex; align-items: center; gap: .6rem; }
}
@media (min-width: 781px) { .nav-right { display: flex; align-items: center; gap: 1.6rem; } .mobile-cta { display: none; } }
@media (max-width: 440px) {
  .brand { font-size: 1.3rem; gap: .4rem; }
  .brand img { width: 26px; height: 26px; }
  .mobile-cta { padding: .5rem .85rem; font-size: .82rem; }
}
@media (max-width: 340px) { .mobile-cta { display: none; } }
