/* ════════════════════════════════════════════════════════
   RAJASTHAN FOUNDATION — MELBOURNE CHAPTER
   Global Stylesheet
   ════════════════════════════════════════════════════════ */

:root {
    --saffron: #D4621A;
    --saffron-light: #E8873A;
    --saffron-glow: rgba(212, 98, 26, 0.12);
    --royal-blue: #1A3A6B;
    --royal-blue-deep: #0F2847;
    --gold: #C9A84C;
    --gold-light: #E5CC7A;
    --maroon: #8B1A1A;
    --cream: #FFF8F0;
    --sand: #F5EDDF;
    --dark: #1A1A2E;
    --dark-mid: #16213E;
    --text: #2D2D2D;
    --text-light: #6B6B6B;
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--cream);
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ─── TYPOGRAPHY ─── */
.font-display { font-family: 'Cinzel', serif; }
.font-hindi { font-family: 'Noto Serif Devanagari', serif; }

/* ─── LAYOUT ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 2rem; }
section { padding: 6rem 0; position: relative; }

/* ─── NAVIGATION ─── */
nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s ease;
    background: transparent;
}
nav.scrolled {
    background: rgba(26, 26, 46, 0.96);
    backdrop-filter: blur(20px);
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}
nav.solid {
    background: var(--dark);
    padding: 0.5rem 0;
}
.nav-inner {
    max-width: 1300px; margin: 0 auto; padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    display: flex; align-items: center; gap: 0.75rem;
    text-decoration: none;
}
.nav-logo svg { height: 40px; width: auto; }
.nav-logo img { height: 42px; width: auto; border-radius: 10px; object-fit: contain; }
.nav-logo-text {
    color: white;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem; font-weight: 600; line-height: 1.2;
}
.nav-logo-text span {
    display: block; font-size: 0.65rem; font-weight: 400;
    font-family: 'Outfit', sans-serif;
    opacity: 0.75; letter-spacing: 2px; text-transform: uppercase;
}
.nav-links {
    display: flex; list-style: none; gap: 0.25rem; align-items: center;
}
.nav-links a {
    color: rgba(255,255,255,0.8);
    font-size: 0.82rem; font-weight: 500;
    padding: 0.5rem 0.9rem; border-radius: 8px;
    transition: all 0.3s; position: relative;
}
.nav-links a:hover,
.nav-links a.active {
    color: white; background: rgba(255,255,255,0.08);
}
.nav-links a.active { color: var(--gold-light); }
.nav-cta {
    background: var(--saffron) !important;
    color: white !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    margin-left: 0.5rem;
}
.nav-cta:hover {
    background: var(--saffron-light) !important;
    transform: translateY(-1px);
}
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; z-index: 1001; padding: 4px;
}
.hamburger span {
    width: 22px; height: 2px; background: white;
    transition: 0.3s; border-radius: 2px;
}

/* ─── PAGE HERO (interior pages) ─── */
.page-hero {
    padding: 10rem 0 5rem;
    background: linear-gradient(135deg, var(--dark) 0%, var(--royal-blue-deep) 50%, var(--maroon) 100%);
    color: white; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0; opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C9A84C'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero .breadcrumb {
    font-size: 0.8rem; opacity: 0.6; margin-bottom: 1rem;
}
.page-hero .breadcrumb a { color: var(--gold-light); opacity: 1; }
.page-hero h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700;
    margin-bottom: 1rem;
}
.page-hero p {
    font-size: 1.1rem; opacity: 0.75; max-width: 600px;
    margin: 0 auto; line-height: 1.7;
}
.page-hero-arch {
    display: none;
}

/* ─── PAGE HERO WALLPAPER (interior pages with background image) ─── */
.page-hero-wallpaper {
    background: url('assets/images/rajasthan-wallpaper.jpg') center/cover no-repeat;
    position: relative;
}
.page-hero-wallpaper::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(26,26,46,0.35) 0%, rgba(15,40,71,0.30) 50%, rgba(139,26,26,0.30) 100%);
    z-index: 1;
}
.page-hero-wallpaper .page-hero-content {
    position: relative; z-index: 2;
    background: rgba(10, 10, 20, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.08);
}
.page-hero-wallpaper .page-hero-arch { position: relative; z-index: 2; }

/* ─── SECTION HEADERS ─── */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label {
    display: inline-block; font-size: 0.7rem; letter-spacing: 3px;
    text-transform: uppercase; color: var(--saffron);
    font-weight: 600; margin-bottom: 0.75rem;
}
.section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700;
    color: var(--dark); margin-bottom: 0.75rem;
}
.section-subtitle {
    font-size: 1rem; color: var(--text-light);
    max-width: 600px; margin: 0 auto; line-height: 1.7;
}
.divider {
    display: flex; align-items: center; justify-content: center;
    gap: 1rem; width: 160px; margin: 0.75rem auto 0;
}
.divider::before, .divider::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.divider-diamond {
    width: 7px; height: 7px; background: var(--gold);
    transform: rotate(45deg);
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.8rem 1.8rem; border-radius: 8px;
    font-weight: 600; font-size: 0.88rem;
    transition: all 0.3s; cursor: pointer; border: none;
    font-family: 'Outfit', sans-serif;
}
.btn-primary {
    background: linear-gradient(135deg, var(--saffron), var(--saffron-light));
    color: white; box-shadow: 0 4px 15px rgba(212, 98, 26, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 98, 26, 0.45);
}
.btn-outline-dark {
    border: 2px solid var(--royal-blue); color: var(--royal-blue);
    background: transparent;
}
.btn-outline-dark:hover {
    background: var(--royal-blue); color: white;
}
.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.3); color: white;
    background: transparent;
}
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--dark); font-weight: 700;
}

/* ─── CARDS ─── */
.card {
    background: white; border-radius: 16px; padding: 2.5rem 2rem;
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.4s; position: relative; overflow: hidden;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.07);
}
.card-accent::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--saffron), var(--gold));
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s;
}
.card-accent:hover::before { transform: scaleX(1); }

/* ─── ICON BOX ─── */
.icon-box {
    width: 52px; height: 52px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
}
.icon-box.saffron { background: var(--saffron-glow); color: var(--saffron); }
.icon-box.blue { background: rgba(26,58,107,0.1); color: var(--royal-blue); }
.icon-box.gold { background: rgba(201,168,76,0.12); color: var(--gold); }
.icon-box.maroon { background: rgba(139,26,26,0.1); color: var(--maroon); }

/* ─── DECORATIVE ELEMENTS ─── */
.bandhani-strip {
    height: 5px;
    background: repeating-linear-gradient(
        90deg, var(--saffron) 0 3px, var(--gold) 3px 6px,
        var(--maroon) 6px 9px, var(--royal-blue) 9px 12px
    );
}
.bg-white { background: white; }
.bg-sand { background: var(--sand); }
.bg-dark {
    background: linear-gradient(135deg, var(--dark) 0%, var(--royal-blue-deep) 100%);
    color: white;
}
.bg-dark .section-label { color: var(--gold-light); }
.bg-dark .section-title { color: white; }
.bg-dark .section-subtitle { color: rgba(255,255,255,0.6); }

/* ─── TAG / BADGE ─── */
.tag {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 0.9rem; border-radius: 50px;
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase;
}
.tag-gold {
    background: rgba(201,168,76,0.12);
    border: 1px solid rgba(201,168,76,0.25);
    color: var(--gold);
}
.tag-saffron {
    background: var(--saffron-glow);
    border: 1px solid rgba(212,98,26,0.2);
    color: var(--saffron);
}

/* ─── OFFICIAL BADGE ─── */
.official-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--saffron-glow);
    border: 1px solid rgba(212,98,26,0.2);
    padding: 0.5rem 1rem; border-radius: 8px;
    font-size: 0.8rem; color: var(--saffron); font-weight: 600;
}

/* ─── SCROLL ANIMATIONS ─── */
.reveal {
    opacity: 0; transform: translateY(35px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── TEAM PHOTO AVATARS ─── */
.president-photo {
    width: 160px; height: 160px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
    box-shadow: 0 8px 30px rgba(212,98,26,0.25);
    border: 4px solid rgba(201,168,76,0.3);
}
.committee-photo {
    width: 72px; height: 72px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    border: 3px solid rgba(201,168,76,0.2);
}
.team-photo {
    width: 90px; height: 90px; border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid rgba(201,168,76,0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ─── PARTNER ORGANISATIONS ─── */
.partners-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem;
}
.partner-card {
    background: white; border-radius: 16px; padding: 2.5rem 2rem;
    border: 1px solid rgba(0,0,0,0.04); transition: all 0.4s;
    position: relative; overflow: hidden; display: flex;
    flex-direction: column;
}
.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.07);
}
.partner-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--saffron), var(--gold));
    transform: scaleX(0); transform-origin: left; transition: transform 0.4s;
}
.partner-card:hover::before { transform: scaleX(1); }
.partner-card-header {
    display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.25rem;
}
.partner-logo {
    width: 64px; height: 64px; border-radius: 12px;
    object-fit: contain; flex-shrink: 0;
    background: #f8f6f0; padding: 6px;
}
.partner-card h3 {
    font-family: 'Cinzel', serif; font-size: 1.2rem;
    font-weight: 700; color: var(--dark);
}
.partner-card .partner-type {
    font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--saffron);
}
.partner-card p {
    font-size: 0.88rem; color: var(--text-light); line-height: 1.7; flex: 1;
}
.partner-event {
    margin-top: 1.25rem; padding: 1rem 1.25rem;
    background: rgba(201,168,76,0.06); border: 1px solid rgba(201,168,76,0.15);
    border-radius: 10px;
}
.partner-event h4 {
    font-family: 'Cinzel', serif; font-size: 0.95rem;
    font-weight: 600; color: var(--dark); margin-bottom: 0.35rem;
}
.partner-event p {
    font-size: 0.82rem; color: var(--text-light); line-height: 1.6; margin: 0;
}

/* ─── VIDEO HERO ─── */
.hero-video-wrap {
    position: absolute; inset: 0; overflow: hidden; z-index: 0;
}
.hero-video-wrap video {
    width: 100%; height: 100%; object-fit: cover;
}
.hero-video-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(26,26,46,0.82) 0%, rgba(15,40,71,0.75) 40%, rgba(42,21,52,0.78) 70%, rgba(139,26,26,0.75) 100%);
    z-index: 1;
}

/* ─── FOOTER ─── */
footer {
    background: var(--dark); color: white; padding: 4rem 0 2rem;
}
.footer-grid {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem; margin-bottom: 3rem;
}
.footer-brand p {
    font-size: 0.82rem; line-height: 1.7; opacity: 0.55; margin-top: 1rem;
}
.footer-col h4 {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem; margin-bottom: 1.2rem; color: var(--gold-light);
}
.footer-col a {
    display: block; color: rgba(255,255,255,0.55);
    font-size: 0.82rem; margin-bottom: 0.55rem; transition: color 0.3s;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-contact-item {
    display: flex; align-items: flex-start; gap: 0.7rem;
    margin-bottom: 0.9rem; font-size: 0.82rem; opacity: 0.65;
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
    max-width: 1200px; margin: 0 auto; padding: 2rem 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex; justify-content: space-between;
    align-items: center; font-size: 0.75rem; opacity: 0.45;
}
.footer-parent-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--gold-light) !important; opacity: 1 !important;
    font-weight: 500;
}

/* ─── FORMS ─── */
.form-group { text-align: left; margin-bottom: 1rem; }
.form-group label {
    display: block; font-size: 0.78rem; font-weight: 600;
    color: var(--dark); margin-bottom: 0.35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 0.7rem 1rem;
    border: 1.5px solid #E5E5E5; border-radius: 10px;
    font-family: 'Outfit', sans-serif; font-size: 0.88rem;
    transition: border-color 0.3s; background: var(--cream);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none; border-color: var(--saffron);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
    .grid-5 { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: -100%;
        width: 80%; height: 100vh; background: var(--dark);
        flex-direction: column; padding: 5rem 2rem 2rem;
        transition: right 0.4s ease; gap: 0.5rem;
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    }
    .nav-links.open { right: 0; }
    .nav-links a { width: 100%; padding: 0.75rem 1rem; }
    section { padding: 4rem 0; }
    .page-hero { padding: 8rem 0 3.5rem; }
    .grid-2, .grid-3, .form-row { grid-template-columns: 1fr !important; }
    .grid-5 { grid-template-columns: repeat(2, 1fr) !important; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
    .about-grid-2col { grid-template-columns: 1fr !important; }
    .partners-grid { grid-template-columns: 1fr; }
    .president-photo { width: 120px; height: 120px; margin: 0 auto; }
}
@media (max-width: 480px) {
    .grid-5 { grid-template-columns: 1fr !important; }
    .footer-grid { grid-template-columns: 1fr; }
    .container { padding: 0 1.25rem; }
}
