/* ============================================================
   RESAUM — Design System
   Ink #151B24 · Navy #1F2937 · Gold #9A7B2E · Gold-light #D4B563
   Paper #FFFFFF · Mist #F1F3F6 · Slate #667085
   Display: Fraunces · Body: Work Sans · Utility: IBM Plex Mono
   ============================================================ */

:root {
  --ink: #151B24;
  --navy: #1F2937;
  --navy-deep: #10161F;
  --gold: #9A7B2E;
  --gold-light: #D4B563;
  --paper: #FFFFFF;
  --mist: #F1F3F6;
  --mist-deep: #E7EAEF;
  --slate: #667085;
  --slate-light: #9AA3B2;
  --line: #E3E6EC;

  --display: 'Fraunces', Georgia, serif;
  --body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;

  --max: 1180px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

/* ---------- Focus ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Kicker / eyebrow ---------- */
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.on-dark .kicker { color: var(--gold-light); }
.on-dark .kicker::before { background: var(--gold-light); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 27, 36, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav .wrap {
  display: flex;
  align-items: center;           /* This vertically centers everything */
  justify-content: space-between;
  height: 76px;
  padding: 0 32px;               /* Consistent padding */
}

/* Logo on the left, vertically centered */
.nav-logo {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  color: var(--paper);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  height: 100%;                  /* Take full height of nav */
}

.nav-logo img {
  height: 480px;                  /* Reasonable size for nav */
  width: auto;
  max-width: 320px;
  object-fit: contain;
  display: block;
}

/* Right side */
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.footer-brand .nav-logo img { height: 38px; }

.nav-links a {
  font-size: 14.5px;
  color: rgba(255,255,255,0.72);
  transition: color 0.15s ease;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--paper); }
.nav-cta {
  background: var(--gold);
  color: var(--ink) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--gold-light); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 26px;
  padding: 4px;
}

@media (max-width: 880px) {
  /* Hide the hamburger toggle icon */
  .nav-toggle { 
    display: none !important; 
  }

  /* Keep the logo on the left, but allow the block to take its natural height */
  .nav .wrap {
    height: auto;
    min-height: 76px;
    padding: 12px 24px;
    gap: 16px;
  }

  .nav-logo img {
    height: 42px;               /* Slightly smaller on mobile */
  }

  .nav-links { 
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 20px;
    max-width: 100%;
  }
  
  .nav-links a { 
    font-size: 14.5px; 
    padding: 4px 0;
    display: inline-block;
    text-align: right;
  }

  /* Ensure the special CTA button breaks nicely if wrapped */
  .nav-cta {
    padding: 8px 16px;
    font-size: 13.5px;
  }

  .hero {
    padding-top: 90px;
  }
}

/* ---------- Hero (dark) ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--ink) 100%);
  color: var(--paper);
  overflow: hidden;
  padding: 96px 0 110px;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-rings { position: absolute; inset: 0; z-index: 1; opacity: 0.9; pointer-events: none; }
.hero-eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.05;
  max-width: 880px;
  color: var(--paper);
}
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero .lede {
  margin-top: 22px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: rgba(255,255,255,0.72);
  max-width: 620px;
  font-weight: 300;
}
.hero-lines { margin-top: 30px; display: flex; flex-direction: column; gap: 8px; }
.hero-lines p { font-family: var(--display); font-style: italic; font-size: 17px; color: var(--slate-light); }
.hero-actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,0.3); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(255,255,255,0.06); }
.on-light .btn-ghost { border-color: var(--line); color: var(--ink); }
.on-light .btn-ghost:hover { border-color: var(--ink); background: var(--mist); }

/* ---------- Section rhythm ---------- */
section { padding: 96px 0; }
section.tight { padding: 72px 0; }
.section-head { max-width: 700px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); margin-top: 18px; line-height: 1.12; }
.section-head p { margin-top: 16px; color: var(--slate); font-size: 17px; max-width: 560px; }
.on-dark { background: var(--navy); color: var(--paper); }
.on-dark .section-head p { color: var(--slate-light); }
.on-mist { background: var(--mist); }

/* ---------- Audience cards (homepage) ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 8px;
}
.audience-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 34px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex; flex-direction: column; height: 100%;
}
.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -18px rgba(21,27,36,0.18);
  border-color: var(--gold);
}
.audience-mark {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--mist);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.audience-card h3 { font-size: 24px; margin-bottom: 14px; }
.audience-card ul { margin-bottom: 24px; flex-grow: 1; }
.audience-card li {
  font-size: 15px; color: var(--slate); padding: 5px 0 5px 20px; position: relative;
}
.audience-card li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.audience-card .card-link {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.audience-card .card-link .arrow { transition: transform 0.15s ease; }
.audience-card:hover .card-link .arrow { transform: translateX(4px); }

@media (max-width: 760px) {
  .audience-grid { grid-template-columns: 1fr; }
}

/* ---------- Flow chain (restaurant-style sections) ---------- */
.flow-chain {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0;
  margin-top: 8px;
}
.flow-node {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 22px; font-size: 14.5px; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.on-dark .flow-node { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.14); color: var(--paper); }
.flow-arrow { color: var(--gold); font-size: 18px; margin: 0 10px; }

/* ---------- Feature rows ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 8px;
}
.feature-card {
  padding: 30px 28px; border-radius: var(--radius); background: var(--paper);
  border: 1px solid var(--line);
}
.on-dark .feature-card, .on-mist .feature-card.solid { background: var(--paper); }
.on-dark .feature-card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }
.feature-num { font-family: var(--mono); font-size: 12px; color: var(--gold); margin-bottom: 14px; letter-spacing: 0.08em; }
.feature-card h4 { font-size: 19px; margin-bottom: 10px; }
.feature-card p { font-size: 14.5px; color: var(--slate); }
.on-dark .feature-card p { color: var(--slate-light); }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ---------- Quote / statement block ---------- */
.statement {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(24px, 3vw, 36px); line-height: 1.35; max-width: 820px;
}
.statement .accent { color: var(--gold-light); }
.on-light .statement .accent { color: var(--gold); }

/* ---------- Two-col split ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Stat row ---------- */
.stat-row { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 20px; }
.stat b { font-family: var(--display); font-size: 34px; display: block; color: var(--ink); }
.on-dark .stat b { color: var(--paper); }
.stat span { font-size: 13px; color: var(--slate); font-family: var(--mono); letter-spacing: 0.03em; }
.on-dark .stat span { color: var(--slate-light); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-deep); color: var(--paper); text-align: center;
  padding: 100px 0; position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(30px, 4vw, 46px); max-width: 760px; margin: 0 auto; }
.cta-band p { color: var(--slate-light); margin-top: 18px; font-size: 17px; }
.cta-band .hero-actions { justify-content: center; margin-top: 36px; }

/* ---------- Footer ---------- */
footer {
  background: var(--ink); color: var(--slate-light); padding: 64px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-brand p { font-size: 14px; max-width: 260px; color: var(--slate-light); }
.footer-col h5 {
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4); margin-bottom: 16px; font-weight: 600;
}
.footer-col a { display: block; font-size: 14px; padding: 6px 0; color: rgba(255,255,255,0.68); }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; font-size: 13px; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 12px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Page hero (sub-pages, shorter) ---------- */
.page-hero { padding: 72px 0 88px; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 54px); max-width: 760px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utility ---------- */
.center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-8 { margin-top: 8px; }
.mt-56 { margin-top: 56px; }
.divider { height: 1px; background: var(--line); margin: 0; }
.on-dark .divider { background: rgba(255,255,255,0.1); }
