/* === RIDER'S CARTEL — Shared design system v4 === */

:root {
  --bg: #F8F6F1;
  --bg-2: #FFFFFF;
  --bg-3: #EFEBDF;
  --bg-deep: #14100B;

  --ink: #0B0A08;
  --ink-soft: #2A2620;
  --ink-mute: #6A6357;

  --gold: #B8893C;
  --gold-soft: #D2A55A;
  --gold-glow: rgba(184,137,60,0.18);
  --blood: #8C1818;
  --blood-bright: #B22323;

  --line: rgba(15,14,12,0.10);
  --line-strong: rgba(15,14,12,0.22);

  --container: 1240px;
  --ease: cubic-bezier(.22,.7,.2,1);
}

[data-theme="dark"] {
  --bg: #0a0807;
  --bg-2: #14100c;
  --bg-3: #1a140f;
  --bg-deep: #0a0807;
  --ink: #f1ebdb;
  --ink-soft: #d8cbac;
  --ink-mute: #8a8073;
  --gold: #d4a957;
  --gold-soft: #ecc679;
  --gold-glow: rgba(212,169,87,0.22);
  --blood: #9a1f1f;
  --blood-bright: #c52828;
  --line: rgba(212,169,87,0.18);
  --line-strong: rgba(212,169,87,0.40);
}

/* Reset + overflow protection (no horizontal scroll anywhere) */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { max-width: 100%; overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Display / Heading family — Playfair Display (premium, readable) */
.display, h1, h2, h3, h4, h5 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 800;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.1;
}

.roman { font-family: "Cinzel", serif; letter-spacing: 0.18em; text-transform: uppercase; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; position: relative; }

/* ================ LOGO MARK (image-based) ================ */
.logo-img { display: block; height: 56px; width: auto; max-height: 56px; max-width: 100%; }
.logo-img.lg { height: 90px; max-height: 90px; }
.logo-img.xl { height: clamp(120px, 18vw, 200px); max-height: 200px; }
.logo-img.sm { height: 30px; max-height: 30px; }
@media (max-width: 640px) {
  .logo-img { height: 40px; max-height: 40px; }
}

/* === Brand Icon SVG (uses currentColor for fill) === */
.brand-svg { width: 20px; height: 20px; display: block; }
.nowrap { white-space: nowrap; }

[data-theme="dark"] .logo-img-light,
[data-theme="light"] .logo-img-dark { display: none; }
[data-theme="dark"] .logo-img-dark,
[data-theme="light"] .logo-img-light { display: block; }

/* ================ NAVIGATION ================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248,246,241,0.94);
  backdrop-filter: blur(14px) saturate(1.05);
  border-bottom: 1px solid var(--line);
}
[data-theme="dark"] .nav { background: rgba(10,8,7,0.85); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 28px; max-width: var(--container); margin: 0 auto; gap: 18px;
}

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-family: "Cinzel", serif; font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink); opacity: 0.78;
  transition: opacity .2s, color .2s;
  position: relative; padding: 6px 0;
}
.nav-links a:hover { opacity: 1; color: var(--gold); }
.nav-links a.active { color: var(--gold); opacity: 1; }
.nav-links a.active::after {
  content: ""; position: absolute; bottom: -22px; left: 0; right: 0; height: 1.5px;
  background: var(--gold);
}

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--bg);
  padding: 12px 22px; border-radius: 2px;
  font-family: "Cinzel", serif; font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: all .2s var(--ease);
}
.nav-cta:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: translateY(-1px); }

.nav-right { display: flex; gap: 12px; align-items: center; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); color: var(--ink-soft);
  transition: all .2s;
}
.icon-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.hamburger { display: none; }

.mobile-nav {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: none; flex-direction: column; padding: 24px;
}
.mobile-nav.open { display: flex; }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 56px; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 22px; flex: 1; }
.mobile-nav-links a {
  font-family: "Playfair Display", serif; font-weight: 800;
  font-size: 2.4rem; color: var(--ink);
  letter-spacing: -0.01em;
}
.mobile-nav-links a:hover { color: var(--gold); }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-cta span.long { display: none; }
  .hamburger { display: inline-flex; }
}

/* ================ TYPOGRAPHY ================ */
.eyebrow {
  font-family: "Cinzel", serif; font-size: 12px; font-weight: 600;
  letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--blood); margin-bottom: 16px;
}
.section-title {
  font-family: "Playfair Display", serif; font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05; margin-bottom: 22px; color: var(--ink);
  letter-spacing: -0.01em;
}
.section-sub {
  font-size: 1.12rem; color: var(--ink-soft); line-height: 1.65;
  max-width: 640px;
}

p { color: var(--ink-soft); line-height: 1.75; font-size: 1rem; }

/* ================ BUTTONS ================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: 2px;
  font-family: "Cinzel", serif; font-weight: 600;
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  transition: all .25s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-dark:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 12px 32px var(--gold-glow); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.btn-blood { background: var(--blood); color: #fff; border-color: var(--blood); }
.btn-blood:hover { background: var(--blood-bright); border-color: var(--blood-bright); transform: translateY(-2px); }

/* ================ HERO ================ */
.hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center; overflow: hidden;
  background: var(--bg);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-position: center; background-size: cover;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(248,246,241,0.45) 0%, rgba(248,246,241,0.85) 75%, var(--bg) 100%);
}
[data-theme="dark"] .hero-bg::after {
  background: linear-gradient(180deg, rgba(10,8,7,0.55) 0%, rgba(10,8,7,0.85) 70%, var(--bg-deep) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 80px 0; width: 100%; }

/* ================ SECTION ================ */
section { padding: 100px 0; position: relative; overflow: hidden; }
section.alt { background: var(--bg-3); }
section.deep { background: var(--bg-deep); color: #f1ebdb; }
section.deep h2, section.deep .section-title { color: #fff; }
section.deep p, section.deep .section-sub { color: #d8cbac; }
section.deep .eyebrow { color: var(--gold-soft); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .eyebrow { display: block; }
.section-head .section-sub { margin: 0 auto; }

/* ================ ORNAMENT ================ */
.ornament {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: var(--gold); font-family: "Cinzel", serif; font-size: 11px;
  letter-spacing: 0.4em; margin: 18px 0; text-transform: uppercase;
}
.ornament::before, .ornament::after {
  content: ""; height: 1px; flex: 0 1 60px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ================ FOOTER ================ */
footer { background: var(--bg-deep); color: #d8cbac; padding: 70px 0 30px; border-top: 3px solid var(--gold); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 44px; margin-bottom: 44px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h5 {
  font-family: "Cinzel", serif; font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: #d8cbac; font-family: "Inter", sans-serif;
  font-size: 15px; transition: color .2s;
}
.footer-col a:hover { color: var(--gold-soft); }
.footer-tagline {
  color: #d8cbac; margin-top: 16px; font-size: 15px; line-height: 1.7;
  max-width: 320px;
}
footer .logo-img { height: 60px; }

.social-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.social-link {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 2px;
  border: 1px solid rgba(212,169,87,0.25);
  transition: all .2s var(--ease);
}
.social-link:hover { border-color: var(--gold-soft); background: rgba(212,169,87,0.08); transform: translateX(2px); }
.social-ico {
  width: 38px; height: 38px; border-radius: 9px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.social-ico svg { width: 20px; height: 20px; }
.social-link:nth-child(3) .social-ico {
  background: #25D366; color: #fff;
}
.social-meta { display: flex; flex-direction: column; line-height: 1.2; }
.social-meta strong {
  font-family: "Inter", sans-serif; font-weight: 600; font-size: 14.5px;
  color: #f1ebdb;
}
.social-meta em {
  font-family: "Cinzel", serif; font-style: normal;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-soft); margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(212,169,87,0.18); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: "Cinzel", serif; font-size: 10.5px;
  letter-spacing: 0.22em; text-transform: uppercase; color: #8a8073;
}
.built-by {
  text-align: center; margin-top: 22px; padding-top: 22px;
  border-top: 1px dashed rgba(212,169,87,0.18);
  font-family: "Cinzel", serif; font-size: 11px;
  letter-spacing: 0.32em; text-transform: uppercase; color: #8a8073;
}
.built-by a { color: var(--gold-soft); font-weight: 600; }

/* ================ FAB ================ */
.fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 32px rgba(37,211,102,0.45);
  animation: pulseGreen 2.6s infinite;
}
@keyframes pulseGreen {
  0%,100% { box-shadow: 0 10px 32px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 10px 32px rgba(37,211,102,0.45), 0 0 0 18px rgba(37,211,102,0); }
}
.fab:hover { transform: scale(1.08); }

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 0 auto; max-width: 280px; }

/* ================ SCROLL ANIMATIONS ================ */
[data-anim] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease),
    filter 0.9s var(--ease);
  will-change: opacity, transform;
}
[data-anim="fade"] { transform: none; }
[data-anim="left"] { transform: translateX(-32px); }
[data-anim="right"] { transform: translateX(32px); }
[data-anim="zoom"] { transform: scale(0.96); filter: blur(6px); }

[data-anim].in-view {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Stagger children */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-stagger].in-view > * { opacity: 1; transform: none; }
[data-stagger].in-view > *:nth-child(1) { transition-delay: 0.05s; }
[data-stagger].in-view > *:nth-child(2) { transition-delay: 0.15s; }
[data-stagger].in-view > *:nth-child(3) { transition-delay: 0.25s; }
[data-stagger].in-view > *:nth-child(4) { transition-delay: 0.35s; }
[data-stagger].in-view > *:nth-child(5) { transition-delay: 0.45s; }
[data-stagger].in-view > *:nth-child(6) { transition-delay: 0.55s; }
[data-stagger].in-view > *:nth-child(7) { transition-delay: 0.65s; }
[data-stagger].in-view > *:nth-child(8) { transition-delay: 0.75s; }

/* Hero entrance — runs on load */
.entrance-1 { animation: heroEnter 1.2s var(--ease) 0.1s both; }
.entrance-2 { animation: heroEnter 1.2s var(--ease) 0.4s both; }
.entrance-3 { animation: heroEnter 1.2s var(--ease) 0.7s both; }
@keyframes heroEnter {
  0%   { opacity: 0; transform: translateY(28px); filter: blur(4px); }
  100% { opacity: 1; transform: none;            filter: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-anim] { opacity: 1 !important; transform: none !important; filter: none !important; }
  [data-stagger] > * { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 640px) {
  section { padding: 76px 0; }
  body { font-size: 16px; }
  .nav-inner { padding: 12px 18px; gap: 10px; }
  .container { padding: 0 20px; }
  .nav-cta { padding: 10px 14px; font-size: 11px; letter-spacing: 0.18em; }
  .icon-btn { width: 38px; height: 38px; }
}
