/* FD Consulting Inc. — Design system
   DNA hash: a3e4026381bb  ·  Premium "monochrome + gold", light
   Do not hand-edit token values; regenerate via the engine. */

:root {
  /* Type */
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Palette (evolved from the FD logo: gold + silver) */
  --ink: #17181B;
  --ink-soft: #33353A;
  --steel: #5C5A58;
  --steel-line: #D8D5CE;
  --gold: #C6A02C;
  --gold-deep: #9C7A18;
  --gold-text: #856713;   /* AA-safe (>=4.5:1) gold for small text and inline icons on light */
  --gold-bright: #E3C25A;
  --paper: #FAFAF8;
  --mist: #F2F2F0;
  --white: #FFFFFF;
  --graphite: #17181B;
  --graphite-text: #F5F4F1;
  --graphite-muted: #B7B6B1;

  /* Motion (strong easing tokens from the animation floor) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --maxw: 1200px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--gold-bright); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.section { padding-block: clamp(64px, 10vw, 128px); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); line-height: 1.7; max-width: 62ch; }
.muted { color: var(--steel); }

/* Display heading scale (Fraunces) */
.display {
  font-size: clamp(2.6rem, 6.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 550;
}
.h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -0.02em; }
.h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); letter-spacing: -0.01em; font-weight: 600; }
.gold-word { color: var(--gold-deep); font-style: italic; }

/* Eyebrow: steel + gold tick (kept sentence-ish, not a tracked all-caps tell) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.82rem; font-weight: 600; color: var(--steel);
  letter-spacing: 0.02em;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--gold); display: inline-block; }
.on-dark .eyebrow { color: var(--graphite-muted); }

/* ---------- Buttons (color-swap-fill, gold + ink, AA) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 4px; border: 2px solid transparent;
  cursor: pointer; transition: background-color .18s var(--ease-out), color .18s var(--ease-out), border-color .18s var(--ease-out), transform .16s var(--ease-out);
}
.btn:active { transform: scale(0.975); }
.btn-primary { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--steel-line); }
.btn-arrow svg { transition: transform .18s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--ink); color: var(--gold-bright); border-color: var(--ink); }
  .btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); }
  .btn-arrow:hover svg { transform: translateX(4px); }
}
.on-dark .btn-ghost { color: var(--graphite-text); border-color: rgba(255,255,255,0.28); }
@media (hover: hover) and (pointer: fine) {
  .on-dark .btn-ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
}
.textlink { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
@media (hover: hover) and (pointer: fine) { .textlink:hover { color: var(--gold-deep); } }

/* ---------- Header nav (solid-minimal, persistent CTA) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250,250,248,0.86); backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid var(--steel-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { height: 48px; width: auto; display: block; }
@media (max-width: 480px) { .brand-logo { height: 40px; } }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--font-heading); font-weight: 600; font-size: 1.18rem; letter-spacing: -0.01em; line-height: 1; }
.brand-sub { display: block; font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; color: var(--gold-text); text-transform: uppercase; margin-top: 3px; }
.mobile-menu .brand-sub, .site-footer .brand-sub { color: var(--gold-bright); }
.nav-links { display: none; align-items: center; gap: 30px; }
.nav-links a { font-weight: 600; font-size: 0.98rem; color: var(--ink-soft); position: relative; padding-block: 6px; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--gold); transition: width .22s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--ink); } .nav-links a:hover::after { width: 100%; } }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-cta { display: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-phone {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 12px; border: 1px solid var(--steel-line); border-radius: 4px;
  font-weight: 600; color: var(--ink); white-space: nowrap;
  transition: border-color .18s var(--ease-out), color .18s var(--ease-out);
}
.nav-phone svg { width: 18px; height: 18px; stroke: var(--gold-deep); flex: none; }
.nav-phone .nav-phone-num { display: none; }
@media (hover: hover) and (pointer: fine) { .nav-phone:hover { border-color: var(--gold); color: var(--gold-deep); } }
@media (min-width: 1080px) { .nav-phone .nav-phone-num { display: inline; } }
.hamburger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--steel-line); border-radius: 4px;
  background: var(--white); cursor: pointer;
}
.hamburger svg { width: 22px; height: 22px; stroke: var(--ink); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .hamburger { display: none; }
}

/* ---------- Mobile menu (full-viewport overlay + close button) ---------- */
.mobile-menu {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh; height: 100dvh;
  z-index: 100; display: none; flex-direction: column;
  overflow-y: auto; background: var(--graphite); color: var(--graphite-text);
  padding: 24px; padding-top: max(24px, env(safe-area-inset-top)); padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.mobile-menu.is-open { display: flex; }
.mobile-menu .mm-top { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu .mm-close {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(255,255,255,0.25); border-radius: 4px; cursor: pointer;
}
.mobile-menu .mm-close svg { width: 22px; height: 22px; stroke: var(--graphite-text); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; margin-top: 8vh; }
.mobile-menu nav a { font-family: var(--font-heading); font-size: 2rem; font-weight: 500; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.10); }
.mobile-menu .mm-cta { margin-top: auto; padding-top: 28px; }
.mobile-menu .mm-cta .btn { width: 100%; }

/* ---------- Sticky bottom CTA bar (booking-first mutation) ---------- */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: var(--graphite); color: var(--graphite-text);
  border-top: 2px solid var(--gold);
  transform: translateY(110%); transition: transform .4s var(--ease-out);
  padding: 12px clamp(16px, 5vw, 40px); padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.cta-bar.is-visible { transform: translateY(0); }
.cta-bar .cta-inner { max-width: var(--maxw); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cta-bar .cta-copy { font-size: 0.95rem; line-height: 1.35; }
.cta-bar .cta-copy strong { color: var(--gold-bright); font-weight: 700; }
.cta-bar .cta-copy .cta-sub { display: block; color: var(--graphite-muted); font-size: 0.82rem; }
.cta-bar .btn { padding: 10px 20px; flex: none; }
@media (max-width: 620px) { .cta-bar .cta-copy .cta-sub { display: none; } .cta-bar .cta-copy { font-size: 0.86rem; } }

/* ---------- Cards (minimal-elegant: hairline, 2px, no shadow) ---------- */
.card { background: var(--white); border: 1px solid var(--steel-line); border-radius: 3px; padding: clamp(24px, 3vw, 34px); transition: border-color .2s var(--ease-out), transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .card.is-linky:hover { border-color: var(--gold); transform: translateY(-3px); } }
.pillar-num { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 500; color: var(--gold-deep); line-height: 1; }
.rule { height: 1px; background: var(--steel-line); border: 0; margin: 0; }

/* ---------- Dark inversion section ---------- */
.on-dark { background: var(--graphite); color: var(--graphite-text); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark .muted { color: var(--graphite-muted); }
.on-dark .card { background: #1F2024; border-color: rgba(255,255,255,0.12); }
.on-dark .rule { background: rgba(255,255,255,0.14); }

.section-mist { background: var(--mist); }

/* ---------- Motif ---------- */
.motif { color: var(--gold-text); }
.on-dark .motif { color: var(--gold-bright); }
.motif-faint { color: var(--steel-line); }

/* ---------- Hero split ---------- */
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.hero-media { position: relative; min-height: 46vh; background: var(--graphite); overflow: hidden; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.hero-media .duotone { position: absolute; inset: 0; background: linear-gradient(210deg, rgba(23,24,27,0.35), rgba(23,24,27,0.78)); mix-blend-mode: multiply; }
.hero-media .media-motif { position: absolute; inset: 0; pointer-events: none; }
.hero-content { padding: clamp(40px, 7vw, 92px) clamp(20px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 38% 62%; grid-auto-flow: dense; }
  .hero-content { grid-column: 1; }
  .hero-media { grid-column: 2; min-height: 88vh; }
}

.trust-line { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; color: var(--steel); font-size: 0.9rem; font-weight: 600; }
.trust-line .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); display: inline-block; }

/* stat */
.stat-num { font-family: var(--font-heading); font-weight: 500; font-size: clamp(2.6rem, 5vw, 4rem); color: var(--gold-bright); line-height: 1; letter-spacing: -0.02em; }
.on-light .stat-num { color: var(--gold-deep); }

/* forms */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--steel-line); border-radius: 3px; padding: 12px 14px;
  transition: border-color .18s var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 120px; }

/* footer */
.site-footer { background: var(--graphite); color: var(--graphite-muted); padding-block: clamp(48px, 7vw, 80px) 32px; }
.site-footer a { color: var(--graphite-muted); }
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { color: var(--gold-bright); } }
.site-footer h4 { color: var(--white); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; } }

/* faq */
.faq details { border-bottom: 1px solid var(--steel-line); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { color: var(--gold-text); font-size: 1.4rem; line-height: 1; flex: none; transition: transform .2s var(--ease-out); }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--steel); }

/* placeholder marker */
.placeholder-note { font-size: 0.78rem; color: var(--steel); font-style: italic; }

/* ---------- Blog ---------- */
.article { max-width: 760px; margin-inline: auto; }
.article-meta { color: var(--steel); font-weight: 600; font-size: 0.95rem; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.article-hero-img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 3px; background: var(--graphite); }
.article-body { font-size: 1.12rem; line-height: 1.8; color: var(--ink-soft); }
.article-body > * + * { margin-top: 1.2em; }
.article-body h2 { font-family: var(--font-heading); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--ink); letter-spacing: -0.01em; margin-top: 1.7em; line-height: 1.2; }
.article-body h3 { font-family: var(--font-heading); font-weight: 600; font-size: 1.25rem; color: var(--ink); margin-top: 1.4em; }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body a { color: var(--gold-deep); border-bottom: 1px solid var(--steel-line); }
@media (hover: hover) and (pointer: fine) { .article-body a:hover { border-color: var(--gold); } }
.article-body ul, .article-body ol { padding-left: 0; display: grid; gap: 10px; }
.article-body li { list-style: none; position: relative; padding-left: 1.5em; }
.article-body ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--gold); border-radius: 2px; }
.article-body ol { counter-reset: li; }
.article-body ol li::before { counter-increment: li; content: counter(li); position: absolute; left: 0; top: 0; font-family: var(--font-heading); font-weight: 600; color: var(--gold-deep); }

.blog-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--steel-line); border-radius: 3px; overflow: hidden; transition: border-color .2s var(--ease-out), transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .blog-card:hover { border-color: var(--gold); transform: translateY(-3px); } }
.blog-card .blog-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--graphite); }
.blog-card .blog-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card .blog-date { color: var(--steel); font-weight: 600; font-size: 0.82rem; }
.blog-card h3 { font-size: 1.2rem; margin-top: 8px; line-height: 1.25; }
.blog-card p { color: var(--steel); margin-top: 10px; flex: 1; }
.blog-card .blog-more { margin-top: 16px; align-self: flex-start; }

/* ---------- Scroll reveal (no-JS safe: only hides when html.js) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal-group] > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.js [data-reveal-group].is-visible > * { opacity: 1; transform: none; }
.js [data-reveal-group].is-visible > *:nth-child(2) { transition-delay: .08s; }
.js [data-reveal-group].is-visible > *:nth-child(3) { transition-delay: .16s; }
.js [data-reveal-group].is-visible > *:nth-child(4) { transition-delay: .24s; }

/* ---------- Reduced motion guard (required) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal], .js [data-reveal-group] > * { opacity: 1 !important; transform: none !important; }
  .cta-bar { transition: none !important; }
}
