﻿/* ============================================================
   Arjun Upanayanam – Premium Redesign Stylesheet v2
   ============================================================ */

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

:root {
  --saffron:    #FF9933;
  --gold:       #C8963E;
  --gold-lt:    #E8B86D;
  --gold-pale:  #F5DFA0;
  --maroon:     #800000;
  --maroon-dk:  #4A0000;
  --maroon-md:  #6B0000;
  --cream:      #FDF6EC;
  --cream-dk:   #F5E6C8;
  --text:       #3B2A1A;
  --text-lt:    #6B4C2A;
  --white:      #FFFFFF;
  --nav-h:      68px;
  --radius:     12px;
  --shadow-sm:  0 2px 12px rgba(0,0,0,.12);
  --shadow:     0 6px 28px rgba(0,0,0,.18);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.25);
  --font-deco:  'Cinzel Decorative', serif;
  --font-head:  'Cinzel', serif;
  --font-body:  'Lora', serif;
  --font-ui:    'Open Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
}
a { color: var(--maroon); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: 1140px; margin-inline: auto; padding-inline: 24px; }
.section { padding: 88px 0; }

/* ── Section header ── */
.section-header { text-align: center; margin-bottom: 52px; }
.section-eyebrow {
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-eyebrow.light { color: var(--gold-pale); }
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  color: var(--maroon);
  letter-spacing: .04em;
  display: inline-block;
}
.section-title.light { color: var(--white); }
.section-title::after {
  content: '';
  display: block;
  width: 64px; height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold-lt));
  margin: 14px auto 0;
  border-radius: 2px;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .65s ease, transform .65s ease;
  transition-delay: var(--delay, 0s);
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Floating Petals ── */
.petals { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.petals span {
  position: absolute; top: -20px; display: block;
  width: 14px; height: 14px;
  border-radius: 50% 0;
  opacity: 0;
  animation: petalFall linear infinite;
}
.petals span:nth-child(1)  { left:5%;  width:10px;height:10px; background:#FF9933; animation-duration:12s; animation-delay:0s; }
.petals span:nth-child(2)  { left:12%; background:#C8963E; animation-duration:15s; animation-delay:2s; }
.petals span:nth-child(3)  { left:20%; width:8px; height:8px; background:#FFCC66; animation-duration:11s; animation-delay:4s; }
.petals span:nth-child(4)  { left:28%; background:#FF9933; animation-duration:18s; animation-delay:1s; }
.petals span:nth-child(5)  { left:36%; width:12px;height:12px; background:#E8B86D; animation-duration:14s; animation-delay:6s; }
.petals span:nth-child(6)  { left:44%; background:#FF8C00; animation-duration:16s; animation-delay:3s; }
.petals span:nth-child(7)  { left:52%; width:9px; height:9px; background:#C8963E; animation-duration:13s; animation-delay:5s; }
.petals span:nth-child(8)  { left:60%; background:#FFCC66; animation-duration:17s; animation-delay:0.5s; }
.petals span:nth-child(9)  { left:68%; width:11px;height:11px; background:#FF9933; animation-duration:10s; animation-delay:7s; }
.petals span:nth-child(10) { left:75%; background:#E8B86D; animation-duration:14s; animation-delay:2.5s; }
.petals span:nth-child(11) { left:82%; width:8px; height:8px; background:#FF8C00; animation-duration:19s; animation-delay:4.5s; }
.petals span:nth-child(12) { left:88%; background:#C8963E; animation-duration:12s; animation-delay:9s; }
.petals span:nth-child(13) { left:93%; width:13px;height:13px; background:#FFCC66; animation-duration:15s; animation-delay:1.5s; }
.petals span:nth-child(14) { left:8%;  width:7px; height:7px; background:#FF9933; animation-duration:20s; animation-delay:8s; }
.petals span:nth-child(15) { left:55%; width:10px;height:10px; background:#E8B86D; animation-duration:16s; animation-delay:3.5s; }
@keyframes petalFall {
  0%   { opacity:0; top:-20px; transform: translateX(0) rotate(0deg); }
  10%  { opacity:.8; }
  90%  { opacity:.6; }
  100% { opacity:0; top:110vh; transform: translateX(120px) rotate(720deg); }
}

/* ── Navbar ── */
#navbar {
  position: fixed; top:0; left:0; right:0;
  z-index: 1000; height: var(--nav-h);
  background: rgba(74,0,0,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(200,150,62,.2);
  transition: background .3s, box-shadow .3s;
}
#navbar.scrolled { background: rgba(74,0,0,.97); box-shadow: 0 2px 20px rgba(0,0,0,.4); }
.nav-container {
  max-width: 1140px; margin-inline: auto; padding-inline: 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head); font-size: 1rem; color: var(--gold-lt);
  letter-spacing: .04em; display: flex; align-items: center; gap: 8px;
}
.om-icon { width: 28px; height: 28px; flex-shrink: 0; }
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a {
  font-family: var(--font-ui); font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; color: rgba(245,230,200,.8); text-transform: uppercase;
  padding-bottom: 3px; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-lt); border-bottom-color: var(--saffron); text-decoration: none; }
.hamburger { display:none; background:none; border:none; color:var(--cream-dk); font-size:1.4rem; cursor:pointer; }
.nav-mobile { display:none; list-style:none; flex-direction:column; background:var(--maroon-dk); border-top:1px solid rgba(200,150,62,.2); }
.nav-mobile.open { display: flex; }
.nav-mobile a { display:block; padding:13px 24px; font-family:var(--font-ui); font-size:.82rem; letter-spacing:.1em; color:var(--cream-dk); font-weight:600; text-transform:uppercase; }
.nav-mobile a:hover { color:var(--gold-lt); text-decoration:none; }

/* ── Hero ── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden;
  background: linear-gradient(160deg, #1A0000 0%, #3D0800 30%, #5C1500 60%, #2A0500 100%);
}
.hero-mandala {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.hero-mandala svg { width: min(90vw, 600px); animation: rotateSlow 60s linear infinite; }
@keyframes rotateSlow { to { transform: rotate(360deg); } }

.hero-content {
  position: relative; z-index: 1;
  padding: 20px; padding-top: var(--nav-h);
  max-width: 820px; width: 100%;
}
.hero-topline { display:flex; align-items:center; justify-content:center; gap:16px; margin-bottom:14px; }
.hero-line { flex:1; max-width:80px; height:1px; background:linear-gradient(90deg, transparent, var(--gold-lt)); }
.hero-line:last-child { background:linear-gradient(90deg, var(--gold-lt), transparent); }
.hero-invite { font-family:var(--font-ui); font-size:clamp(.6rem,2vw,.75rem); letter-spacing:.4em; text-transform:uppercase; color:var(--gold-lt); white-space:nowrap; }
.hero-sanskrit { font-size:clamp(1rem,3vw,1.35rem); color:var(--gold-pale); margin-bottom:16px; font-family:var(--font-body); font-style:italic; opacity:.85; }
.hero-title {
  font-family: var(--font-deco);
  font-size: clamp(1.8rem,6vw,3.6rem);
  color: var(--white); line-height: 1.25; margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(0,0,0,.6);
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold-pale), var(--saffron));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-divider { display:flex; justify-content:center; margin-bottom:20px; }
.hero-subtitle { font-family:var(--font-body); font-style:italic; font-size:clamp(.95rem,2.5vw,1.15rem); color:rgba(245,230,200,.85); margin-bottom:8px; }
.hero-hosts { font-family:var(--font-ui); font-size:.88rem; color:var(--gold-lt); margin-bottom:32px; letter-spacing:.04em; }

/* Countdown */
.countdown {
  display: inline-flex; align-items: center;
  background: rgba(0,0,0,.35); border: 1px solid rgba(200,150,62,.3);
  border-radius: 60px; padding: 14px 28px; margin-bottom: 32px;
  backdrop-filter: blur(6px);
}
.countdown-unit { text-align:center; padding:0 12px; }
.countdown-unit span {
  display:block; font-family:var(--font-head); font-size:clamp(1.4rem,4vw,2rem);
  font-weight:700; color:var(--gold-lt); line-height:1; min-width:2.5ch;
}
.countdown-unit label { display:block; font-family:var(--font-ui); font-size:.6rem; letter-spacing:.2em; text-transform:uppercase; color:rgba(245,230,200,.6); margin-top:4px; }
.countdown-sep { font-family:var(--font-head); font-size:1.6rem; color:var(--gold); opacity:.6; align-self:flex-start; margin-top:4px; }
.countdown-done { color:var(--gold-lt); font-style:italic; font-size:1.1rem; }

.hero-btn {
  display:inline-block; padding:15px 40px;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--gold) 100%);
  color:var(--white); font-family:var(--font-ui); font-size:.8rem; font-weight:700;
  letter-spacing:.18em; text-transform:uppercase; border-radius:50px;
  box-shadow: 0 4px 24px rgba(200,150,62,.5), inset 0 1px 0 rgba(255,255,255,.15);
  transition: transform .2s, box-shadow .2s;
}
.hero-btn:hover { transform:translateY(-3px); box-shadow:0 10px 32px rgba(200,150,62,.6); text-decoration:none; }
.hero-scroll-hint {
  position:absolute; bottom:28px; left:50%; transform:translateX(-50%);
  color:var(--gold-lt); font-size:1.4rem; opacity:.6; animation:bounce 1.8s infinite;
}

/* Section divider wave */
.section-divider { margin-top:-2px; line-height:0; background:var(--maroon-dk); }
.section-divider svg { display:block; width:100%; }

/* ── About ── */
.about-section { background: var(--cream); }
.about-grid { display:grid; grid-template-columns:1fr 420px; gap:64px; align-items:center; }
.about-text h3 { font-family:var(--font-head); font-size:1.25rem; color:var(--maroon); margin-bottom:20px; }
.about-text p { margin-bottom:16px; color:var(--text); }
.rsvp-btn {
  display:inline-block; margin-top:8px; padding:12px 28px;
  background:#25D366; color:var(--white); font-family:var(--font-ui); font-size:.78rem;
  font-weight:700; letter-spacing:.12em; text-transform:uppercase; border-radius:30px;
  transition:background .2s,transform .2s; box-shadow:0 4px 14px rgba(37,211,102,.35);
}
.rsvp-btn:hover { background:#1DAA56; transform:translateY(-2px); text-decoration:none; }

/* Portrait frame */
.about-image-wrap { display:flex; justify-content:center; }
.portrait-frame {
  position:relative; display:inline-block; padding:14px;
  background:linear-gradient(135deg, var(--gold-lt) 0%, var(--cream-dk) 50%, var(--gold-lt) 100%);
  border-radius:4px; box-shadow:var(--shadow-lg);
}
.portrait-frame img { display:block; width:100%; max-width:360px; height:auto; border-radius:2px; }
.portrait-corner { position:absolute; width:28px; height:28px; border-color:var(--maroon); border-style:solid; }
.portrait-corner.c1 { top:4px; left:4px; border-width:2px 0 0 2px; }
.portrait-corner.c2 { top:4px; right:4px; border-width:2px 2px 0 0; }
.portrait-corner.c3 { bottom:4px; left:4px; border-width:0 0 2px 2px; }
.portrait-corner.c4 { bottom:4px; right:4px; border-width:0 2px 2px 0; }

/* ── Details ── */
.details-section {
  position:relative; overflow:hidden;
  background:linear-gradient(145deg, var(--maroon-dk) 0%, var(--maroon-md) 50%, #8B1A00 100%);
}
.details-bg-pattern {
  position:absolute; inset:0; pointer-events:none;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255,153,51,.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(200,150,62,.08) 0%, transparent 50%);
}
.details-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.detail-card {
  border-radius:var(--radius); overflow:hidden;
  background:rgba(255,255,255,.06); border:1px solid rgba(200,150,62,.25);
  backdrop-filter:blur(8px); transition:transform .3s,box-shadow .3s; cursor:default;
}
.detail-card:hover { transform:translateY(-8px); box-shadow:0 16px 40px rgba(0,0,0,.35); }
.detail-card-inner { padding:40px 28px; text-align:center; }
.detail-icon-wrap {
  width:64px; height:64px; border-radius:50%;
  background:linear-gradient(135deg, rgba(255,153,51,.2), rgba(200,150,62,.2));
  border:1px solid rgba(200,150,62,.3);
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 18px;
}
.detail-icon { font-size:1.8rem; }
.detail-card h4 { font-family:var(--font-head); font-size:.85rem; letter-spacing:.15em; text-transform:uppercase; color:var(--gold-lt); margin-bottom:10px; }
.detail-card p { color:rgba(245,230,200,.8); font-size:.95rem; line-height:1.7; margin-bottom:6px; }
.detail-card a { color:var(--gold-pale); }
.detail-highlight { font-family:var(--font-head); color:var(--gold-pale) !important; font-size:1rem !important; margin-top:8px !important; }

/* ── Venue ── */
.venue-section { background:var(--cream-dk); }
.venue-grid { display:grid; grid-template-columns:1fr 1.5fr; gap:44px; align-items:start; }
.venue-badge {
  font-size:2rem; width:60px; height:60px;
  background:linear-gradient(135deg, var(--maroon), var(--maroon-md));
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  margin-bottom:16px; box-shadow:var(--shadow-sm);
}
.venue-info h3 { font-family:var(--font-head); font-size:1.3rem; color:var(--maroon); margin-bottom:10px; }
.venue-info p { color:var(--text); margin-bottom:10px; }
.map-link {
  display:inline-block; margin-top:10px; padding:10px 22px;
  background:var(--maroon); color:var(--white); font-family:var(--font-ui);
  font-size:.78rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  border-radius:30px; margin-right:10px; transition:background .2s,transform .2s;
}
.map-link:hover { background:var(--maroon-dk); transform:translateY(-2px); text-decoration:none; }
.map-link.whatsapp-link { background:#25D366; margin-top:8px; }
.map-link.whatsapp-link:hover { background:#1DAA56; }
.venue-map iframe { border-radius:var(--radius); box-shadow:var(--shadow); width:100%; }

/* ── Gallery ── */
.arjun-section { background:var(--cream); }
.arjun-intro { max-width:700px; margin:0 auto 44px; text-align:center; font-style:italic; color:var(--text-lt); font-size:1.05rem; }
.gallery { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px,1fr)); gap:20px; }
.gallery-item {
  cursor:pointer; border-radius:var(--radius); overflow:hidden;
  box-shadow:var(--shadow-sm); background:var(--cream-dk);
  transition:transform .3s,box-shadow .3s;
}
.gallery-item:hover { transform:translateY(-6px); box-shadow:var(--shadow-lg); }
.gallery-img-wrap { overflow:hidden; aspect-ratio:4/3; }
.gallery-img-wrap img { width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.gallery-item:hover .gallery-img-wrap img { transform:scale(1.08); }
.gallery-caption { padding:10px 14px 12px; font-style:italic; font-size:.88rem; color:var(--text-lt); text-align:center; }

/* ── Schedule ── */
.schedule-section { background:linear-gradient(160deg, #1A0000 0%, #3D0800 40%, #5C1500 100%); }
.schedule-cards { display:grid; grid-template-columns:repeat(2,1fr); gap:28px; max-width:860px; margin-inline:auto; }
.schedule-card {
  background:rgba(255,255,255,.06); border:1px solid rgba(200,150,62,.2);
  border-radius:var(--radius); display:flex; overflow:hidden;
  backdrop-filter:blur(8px); transition:transform .3s,box-shadow .3s;
}
.schedule-card:hover { transform:translateY(-6px); box-shadow:0 16px 40px rgba(0,0,0,.4); }
.schedule-card.featured { border-color:rgba(255,153,51,.45); }
.schedule-date {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:24px 18px; background:rgba(255,255,255,.04);
  border-right:1px solid rgba(200,150,62,.2); min-width:80px; gap:2px;
}
.schedule-date.gold { background:linear-gradient(180deg, rgba(255,153,51,.15), rgba(200,150,62,.1)); border-right-color:rgba(255,153,51,.3); }
.sched-month { font-family:var(--font-ui); font-size:.62rem; font-weight:700; letter-spacing:.2em; color:var(--saffron); }
.sched-day { font-family:var(--font-head); font-size:2.4rem; font-weight:700; color:var(--white); line-height:1; }
.sched-year { font-family:var(--font-ui); font-size:.62rem; color:rgba(245,230,200,.5); letter-spacing:.1em; }
.schedule-body { padding:24px 22px; }
.sched-badge {
  display:inline-block; font-family:var(--font-ui); font-size:.62rem; font-weight:700;
  letter-spacing:.14em; text-transform:uppercase; color:var(--saffron);
  background:rgba(255,153,51,.1); padding:3px 12px; border-radius:20px; margin-bottom:10px;
}
.sched-badge.gold { color:var(--gold-pale); background:rgba(200,150,62,.15); }
.schedule-body h4 { font-family:var(--font-head); font-size:1.05rem; color:var(--gold-lt); margin-bottom:6px; }
.sched-time { display:block; font-family:var(--font-ui); font-size:.8rem; color:var(--saffron); margin-bottom:10px; }
.schedule-body p { color:rgba(245,230,200,.75); font-size:.9rem; }

/* ── Footer ── */
.footer {
  position:relative; background:var(--maroon-dk); color:var(--cream-dk);
  text-align:center; padding:56px 20px 36px;
  border-top:1px solid rgba(200,150,62,.2); overflow:hidden;
}
.footer-mandala { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); font-size:22rem; opacity:.03; pointer-events:none; line-height:1; }
.footer-om { font-size:2.5rem; color:var(--gold-lt); margin-bottom:12px; display:block; }
.footer-title { font-family:var(--font-head); font-size:1.25rem; color:var(--gold-lt); letter-spacing:.05em; margin-bottom:6px; }
.footer-divider { width:60px; height:2px; background:linear-gradient(90deg, transparent, var(--gold), transparent); margin:16px auto; }
.footer p { margin-bottom:8px; font-size:.92rem; }
.footer a { color:var(--gold-lt); }
.footer a:hover { color:var(--saffron); }
.footer-copy { margin-top:24px; font-size:.75rem; opacity:.5; font-family:var(--font-ui); letter-spacing:.05em; }

/* ── Lightbox ── */
.lightbox {
  display:none; position:fixed; inset:0; z-index:9999;
  background:rgba(0,0,0,.92); align-items:center; justify-content:center;
  flex-direction:column; padding:20px; backdrop-filter:blur(6px); cursor:zoom-out;
}
.lightbox.open { display:flex; }
.lightbox img { max-width:90vw; max-height:80vh; object-fit:contain; border-radius:8px; box-shadow:0 8px 60px rgba(0,0,0,.6); border:2px solid rgba(200,150,62,.3); }
.lightbox p { color:var(--cream-dk); margin-top:14px; font-style:italic; font-size:1rem; }
.lb-close {
  position:absolute; top:20px; right:24px;
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2);
  color:var(--white); font-size:1.4rem; width:42px; height:42px;
  border-radius:50%; cursor:pointer; transition:background .2s;
  display:flex; align-items:center; justify-content:center;
}
.lb-close:hover { background:rgba(255,255,255,.2); }

/* ── Floating WhatsApp ── */
.fab-whatsapp {
  position:fixed; bottom:32px; right:28px; z-index:800;
  background:#25D366; color:var(--white);
  display:flex; align-items:center; gap:8px;
  padding:12px 20px 12px 14px; border-radius:50px;
  box-shadow:0 4px 20px rgba(37,211,102,.4);
  font-family:var(--font-ui); font-size:.78rem; font-weight:700;
  letter-spacing:.1em; text-transform:uppercase;
  transition:transform .2s,box-shadow .2s;
}
.fab-whatsapp svg { width:22px; height:22px; flex-shrink:0; }
.fab-whatsapp:hover { transform:translateY(-3px); box-shadow:0 8px 28px rgba(37,211,102,.5); text-decoration:none; color:var(--white); }

/* ── Animations ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:none; } }
@keyframes bounce {
  0%,100% { transform:translateX(-50%) translateY(0); }
  50% { transform:translateX(-50%) translateY(-10px); }
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .about-grid       { grid-template-columns:1fr; }
  .about-image-wrap { order:-1; justify-content:center; }
  .details-cards    { grid-template-columns:1fr; gap:16px; }
  .venue-grid       { grid-template-columns:1fr; }
  .schedule-cards   { grid-template-columns:1fr; }
}
@media (max-width: 640px) {
  .nav-links  { display:none; }
  .hamburger  { display:block; }
  .hero-title { font-size:1.75rem; }
  .countdown  { padding:10px 16px; }
  .countdown-unit span { font-size:1.35rem; }
  .countdown-unit { padding:0 8px; }
  .section    { padding:60px 0; }
  .gallery    { grid-template-columns:repeat(2,1fr); }
  .fab-whatsapp span { display:none; }
  .fab-whatsapp { padding:14px; border-radius:50%; }
  .fab-whatsapp svg { width:26px; height:26px; }
}
@media (max-width: 400px) {
  .gallery    { grid-template-columns:1fr; }
  .hero-title { font-size:1.5rem; }
}
