/* ============================================================
   MEXY DIGITAL — SHARED STYLESHEET
   Dark Luxury · Multipage
   ============================================================ */

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

:root {
  --black:        #070707;
  --dark:         #0d0d0d;
  --card-bg:      #111111;
  --card-hover:   #161616;
  --border:       rgba(255,255,255,0.07);
  --border-gold:  rgba(212,175,55,0.3);
  --gold:         #D4AF37;
  --gold-light:   #EFC84A;
  --gold-dim:     rgba(212,175,55,0.10);
  --gold-glow:    rgba(212,175,55,0.18);
  --white:        #F4F4EF;
  --grey:         #777777;
  --grey-light:   #AAAAAA;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --radius:       12px;
  --radius-lg:    20px;
  --t:            0.3s cubic-bezier(.4,0,.2,1);
  --t-slow:       0.7s cubic-bezier(.4,0,.2,1);
  --max-w:        1200px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 768px) {
  body { cursor: auto; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: var(--font-body); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── CURSOR ── */
.cursor {
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .25s, height .25s, background .25s;
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(212,175,55,.45);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .3s, height .3s, border-color .3s;
}
.cursor.big  { width: 18px; height: 18px; }
.cursor-ring.big { width: 58px; height: 58px; border-color: rgba(212,175,55,.8); }

@media (max-width: 768px) { .cursor, .cursor-ring { display: none; } }

/* ── LOADER ── */
.loader {
  position: fixed; inset: 0;
  background: var(--black);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s;
}
.loader.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-wordmark {
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.8rem;
}
.loader-bar {
  width: 200px; height: 1px;
  background: rgba(255,255,255,.08);
  margin: 0 auto; overflow: hidden;
}
.loader-fill {
  height: 100%; background: var(--gold); width: 0;
  transition: width 1.3s cubic-bezier(.4,0,.2,1);
}

/* ── NAVIGATION ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.6rem 0;
  transition: background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7,7,7,.92);
  backdrop-filter: blur(24px);
  padding: 1rem 0;
  border-bottom-color: var(--border);
}
.nav-wrap {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: .85rem;
  font-family: var(--font-display);
  text-decoration: none;
}
.nav-logo-hex {
  width: 34px; height: 38px; flex-shrink: 0;
  transition: opacity var(--t);
}
.nav-logo:hover .nav-logo-hex { opacity: .8; }
.nav-logo-text {
  display: flex; flex-direction: column; gap: 1px; line-height: 1;
}
.logo-m { font-size: 1.15rem; font-weight: 700; letter-spacing: .14em; color: #fff; }
.logo-d { font-size: .4rem;   font-weight: 300; letter-spacing: .5em;  color: var(--gold); text-transform: uppercase; }

.nav-links {
  display: flex; align-items: center; gap: 2.2rem;
}
.nav-link {
  font-size: .85rem; letter-spacing: .05em;
  color: var(--grey-light);
  transition: color var(--t);
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width var(--t);
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--gold); }
.nav-link.active::after { background: var(--gold); width: 100%; }

.nav-cta {
  color: var(--gold) !important;
  border: 1px solid rgba(212,175,55,.4);
  padding: .55rem 1.4rem; border-radius: 100px;
  font-size: .82rem;
  transition: background var(--t), border-color var(--t), transform var(--t) !important;
}
.nav-cta:hover {
  background: var(--gold-dim); border-color: var(--gold) !important;
  transform: translateY(-1px);
}
.nav-cta::after { display: none !important; }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: none; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 1px;
  background: var(--white);
  transition: transform .3s, opacity .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-nav {
  position: fixed; inset: 0;
  background: var(--black);
  z-index: 999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .4s, visibility .4s;
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav ul { text-align: center; display: flex; flex-direction: column; gap: 2rem; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 700;
  color: var(--grey);
  transition: color var(--t);
}
.mobile-nav a:hover { color: var(--gold); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.8rem; border-radius: 100px;
  font-size: .875rem; font-weight: 500;
  letter-spacing: .03em; cursor: none;
  transition: all var(--t); border: none;
  position: relative; overflow: hidden;
  font-family: var(--font-body);
}
@media (max-width: 768px) { .btn { cursor: auto; } }
.btn-primary { background: var(--gold); color: var(--black); font-weight: 600; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(212,175,55,.28); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--black); font-weight: 600; }
.btn-light:hover { background: #fffff0; transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255,255,255,.12); }
.btn-outline { background: transparent; color: var(--gold); border: 1px solid var(--border-gold); }
.btn-outline:hover { background: var(--gold-dim); transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; }
.btn svg { flex-shrink: 0; }

/* ── SECTION HELPERS ── */
.section-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .8rem;
}
.section-tag::before {
  content: ''; display: inline-block;
  width: 18px; height: 1px; background: var(--gold);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.2; letter-spacing: -.02em;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .section-title { margin-top: .5rem; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 10rem 0 5rem;
  background: var(--dark);
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image:
          linear-gradient(rgba(212,175,55,.035) 1px, transparent 1px),
          linear-gradient(90deg, rgba(212,175,55,.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, black, transparent);
}
.page-hero-orb {
  position: absolute;
  border-radius: 50%; filter: blur(100px); opacity: .12;
  width: 500px; height: 300px;
  background: radial-gradient(circle, var(--gold), transparent 70%);
  top: -100px; right: -80px;
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero-breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .75rem; color: var(--grey); margin-bottom: 1.5rem;
  letter-spacing: .05em;
}
.page-hero-breadcrumb a { color: var(--grey); transition: color var(--t); }
.page-hero-breadcrumb a:hover { color: var(--gold); }
.page-hero-breadcrumb span { color: var(--grey); }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900; line-height: 1.08; letter-spacing: -.03em;
  margin-bottom: 1.2rem;
}
.page-hero h1 em { font-style: italic; color: var(--gold); }
.page-hero-sub { max-width: 550px; color: var(--grey-light); font-size: 1rem; line-height: 1.8; }

/* ── MARQUEE ── */
.marquee-wrap {
  overflow: hidden; padding: 1.1rem 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--dark);
}
.marquee-track {
  display: flex; white-space: nowrap;
  animation: marquee 28s linear infinite; width: max-content;
  will-change: transform;
}
.marquee-track span {
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--grey); padding: 0 1.4rem; transition: color var(--t);
}
.marquee-track span:hover { color: var(--gold); }
.marquee-track .sep { color: rgba(212,175,55,.4); padding: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── FOOTER ── */
.footer {
  background: var(--black); border-top: 1px solid var(--border);
  padding: 4.5rem 0 2rem;
}
.footer-top {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 4rem; padding-bottom: 3rem;
  border-bottom: 1px solid var(--border); margin-bottom: 2rem;
}
.footer-brand p {
  margin-top: .9rem; font-size: .875rem;
  color: var(--grey); max-width: 280px; line-height: 1.7;
}
.footer-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.footer-col h5 {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--grey); margin-bottom: 1.2rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .7rem; }
.footer-col a, .footer-col span { font-size: .875rem; color: var(--grey-light); transition: color var(--t); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: .78rem; color: var(--grey); }
.footer-socials { display: flex; gap: .8rem; }
.footer-socials a {
  width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; color: var(--grey);
  transition: all var(--t); cursor: none;
}
.footer-socials a:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }

/* ── REVEAL ── */
.reveal, .reveal-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.reveal.in, .reveal-up.in { opacity: 1; transform: translateY(0); }

/* Stagger children inside .stagger parent */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: .08s; }
.stagger > *:nth-child(3) { transition-delay: .16s; }
.stagger > *:nth-child(4) { transition-delay: .24s; }
.stagger > *:nth-child(5) { transition-delay: .32s; }
.stagger > *:nth-child(6) { transition-delay: .40s; }

/* ── RESPONSIVE NAV ── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-cols { grid-template-columns: repeat(2,1fr); }
  .footer-bottom { flex-direction: column; gap: 1rem; }
}
@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
}