/* ==========================================================
   Sri Dharma Sai Temple — Site Stylesheet
   Palette: saffron, deep maroon, temple gold, warm cream
   ========================================================== */

:root {
    --maroon-950: #3a0a0a;
    --maroon-900: #4d0e0e;
    --maroon-800: #641313;
    --maroon-700: #7a1a1a;
    --saffron-600: #d9631e;
    --saffron-500: #ef7f2b;
    --saffron-400: #f5993f;
    --gold-600: #b8860b;
    --gold-500: #d4af37;
    --gold-400: #e6c75c;
    --cream-100: #fffaf0;
    --cream-200: #fdf3e0;
    --cream-300: #f8e8c8;
    --ink-900: #2a1a10;
    --ink-700: #4a3324;
    --ink-500: #786351;
    --white: #ffffff;

    --font-display: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'Mulish', 'Segoe UI', sans-serif;

    --shadow-soft: 0 10px 30px rgba(74, 14, 14, 0.12);
    --shadow-card: 0 6px 18px rgba(74, 14, 14, 0.10);
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink-900);
    background: var(--cream-100);
    line-height: 1.65;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--maroon-900);
    margin: 0 0 0.5em;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; color: var(--ink-700); }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 72px 0; }
.section-alt { background: var(--cream-200); }
.section-maroon {
    background: linear-gradient(160deg, var(--maroon-950), var(--maroon-800));
    color: var(--cream-200);
}
.section-maroon h2, .section-maroon h3 { color: var(--gold-400); }
.section-maroon p { color: #e9d3c4; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--saffron-600);
    font-weight: 800;
    margin-bottom: 10px;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: linear-gradient(120deg, var(--saffron-500), var(--gold-600));
    color: var(--white);
    box-shadow: 0 8px 20px rgba(217, 99, 30, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 26px rgba(217, 99, 30, 0.45); }

.btn-outline {
    background: transparent;
    border-color: var(--gold-500);
    color: var(--gold-600);
}
.btn-outline:hover { background: var(--gold-500); color: var(--white); }

.btn-light {
    background: var(--cream-100);
    color: var(--maroon-900);
}

.btn-sm { padding: 9px 18px; font-size: 0.85rem; border-radius: 40px; }
.btn-block { width: 100%; }

/* ---------------- Top bar & Nav ---------------- */
.topbar {
    background: var(--maroon-950);
    color: var(--cream-300);
    font-size: 0.82rem;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
    flex-wrap: wrap;
    gap: 6px;
}
.topbar a { color: var(--gold-400); }
.topbar-links { display: flex; gap: 18px; flex-wrap: wrap; }

.navbar {
    background: var(--cream-100);
    box-shadow: 0 2px 12px rgba(74, 14, 14, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-emblem {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--saffron-500), var(--gold-600));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: 0 4px 14px rgba(184, 134, 11, 0.4);
}
.brand-text .name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--maroon-900);
    display: block;
    line-height: 1.1;
}
.brand-text .tagline {
    font-size: 0.72rem;
    color: var(--ink-500);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink-700);
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--saffron-600);
    border-color: var(--saffron-500);
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--maroon-900);
    cursor: pointer;
}

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.25), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(239, 127, 43, 0.22), transparent 50%),
        linear-gradient(160deg, var(--maroon-950) 0%, var(--maroon-800) 55%, var(--maroon-700) 100%);
    color: var(--cream-100);
    padding: 110px 0 90px;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23d4af37' stroke-opacity='0.15' stroke-width='1'%3E%3Ccircle cx='60' cy='60' r='50'/%3E%3Ccircle cx='60' cy='60' r='34'/%3E%3Cpath d='M60 10 L60 110 M10 60 L110 60 M25 25 L95 95 M95 25 L25 95'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.hero .container {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}
.hero-eyebrow {
    color: var(--gold-400);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 14px;
    display: block;
}
.hero h1 { color: var(--cream-100); }
.hero h1 em {
    font-style: normal;
    color: var(--gold-400);
}
.hero p.lead {
    color: #e9d3c4;
    font-size: 1.1rem;
    max-width: 520px;
}
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

.hero-emblem-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-emblem {
    width: 320px;
    height: 320px;
    max-width: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--saffron-400), var(--maroon-700) 70%);
    border: 6px solid var(--gold-500);
    box-shadow: 0 25px 60px rgba(0,0,0,0.45), inset 0 0 40px rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    color: var(--cream-100);
    text-align: center;
    padding: 20px;
    position: relative;
}
.hero-emblem .om {
    font-size: 5.5rem;
    line-height: 1;
    color: var(--gold-400);
    text-shadow: 0 4px 18px rgba(0,0,0,0.4);
}
.hero-emblem .cap { font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; margin-top: 10px; color: var(--cream-200);}

.hero-stats {
    display: flex;
    gap: 36px;
    margin-top: 42px;
    flex-wrap: wrap;
}
.hero-stats .stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--gold-400);
}
.hero-stats .stat span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #d9bfae;
}

/* ---------------- Cards & Grids ---------------- */
.grid {
    display: grid;
    gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(212, 175, 55, 0.18);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.card-body { padding: 22px 24px 26px; }
.card-media {
    height: 150px;
    background: linear-gradient(135deg, var(--saffron-400), var(--gold-600));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 2.6rem;
}
.card .price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--maroon-800);
    font-weight: 700;
    margin: 6px 0 14px;
}
.badge {
    display: inline-block;
    font-size: 0.68rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 30px;
    background: var(--cream-300);
    color: var(--maroon-800);
}

.deity-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--saffron-400), var(--maroon-700));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin: 0 auto 14px;
}

/* ---------------- Timeline / schedule ---------------- */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.schedule-table th, .schedule-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--cream-300);
}
.schedule-table th {
    background: var(--maroon-900);
    color: var(--gold-400);
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.5px;
}
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:nth-child(even) td { background: var(--cream-200); }

/* ---------------- Forms ---------------- */
.form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 36px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}
label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--ink-700);
}
input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid #e6d6c2;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--cream-100);
    color: var(--ink-900);
    margin-bottom: 18px;
    transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--saffron-500);
    background: var(--white);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.amount-presets { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.amount-chip {
    padding: 10px 18px;
    border-radius: 30px;
    border: 1.5px solid var(--gold-500);
    color: var(--maroon-800);
    font-weight: 700;
    cursor: pointer;
    background: var(--cream-100);
}
.amount-chip.active, .amount-chip:hover {
    background: var(--gold-500);
    color: var(--white);
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.92rem;
}
.alert-success { background: #e5f6e8; color: #1e6b34; border: 1px solid #b7e3c1; }
.alert-error { background: #fbe6e6; color: #8a1f1f; border: 1px solid #f0b7b7; }
.alert-info { background: #fff3d6; color: #8a5a00; border: 1px solid #f0d493; }

/* ---------------- Footer ---------------- */
.site-footer {
    background: var(--maroon-950);
    color: #d9bfae;
    padding: 60px 0 24px;
}
.site-footer h4 { color: var(--gold-400); font-size: 1.1rem; }
.site-footer p { color: var(--white); }
.site-footer a { color: #d9bfae; }
.site-footer a:hover { color: var(--gold-400); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}
.footer-bottom {
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: 20px;
    font-size: 0.82rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.social-row { display: flex; gap: 12px; margin-top: 10px; }
.social-row a {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--gold-500);
    display: flex; align-items: center; justify-content: center;
}

/* ---------------- Utility sections ---------------- */
.quote-banner {
    text-align: center;
    padding: 54px 0;
    background: var(--cream-300);
}
.quote-banner blockquote {
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--maroon-900);
    max-width: 760px;
    margin: 0 auto;
    font-style: italic;
}

.section-header { max-width: 640px; margin: 0 auto 48px; text-align: center; }

/* Responsive */
@media (max-width: 960px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero p.lead { margin: 0 auto; }
    .hero-actions, .hero-stats { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .grid-4, .grid-3 { grid-template-columns: 1fr; }
}

/* Mobile nav drawer */
.nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream-100);
    padding: 20px 24px;
    box-shadow: var(--shadow-soft);
}
