/* ============================================================
   MAD RESERVE CO. — GLOBAL STYLESHEET
   Contains: design tokens, reset, navbar, footer, buttons,
   shared utilities, WhatsApp button, scroll-reveal animations.
   Load this file on EVERY page, before the page-specific CSS.
============================================================ */

/* ====================================================
   1. BRAND DESIGN TOKENS (CSS Custom Properties)
   Change these once here to re-theme the entire site.
   Black #111111 | Gold #D4AF37 | Cream #F5F1E8 | Dark Brown #3A2F2A
==================================================== */
:root {
  --black:      #111111;
  --gold:       #D4AF37;
  --gold-light: #e8cc6a;
  --gold-dark:  #a8881f;
  --cream:      #F5F1E8;
  --dark-brown: #3A2F2A;
  --mid-grey:   #1c1c1c;
  --text-muted: #8a7a6a;

  --font-display: 'Cinzel', serif;     /* Headings / labels */
  --font-serif:   'Playfair Display', serif; /* Section titles */
  --font-body:    'Inter', sans-serif; /* Paragraph text */

  --transition: 0.4s ease;
  --radius: 4px;
}

/* ====================================================
   2. GLOBAL RESET & BASE STYLES
==================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ====================================================
   3. SHARED UTILITY CLASSES
   Reusable text styles, dividers, buttons used across pages
==================================================== */
.gold-text  { color: var(--gold); }
.cream-text { color: var(--cream); }
.section-gap { padding: 100px 0; }

/* Small uppercase eyebrow label above section titles */
.eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}

/* Main section heading */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--cream);
}

/* Supporting text under a section title */
.section-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

/* Gold ornamental divider with diamond centre */
.gold-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px auto;
  width: fit-content;
}
.gold-divider span { display: block; width: 60px; height: 1px; background: var(--gold); opacity: 0.5; }
.gold-divider i    { color: var(--gold); font-size: 10px; }

/* Outlined gold button (transparent background) */
.btn-gold {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  border-radius: var(--radius);
}
.btn-gold:hover { background: var(--gold); color: var(--black); }

/* Filled gold button (solid gold background) */
.btn-gold-filled {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid var(--gold);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--gold);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  border-radius: var(--radius);
}
.btn-gold-filled:hover { background: transparent; color: var(--gold); }

/* Smaller button modifier — add alongside .btn-gold or .btn-gold-filled */
.btn-sm-gold { padding: 10px 22px; font-size: 10px; }

/* Animated gold shimmer text effect for highlighted headline words */
.shimmer-gold {
  background: linear-gradient(90deg, var(--gold) 25%, var(--gold-light) 50%, var(--gold) 75%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* ====================================================
   4. SCROLL-REVEAL ANIMATION CLASSES
   Paired with scroll-reveal.js — elements start hidden
   and fade/slide into view as the user scrolls to them.
==================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Stagger delays — add alongside .reveal for sequenced animations */
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.30s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.60s; }

/* ====================================================
   5. NAVIGATION BAR
   Fixed top nav — becomes solid/blurred on scroll via JS
   (see navbar.js). Same markup/classes used on every page.
==================================================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), padding var(--transition), backdrop-filter var(--transition);
}

/* Added by JS once user scrolls past a threshold */
#navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  padding: 12px 40px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

/* Logo / brand mark */
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-icon {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo-icon span { font-family: var(--font-display); font-size: 13px; color: var(--gold); letter-spacing: 1px; }
.nav-brand-text { font-family: var(--font-display); font-size: 14px; letter-spacing: 2px; color: var(--cream); text-transform: uppercase; line-height: 1.3; }
.nav-brand-sub  { font-size: 9px; color: var(--gold); letter-spacing: 3px; display: block; }

/* Desktop nav links */
.nav-links { list-style: none; display: flex; gap: 36px; align-items: center; }
.nav-links li a {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.85;
  transition: color var(--transition), opacity var(--transition);
  position: relative;
}
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links li a:hover, .nav-links li a.active { color: var(--gold); opacity: 1; }
.nav-links li a:hover::after, .nav-links li a.active::after { width: 100%; }

/* Mobile hamburger toggle button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--cream); transition: var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown menu */
.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.97);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding: 20px 0;
  flex-direction: column;
  align-items: center;
}
.nav-mobile.open { display: flex; }
.nav-mobile li { list-style: none; width: 100%; text-align: center; }
.nav-mobile li a {
  display: block;
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cream);
  border-bottom: 1px solid rgba(212, 175, 55, 0.08);
  transition: color var(--transition);
}
.nav-mobile li a:hover, .nav-mobile li a.active { color: var(--gold); }

/* ====================================================
   6. FOOTER
   Same structure used on every page.
==================================================== */
#footer { background: #0a0a0a; border-top: 1px solid rgba(212,175,55,0.12); padding: 70px 0 30px; }

.footer-logo { font-family: var(--font-display); font-size: 20px; color: var(--gold); letter-spacing: 3px; }
.footer-logo small { display: block; font-size: 9px; letter-spacing: 5px; color: var(--text-muted); margin-top: 4px; }

.footer-tagline { font-size: 0.85rem; color: var(--text-muted); margin-top: 14px; max-width: 240px; line-height: 1.6; }

.footer-heading { font-family: var(--font-display); font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }

.footer-links { list-style: none; padding-left: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links li a { font-size: 0.85rem; color: var(--text-muted); transition: color var(--transition); }
.footer-links li a:hover { color: var(--cream); }

.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.footer-contact-item i { color: var(--gold); font-size: 13px; margin-top: 3px; flex-shrink: 0; }
.footer-contact-item span { font-size: 0.85rem; color: var(--text-muted); }

.footer-divider { border-color: rgba(212,175,55,0.1); margin: 40px 0 24px; }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.8rem; color: var(--text-muted); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--cream); }

.footer-credit { font-size: 0.8rem; color: var(--text-muted); }
.footer-credit a { color: var(--text-muted); transition: color var(--transition); }
.footer-credit a:hover { color: var(--cream); }
.footer-credit a:hover { color: var(--gold-light); }

/* Round social icon links — used in footer and other sections */
.social-links { display: flex; gap: 20px; }
.social-link {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  transition: border-color var(--transition), color var(--transition);
}
.social-link:hover { border-color: var(--gold); color: var(--gold); }

/* ====================================================
   7. WHATSAPP FLOATING BUTTON
   Fixed bottom-right on every page.
   IMPORTANT: replace the phone number in each page's HTML
   href (e.g. https://wa.me/601XXXXXXXX) with your real number.
==================================================== */
#whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 54px;
  height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
#whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55); }
#whatsapp-btn i { color: #fff; font-size: 24px; }

/* Pulsing ripple ring around the WhatsApp button */
#whatsapp-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.4);
  animation: ripple 2s ease-out infinite;
}

/* ====================================================
   8. SHARED KEYFRAME ANIMATIONS
==================================================== */
@keyframes shimmer {
  from { background-position: 200% center; }
  to   { background-position: -200% center; }
}

@keyframes ripple {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ====================================================
   9. SHARED RESPONSIVE RULES
   Page-specific responsive rules live in each page's own CSS.
   These are the universal navbar/footer breakpoints.
==================================================== */
@media (max-width: 991px) {
  #navbar { padding: 16px 20px; }
  #navbar.scrolled { padding: 12px 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 767px) {
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ====================================================
   10. ACCESSIBILITY — respect reduced motion preference
==================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}
