/* Zelix Services — light luxury / editorial. Tokens first, components second. */
:root {
  --navy: #172638;
  --navy-deep: #0f1a27;
  --gold: #C1A477;
  --gold-deep: #7d6540;   /* gold for TEXT on light surfaces: 5.0:1 on ivory */
  --ivory: #F6F3EC;
  --ivory-deep: #ece7db;
  --charcoal: #26282B;
  --muted: #5b5e63;
  --white: #FFFFFF;
  --error: #8a1f1f;
  --success: #1f5c3a;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --text-sm: 0.9rem;
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.3rem);
  --text-h3: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem);
  --text-h2: clamp(1.9rem, 1.5rem + 1.6vw, 2.8rem);
  --text-h1: clamp(2.3rem, 1.6rem + 3vw, 3.6rem);
  --text-hero: clamp(2.5rem, 1.5rem + 5vw, 4.5rem);

  --s-1: 0.5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem; --s-5: 3rem;
  --s-6: clamp(3rem, 2rem + 4vw, 5rem); --s-7: clamp(4rem, 3rem + 6vw, 8rem);

  --measure: 65ch;
  --radius: 2px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 320ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ivory); color: var(--charcoal);
  font-family: var(--sans); font-size: var(--text-base); line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--navy); line-height: 1.12; margin: 0 0 var(--s-2); letter-spacing: -0.01em; }
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
p, ul, ol { margin: 0 0 var(--s-2); }
a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--navy); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: var(--radius); }
::selection { background: var(--gold); color: var(--navy); }

.skip-link { position: absolute; left: var(--s-2); top: -4rem; background: var(--navy); color: var(--white); padding: 0.6rem 1rem; z-index: 100; }
.skip-link:focus { top: var(--s-2); }

.container { width: min(100% - 2rem, 72rem); margin-inline: auto; }
@media (min-width: 48rem) { .container { width: min(100% - 4rem, 72rem); } }
.container--narrow { max-width: 48rem; }

/* ---------- header ---------- */
.site-header { background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(193,164,119,0.35); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 4.5rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; padding: 0.5rem 0; }
.brand__logo { width: clamp(150px, 20vw, 200px); height: auto; }
.nav-toggle { display: inline-flex; align-items: center; gap: 0.6rem; background: none; border: 1px solid rgba(255,255,255,0.35); color: var(--white); font: inherit; font-size: var(--text-sm); letter-spacing: 0.08em; text-transform: uppercase; padding: 0.6rem 0.9rem; min-height: 44px; cursor: pointer; border-radius: var(--radius); }
.nav-toggle__bar { width: 18px; height: 2px; background: var(--gold); position: relative; }
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--gold); transition: transform var(--dur) var(--ease); }
.nav-toggle__bar::before { top: -6px; } .nav-toggle__bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }
.site-nav { flex-basis: 100%; display: none; padding-bottom: var(--s-2); }
.site-header.is-open .site-nav { display: block; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.site-nav__list a { display: block; color: var(--white); text-decoration: none; padding: 0.75rem 0.25rem; min-height: 44px; font-size: var(--text-sm); letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,0.08); }
.site-nav__list a[aria-current="page"] { color: var(--gold); }
.site-nav__list a:hover { color: var(--gold); }
.nav__cta { margin-top: var(--s-2); }
.nav__cta .btn { width: 100%; justify-content: center; border-bottom: 0; }
@media (min-width: 64rem) {
  .nav-toggle { display: none; }
  .site-nav { display: block; flex-basis: auto; padding: 0; }
  .site-nav__list { flex-direction: row; align-items: center; gap: clamp(0.5rem, 1.5vw, 1.75rem); }
  .site-nav__list a { padding: 0.5rem 0.1rem; border-bottom: 2px solid transparent; }
  .site-nav__list a[aria-current="page"] { border-bottom-color: var(--gold); }
  .nav__cta { margin: 0 0 0 0.75rem; }
  .nav__cta .btn { width: auto; }
}

/* ---------- sections ---------- */
.section { padding-block: var(--s-6); }
.section--tight { padding-block: var(--s-5); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy a { color: var(--white); text-decoration-color: var(--gold); }
.section--navy .eyebrow { color: var(--gold); }
.section--navy .lede { color: rgba(255,255,255,0.88); }
.eyebrow { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; margin-bottom: var(--s-2); display: block; }
.lede { font-size: var(--text-lg); color: var(--muted); max-width: var(--measure); line-height: 1.55; }
.section--navy .lede { color: rgba(255,255,255,0.86); }
.rule { height: 1px; background: var(--ivory-deep); margin-block: var(--s-4); }
.rule--gold { background: var(--gold); width: 4rem; margin-inline: 0; }
.rule--gold.rule--center { margin-inline: auto; }
.text-center { text-align: center; }
.text-center .lede, .text-center .rule--gold { margin-inline: auto; }

/* ---------- hero ---------- */
.hero { background: var(--navy); color: var(--white); padding-block: var(--s-7); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  linear-gradient(115deg, transparent 55%, rgba(193,164,119,0.08) 55.2%, rgba(193,164,119,0.08) 70%, transparent 70.2%),
  linear-gradient(295deg, transparent 72%, rgba(255,255,255,0.03) 72.2%); pointer-events: none; }
.hero .container { position: relative; }
.hero__eyebrow { color: var(--gold); }
.hero h1 { color: var(--white); font-size: var(--text-hero); font-weight: 500; max-width: 18ch; margin-bottom: var(--s-3); }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lede { color: rgba(255,255,255,0.86); max-width: 58ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.hero__rule { width: 4rem; height: 1px; background: var(--gold); margin-bottom: var(--s-3); }

.page-hero { padding-block: var(--s-6) var(--s-5); border-bottom: 1px solid var(--ivory-deep); }
.page-hero h1 { font-weight: 500; max-width: 24ch; }
.page-hero .lede { margin-top: var(--s-2); }
.page-hero .rule--gold { margin-block: var(--s-3) 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0.8rem 1.6rem; font-family: var(--sans); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--primary:hover { background: var(--navy-deep); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.section--navy .btn--ghost, .hero .btn--ghost { color: var(--white); border-color: rgba(255,255,255,0.6); }
.section--navy .btn--ghost:hover, .hero .btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn--gold:hover { background: #d2b98f; border-color: #d2b98f; }
.btn--block { width: 100%; }

/* ---------- grids / cards ---------- */
.grid-3 { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
.grid-2 { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
@media (min-width: 48rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--white); border: 1px solid var(--ivory-deep); padding: var(--s-4) var(--s-3); position: relative; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.card::before { content: ""; position: absolute; top: 0; left: var(--s-3); width: 2.5rem; height: 2px; background: var(--gold); }
.card:hover { border-color: var(--gold); }
.card h3, .card h2 { font-size: var(--text-h3); margin-top: var(--s-1); }
.card p:last-child { margin-bottom: 0; }
.card__num { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--gold-deep); font-weight: 500; }
.section--navy .card { background: rgba(255,255,255,0.04); border-color: rgba(193,164,119,0.35); }
.section--navy .card h3, .section--navy .card h2 { color: var(--white); }
.section--navy .card__num { color: var(--gold); }
.card--link { text-decoration: none; color: inherit; display: block; }
.card--link:hover h3 { color: var(--gold-deep); }

/* ---------- steps ---------- */
.steps { list-style: none; margin: var(--s-4) 0 0; padding: 0; counter-reset: step; display: grid; gap: var(--s-4); }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }
.step { counter-increment: step; border-top: 1px solid var(--gold); padding-top: var(--s-3); }
.step::before { content: "0" counter(step); font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--gold-deep); display: block; margin-bottom: var(--s-2); font-weight: 500; }
.section--navy .step::before { color: var(--gold); }
.step h3, .step h2 { font-size: 1.45rem; }
.step p:last-child { margin-bottom: 0; }

/* ---------- prose (policy pages) ---------- */
.prose { max-width: var(--measure); }
.prose h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); margin-top: var(--s-5); }
.prose h3 { font-size: 1.3rem; margin-top: var(--s-4); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: var(--navy); }
.prose table { width: 100%; border-collapse: collapse; margin-block: var(--s-3); font-size: var(--text-sm); }
.prose th, .prose td { text-align: left; padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--ivory-deep); vertical-align: top; }
.prose th { color: var(--navy); font-weight: 600; }
.prose--meta { color: var(--muted); font-size: var(--text-sm); }
.toc { background: var(--white); border: 1px solid var(--ivory-deep); padding: var(--s-3); margin-bottom: var(--s-4); }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 1; }
@media (min-width: 48rem) { .toc ol { columns: 2; column-gap: var(--s-4); } }

/* ---------- notices / disclosure ---------- */
.notice { background: var(--white); border-left: 3px solid var(--gold); padding: var(--s-3); margin-block: var(--s-4); max-width: var(--measure); }
.notice--navy { background: var(--navy); color: var(--white); border-left-color: var(--gold); }
.notice--navy a { color: var(--white); }
.notice p:last-child { margin-bottom: 0; }
.notice h3, .notice h2 { font-size: 1.25rem; }
.notice--navy h3, .notice--navy h2 { color: var(--gold); }
.disclosure { font-size: var(--text-sm); color: rgba(255,255,255,0.72); max-width: 80ch; }
.disclosure a { color: rgba(255,255,255,0.9); }
.placeholder { background: rgba(193,164,119,0.18); outline: 1px dashed var(--gold); padding: 0 0.25em; border-radius: var(--radius); }

/* ---------- faq ---------- */
.faq { max-width: var(--measure); }
.faq details { border-bottom: 1px solid var(--ivory-deep); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-2); padding: var(--s-3) 0; font-family: var(--serif); font-size: 1.35rem; color: var(--navy); font-weight: 600; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--gold-deep); font-size: 1.5rem; line-height: 1; flex: none; transition: transform var(--dur) var(--ease); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding-bottom: var(--s-3); max-width: 60ch; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- forms ---------- */
.form { max-width: 44rem; background: var(--white); border: 1px solid var(--ivory-deep); padding: var(--s-4) var(--s-3); }
@media (min-width: 48rem) { .form { padding: var(--s-5) var(--s-4); } .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); } }
.field { margin-bottom: var(--s-3); }
.field label, .field legend { display: block; font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; font-size: var(--text-sm); letter-spacing: 0.02em; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.75rem 0.9rem; font: inherit; color: var(--charcoal); background: var(--ivory); border: 1px solid #cfc9bb; border-radius: var(--radius); }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--navy); background: var(--white); }
.field--invalid input, .field--invalid select, .field--invalid textarea { border-color: var(--error); }
.field__hint { font-size: var(--text-sm); color: var(--muted); margin-top: 0.3rem; }
.field__error { font-size: var(--text-sm); color: var(--error); margin-top: 0.3rem; font-weight: 500; }
.field__error:empty { display: none; }
fieldset.field { border: 0; padding: 0; margin-inline: 0; }
.field .choice { font-weight: 400; margin-bottom: 0; }
.choice { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.4rem 0; font-weight: 400; min-height: 44px; }
.choice input { width: 1.2rem; height: 1.2rem; margin-top: 0.25rem; accent-color: var(--navy); flex: none; }
.choice--ack { border: 1px solid var(--ivory-deep); background: var(--ivory); padding: var(--s-2); }
.form__error { color: var(--error); font-weight: 500; margin-top: var(--s-2); }
.form__error:empty { display: none; }
.form__success { background: var(--white); border: 1px solid var(--gold); padding: var(--s-4); max-width: 44rem; }
.form__success h2 { font-size: 1.8rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- misc ---------- */
.contact-grid { display: grid; gap: var(--s-4); }
@media (min-width: 48rem) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; } }
.dl { margin: 0; }
.dl dt { font-weight: 600; color: var(--navy); margin-top: var(--s-2); font-size: var(--text-sm); letter-spacing: 0.04em; text-transform: uppercase; }
.dl dd { margin: 0.2rem 0 0; }
.cta-band { text-align: center; }
.cta-band h2 { font-weight: 500; max-width: 22ch; margin-inline: auto; }
.cta-band .hero__actions { justify-content: center; }
.list-check { list-style: none; padding: 0; }
.list-check li { position: relative; padding-left: 1.6rem; margin-bottom: 0.6rem; }
.list-check li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.9rem; height: 1px; background: var(--gold-deep); }
.section--navy .list-check li::before { background: var(--gold); }
.muted { color: var(--muted); }
.small { font-size: var(--text-sm); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.85); padding-block: var(--s-6) var(--s-4); margin-top: var(--s-6); }
.footer__top { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 48rem) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer__tagline { font-family: var(--serif); font-size: 1.25rem; color: var(--white); margin-top: var(--s-2); max-width: 26ch; line-height: 1.3; }
.footer__contact { font-size: var(--text-sm); line-height: 1.8; }
.footer__contact a { color: var(--white); text-decoration-color: var(--gold); }
.footer__heading { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--s-2); }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: 0.45rem; }
.footer__col a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: var(--text-sm); display: inline-block; padding: 0.15rem 0; }
.footer__col a:hover { color: var(--gold); text-decoration: underline; }
.site-footer .rule--gold { width: 100%; margin-block: var(--s-4) var(--s-3); opacity: 0.6; }
.footer__copy { color: rgba(255,255,255,0.6); margin-top: var(--s-3); }
.site-footer .placeholder { color: var(--white); }

/* ---------- motion ---------- */
html.js .fade-up { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.fade-up.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .btn, .card, .nav-toggle__bar::before, .nav-toggle__bar::after { transition: none; }
}
