/* =========================================================================
   Chemin Serein — Site stylesheet
   -------------------------------------------------------------------------
   SEASONAL COLOR SWAP:
   To change the whole site's palette (e.g. for a season), edit ONLY the
   values under ":root" below. Nothing else needs to change.
   ---- Suggested seasonal accents ----
   Default gold ...... #B08D49
   Autumn copper ..... #A8602D
   Winter slate ...... #6E7E8A
   Spring sage ....... #8AA17C
   ========================================================================= */

:root {
  /* Brand palette — edit these to re-theme the site */
  --cream:        #F7F3EC;   /* page background        */
  --cream-deep:   #EFE8DC;   /* alt section background */
  --ink:          #2B2A28;   /* primary text           */
  --ink-soft:     #5B574F;   /* secondary text         */
  --gold:         #B08D49;   /* accent                 */
  --gold-deep:    #927235;   /* accent hover / borders */
  --dark:         #23211E;   /* footer / dark sections */
  --line:         #DDD4C5;   /* hairline dividers      */

  /* Type */
  --serif: "Cormorant Garamond", Cambria, "Times New Roman", serif;
  --sans:  "Jost", "Century Gothic", Calibri, Arial, sans-serif;

  /* Layout */
  --max:   1140px;
  --radius: 2px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-deep); text-decoration: none; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: .74rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 15px 34px;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  transition: all .25s ease;
  cursor: pointer;
}
.btn--solid { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn--solid:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--light:hover { background: #fff; color: var(--dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,243,236,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; flex-direction: row; align-items: center; justify-content: flex-start;
  gap: 28px; min-height: 84px; padding-top: 18px; padding-bottom: 18px;
  position: relative;
}
.nav-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo { height: 90px; width: auto; }

.nav-center-group {
  display: flex; align-items: center; gap: 18px;
  position: absolute; left: calc(50% - 90px); top: 50%; transform: translate(-50%, -50%);
}
.nav { display: flex; align-items: center; gap: 18px; }
.nav a.navlink {
  font-family: var(--sans); font-weight: 400; font-size: .74rem;
  letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft);
  white-space: nowrap;
}
.nav a.navlink:hover, .nav a.navlink.active { color: var(--gold-deep); }

.hero-wordmark { margin-bottom: 36px; }
.hero-wordmark-name {
  display: block; font-family: var(--serif); font-size: 1.6rem; letter-spacing: .16em;
  text-transform: uppercase; color: #fff;
}
.hero-wordmark-sub {
  display: block; font-family: var(--sans); font-size: .74rem; letter-spacing: .3em;
  text-transform: uppercase; color: #E7D9BC; margin-top: 6px;
}

.lang-toggle {
  display: flex; align-items: center; border: 1px solid var(--line);
  border-radius: 30px; overflow: hidden; flex-shrink: 0; margin-left: auto;
}
.lang-toggle button {
  font-family: var(--sans); font-size: .72rem; letter-spacing: .1em;
  padding: 7px 12px; background: transparent; border: 0; cursor: pointer;
  color: var(--ink-soft); transition: all .2s; white-space: nowrap;
}
.lang-toggle button.active { background: var(--gold); color: #fff; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; flex-shrink: 0; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; text-align: center;
  padding: 120px 0 110px;
  background:
    linear-gradient(rgba(35,33,30,.55), rgba(35,33,30,.62)),
    url("hero.webp") center/cover no-repeat;
  color: #fff;
}
.hero .eyebrow { color: #E7D9BC; }
.hero h1 {
  color: #fff; font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 500; margin-bottom: .35em; letter-spacing: .015em;
}
.hero p.lead {
  max-width: 640px; margin: 0 auto 2.2rem; font-size: 1.12rem;
  color: rgba(255,255,255,.9); font-weight: 300;
}
.hero .btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section.block { padding: 92px 0; }
section.block.alt { background: var(--cream-deep); }
section.block.dark { background: var(--dark); color: var(--cream); }
section.block.dark h1, section.block.dark h2, section.block.dark h3 { color: #fff; }
section.block.dark .eyebrow { color: #D9C49A; }

.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }

.lead-narrow { max-width: 760px; font-size: 1.12rem; color: var(--ink-soft); }

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 32px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.alt .card { background: #fff; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(43,42,40,.35); }
.card .ico {
  width: 46px; height: 46px; margin-bottom: 20px;
  color: var(--gold-deep);
}
.card h3 { font-size: 1.5rem; margin-bottom: .4em; }
.card p { color: var(--ink-soft); margin: 0; font-size: .98rem; }

/* feature list */
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
  position: relative; padding: 0 0 14px 30px; color: var(--ink-soft);
}
.feature-list li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 7px; height: 7px; transform: rotate(45deg);
  background: var(--gold);
}
.dark .feature-list li { color: rgba(247,243,236,.85); }

/* split (text + image) */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; min-height: 360px; }

/* ---------- Services detailed ---------- */
.svc-row { display: grid; grid-template-columns: 280px 1fr; gap: 44px; padding: 46px 0; border-top: 1px solid var(--line); }
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row h3 { font-size: 1.7rem; }
.svc-row .num { font-family: var(--serif); font-size: 1rem; color: var(--gold-deep); letter-spacing: .2em; }

/* ---------- Packages ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.pkg {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 42px 34px; display: flex; flex-direction: column;
}
.pkg.featured { border-color: var(--gold); box-shadow: 0 24px 60px -34px rgba(146,114,53,.55); position: relative; }
.pkg.featured .tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #fff; font-family: var(--sans);
  font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 30px; white-space: nowrap;
}
.pkg .pkg-name { font-family: var(--serif); font-size: 1.7rem; margin-bottom: 2px; }
.pkg .pkg-tagline { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 22px; }
.pkg .pkg-price { font-family: var(--serif); font-size: 2.1rem; color: var(--ink); margin-bottom: 6px; }
.pkg .pkg-price span { font-size: .95rem; color: var(--ink-soft); font-family: var(--sans); }
.pkg .feature-list { margin: 22px 0 28px; flex: 1; }
.pkg .feature-list li { font-size: .95rem; }
.pkg .btn { width: 100%; text-align: center; }

.note-line { text-align: center; color: var(--ink-soft); font-size: .95rem; margin-top: 30px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; }
.contact-info .info-item { margin-bottom: 26px; }
.contact-info .info-item .label { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 4px; }
.contact-info .info-item .val { font-size: 1.15rem; color: var(--ink); }

form .field { margin-bottom: 20px; }
form label { display: block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
form input, form select, form textarea {
  width: 100%; padding: 13px 15px; font-family: var(--sans); font-size: .98rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink);
}
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--gold); }
form textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Honeypot — visually hidden but present for bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Privacy consent checkbox on public forms */
.consent-check {
  display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 22px;
  font-size: .88rem; color: var(--ink-soft); cursor: pointer; line-height: 1.5;
}
.consent-check input[type="checkbox"] { margin-top: 4px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; }
.consent-check a { text-decoration: underline; }
.consent-check.invalid { color: #a8402d; }
.consent-check.invalid input[type="checkbox"] { outline: 2px solid #a8402d; outline-offset: 2px; }

/* Inline field validation */
.field-error {
  display: none;
  margin-top: 7px;
  font-size: .8rem;
  color: #a8402d;
}
.field.invalid .field-error { display: block; }
.field.invalid input { border-color: #a8402d; }

/* ---------- Quote / CTA strip ---------- */
.cta-strip { text-align: center; }
.cta-strip h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); max-width: 760px; margin: 0 auto .8em; }
.cta-strip p { max-width: 560px; margin: 0 auto 2rem; color: rgba(247,243,236,.82); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(247,243,236,.7); padding: 70px 0 34px; }
.site-footer .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.site-footer img.foot-logo { height: 56px; margin-bottom: 18px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-weight: 400; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer a { color: rgba(247,243,236,.7); display: block; margin-bottom: 10px; font-size: .95rem; }
.site-footer a:hover { color: var(--gold); }
.site-footer p { font-size: .95rem; margin: 0 0 10px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; }

/* ---------- Language visibility ---------- */
[data-lang] { display: none; }
html[lang="fr"] [data-lang="fr"] { display: revert; }
html[lang="en"] [data-lang="en"] { display: revert; }
/* block-level helpers keep grid/flex display */
html[lang="fr"] [data-lang="fr"].d-block,
html[lang="en"] [data-lang="en"].d-block { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { position: fixed; inset: 84px 0 auto 0; flex-direction: column; justify-content: flex-start; gap: 0;
         background: var(--cream); border-bottom: 1px solid var(--line);
         padding: 12px 0; transform: translateY(-130%); transition: transform .3s ease; }
  .nav.open { transform: translateY(0); }
  .nav a.navlink { padding: 14px 28px; width: 100%; }
  .nav-toggle { display: block; }
  .site-header .wrap { position: relative; justify-content: center; }
  .nav-toggle { position: absolute; left: 28px; top: 50%; transform: translateY(-50%); }
  .site-header .wrap { min-height: 0; padding-top: 22px; padding-bottom: 22px; }

  /* The logo+links wrapper stops being absolutely centered on the page —
     on mobile it just needs to show the logo (the links portion becomes
     the fixed dropdown above and visually leaves this flow entirely). */
  .nav-center-group { position: static; transform: none; flex: 1; justify-content: center; }
  .nav-logo-link { padding: 0; }
  .nav-logo { height: 70px; }

  /* Always visible, pinned to the true right edge - independent of
     whether the link dropdown is open or closed. */
  .lang-toggle { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); margin-left: 0; }

  .grid-2, .grid-3, .pkg-grid, .contact-grid, .split { grid-template-columns: 1fr; }
  .split { gap: 32px; }
  .svc-row { grid-template-columns: 1fr; gap: 16px; padding: 34px 0; }
  .site-footer .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line, rgba(43,42,40,.12)); padding: 4px 0; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 22px 36px 22px 0; position: relative;
  font-family: "Cormorant Garamond", serif; font-size: 1.28rem; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 20px; font-size: 1.6rem; line-height: 1;
  color: var(--gold-deep); transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer { padding: 0 36px 26px 0; color: var(--ink-soft); font-size: 1.02rem; max-width: 700px; }
.faq-item summary:hover { color: var(--gold-deep); }

/* ---------- Legal pages ---------- */
.legal-body h2 { font-size: 1.5rem; margin: 40px 0 14px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.7; }
.legal-body ul { padding-left: 22px; margin: 10px 0 20px; }
.legal-updated { color: var(--ink-soft); font-size: .9rem; margin-bottom: 30px; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 120px 0; }
.error-page .error-code { font-family: "Cormorant Garamond", serif; font-size: clamp(4rem, 12vw, 7rem); color: var(--gold); line-height: 1; }

/* ---------- Resources / Family Guide ---------- */
.toc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 900px; }
.toc-grid a {
  display: block; padding: 14px 18px; border: 1px solid var(--line, rgba(43,42,40,.14));
  border-radius: 4px; color: var(--ink); font-size: .92rem; transition: all .2s;
}
.toc-grid a:hover { border-color: var(--gold); color: var(--gold-deep); background: var(--cream-deep); }
@media (max-width: 900px) { .toc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .toc-grid { grid-template-columns: 1fr; } }

.resource-section { scroll-margin-top: 100px; }
.resource-section + .resource-section { margin-top: 6px; }

.checklist { list-style: none; padding: 0; margin: 10px 0 20px; max-width: 700px; }
.checklist li {
  position: relative; padding: 10px 0 10px 34px; color: var(--ink-soft);
  border-bottom: 1px solid rgba(43,42,40,.08); font-size: 1.02rem;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 17px; height: 17px;
  border: 1.5px solid var(--gold); border-radius: 3px;
}

.resource-callout {
  border-left: 3px solid var(--gold); background: var(--cream-deep);
  padding: 18px 22px; margin: 22px 0; border-radius: 0 4px 4px 0;
}
.resource-callout p { margin: 0; color: var(--ink); }

.crisis-box {
  border: 1px solid rgba(168,64,45,.35); background: rgba(168,64,45,.06);
  padding: 18px 22px; margin: 22px 0 30px; border-radius: 4px;
}
.crisis-box p { margin: 0; color: var(--ink); }
.crisis-box strong { color: #a8402d; }

.term-item summary { font-size: 1.08rem; }
