/* ============================================================
   SHRAVEK JOURNEY — Main Stylesheet
   Warm, intimate, editorial design
   ============================================================ */

:root {
  --ivory:    #FAF7F2;
  --ivory-2:  #F0EBE3;
  --rose:     #B5616E;
  --rose-lt:  #D4929B;
  --gold:     #9C7B4F;
  --gold-lt:  #C4A87A;
  --teal:     #4A7C7E;
  --teal-lt:  #6BA3A5;
  --dark:     #1E2328;
  --dark-2:   #2A3038;
  --muted:    #6B7280;
  --white:    #FFFFFF;
  --border:   rgba(75, 124, 126, 0.2);
  --ff-serif: 'Cormorant Garamond', Georgia, serif;
  --ff-sans:  'Jost', system-ui, sans-serif;
  --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-sans);
  background: var(--ivory);
  color: var(--dark);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
}

/* ── PRELOADER ──────────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader--hidden {
  opacity: 0;
  visibility: hidden;
}
.preloader__content {
  text-align: center;
  animation: fadeSlideUp 0.6s ease both;
}
.preloader__logo {
  font-family: var(--ff-serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--teal-lt);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.preloader__tagline {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 2rem;
}
.preloader__spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--teal-lt);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Hide animations until page is revealed */
body.loading .wedding-banner,
body.loading .hero,
body.loading .nav {
  opacity: 0;
}

body.revealed .nav {
  animation: fadeIn 0.5s ease 0.1s both;
}
body.revealed .wedding-banner {
  animation: fadeIn 0.8s ease 0.2s both;
}
body.revealed .wedding-banner__img {
  animation: zoomIn 1.5s ease 0.3s both;
}
body.revealed .wedding-banner__text {
  animation: fadeSlideUp 0.8s ease 0.6s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale(1.1); }
  to { opacity: 1; transform: scale(1); }
}

/* Hero animations — only after reveal */
body.loading .hero__photo-left,
body.loading .hero__photo-right,
body.loading .hero__eyebrow,
body.loading .hero__title,
body.loading .hero__divider,
body.loading .hero__sub,
body.loading .hero__tagline {
  animation: none !important;
  opacity: 0;
}
body.revealed .hero {
  animation: fadeIn 0.6s ease 0.3s both;
}
body.revealed .hero__photo-left {
  animation: panelSlideLeft 1.2s ease 0.5s both;
}
body.revealed .hero__photo-right {
  animation: panelSlideRight 1.2s ease 0.7s both;
}
body.revealed .hero__eyebrow {
  animation: fadeSlideUp 0.8s ease 1s both;
}
body.revealed .hero__title {
  animation: fadeSlideUp 0.8s ease 1.2s both;
}
body.revealed .hero__divider {
  animation: fadeSlideUp 0.8s ease 1.4s both;
}
body.revealed .hero__sub {
  animation: fadeSlideUp 0.8s ease 1.5s both;
}
body.revealed .hero__tagline {
  animation: fadeSlideUp 0.8s ease 1.6s both;
}

/* ── NAVIGATION ─────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 3rem;
  background: rgba(30, 35, 40, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--border);
}
.nav__logo {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--teal-lt);
}
.nav__links {
  display: flex; gap: 2.5rem; list-style: none;
}
.nav__links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--teal-lt); }
.nav__admin-link { opacity: 0.5; font-size: 0.75em; }
.nav__admin-link:hover { opacity: 1; }
.nav__burger {
  display: none;
  background: none; border: none; color: white;
  font-size: 1.4rem; cursor: pointer;
}

/* ── WEDDING BANNER (Full-width photo above hero) ─────── */
.wedding-banner {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
  background: #1a1a1a;
}
.wedding-banner__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.wedding-banner__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
}
.wedding-banner__text {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 5vw, 4rem);
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  letter-spacing: 0.08em;
}

/* ── HERO (Three-Panel: Photo | Text | Photo) ───────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--dark);
}
.hero__photo-left,
.hero__photo-right {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.hero__photo-left {
  animation: panelSlideLeft 1.2s ease both;
}
.hero__photo-right {
  animation: panelSlideRight 1.2s ease 0.2s both;
}
@keyframes panelSlideLeft {
  from { opacity: 0; transform: translateX(-100%); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes panelSlideRight {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}
.hero__photo-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 100vh;
  filter: brightness(0.85);
  transition: filter 0.5s, transform 6s ease;
}
.hero__photo-left:hover .hero__photo-full,
.hero__photo-right:hover .hero__photo-full {
  filter: brightness(1);
  transform: scale(1.03);
}
.hero__photo-left::after,
.hero__photo-right::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
}
.hero__photo-left::after {
  background: linear-gradient(to right, transparent 50%, var(--dark) 100%);
}
.hero__photo-right::after {
  background: linear-gradient(to left, transparent 50%, var(--dark) 100%);
}
.hero__center {
  flex: 0 0 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 2.5rem;
  z-index: 2;
  background: linear-gradient(180deg, rgba(30,35,40,0.95) 0%, rgba(30,35,40,0.98) 100%);
}
.hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--teal-lt);
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.8s ease 0.8s both;
}
.hero__title {
  font-family: var(--ff-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.8s ease 1s both;
}
.hero__title em {
  color: var(--rose-lt);
  font-style: italic;
}
.hero__ampersand {
  font-family: var(--ff-serif);
  font-size: 0.6em;
  color: var(--teal-lt);
  font-style: italic;
  display: inline-block;
  margin: 0 0.1em;
}
.hero__divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--rose));
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.8s ease 1.2s both;
}
.hero__sub {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 1rem;
  animation: fadeSlideUp 0.8s ease 1.3s both;
}
.hero__tagline {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--teal-lt);
  margin-bottom: 2rem;
  animation: fadeSlideUp 0.8s ease 1.4s both;
}
.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 3;
}
.hero__scroll-hint span {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--ff-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}
.btn--light {
  background: var(--white);
  color: var(--dark);
}
.btn--light:hover { background: var(--rose-lt); color: var(--white); }
.btn--dark {
  background: var(--dark);
  color: var(--white);
}
.btn--dark:hover { background: var(--rose); }
.btn--rose {
  background: linear-gradient(135deg, var(--teal), var(--teal-lt));
  color: var(--white);
  border-radius: 30px;
  padding: 0.85rem 2rem;
}
.btn--rose:hover { background: linear-gradient(135deg, var(--rose), var(--rose-lt)); }

/* ── SECTIONS ────────────────────────────────────────────── */
.section {
  padding: 6rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section--dark {
  background: var(--dark);
  max-width: 100%;
  padding: 6rem 3rem;
}
.section--dark .section__eyebrow,
.section--dark .section__title { color: var(--white); }
.section--dark .section__desc { color: rgba(255,255,255,0.6); }
.section--ivory { background: var(--ivory-2); max-width: 100%; padding: 6rem 3rem; }

.section__header { text-align: center; margin-bottom: 3.5rem; }
.section__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.75rem;
}
.section__title {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  margin-bottom: 1rem;
}
.section__desc {
  color: var(--muted);
  max-width: 550px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* ── TIMELINE ────────────────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding: 0 0 3rem 2.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -0.45rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rose);
  border: 3px solid var(--ivory);
}
.timeline-item__date {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.3rem;
}
.timeline-item__title {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.timeline-item__desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.timeline-item__photo {
  width: 100%;
  max-width: 400px;
  margin-top: 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.timeline-album-grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
  max-width: 600px;
}
.timeline-album-grid.open {
  display: grid;
}
.timeline-album-toggle {
  margin-top: 1rem;
  background: var(--dark);
  color: #fff;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}
.timeline-album-toggle:hover {
  background: #555;
}
.timeline-album-grid__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: transform 0.2s;
}
.timeline-album-grid__img:hover {
  transform: scale(1.05);
}
.timeline-item__icon {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

/* ── TRAVEL GRID ─────────────────────────────────────────── */
.travel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.travel-card {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  transition: transform 0.2s;
}
.travel-card:hover { transform: translateY(-3px); }
.travel-card__img {
  height: 180px;
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.travel-card__body { padding: 1.25rem; }
.travel-card__name {
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.travel-card__date {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.5rem;
}
.travel-card__desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

/* ── BABY GRID ───────────────────────────────────────────── */
.baby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.baby-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s;
}
.baby-card:hover { transform: translateY(-2px); }
.baby-card__icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.baby-card__month {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.5rem;
}
.baby-card__title {
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.baby-card__desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── GALLERY ─────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.gallery-item {
  aspect-ratio: 1;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  overflow: hidden;
  transition: transform 0.2s;
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item img, .gallery-item video {
  width: 100%; height: 100%; object-fit: cover;
}
.timeline-album-grid video {
  width: 100%; height: 100%; object-fit: cover; border-radius: 8px;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  text-align: center;
  padding: 3rem 2rem;
}
.footer__logo {
  font-family: var(--ff-serif);
  font-size: 1.6rem;
  color: var(--rose-lt);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.footer__tag {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  margin-bottom: 1rem;
}
.footer__copy {
  color: rgba(255,255,255,0.25);
  font-size: 0.7rem;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav__links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark); padding: 1.5rem; gap: 1rem; }
  .nav__links.open { display: flex; }
  .nav__burger { display: block; }
  .hero { flex-direction: column; min-height: auto; }
  .hero__photo-left, .hero__photo-right { flex: none; height: 35vh; }
  .hero__photo-full { min-height: 35vh; }
  .hero__photo-left { animation: panelSlideLeft 1s ease both; }
  .hero__photo-right { animation: panelSlideRight 1s ease 0.2s both; }
  .hero__center { flex: none; padding: 3rem 2rem; }
  .hero__photo-left::after { background: linear-gradient(to bottom, transparent 50%, var(--dark) 100%); }
  .hero__photo-right::after { background: linear-gradient(to top, transparent 50%, var(--dark) 100%); }
  .section { padding: 4rem 1.5rem; }
  .section--dark, .section--ivory { padding: 4rem 1.5rem; }
  .travel-grid { grid-template-columns: 1fr; }
  .baby-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
