/* ==========================================================================
   Siddhashram Shakti Centre - Shared Base Layout & Resets
   ========================================================================== */

:root {
    --navy: #0F2C59;          /* Deep Royal Navy Blue */
    --gold: #F2994A;          /* Vibrant Clay Orange Accent */
    --bg-offwhite: #F8F9FA;   /* Clean Light Gray/Off-White */
    --card-white: #FFFFFF;    /* Crisp White Card surface */
    --charcoal: #333333;      /* Charcoal body text */
    --light-charcoal: #666666;
    
    --border-color: rgba(15, 44, 89, 0.12);
    --border-color-light: rgba(15, 44, 89, 0.06);
    --border-light: 1px solid rgba(15, 44, 89, 0.12);
    
    --font-serif: 'Fraunces', serif;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --transition-speed: 0.3s;
}

/* ==========================================================================
   CSS Reset & Base Rules
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

ul, ol, li {
    list-style: none !important;
    list-style-type: none !important;
}

body {
    background-color: var(--bg-offwhite);
    color: var(--charcoal);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--navy);
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

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

/* ==========================================================================
   Structural Layout Systems (Container & Grids)
   ========================================================================== */

.max-width-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 991px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==========================================================================
   Shared Component Layouts & Typography
   ========================================================================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.btn-small {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

.btn-gold {
    background-color: var(--gold);
    border-color: var(--gold);
    color: #FFFFFF;
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--gold);
}

.btn-outline {
    border-color: #FFFFFF;
    color: #FFFFFF;
    background-color: transparent;
}

.btn-outline:hover {
    background-color: #FFFFFF;
    color: var(--navy);
}

.btn-navy {
    background-color: var(--navy);
    border-color: var(--navy);
    color: #FFFFFF;
}

.btn-navy:hover {
    background-color: transparent;
    color: var(--navy);
}

.btn-navy-outline {
    border-color: var(--navy);
    color: var(--navy);
    background-color: transparent;
}

.btn-navy-outline:hover {
    background-color: var(--navy);
    color: #FFFFFF;
}

/* Topbar Header */
.topbar-container {
    background-color: #0B2042;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-info {
    display: flex;
    gap: 1.5rem;
}

.topbar-info .info-item .label {
    color: var(--gold);
    margin-right: 0.25rem;
    font-weight: 500;
}

.topbar-branches {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.branch-btn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.branch-btn:hover, .branch-btn.active {
    background-color: var(--gold);
    border-color: var(--gold);
    color: #FFFFFF;
}

/* Navigation Bar */
.navbar {
    background-color: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.25rem;
    color: #FFFFFF;
    line-height: 1.2;
}

.logo-subtitle {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    list-style: none;
}

.nav-link {
    color: #FAF7F2;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--gold);
}

/* Hero Section */
.hero-section {
    position: relative;
    background-image: linear-gradient(rgba(15, 44, 89, 0.75), rgba(15, 44, 89, 0.9)), url('https://images.unsplash.com/photo-1553284965-83fd3e82fa5a?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 7rem 0;
    color: #FFFFFF;
}

.hero-content {
    align-items: center;
}

.hero-eyebrow {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
}

.hero-title {
    color: #FFFFFF;
    font-size: 2.75rem;
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-description {
    color: #E2E8F0;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.hero-img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.caption-chip {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    border-left: 3px solid var(--gold);
    background-color: rgba(15, 44, 89, 0.95);
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Ledger (Stats) layout */
.ledger-strip {
    background-color: var(--bg-offwhite);
    border-bottom: var(--border-light);
    padding: 3.5rem 0;
}

.ledger-cell {
    background-color: #FFFFFF;
    border: var(--border-light);
    border-top: 3px solid var(--gold);
    padding: 2rem;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.ledger-num {
    color: var(--navy);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ledger-label {
    color: var(--charcoal);
    font-size: 0.9rem;
    font-weight: 500;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background-color: #FFFFFF;
    border-bottom: var(--border-light);
}

.about-heading {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.about-intro {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--navy);
}

.about-body {
    color: var(--light-charcoal);
    margin-bottom: 2rem;
}

.about-stats {
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--light-charcoal);
}

.about-image-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.about-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Causes Section */
.causes-section {
    padding: 5rem 0;
    background-color: var(--bg-offwhite);
    border-bottom: var(--border-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: 2.25rem;
    margin-top: 0.5rem;
}

.causes-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.cause-row {
    display: flex;
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    border: var(--border-light);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.cause-image-container {
    width: 40%;
    flex-shrink: 0;
}

.cause-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cause-details {
    width: 60%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.cause-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.cause-desc {
    font-size: 0.9rem;
    color: var(--light-charcoal);
    margin-bottom: 1.25rem;
}

.cause-progress-col {
    margin-top: auto;
}

.progress-bar-container {
    background-color: #ECEFF1;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar {
    background-color: var(--gold);
    height: 100%;
    border-radius: 3px;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.progress-raised {
    color: var(--navy);
}

.progress-goal {
    color: var(--light-charcoal);
}

.donate-btn-container {
    display: flex;
}

.donate-btn-container .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    width: 100%;
}

/* Events Section */
.events-section {
    padding: 5rem 0;
    background-color: #FFFFFF;
    border-bottom: var(--border-light);
}

.events-list {
    border: var(--border-light);
    border-radius: 8px;
    overflow: hidden;
}

.event-row {
    display: grid;
    grid-template-columns: 1.5fr 6.5fr 2fr;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: var(--border-light);
    background-color: #FFFFFF;
}

.event-row:last-child {
    border-bottom: none;
}

.event-date {
    color: var(--gold);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.1rem;
}

.event-details {
    padding-right: 1.5rem;
}

.event-name {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.event-location {
    color: var(--light-charcoal);
    font-size: 0.85rem;
}

.event-ticket-btn {
    background-color: transparent;
    border: 1px solid var(--navy);
    color: var(--navy);
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
}

.event-ticket-btn:hover {
    background-color: var(--navy);
    color: #FFFFFF;
}

/* Patrons Section */
.patrons-section {
    padding: 5rem 0;
    background-color: var(--bg-offwhite);
    border-bottom: var(--border-light);
}

.patron-item {
    background-color: #FFFFFF;
    border: var(--border-light);
    border-radius: 6px;
    padding: 1.75rem;
    text-align: center;
}

.patron-img-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem auto;
    border: 2px solid rgba(15, 44, 89, 0.1);
}

.patron-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.patron-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.patron-role {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Testimonial Band */
.testimonial-band {
    background-color: var(--navy);
    color: #FFFFFF;
    padding: 7rem 0;
    text-align: center;
}

.testimonial-quote {
    font-size: 1.85rem;
    line-height: 1.5;
    font-family: var(--font-serif);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    font-weight: 600;
    font-style: normal;
}

/* CTA Band */
.cta-band {
    background-color: var(--gold);
    color: #FFFFFF;
    padding: 4.5rem 0;
    text-align: center;
}

.cta-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cta-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.cta-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Footer Section */
.site-footer {
    background-color: var(--navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 5.5rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    color: #FFFFFF;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

.footer-link:hover {
    color: var(--gold);
}

.footer-bottom-container {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.social-link:hover {
    color: var(--gold);
}

@media (max-width: 768px) {
    .event-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    .event-details {
        padding-right: 0;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
