/* Layout: white/ivory pages with deep-navy bands, gold used sparingly for action + emphasis */
:root {
  --navy: #0d1b36;
  --navy-2: #14284d;
  --navy-3: #1d3766;
  --gold: #b88a2e;
  --gold-soft: #e9d9b3;
  --gold-text: #8a6519;
  --ivory: #f7f4ee;
  --paper: #ffffff;
  --ink: #17213a;
  --muted: #5a6478;
  --line: #e2ddd2;
  --line-dark: rgba(255,255,255,.12);
  --ok: #2f7a4f;
  --err: #a8322d;
  --display: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 10px;
  --shadow: 0 18px 40px -22px rgba(13,27,54,.35);
  --max: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; text-wrap: balance; margin: 0; color: inherit; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-text); margin-bottom: 14px; display: block;
}
.dark .eyebrow { color: var(--gold); }
.gold { color: var(--gold); }
em.gold { font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  padding: 16px 26px; border-radius: 999px; border: 1.5px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #a37a25; }
.btn-ghost { border-color: currentColor; color: var(--navy); background: transparent; }
.dark .btn-ghost { color: #fff; }
.btn-ghost:hover { background: rgba(184,138,46,.1); }
.btn svg { width: 18px; height: 18px; }
.link-arrow { font-weight: 700; color: var(--gold-text); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.dark .link-arrow { color: var(--gold); }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 50px; height: 36px; object-fit: contain; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.brand-name span { color: var(--gold); }
.brand-sub { display: block; font-family: var(--body); font-size: .62rem; letter-spacing: .32em; color: var(--muted); margin-top: 5px; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink); padding: 10px 14px; border-radius: 999px; }
.nav-links a:hover { background: var(--ivory); }
.nav-links a[aria-current="page"] { color: var(--gold-text); }
.nav-links .btn { padding: 12px 20px; color: #fff; margin-left: 8px; }
.nav-links .btn:hover { background: #a37a25; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--navy); }
.menu-btn svg { width: 26px; height: 26px; }

@media (max-width: 980px) {
  .menu-btn { display: block; }
  .nav-links {
    position: absolute; top: 78px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px));
    gap: 2px; display: none; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 12px; }
  .nav-links .btn { margin: 10px 0 0; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section.ivory { background: var(--ivory); }
.dark { background: var(--navy); color: #eef1f7; }
.dark .lede { color: #b9c3d6; }
.section-head { display: grid; gap: 14px; margin-bottom: 48px; max-width: 720px; }
.section-head.center { text-align: center; margin-inline: auto; justify-items: center; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -180px; top: -160px; width: 560px; height: 560px; border-radius: 50%;
  border: 1px solid rgba(184,138,46,.25); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-block: clamp(56px, 8vw, 96px); }
.hero h1 { color: #fff; }
.hero .lede { color: #c3cbdc; margin: 22px 0 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: 14px; aspect-ratio: 4/3.4; object-fit: cover; width: 100%; }
.hero-badge {
  position: absolute; left: -28px; bottom: 28px; background: var(--paper); color: var(--ink);
  padding: 16px 20px; border-radius: 12px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; max-width: 290px;
}
.hero-badge .ico { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-text); display: grid; place-items: center; }
.hero-badge strong { display: block; font-size: .95rem; }
.hero-badge span { font-size: .85rem; color: var(--muted); }
.trust { border-top: 1px solid var(--line-dark); }
.trust ul { list-style: none; margin: 0; padding: 22px 0; display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: space-between; }
.trust li { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: #c3cbdc; }
.trust svg { width: 18px; height: 18px; color: var(--gold); flex: none; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-badge { left: 14px; bottom: 14px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--navy); color: #fff; padding-block: clamp(56px, 7vw, 88px); }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); max-width: 18ch; }
.page-hero .lede { color: #c3cbdc; margin-top: 18px; }
.crumbs { font-size: .85rem; color: #8f9bb3; margin-bottom: 18px; }
.crumbs a { color: #c3cbdc; text-decoration: none; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; gap: 14px; min-width: 0;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: var(--gold-soft); box-shadow: var(--shadow); transform: translateY(-2px); }
.card .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--ivory); color: var(--gold-text); display: grid; place-items: center; }
.card .ico svg { width: 24px; height: 24px; }
.card p { color: var(--muted); }
.card .link-arrow { margin-top: auto; padding-top: 8px; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: 14px; width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.split-body { display: grid; gap: 20px; min-width: 0; }
.checks { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.checks svg { width: 22px; height: 22px; color: var(--gold); margin-top: 3px; }
.checks strong { color: inherit; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.reverse .split-media { order: 0; } }

/* ---------- Process steps (a real sequence) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; counter-reset: step; position: relative; }
.step { padding: 0 26px 0 0; position: relative; min-width: 0; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold);
  display: grid; place-items: center; font-family: var(--display); font-size: 1.3rem; font-weight: 700;
  background: var(--navy); position: relative; z-index: 1; margin-bottom: 22px;
}
.step::before { content: ""; position: absolute; top: 26px; left: 52px; right: 0; height: 1px; background: rgba(184,138,46,.35); }
.step:last-child::before { display: none; }
.step h3 { color: #fff; margin-bottom: 10px; }
.step p { color: #b9c3d6; font-size: .98rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .step::before { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.value { border-top: 2px solid var(--gold); padding-top: 22px; display: grid; gap: 10px; }
.value p { color: var(--muted); }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy-2); color: #fff; border-radius: 18px; padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -90px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(184,138,46,.3); }
.cta-band p { color: #c3cbdc; margin-top: 12px; max-width: 52ch; }
.cta-band .btn { position: relative; z-index: 1; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 0 24px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 20px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-text); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 20px; color: var(--muted); }

/* ---------- Forms ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); min-width: 0; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .legend { font-weight: 700; font-size: .92rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 8px; padding: 13px 14px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,138,46,.18); }
.field textarea { min-height: 120px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
.form-grid { display: grid; gap: 20px; }
.hint { font-size: .85rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .95rem; transition: all .15s; }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.date-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.date-btn {
  flex: none; width: 76px; padding: 12px 6px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper);
  cursor: pointer; text-align: center; font: inherit; color: var(--ink);
}
.date-btn small { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.date-btn b { display: block; font-family: var(--display); font-size: 1.5rem; line-height: 1.2; }
.date-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.date-btn[aria-pressed="true"] small { color: var(--gold-soft); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.slot { padding: 12px 8px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper); font: 600 .95rem var(--body); cursor: pointer; color: var(--ink); font-variant-numeric: tabular-nums; }
.slot:hover:not(:disabled) { border-color: var(--gold); }
.slot[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #fff; }
.slot:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.mode-toggle { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; }
.mode-toggle label { position: relative; }
.mode-toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.mode-toggle span { display: block; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .92rem; }
.mode-toggle input:checked + span { background: var(--navy); color: #fff; }

.status { padding: 14px 16px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.status.ok { background: #e7f3ec; color: var(--ok); }
.status.err { background: #f8e9e8; color: var(--err); }

.confirm { text-align: center; display: grid; gap: 16px; justify-items: center; padding: 24px 0; }
.confirm .big-ico { width: 72px; height: 72px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-text); display: grid; place-items: center; }
.confirm .big-ico svg { width: 34px; height: 34px; }
.summary { background: var(--ivory); border-radius: 10px; padding: 18px 22px; display: grid; gap: 6px; text-align: left; width: 100%; max-width: 420px; }
.summary div { display: flex; justify-content: space-between; gap: 16px; font-size: .95rem; }
.summary span { color: var(--muted); }

.book-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.aside { display: grid; gap: 20px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 100px); }
.aside-box { border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: var(--paper); display: grid; gap: 12px; }
.aside-box ul { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 6px; }
@media (max-width: 920px) { .book-layout { grid-template-columns: 1fr; } .aside { position: static; } }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-items { display: grid; gap: 16px; }
.contact-item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); text-decoration: none; min-width: 0; }
.contact-item .ico { width: 48px; height: 48px; border-radius: 50%; background: var(--ivory); color: var(--gold-text); display: grid; place-items: center; }
.contact-item small { display: block; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.contact-item b { word-break: break-word; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #091327; color: #aeb8cc; padding-block: 64px 32px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--display); font-size: 1.05rem; margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: #aeb8cc; }
.site-footer a:hover { color: var(--gold); }
.foot-brand .brand { color: #fff; margin-bottom: 16px; }
.foot-brand .brand img { background: #fff; border-radius: 6px; padding: 3px; }
.foot-brand .brand-sub { color: #8f9bb3; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; }
.socials a:hover { border-color: var(--gold); }
.socials svg { width: 18px; height: 18px; }
.disclaimer { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 28px; font-size: .82rem; line-height: 1.7; color: #7d889e; display: grid; gap: 14px; }
.disclaimer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal (visible at rest; motion only enhances) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .7s ease both; }
  .reveal.d1 { animation-delay: .08s; } .reveal.d2 { animation-delay: .16s; } .reveal.d3 { animation-delay: .24s; }
  @keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* fixes */
.link-arrow svg { width: 18px; height: 18px; flex: none; }
.hero .btn-ghost { color: #fff; }
.mode-toggle { justify-self: start; }
