/* ═══════════════════════════════════════════════════════════
   ARUN & SPANDANA WEDDING WEBSITE
   Stories by OneMark · stories.onemark.co.in
   Aesthetic: London Fog × Medical Precision × Gold Ritual
   ═══════════════════════════════════════════════════════════ */

@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=Josefin+Sans:wght@100;200;300;400&family=DM+Serif+Display:ital@0;1&display=swap');

/* ─── VARIABLES ─── */
:root {
  --gold: #C9A96E;
  --gold-light: #E8D5A3;
  --gold-dark: #8B6914;
  --navy: #090E1A;
  --navy-mid: #111827;
  --navy-card: #151C2C;
  --fog: #8DA3B0;
  --fog-light: #C4D4DC;
  --cream: #F5F0E8;
  --clinical: #E8EEF4;
  --text-body: rgba(255, 255, 255, 0.95);
  --text-muted: rgba(255, 255, 255, 0.85);
  --font-display: 'DM Serif Display', 'Cormorant Garamond', serif;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Josefin Sans', sans-serif;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-sans);
  font-weight: 200;
}

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

a {
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
}

::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background: var(--navy);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
}

/* ─── CURSOR ─── */
body {
  cursor: none;
}

@media (pointer: coarse) {
  body {
    cursor: auto;
  }
}

.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 0.2s, height 0.2s, opacity 0.3s;
  mix-blend-mode: difference;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(201, 169, 110, 0.5);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1.4rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.6s, padding 0.5s, border-color 0.5s;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(9, 14, 26, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: rgba(255, 255, 255, 0.06);
  padding: 0.9rem 3rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__brand-logo {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(201, 169, 110, 0.5));
}

.nav__brand-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  font-weight: 400;
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-expo);
}

.nav__links a:hover {
  color: var(--gold);
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

.nav__ig {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
  border: 1px solid rgba(201, 169, 110, 0.35);
  padding: 0.45rem 1rem;
  transition: background 0.3s, color 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav__ig:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ─── UTILITIES ─── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  color: var(--gold-light);
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--cream);
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  justify-content: center;
  margin: 2rem 0;
}

.ornament__line {
  flex: 1;
  max-width: 90px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}

.ornament__line--rev {
  background: linear-gradient(to left, transparent, var(--gold));
}

.ornament__gem {
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.divider-gold {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 0;
}

/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(9, 14, 26, 0.98);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border: 1px solid rgba(201, 169, 110, 0.2);
}

.lightbox__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: transparent;
  border: 1px solid rgba(201, 169, 110, 0.35);
  color: var(--gold);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.3s, color 0.3s;
}

.lightbox__close:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .nav {
    padding: 1.1rem 1.8rem;
  }

  .nav.is-scrolled {
    padding: 0.85rem 1.8rem;
  }

  .nav__links {
    gap: 1.6rem;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.4rem;
  }

  .nav.is-scrolled {
    padding: 0.75rem 1.4rem;
  }

  .nav__links {
    display: none;
  }

  .nav__ig {
    display: none; /* Hide IG link on mobile navbar, move to sidebar */
  }

  /* Hamburger Toggle */
  .nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
    padding: 10px;
  }
  
  .nav__toggle-line {
    width: 24px;
    height: 1px;
    background-color: var(--cream);
    margin: 3px 0;
    transition: all 0.4s cubic-bezier(0.87, 0, 0.13, 1);
  }

  /* When menu is open */
  .nav.is-open .nav__toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .nav.is-open .nav__toggle-line:nth-child(2) {
    opacity: 0;
  }
  
  .nav.is-open .nav__toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ─── MOBILE SIDEBAR OVERLAY ─── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 90;
  pointer-events: none;
  display: flex;
  visibility: hidden;
}

.sidebar__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--navy);
  transform: translateX(100%);
}

.sidebar__content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
}

.sidebar__links {
  list-style: none;
  text-align: center;
  padding: 0;
  margin: 0;
}

.sidebar__links li {
  margin-bottom: 2rem;
  overflow: hidden;
}

.sidebar__link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold-light);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 300;
  letter-spacing: 0.1em;
  transform: translateY(100%);
  opacity: 0;
  transition: color 0.3s;
}

.sidebar__link:hover {
  color: var(--cream);
}

.sidebar__ig {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--fog-light);
  text-decoration: none;
  text-transform: uppercase;
  margin-top: 3rem;
  opacity: 0;
  transform: translateY(20px);
}

/* ─── HERO TEXT SIZE REDUCTION ─── */
@media (max-width: 480px) {
  .hero {
    padding-top: 5rem;
  }

  .hero__names {
    font-size: clamp(3rem, 12vw, 4.5rem) !important;
  }
}

.groom-name,
.bride-name {
  font-size: clamp(3.5rem, 9vw, 8rem) !important;
}

.hero__tagline {
  font-size: clamp(0.85rem, 1.8vw, 1.25rem) !important;
}

.hero__eyebrow {
  font-size: 0.75rem !important;
  letter-spacing: 0.35em !important;
  color: var(--gold-light) !important;
}

/* ─── FOOTER STORIES LOGO FIX ─── */
.footer__stories-logo {
  opacity: 1;
  max-height: 36px;
  width: auto;
}

/* Fallback: if img fails to load, the text link stays visible */
.footer__stories-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--gold-light);
}

.footer__stories-text {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  opacity: 1;
  font-weight: 400;
  text-transform: lowercase;
}