/* ============================================
   XEN SOLIS — LUXURY EDITORIAL DESIGN SYSTEM
   ============================================ */

@font-face {
  font-family: 'TheSeasons';
  src: url('fonts/Fontspring-DEMO-theseasons-lt.otf') format('opentype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'TheSeasons';
  src: url('fonts/Fontspring-DEMO-theseasons-reg.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'TheSeasons';
  src: url('fonts/Fontspring-DEMO-theseasons-it.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'TheSeasons';
  src: url('fonts/Fontspring-DEMO-theseasons-bd.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

/* ── TOKENS ── */
:root {
  --black:      #080808;
  --charcoal:   #111111;
  --graphite:   #1a1a1a;
  --midtone:    #2e2e2e;
  --ash:        #5a5a5a;
  --silver:     #9a9a9a;
  --ivory:      #f0ece4;
  --champagne:  #d4c9b0;
  --white:      #faf9f7;
  --rule:       rgba(255,255,255,0.1);
  --rule-dark:  rgba(0,0,0,0.12);

  --serif:      'TheSeasons', 'Cormorant Garamond', Georgia, serif;
  --sans:       'Cormorant', 'Gill Sans', 'Optima', Futura, sans-serif;
  --mono:       'Courier New', monospace;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── TYPOGRAPHY ── */
.t-display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.01em;
}
.t-heading {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
}
.t-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
}
.t-body {
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
}
.t-intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
}

/* ── RULE ── */
.rule {
  width: 100%;
  height: 1px;
  background: var(--rule);
}
.rule-dark {
  width: 100%;
  height: 1px;
  background: var(--rule-dark);
}
.rule-short {
  width: 40px;
  height: 1px;
  background: var(--champagne);
  display: block;
}

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  height: 72px;
  transition: background 0.6s var(--ease-out), border-color 0.6s var(--ease-out);
}
.nav.scrolled {
  background: rgba(8, 8, 8, 0.96);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(8px);
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 36px;
  width: auto;
  filter: brightness(1);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  list-style: none;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--champagne);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  height: 1px;
  background: var(--white);
  transition: all 0.3s;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: 1px solid var(--white);
  color: var(--white);
  transition: background 0.3s, color 0.3s;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease-out);
}
.btn:hover::before { transform: translateX(0); }
.btn:hover { color: var(--black); }
.btn-ivory {
  border-color: var(--ivory);
  color: var(--ivory);
}

/* ── SECTIONS ── */
.section {
  padding: clamp(5rem, 10vw, 10rem) clamp(1.5rem, 4vw, 4rem);
}
.section-inner {
  max-width: 1400px;
  margin: 0 auto;
}

/* ── PAGE HERO ── */
.page-hero {
  padding-top: 160px;
  padding-bottom: 80px;
  padding-left: clamp(1.5rem, 4vw, 4rem);
  padding-right: clamp(1.5rem, 4vw, 4rem);
  position: relative;
}
.page-hero .rule { margin-bottom: 2rem; }
.page-hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 2rem;
}
.page-hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

/* ── FOOTER ── */
.footer {
  padding: 4rem clamp(1.5rem, 4vw, 4rem);
  border-top: 1px solid var(--rule);
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.footer-brand img {
  height: 32px;
  width: auto;
  margin-bottom: 1.5rem;
}
.footer-brand p {
  font-size: 0.75rem;
  color: var(--ash);
  line-height: 1.8;
  letter-spacing: 0.02em;
}
.footer-address {
  font-size: 0.75rem;
  color: var(--ash);
  line-height: 2;
  letter-spacing: 0.02em;
}
.footer-address strong {
  display: block;
  color: rgba(255,255,255,0.4);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  font-weight: 400;
}
.footer-contact {
  text-align: right;
}
.footer-contact strong {
  display: block;
  color: rgba(255,255,255,0.4);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  font-weight: 400;
}
.footer-contact p {
  font-size: 0.75rem;
  color: var(--ash);
  line-height: 2;
}
.footer-contact a {
  color: var(--ash);
  transition: color 0.3s;
}
.footer-contact a:hover { color: var(--white); }
.footer-social {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  justify-content: flex-end;
}
.footer-social a {
  width: 32px;
  height: 32px;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ash);
  font-size: 0.75rem;
  font-family: var(--mono);
  transition: border-color 0.3s, color 0.3s;
}
.footer-social a:hover {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.footer-bottom {
  max-width: 1400px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--ash);
  text-transform: uppercase;
}

/* ── GSAP ANIMATION INIT ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
}
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
}

/* ── MOBILE NAV ── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-nav a {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
}
.mobile-nav a:hover { color: var(--white); }
.mobile-nav-close {
  position: absolute;
  top: 1.5rem;
  right: clamp(1.5rem, 4vw, 4rem);
  font-size: 1.5rem;
  color: var(--silver);
  cursor: pointer;
  font-family: var(--mono);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-nav { display: flex; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-contact { text-align: left; }
  .footer-social { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
