/* ─── Variables ─────────────────────────────────────────── */
:root {
  --crimson:   #7B1818;
  --crimson-d: #5a0f0f;
  --gold:      #D4AF37;
  --gold-l:    #e8cc6a;
  --green:     #2D5A1B;
  --green-l:   #3d7a27;
  --cream:     #FFF8E7;
  --cream-d:   #F5EDD4;
  --text:      #2c1a0e;
  --text-l:    #5a3a1a;
  --shadow:    rgba(90,15,15,0.18);

  --font-te:  'Noto Serif Telugu', serif;
  --font-en:  'Cormorant Garamond', Georgia, serif;
  --font-dec: 'Cinzel Decorative', serif;
}

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

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

body {
  font-family: var(--font-en);
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }
.section-pad { padding: 90px 0; }
.hidden { display: none !important; }

/* ─── Decorative border strips ──────────────────────────── */
.border-strip {
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--crimson) 0px, var(--crimson) 12px,
    var(--gold)    12px, var(--gold)    18px,
    var(--green)   18px, var(--green)   30px,
    var(--gold)    30px, var(--gold)    36px
  );
}

/* ─── Navigation ────────────────────────────────────────── */
#navbar {
  position: fixed; top: 8px; left: 0; right: 0; z-index: 100;
  background: rgba(123,24,24,0.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  transition: background 0.3s;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.nav-logo { font-family: var(--font-te); color: var(--gold); font-size: 1.3rem; font-weight: 600; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: rgba(255,248,231,0.9); font-family: var(--font-en);
  font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--gold); font-size: 1.5rem; }

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background:
    url('/images/hero-bg.jpg') center center / cover no-repeat;
  padding-top: 70px;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(90,15,15,0.82) 0%,
    rgba(45,90,27,0.55) 50%,
    rgba(90,15,15,0.85) 100%
  );
}

/* Kolam corner SVG decorations */
.kolam-corner {
  position: absolute; width: 130px; height: 130px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='10' cy='10' r='3' fill='%23D4AF37' opacity='.7'/%3E%3Ccircle cx='30' cy='10' r='2' fill='%23D4AF37' opacity='.5'/%3E%3Ccircle cx='50' cy='10' r='2' fill='%23D4AF37' opacity='.4'/%3E%3Ccircle cx='10' cy='30' r='2' fill='%23D4AF37' opacity='.5'/%3E%3Ccircle cx='30' cy='30' r='4' fill='%23D4AF37' opacity='.7'/%3E%3Ccircle cx='50' cy='30' r='2' fill='%23D4AF37' opacity='.4'/%3E%3Ccircle cx='10' cy='50' r='2' fill='%23D4AF37' opacity='.4'/%3E%3Ccircle cx='30' cy='50' r='2' fill='%23D4AF37' opacity='.4'/%3E%3Ccircle cx='50' cy='50' r='3' fill='%23D4AF37' opacity='.6'/%3E%3Cpath d='M5 5 Q 50 0 95 5 Q 100 50 95 95' fill='none' stroke='%23D4AF37' stroke-width='1' opacity='.4'/%3E%3Cpath d='M15 5 Q 50 10 85 15 Q 90 50 85 85' fill='none' stroke='%23D4AF37' stroke-width='0.5' opacity='.3'/%3E%3C/svg%3E") no-repeat;
}
.kolam-tl { top: 70px; left: 0; }
.kolam-tr { top: 70px; right: 0; transform: scaleX(-1); }
.kolam-bl { bottom: 40px; left: 0; transform: scaleY(-1); }
.kolam-br { bottom: 40px; right: 0; transform: scale(-1); }

.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 40px 20px;
  max-width: 700px;
  animation: fadeUp 1s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-block;
  border: 1.5px solid var(--gold);
  border-radius: 50px;
  padding: 5px 22px;
  margin-bottom: 20px;
}
.badge-inner {
  font-family: var(--font-te); color: var(--gold);
  font-size: 0.95rem; letter-spacing: 0.12em;
}
.hero-invite-text {
  color: rgba(255,248,231,0.85); font-size: 1.05rem;
  font-style: italic; margin-bottom: 8px;
}
.hero-title {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; margin-bottom: 18px;
}
.telugu-title {
  font-family: var(--font-te); font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 700; color: var(--gold);
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  line-height: 1.1;
}
.english-subtitle {
  font-family: var(--font-dec); font-size: clamp(0.95rem, 2.5vw, 1.3rem);
  color: rgba(255,248,231,0.9); letter-spacing: 0.15em; text-transform: uppercase;
}

.divider-motif { margin: 18px auto; max-width: 300px; }
.divider-motif.small { max-width: 200px; }

.hero-name {
  font-family: var(--font-dec); color: #fff;
  font-size: clamp(2rem, 5vw, 3rem); letter-spacing: 0.05em;
  margin: 14px 0 24px;
}
.hero-date-box {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; margin-bottom: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 8px; padding: 18px 30px;
  backdrop-filter: blur(4px);
}
.hero-date, .hero-time {
  display: flex; flex-direction: column; align-items: center;
}
.date-day { font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-l); }
.date-num { font-family: var(--font-dec); font-size: 2.8rem; color: #fff; line-height: 1; }
.date-month { font-size: 0.9rem; color: rgba(255,255,255,0.8); }
.date-sep { color: var(--gold); font-size: 1.2rem; }
.time-label { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-l); }
.time-val { font-family: var(--font-dec); font-size: 1.5rem; color: #fff; }
.hero-venue { color: rgba(255,248,231,0.85); font-size: 1rem; margin-bottom: 30px; letter-spacing: 0.05em; }

.hero-scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  color: rgba(255,255,255,0.6); font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; animation: bounce 2s infinite;
  z-index: 2;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
.scroll-arrow { font-size: 1rem; margin-top: 4px; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--crimson-d);
  font-family: var(--font-en); font-size: 1rem;
  font-weight: 700; letter-spacing: 0.08em;
  padding: 14px 38px; border-radius: 50px;
  border: 2px solid var(--gold);
  cursor: pointer; transition: all 0.25s;
  text-transform: uppercase;
}
.btn-primary:hover {
  background: transparent; color: var(--gold);
  box-shadow: 0 0 20px rgba(212,175,55,0.4);
}
.btn-primary.full { width: 100%; border-radius: 8px; padding: 16px; }

/* ─── Section Headers ────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-pre {
  font-size: 0.8rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--crimson); margin-bottom: 10px;
  font-family: var(--font-en);
}
.section-title {
  font-family: var(--font-dec); font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--crimson-d); line-height: 1.2; margin-bottom: 16px;
}
.section-header.light .section-title { color: #fff; }
.section-header.light .section-pre { color: var(--gold-l); }
.header-ornament {
  width: 80px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--crimson), transparent);
  margin: 0 auto;
}
.header-ornament.gold {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ─── Telugu inline ──────────────────────────────────────── */
.telugu-inline, .telugu-script {
  font-family: var(--font-te);
}
.telugu-script.small, .telugu-inline.small { font-size: 0.88em; }
.small { font-size: 0.88em; }

/* ─── About Section ──────────────────────────────────────── */
.about { background: var(--cream); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 60px; align-items: center;
}
.image-frame {
  position: relative; border: 3px solid var(--gold);
  padding: 8px;
  box-shadow: 8px 8px 0 var(--crimson);
}
.image-frame::before {
  content: ''; position: absolute;
  inset: -12px; border: 1px solid var(--gold); opacity: 0.4;
  pointer-events: none;
}
.about-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.image-label {
  text-align: center; margin-top: 14px;
  color: var(--crimson); font-size: 1.2rem;
}
.about-lead {
  font-size: 1.25rem; color: var(--crimson-d);
  font-style: italic; margin-bottom: 16px; line-height: 1.5;
}
.about-text p { margin-bottom: 14px; font-size: 1.05rem; color: var(--text-l); }
.about-quote {
  margin-top: 28px; padding: 20px 24px;
  border-left: 4px solid var(--gold);
  background: rgba(212,175,55,0.08);
}
.quote-telugu { display: block; font-size: 1.3rem; color: var(--crimson); margin-bottom: 6px; }
.quote-translation { font-style: italic; color: var(--text-l); font-size: 0.95rem; }

/* ─── Details Section ────────────────────────────────────── */
.details {
  position: relative;
  background: linear-gradient(135deg, var(--crimson-d) 0%, #3d0808 50%, var(--green) 100%);
  color: #fff;
}
.details-bg-pattern {
  position: absolute; inset: 0; opacity: 0.06; pointer-events: none;
  background-image: radial-gradient(var(--gold) 1px, transparent 1px);
  background-size: 28px 28px;
}
.details-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-bottom: 60px;
}
.detail-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 12px; padding: 36px 24px;
  text-align: center; transition: transform 0.25s;
}
.detail-card:hover { transform: translateY(-4px); }
.detail-card.featured {
  background: rgba(212,175,55,0.12);
  border-color: var(--gold); transform: scale(1.04);
}
.detail-card.featured:hover { transform: scale(1.04) translateY(-4px); }
.detail-icon { width: 64px; height: 64px; margin: 0 auto 20px; }
.detail-title {
  font-family: var(--font-dec); font-size: 1.1rem;
  color: var(--gold); margin-bottom: 12px; line-height: 1.4;
}
.detail-main { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.detail-sub { font-size: 0.9rem; opacity: 0.8; line-height: 1.5; }
.detail-link {
  display: inline-block; margin-top: 12px; color: var(--gold-l);
  font-size: 0.85rem; border-bottom: 1px solid var(--gold-l);
  transition: opacity 0.2s;
}
.detail-link:hover { opacity: 0.7; }

/* Timeline */
.timeline { max-width: 600px; margin: 0 auto; }
.timeline-title {
  text-align: center; font-family: var(--font-dec);
  color: var(--gold); font-size: 1.3rem; margin-bottom: 32px;
  letter-spacing: 0.1em;
}
.timeline-items { position: relative; padding-left: 30px; }
.timeline-items::before {
  content: ''; position: absolute; left: 12px; top: 0; bottom: 0;
  width: 1px; background: rgba(212,175,55,0.3);
}
.tl-item {
  display: grid; grid-template-columns: 80px 20px 1fr;
  gap: 16px; align-items: start; margin-bottom: 28px;
}
.tl-time { font-size: 0.85rem; color: var(--gold-l); padding-top: 3px; text-align: right; }
.tl-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(212,175,55,0.4);
  border: 2px solid rgba(212,175,55,0.6);
  margin-top: 5px; position: relative; left: -6px;
  flex-shrink: 0;
}
.tl-dot.active { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 8px var(--gold); }
.tl-content strong { display: block; font-size: 1rem; margin-bottom: 2px; }
.tl-content p { font-size: 0.88rem; opacity: 0.75; }

/* ─── Gallery ────────────────────────────────────────────── */
.gallery-section { background: var(--cream-d); }
.gallery-grid {
  columns: 3;
  column-gap: 14px;
}
.gallery-item {
  overflow: hidden; border-radius: 14px;
  cursor: pointer; break-inside: avoid;
  margin-bottom: 14px;
  box-shadow: 0 4px 18px rgba(90,15,15,0.12);
  transition: transform 0.25s, box-shadow 0.25s;
}
.gallery-item:hover { transform: scale(1.02); box-shadow: 0 8px 28px var(--shadow); }
.gallery-item img { width: 100%; display: block; border-radius: 14px; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 4px; }
.lightbox-caption { color: #fff; text-align: center; margin-top: 12px; font-style: italic; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: 1px solid #fff; color: #fff;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3);
  color: #fff; width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
}
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

/* ─── RSVP Section ───────────────────────────────────────── */
.rsvp-section { position: relative; background: var(--cream); }
.rsvp-bg {
  position: absolute; inset: 0; opacity: 0.04; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 5 C20 5 10 15 10 27 C10 40 20 50 30 55 C40 50 50 40 50 27 C50 15 40 5 30 5Z' fill='%238B1A1A'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}
.rsvp-card {
  background: #fff;
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 16px; padding: 50px 48px;
  box-shadow: 0 12px 50px var(--shadow);
  position: relative; overflow: hidden;
}
.rsvp-decoration {
  position: absolute; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--crimson), var(--gold), var(--green), var(--gold), var(--crimson));
}
.rsvp-decoration.top { top: 0; }
.rsvp-decoration.bottom { bottom: 0; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block; font-size: 0.88rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-l);
  margin-bottom: 8px; font-weight: 600;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid #ddd; border-radius: 6px;
  font-family: var(--font-en); font-size: 1rem; color: var(--text);
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(123,24,24,0.1);
}
.form-group textarea { resize: vertical; min-height: 90px; }

.required { color: var(--crimson); }
.optional { color: #999; font-size: 0.8em; font-weight: 400; }

.attending-group { margin-bottom: 22px; }
.radio-group { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 10px; }
.radio-option {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: 1rem;
}
.radio-option input[type="radio"] {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0;
}
.radio-btn {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--crimson); flex-shrink: 0;
  transition: all 0.2s; position: relative; cursor: pointer;
}
.radio-option input[type="radio"]:checked + .radio-btn,
.radio-btn.is-checked {
  background: var(--crimson);
  box-shadow: inset 0 0 0 4px #fff;
}

.form-alert {
  padding: 14px 18px; border-radius: 6px; margin-bottom: 16px;
  font-size: 0.95rem;
}
.form-alert.error { background: #fde8e8; color: #b71c1c; border: 1px solid #f5c6c6; }
.form-alert.success { background: #e8f5e9; color: #1b5e20; }

.rsvp-success {
  text-align: center; padding: 40px 0;
}
.success-icon { font-size: 3.5rem; margin-bottom: 16px; }
.rsvp-success h3 { font-family: var(--font-te); font-size: 2rem; color: var(--crimson); margin-bottom: 12px; }
.rsvp-success p { font-size: 1.05rem; color: var(--text-l); }
.success-sub { font-size: 0.9rem; margin-top: 6px; opacity: 0.7; }

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--crimson-d); color: rgba(255,248,231,0.85);
  position: relative; overflow: hidden;
}
.footer-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(
    45deg,
    rgba(212,175,55,0.04) 0px, rgba(212,175,55,0.04) 2px,
    transparent 2px, transparent 16px
  );
}
.footer-content { position: relative; padding: 60px 0 40px; text-align: center; }
.footer-name { font-family: var(--font-te); font-size: 2.5rem; color: var(--gold); margin-bottom: 6px; }
.footer-tagline { font-size: 0.9rem; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.7; margin-bottom: 20px; }
.footer-contact { margin-top: 20px; font-size: 0.95rem; }
.footer-contact a { color: var(--gold-l); border-bottom: 1px solid rgba(212,175,55,0.4); }
.footer-love { margin-top: 12px; font-size: 0.85rem; opacity: 0.6; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--crimson-d); padding: 20px 24px;
    gap: 16px; box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  }

  .hero-date-box { flex-direction: column; gap: 10px; padding: 16px 20px; }
  .date-sep { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .image-frame { max-width: 340px; margin: 0 auto; }

  .details-cards { grid-template-columns: 1fr; }
  .detail-card.featured { transform: none; }

  .form-row { grid-template-columns: 1fr; }
  .rsvp-card { padding: 32px 20px; }

  .radio-group { flex-direction: column; gap: 12px; }

  .tl-item { grid-template-columns: 64px 20px 1fr; gap: 10px; }
}

@media (max-width: 480px) {
  .section-pad { padding: 60px 0; }
  .gallery-grid { columns: 2; column-gap: 8px; }
}
