/* Marketing site chrome - extracted from _site_header.php */
/* ─── Marketing layout — extends assets/css/app.css design tokens ─── */
  body { overflow-x: hidden; }

  /* ── Nav ──────────────────────────────────────────────────── */
  .site-nav {
    position: sticky; top: 0; z-index: 200;
    background: var(--sidebar-bg);
    height: 64px; display: flex; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .site-nav-inner {
    max-width: 1140px; margin: 0 auto; padding: 0 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; gap: 1rem;
  }
  .site-logo {
    display: flex; align-items: center; gap: .55rem;
    text-decoration: none; flex-shrink: 0;
  }
  /* Logo image — wordmark, natural aspect ratio */
  .site-logo img {
    width: 116px;
    object-fit: contain;
    border-radius: 7px;
    flex-shrink: 0;
    display: block;
  }
  /* Text only shown when image fails (onerror reveals it) */
  .site-logo-text {
    display: none;
    font-family: 'Playfair Display', serif; font-weight: 700;
    color: #fff; font-size: 1.05rem;
  }
  .site-nav-links { display: flex; align-items: center; gap: .1rem; }
  .site-nav-links a {
    color: var(--sidebar-text); font-size: .86rem; font-weight: 500;
    padding: .45rem .8rem; border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
  }
  .site-nav-links a:hover { color: #fff; background: rgba(255,255,255,.07); }
  .site-nav-links a.active { color: var(--gold); }
  .site-nav-links a.nav-cta {
    background: var(--gold); color: #fff !important;
    margin-left: .4rem; font-weight: 600; border-radius: var(--radius-sm);
  }
  .site-nav-links a.nav-cta:hover { background: var(--gold-light) !important; }
  .nav-auth-avatar {
    width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
    display: block; border: 1.5px solid var(--gold); background: var(--sidebar-bg);
  }
  /* ── Signed-in avatar + dropdown ── */
  .nav-user { position: relative; margin-left: .5rem; }
  .nav-user-btn {
    padding: 0; margin: 0; background: none; border: none; cursor: pointer;
    display: flex; align-items: center; border-radius: 50%;
    transition: transform var(--transition);
  }
  .nav-user-btn:hover { transform: scale(1.05); }
  .nav-user-menu {
    display: none; position: absolute; top: calc(100% + .55rem); right: 0;
    min-width: 178px; background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
    padding: .35rem; z-index: 300;
  }
  .nav-user.open .nav-user-menu { display: block; }
  .nav-user-menu a {
    display: block; padding: .55rem .7rem; font-size: .85rem; font-weight: 500;
    color: var(--text); border-radius: var(--radius-sm); white-space: nowrap;
  }
  .nav-user-menu a:hover { background: var(--gold-bg); color: var(--gold); }
  .nav-user-menu a.nav-user-logout { color: #d9534f; }
  .nav-user-menu a.nav-user-logout:hover { background: rgba(217,83,79,.12); color: #d9534f; }
  .nav-hamburger {
    display: none; padding: .4rem; color: rgba(255,255,255,.8);
  }
  .nav-hamburger:hover { color: #fff; }

  @media (max-width: 700px) {
    .nav-hamburger { display: flex; }
    .site-nav-links {
      display: none; position: absolute; top: 64px; left: 0; right: 0;
      background: var(--sidebar-bg); flex-direction: column; align-items: stretch;
      padding: .5rem 1rem 1rem; gap: 0;
      border-bottom: 1px solid rgba(255,255,255,.08);
      box-shadow: 0 8px 24px rgba(0,0,0,.4);
    }
    .site-nav-links.open { display: flex; }
    .site-nav-links a { padding: .7rem .75rem; width: 100%; border-radius: var(--radius-sm); }
    .site-nav-links a.nav-cta { margin-left: 0; margin-top: .4rem; text-align: center; }
    /* Stacked (not a floating dropdown) inside the mobile menu */
    .nav-user { width: 100%; margin-left: 0; }
    .nav-user-menu {
      position: static; display: block; box-shadow: none; border: none;
      background: transparent; padding: 0; min-width: 0;
    }
    .nav-user-menu a { color: var(--sidebar-text); padding: .7rem .75rem; }
    .nav-user-menu a:hover { background: rgba(255,255,255,.07); color: #fff; }
    .nav-user-menu a.nav-user-logout { color: #ec9; }
    .nav-user-menu a.nav-user-logout:hover { background: rgba(255,255,255,.07); color: #f4b; }
  }

  /* ── Page wrapper ──────────────────────── */
  .site-main { min-height: calc(100vh - 64px); }
  .site-container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
  .site-section { padding: 4.5rem 0; }
  .alt-bg { background: var(--bg2); }

  /* ── Hero ──────────────────────────────── */
  .site-hero {
    background: linear-gradient(160deg, var(--sidebar-bg) 0%, #2b1a06 100%);
    padding: 5.5rem 1.5rem 4.5rem; text-align: center; position: relative; overflow: hidden;
  }
  .site-hero-dots {
    position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(230,192,114,.06) 1px, transparent 1px);
    background-size: 22px 22px;
  }
  .site-hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
  .site-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem,5vw,3.4rem); color: var(--gold);
    line-height: 1.2; margin-bottom: 1.1rem;
  }
  .site-hero p { color: rgba(212,201,184,.8); font-size: 1.05rem; max-width: 560px; margin: 0 auto 2.25rem; }
  .site-hero-btns { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

  /* ── Section headings ──────────────────── */
  .site-section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 700;
    text-align: center; margin-bottom: .5rem;
  }
  .site-section-sub { text-align: center; color: var(--text2); font-size: .95rem; margin-bottom: 2.75rem; }

  /* ── Feature/icon cards ────────────────── */
  .feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 1.25rem; }
  .feat-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem;
    transition: box-shadow var(--transition), border-color var(--transition);
  }
  .feat-card:hover { box-shadow: var(--shadow-md); border-color: var(--gold); }
  .feat-icon {
    width: 46px; height: 46px; background: var(--gold-bg);
    border-radius: var(--radius-sm); display: flex; align-items: center;
    justify-content: center; margin-bottom: 1rem; color: var(--gold); flex-shrink: 0;
  }
  .feat-title { font-weight: 700; font-size: .93rem; margin-bottom: .3rem; }
  .feat-desc { font-size: .83rem; color: var(--text2); line-height: 1.6; }

  /* ── Dark CTA band ─────────────────────── */
  .cta-band {
    background: linear-gradient(135deg, var(--sidebar-bg) 0%, #2b1a06 100%);
    padding: 5rem 1.5rem; text-align: center; position: relative; overflow: hidden;
  }
  .cta-band-dots { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(230,192,114,.06) 1px, transparent 1px); background-size: 22px 22px; }
  .cta-band-inner { position: relative; z-index: 1; }
  .cta-band h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem,3vw,2.4rem); color: var(--gold); margin-bottom: .75rem; }
  .cta-band p { color: rgba(212,201,184,.75); margin: 0 auto 2rem; max-width: 520px; }
  .cta-band-btns { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

  /* ── Legal pages ───────────────────────── */
  .legal-hero { background: var(--sidebar-bg); text-align: center; padding: 3.5rem 1.5rem 3rem; }
  .legal-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem,4vw,2.6rem); color: var(--gold); margin-bottom: .5rem; }
  .legal-hero p { color: rgba(212,201,184,.6); font-size: .9rem; }
  .legal-content { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
  .legal-content h2 { font-family: 'Playfair Display', serif; font-size: 1.35rem; margin: 2.25rem 0 .75rem; }
  .legal-content h3 { font-size: .95rem; font-weight: 700; margin: 1.4rem 0 .4rem; color: var(--text2); }
  .legal-content p, .legal-content li { font-size: .93rem; margin-bottom: .65rem; color: var(--text2); line-height: 1.75; }
  .legal-content ul { padding-left: 1.4rem; margin-bottom: .65rem; }
  .legal-content ul li { list-style: disc; }
  .legal-callout { background: var(--gold-bg); border-left: 4px solid var(--gold); padding: 1rem 1.25rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.5rem 0; }
  .legal-callout p { margin: 0; color: var(--text); }

  /* ── Step cards ────────────────────────── */
  .steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 2rem; counter-reset: step; }
  .step-card { text-align: center; counter-increment: step; }
  .step-num {
    width: 50px; height: 50px; background: var(--gold); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700;
    color: #fff; margin: 0 auto 1rem;
  }
  .step-card h3 { font-size: .93rem; font-weight: 700; margin-bottom: .35rem; }
  .step-card p  { font-size: .83rem; color: var(--text2); }

  /* ── Spec grid ─────────────────────────── */
  .spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px,1fr)); gap: 1rem; }
  .spec-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.25rem; }
  .spec-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text3); font-weight: 700; margin-bottom: .3rem; }
  .spec-val { font-size: .9rem; font-weight: 600; }

  /* ── Footer ─────────────────────────────── */
  .site-footer { background: var(--sidebar-bg); color: var(--sidebar-text); padding: 3rem 1.5rem 0; }
  .site-footer-grid { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; }
  .footer-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem; }
  .footer-brand img {
    width: 116px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 6px;
  }
  .footer-brand-name { font-family: 'Playfair Display', serif; font-weight: 700; color: #fff; font-size: 1rem; }
  .footer-tagline { font-size: .83rem; color: rgba(212,201,184,.55); line-height: 1.6; max-width: 240px; }
  .footer-col h4 { font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: .9rem; }
  .footer-col a { display: block; font-size: .83rem; color: var(--sidebar-text); margin-bottom: .45rem; transition: color var(--transition); }
  .footer-col a:hover { color: var(--gold); }
  .site-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.07); padding: 1.25rem 0;
    max-width: 1140px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    font-size: .78rem; color: rgba(212,201,184,.4); flex-wrap: wrap; gap: .5rem;
  }
  @media (max-width: 700px) {
    .site-footer-grid { grid-template-columns: 1fr 1fr; }
    .site-footer-grid > :first-child { grid-column: 1/-1; }
    .site-footer-bottom { flex-direction: column; align-items: flex-start; }
  }
  @media (max-width: 440px) { .site-footer-grid { grid-template-columns: 1fr; } }
