/* Royal Heritage Theme — Traditional Indian Aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700&family=Marcellus&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

:root {
    --primary: {{if .Config.Theme.PrimaryColor}}{{.Config.Theme.PrimaryColor}}{{else}}#800020{{end}}; /* Deep Maroon / Burgundy */
    --secondary: {{if .Config.Theme.SecondaryColor}}{{.Config.Theme.SecondaryColor}}{{else}}#d4af37{{end}}; /* Royal Gold */
    --bg-light: #fffdf9;
    --bg-card: #ffffff;
    --text-main: #2d1810;
    --text-muted: #6e544a;
    --font-heading: 'Marcellus', Georgia, serif;
    --font-royal: 'Cinzel Decorative', cursive;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --gold: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.25);
    --radius: 16px;
    --shadow-royal: 0 12px 35px rgba(128, 0, 32, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    background-image: radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.04) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(128, 0, 32, 0.04) 0%, transparent 40%);
    line-height: 1.6;
}

h1, h2, h3, h4 { font-family: var(--font-heading); }
h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); font-family: var(--font-royal); line-height: 1.2; color: var(--primary); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--primary); text-align: center; }

.section-title-wrap { text-align: center; margin-bottom: 3.5rem; }
.section-subtitle {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Indian Auspicious Mandala & Motif Divider */
.mandala-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 1rem auto 1.5rem;
}

.mandala-divider::before, .mandala-divider::after {
    content: "";
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}
.mandala-divider::after {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.mandala-symbol {
    font-size: 1.5rem;
    color: var(--gold);
    filter: drop-shadow(0 2px 4px var(--gold-glow));
}

/* Top Nav */
.theme-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255, 253, 249, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--gold);
    padding: 1.1rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: var(--font-royal);
    font-size: 1.4rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--primary); }

/* Hero */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 9rem 1.5rem 5rem;
    background: radial-gradient(circle at 50% 30%, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
}

.shloka {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--gold);
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero-names { margin-bottom: 1.5rem; }
.hero-date {
    font-size: 1.3rem;
    color: var(--text-main);
    font-family: var(--font-heading);
    margin-bottom: 2.5rem;
}

/* Countdown */
.countdown-box {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.countdown-item {
    background: var(--bg-card);
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    min-width: 95px;
    box-shadow: var(--shadow-royal);
}

.countdown-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 700;
    line-height: 1;
}

.countdown-lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #500014 100%);
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    border: 1px solid var(--gold);
    box-shadow: 0 4px 15px var(--gold-glow);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(128, 0, 32, 0.3);
}

/* Container */
.theme-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5.5rem 1.5rem;
}

/* Couple Cards */
.couple-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.couple-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: var(--shadow-royal);
    position: relative;
}

.couple-card h3 { color: var(--primary); margin: 1rem 0 0.5rem; }
.couple-role {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 1rem;
}

.story-narrative {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--shadow-royal);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-top: 5px solid var(--primary);
    line-height: 1.8;
}

/* Schedule */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.schedule-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-royal);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-left: 5px solid var(--gold);
    transition: transform 0.3s ease;
}

.schedule-card:hover { transform: translateY(-4px); }
.schedule-time {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    color: #8c6e14;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.schedule-card h3 { color: var(--primary); margin-bottom: 0.5rem; }
.schedule-location { color: var(--text-muted); font-size: 0.95rem; }

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-royal);
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* RSVP */
.rsvp-box {
    background: linear-gradient(135deg, var(--primary) 0%, #400010 100%);
    border: 2px solid var(--gold);
    border-radius: calc(var(--radius) * 1.5);
    padding: 4.5rem 2rem;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 15px 45px rgba(128, 0, 32, 0.3);
}

.rsvp-box h2 { color: #ffffff; margin-bottom: 1rem; }
.rsvp-box p { color: rgba(255, 255, 255, 0.85); max-width: 550px; margin: 0 auto 2.5rem; }

.rsvp-box .btn-rsvp {
    background: linear-gradient(135deg, #f3d078 0%, var(--gold) 100%);
    color: #3b2207;
    padding: 1.1rem 2.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Footer */
.theme-footer {
    text-align: center;
    padding: 4rem 1.5rem 2rem;
    border-top: 2px solid var(--gold);
    color: var(--text-muted);
}
.footer-brand {
    font-family: var(--font-royal);
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.footer-credits a { color: var(--primary); text-decoration: none; font-weight: 600; }
