/* ============================================================
   CHRISMARRSCTO.COM — Global Styles
   Aesthetic: Luxury / Refined / Authoritative
   ============================================================ */

/* Fonts (self-hosted) */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('/fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/dm-mono-300.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-mono-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0f1729;
  --bg-surface: #162033;
  --bg-card:    #1c2a42;
  --border:     #283d5a;
  --border-light: #2f4565;
  --text:       #dde3f0;
  --text-muted: #7e8fac;
  --text-dim:   #5a6a88;
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --gold-dim:   #7a6330;
  --white:      #f0f4ff;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', monospace;
  --max:        1200px;
  --nav-h:      72px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- Typography ------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--white);
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 300; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 400; }
h4 { font-size: 1.1rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); font-family: var(--font-body); }

p { margin-bottom: 1.2em; color: var(--text); }
p:last-child { margin-bottom: 0; }

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

strong { font-weight: 500; color: var(--white); }

/* ---- Layout ---------------------------------------------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }
.section--sm { padding: 3rem 0; }
.section--lg { padding: 8rem 0; }

/* ---- Nav -------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(15, 23, 41, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background 0.3s;
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1.2;
}

.nav__title {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  text-decoration: none;
}

.nav__links a:hover {
  color: var(--white);
}

.nav__links a.active {
  color: var(--white);
  border-color: var(--gold-dim);
  background: rgba(201, 168, 76, 0.06);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text);
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a {
    display: block;
    padding: 0.9rem 2rem;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .nav__links a.active {
    border: none;
    border-bottom: 1px solid var(--border);
    background: rgba(201, 168, 76, 0.08);
  }
}

/* ---- Buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  text-decoration: none;
}

.btn--gold {
  background: var(--gold);
  color: var(--bg);
}
.btn--gold:hover {
  background: var(--gold-light);
  color: var(--bg);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(201, 168, 76, 0.06);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  color: var(--white);
  border-color: var(--border-light);
}

/* ---- Gold Divider ----------------------------------------- */
.divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem 0;
}

.divider--center { margin-left: auto; margin-right: auto; }

/* ---- Section Label ---------------------------------------- */
.label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

/* ---- Cards ----------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2.5rem;
  transition: border-color 0.25s, transform 0.25s;
}

.card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

/* ---- Stats Strip ----------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
}

@media (max-width: 768px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

.stat {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
  text-align: center;
}

.stat:last-child { border-right: none; }

@media (max-width: 768px) {
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3), .stat:nth-child(4) {
    border-top: 1px solid var(--border);
  }
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  display: block;
}

.stat__label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.4rem;
  display: block;
}

.stat__desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* ---- Hero ------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(201,168,76,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(40,55,84,0.6) 0%, transparent 60%);
  pointer-events: none;
}

/* Grain texture overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

.hero__content { position: relative; z-index: 1; max-width: 800px; }

.hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.75;
}

/* ---- Page Hero (inner pages) ------------------------------ */
.page-hero {
  padding: calc(var(--nav-h) + 5rem) 0 5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 100% at 80% 50%, rgba(201,168,76,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero__content { position: relative; z-index: 1; }

/* ---- Footer ---------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: 6rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
}

.footer__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer__links a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--text-muted); }

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-dim);
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 600px) {
  .footer__copy { flex-direction: column; text-align: center; }
}

/* ---- Scroll reveal ---------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.hero .reveal { opacity: 1; transform: none; }

/* ---- Grid helpers ----------------------------------------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---- Prose ------------------------------------------------ */
.prose h3 { margin: 2rem 0 0.75rem; }
.prose p { color: var(--text); line-height: 1.8; }

/* ---- Tag -------------------------------------------------- */
.tag {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 0.25rem 0.75rem;
  margin-bottom: 1rem;
}

/* ---- FAQ Accordion --------------------------------------- */
.faq-list { margin-top: 2rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  gap: 1rem;
  user-select: none;
}
.faq-q:hover { color: var(--gold-light); }
.faq-chevron {
  font-size: 0.8rem;
  color: var(--gold);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding-bottom: 1.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 760px;
}
.faq-item.open .faq-a { display: block; }

/* ---- Focus & Accessibility ------------------------------ */
.btn:focus-visible,
.nav__links a:focus-visible,
.faq-q:focus-visible,
.prompt-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.nav__toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* ---- Skip to content (a11y) ----------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--gold);
  color: var(--bg);
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  text-decoration: none;
}
.skip-link:focus { top: 0.5rem; }
