/* ============================================================
   XAVIER REGISTRATIONS — Global Stylesheet
   Aesthetic: Luxury Minimal · Navy × Gold · Cormorant + DM Sans
   ============================================================ */

/* ─── GOOGLE FONTS ─── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text); background: var(--off-white); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }
input, select, textarea { font-family: var(--font-body); }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* ─── DESIGN TOKENS ─── */
:root {
  --navy:        #0b1a2e;
  --navy-mid:    #122038;
  --navy-light:  #1c3050;
  --white:       #ffffff;
  --off-white:   #f7f5f1;
  --cream:       #f0ece4;
  --gold:        #d4a843;
  --gold-light:  #dfc07d;
  --gold-pale:   rgba(200, 164, 86, 0.12);
  --grey:        #7a8fa8;
  --grey-light:  #d0d8e4;
  --grey-pale:   #eaeef3;
  --text:        #192840;
  --text-muted:  #5a718a;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.22s;
  --t-med:  0.38s;
  --t-slow: 0.6s;

  --shadow-sm:  0 2px 12px rgba(0,0,0,0.06);
  --shadow-md:  0 6px 32px rgba(0,0,0,0.10);
  --shadow-lg:  0 16px 64px rgba(0,0,0,0.14);

  --max-w: 1180px;
  --nav-h: 70px;
}

/* ─── TYPOGRAPHY HELPERS ─── */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.08;
}
.eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border: none;
  transition: background var(--t-med) var(--ease),
              color var(--t-med) var(--ease),
              transform var(--t-fast) var(--ease),
              box-shadow var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: var(--gold-light);
  box-shadow: 0 8px 28px rgba(200,164,86,0.35);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.28);
}
.btn-outline-white:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.btn-whatsapp:hover {
  background: #1eb855;
  box-shadow: 0 8px 28px rgba(37,211,102,0.35);
}

/* ─── NAVIGATION ─── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(11, 26, 46, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(200, 164, 86, 0.18);
  transition: box-shadow var(--t-med) var(--ease);
}
.site-nav.scrolled {
  box-shadow: 0 4px 40px rgba(0,0,0,0.35);
}

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

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
}
.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy);
  flex-shrink: 0;
  transition: background var(--t-fast);
}
.nav-logo:hover .logo-mark { background: var(--gold-light); }
.logo-text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.75rem;
  letter-spacing: 0.03em;
  line-height: 1;
}
.logo-text span {
  display: block;
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
  font-family: var(--font-body);
  font-weight: 400;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  gap: 2.2rem;
}
.nav-links a {
  color: var(--grey-light);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  transition: color var(--t-fast);
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  width: 36px;
  height: 36px;
}
.hamburger .bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast);
}
.hamburger[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--navy-mid);
  border-bottom: 1px solid rgba(200,164,86,0.15);
  z-index: 999;
  flex-direction: column;
  padding: 1.5rem 2rem 2rem;
  gap: 0;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--grey-light);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color var(--t-fast);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover,
.mobile-nav a.active { color: var(--gold); }

/* ─── PAGE HERO HEADER (inner pages) ─── */
.page-hero {
  background: var(--navy);
  padding: calc(var(--nav-h) + 72px) 2rem 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -8%;
  width: 500px; height: 500px;
  border: 1px solid rgba(200,164,86,0.1);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: 10%; right: 4%;
  width: 320px; height: 320px;
  border: 1px solid rgba(200,164,86,0.06);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-hero .eyebrow { margin-bottom: 1.2rem; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  color: var(--white);
  line-height: 1.1;
  max-width: 640px;
  margin-bottom: 1rem;
}
.page-hero h1 em { font-style: italic; color: var(--gold-light); }
.page-hero p {
  font-size: 0.95rem;
  color: var(--grey);
  line-height: 1.8;
  max-width: 500px;
  font-weight: 300;
}
.page-hero-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(200,164,86,0.45), transparent);
  margin-top: 60px;
}

/* ─── SECTION UTILITIES ─── */
.section {
  padding: 96px 2rem;
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-header {
  margin-bottom: 56px;
}
.section-header .eyebrow {
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  color: var(--navy);
  line-height: 1.12;
  margin-bottom: 1rem;
}
.section-title em { font-style: italic; }
.section-lead {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 480px;
  font-weight: 300;
}
.gold-rule {
  width: 44px;
  height: 1px;
  background: var(--gold);
  margin: 1.4rem 0 0;
}

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

.anim-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.anim-up.in-view {
  opacity: 1;
  transform: none;
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ─── FOOTER ─── */
.site-footer {
  background: #060e1a;
  border-top: 1px solid rgba(200,164,86,0.15);
  padding: 64px 2rem 28px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}
.footer-brand .nav-logo {
  margin-bottom: 1.2rem;
  display: inline-flex;
}
.footer-brand p {
  font-size: 0.82rem;
  color: #3d5272;
  line-height: 1.75;
  font-weight: 300;
  max-width: 260px;
}
.footer-col h4 {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(200,164,86,0.2);
}
.footer-col ul li {
  margin-bottom: 0.65rem;
}
.footer-col ul li a {
  font-size: 0.82rem;
  color: #3d5272;
  transition: color var(--t-fast);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}
.footer-contact-item .icon {
  width: 30px;
  height: 30px;
  background: rgba(200,164,86,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.footer-contact-item .info {
  font-size: 0.8rem;
  color: #3d5272;
  line-height: 1.6;
}
.footer-contact-item .info strong {
  display: block;
  color: #5a7090;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  margin-bottom: 1px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  font-size: 0.73rem;
  color: #243347;
}
.social-links {
  display: flex;
  gap: 0.75rem;
}
.social-link {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(200,164,86,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  font-size: 0.85rem;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-pale);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .section { padding: 72px 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .section { padding: 56px 1.2rem; }
  .page-hero { padding: calc(var(--nav-h) + 48px) 1.5rem 56px; }
}
