/* ═══════════════════════════════════════════════
   Hidden Fortunes — Global CSS
   hiddenfortunes.io
   ═══════════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── VARIABLES ── */
:root {
  --black:      #0a0a0a;
  --surface:    #111111;
  --border:     #1e1e1e;
  --gold:       #c9a84c;
  --gold-light: #e2c97e;
  --gold-dim:   #7a6330;
  --white:      #e8e8e8;
  --gray:       #888888;
  --nav-height: 72px;
}

/* ── BODY ── */
body {
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.7; }
}

@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

/* ── FADE ON SCROLL ── */
.fade-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════ */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: var(--nav-height);
  background: rgba(10,10,10,0);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
}

#main-nav.scrolled {
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: rgba(201,168,76,0.08);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-cta {
  background: transparent;
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 20px;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--gold); color: #000; }

.nav-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid #2a2a2a;
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 0;
  line-height: 1;
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
#main-footer {
  background: #080808;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 48px;
  padding: 64px 48px;
  max-width: 1300px;
  margin: 0 auto;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 14px;
  display: block;
}

.footer-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  max-width: 260px;
}

.footer-col-title {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  padding-top: 4px;
}

.footer-links-col a {
  font-size: 13px;
  color: #555;
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
}
.footer-links-col a:hover { color: var(--gold); }

.footer-newsletter-col { padding-top: 4px; }

.footer-newsletter-col p {
  font-size: 12px;
  color: #555;
  line-height: 1.65;
  margin-bottom: 16px;
}

.footer-form {
  display: flex;
}

.footer-form input {
  flex: 1;
  min-width: 0;
  background: #111;
  border: 1px solid #2a2a2a;
  border-right: none;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  padding: 10px 14px;
  outline: none;
  border-radius: 0;
  transition: border-color 0.2s;
}
.footer-form input:focus { border-color: var(--gold); }
.footer-form input::placeholder { color: #444; }

.footer-form button {
  background: var(--gold);
  color: #000;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s;
  white-space: nowrap;
}
.footer-form button:hover { background: var(--gold-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  border-top: 1px solid var(--border);
  max-width: 1300px;
  margin: 0 auto;
}

.footer-bottom span {
  font-size: 11px;
  color: #333;
  letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: #000;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 32px;
  cursor: pointer;
  border-radius: 0;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--gold-light); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--gray);
  border: 1px solid #2a2a2a;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 32px;
  cursor: pointer;
  border-radius: 0;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--white); }

/* ═══════════════════════════════════════════════
   SECTION UTILITIES
   ═══════════════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.section-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-label-right {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Content section block */
.section {
  padding: 80px 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.section + .section { border-top: 1px solid var(--border); }

/* Two-col grid */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* ═══════════════════════════════════════════════
   PAGE HERO (internal pages only)
   ═══════════════════════════════════════════════ */
.page-hero {
  background: var(--black);
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  padding: 60px 40px 70px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
  animation: fadeUp 0.7s ease 0.1s forwards;
  opacity: 0;
}

.page-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeUp 0.7s ease 0.2s forwards;
  opacity: 0;
}

.page-hero-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 24px;
  animation: fadeUp 0.7s ease 0.3s forwards;
  opacity: 0;
}

.page-hero-tagline {
  font-size: 15px;
  color: var(--gray);
  letter-spacing: 0.05em;
  animation: fadeUp 0.7s ease 0.4s forwards;
  opacity: 0;
}

/* ═══════════════════════════════════════════════
   NEWSLETTER CTA (bottom of all pages)
   ═══════════════════════════════════════════════ */
.newsletter-cta {
  background: #0f0d08;
  border-top: 1px solid rgba(201,168,76,0.2);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  padding: 80px 40px;
  text-align: center;
}

.newsletter-cta-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.newsletter-cta-subtitle {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 32px;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto 14px;
}

.newsletter-form input {
  flex: 1;
  background: #111;
  border: 1px solid #2a2a2a;
  border-right: none;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 14px 18px;
  outline: none;
  border-radius: 0;
  transition: border-color 0.2s;
}
.newsletter-form input:focus { border-color: var(--gold); }
.newsletter-form input::placeholder { color: #555; }

.newsletter-form button {
  background: var(--gold);
  color: #000;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 24px;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s;
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--gold-light); }

.newsletter-note { font-size: 12px; color: #555; }

/* ═══════════════════════════════════════════════
   CONTENT LAYOUT + SIDEBAR (legal pages)
   ═══════════════════════════════════════════════ */
.content-wrap {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 40px 80px;
  align-items: start;
}

.main-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  margin-top: 52px;
  margin-bottom: 18px;
  padding-top: 52px;
  border-top: 1px solid var(--border);
}

.main-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.main-content p {
  font-size: 15px;
  line-height: 1.85;
  color: #999;
  margin-bottom: 16px;
}

.main-content ul {
  list-style: none;
  margin: 12px 0 16px;
  padding: 0;
}

.main-content ul li {
  font-size: 15px;
  color: #999;
  padding: 6px 0 6px 20px;
  position: relative;
  line-height: 1.75;
}

.main-content ul li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--gold-dim);
  font-size: 8px;
  top: 10px;
}

.main-content a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
.main-content a:hover { color: var(--gold-light); }
.main-content strong { color: var(--white); font-weight: 500; }

.main-content .notice-box {
  border-left: 2px solid var(--gold);
  background: rgba(201,168,76,0.05);
  padding: 16px 20px;
  margin: 20px 0;
}
.main-content .notice-box p { margin-bottom: 0; font-size: 14px; }

.sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}

.sidebar-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-nav { list-style: none; }

.sidebar-nav li a {
  display: block;
  font-size: 13px;
  color: #666;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, padding-left 0.2s;
}
.sidebar-nav li a:hover { color: var(--gold); padding-left: 6px; }
.sidebar-nav li:last-child a { border-bottom: none; }

/* ═══════════════════════════════════════════════
   RESPONSIVE — 768px
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Nav */
  #main-nav { padding: 0 20px; }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: #0a0a0a;
    padding: 8px 20px 20px;
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }

  .nav-links.open { display: flex; }

  .nav-links li { border-bottom: 1px solid var(--border); }

  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 13px;
    letter-spacing: 0.1em;
  }

  .nav-mobile-toggle { display: block; }
  .nav-cta { display: none; }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 20px 24px;
  }

  .footer-form { flex-direction: column; }
  .footer-form input { border-right: 1px solid #2a2a2a; border-bottom: none; }
  .footer-form button { width: 100%; padding: 12px; }

  /* Sections */
  .section { padding: 60px 24px; }
  .page-hero { padding: 50px 24px 50px; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }

  /* Legal pages */
  .content-wrap {
    grid-template-columns: 1fr;
    padding: 50px 24px 60px;
  }
  .sidebar { display: none; }

  /* Newsletter CTA */
  .newsletter-cta { padding: 60px 24px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { border-right: 1px solid #2a2a2a; border-bottom: none; }
  .newsletter-form button { width: 100%; padding: 14px; }
}
