/*
 * AVFD Modern Design System
 * Brand refresh for Arundel Volunteer Fire Department
 */

/* ================================================== */
/* CSS CUSTOM PROPERTIES - BRAND COLORS & TYPOGRAPHY */
/* ================================================== */

:root {
    /* Brand Colors */
    --avfd-red: #CC3333;
    --avfd-navy: #1A2332;
    --avfd-gray: #F5F3F0;
    --avfd-gold: #D4A843;
    --avfd-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Montserrat', 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', 'Open Sans', system-ui, -apple-system, sans-serif;

    /* Shadows & Effects */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
}

/* ================================================== */
/* GLOBAL OVERRIDES */
/* ================================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* ================================================== */
/* NAVBAR - TRANSPARENT TO SOLID ON SCROLL */
/* ================================================== */

.navbar-dark.fixed-top {
    background-color: transparent;
    transition: all 0.3s ease-in-out;
    padding: 1rem 0;
}

.navbar-dark.fixed-top.navbar-scrolled {
    background-color: var(--avfd-navy);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    transition: font-size 0.3s ease;
}

.navbar-scrolled .navbar-brand {
    font-size: 1.25rem;
}

.navbar .btn-danger {
    background-color: var(--avfd-red);
    border-color: var(--avfd-red);
    font-weight: 600;
    transition: all 0.3s ease;
}

.navbar .btn-danger:hover {
    background-color: #AA2222;
    border-color: #AA2222;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ================================================== */
/* HERO SECTION */
/* ================================================== */

.hero-section {
    position: relative;
    min-height: 600px;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--avfd-white);
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(26, 35, 50, 0.85) 0%,
        rgba(204, 51, 51, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-section .lead {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    font-weight: 400;
    opacity: 0.95;
}

.hero-section .btn {
    font-size: 1.1rem;
    padding: 0.875rem 2rem;
    margin: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ================================================== */
/* STATS BAR - IMPACT NUMBERS */
/* ================================================== */

.stats-bar {
    background: linear-gradient(135deg, var(--avfd-navy) 0%, #0F1419 100%);
    color: var(--avfd-white);
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--avfd-red);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* ================================================== */
/* THREE WAYS TO HELP - CARD SECTION */
/* ================================================== */

.ways-to-help {
    padding: 5rem 0;
    background: var(--avfd-gray);
}

.help-card {
    background: var(--avfd-white);
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.help-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.help-card .card-body {
    padding: 2.5rem;
}

.help-card .icon {
    font-size: 3.5rem;
    color: var(--avfd-red);
    margin-bottom: 1.5rem;
    display: block;
}

.help-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--avfd-navy);
}

.help-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.help-card .btn {
    font-weight: 600;
    transition: all 0.3s ease;
}

/* ================================================== */
/* TESTIMONIALS CAROUSEL */
/* ================================================== */

.testimonials-section {
    padding: 5rem 0;
    background: var(--avfd-white);
}

.testimonial-item {
    text-align: center;
    padding: 3rem 2rem;
}

.testimonial-quote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--avfd-navy);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.testimonial-quote::before {
    content: '\201C';
    font-size: 3rem;
    color: var(--avfd-red);
    opacity: 0.5;
}

.testimonial-author {
    font-weight: 600;
    color: var(--avfd-navy);
    font-size: 1.1rem;
}

.testimonial-role {
    color: #666;
    font-size: 0.95rem;
}

/* ================================================== */
/* UPCOMING EVENTS */
/* ================================================== */

.events-section {
    padding: 5rem 0;
    background: var(--avfd-gray);
}

.event-card {
    background: var(--avfd-white);
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.event-date-badge {
    background: var(--avfd-red);
    color: var(--avfd-white);
    padding: 1rem;
    text-align: center;
    font-weight: 700;
}

.event-day {
    font-size: 2rem;
    line-height: 1;
    display: block;
}

.event-month {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-card .card-body {
    padding: 1.5rem;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--avfd-navy);
    margin-bottom: 0.5rem;
}

.event-location {
    color: #666;
    font-size: 0.95rem;
}

/* ================================================== */
/* SOCIAL / INSTAGRAM GRID */
/* ================================================== */

.social-section {
    padding: 5rem 0;
    background: var(--avfd-white);
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.instagram-item {
    aspect-ratio: 1;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.instagram-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

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

/* ================================================== */
/* CTA BANNER */
/* ================================================== */

.cta-banner {
    background: linear-gradient(135deg, var(--avfd-red) 0%, #AA2222 100%);
    color: var(--avfd-white);
    padding: 5rem 2rem;
    text-align: center;
}

.cta-banner h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 2rem;
}

.cta-banner .btn {
    font-size: 1.1rem;
    padding: 0.875rem 2.5rem;
    margin: 0.5rem;
    font-weight: 600;
}

.cta-banner .btn-light {
    background: var(--avfd-white);
    color: var(--avfd-red);
    border: none;
    transition: all 0.3s ease;
}

.cta-banner .btn-light:hover {
    background: var(--avfd-gray);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.cta-banner .btn-outline-light:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ================================================== */
/* MODERN FOOTER */
/* ================================================== */

footer.modern-footer {
    background: var(--avfd-navy);
    color: var(--avfd-white);
    padding: 4rem 0 0;
}

.footer-section {
    padding-bottom: 2rem;
}

.footer-section h5 {
    color: var(--avfd-red);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1rem;
}

.footer-section p,
.footer-section address {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--avfd-red);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--avfd-white);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--avfd-red);
    color: var(--avfd-white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-mutual-aid {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ================================================== */
/* SCROLL-TRIGGERED FADE-IN ANIMATIONS */
/* ================================================== */

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================== */
/* MODERN PAGE HEADER (replaces BS3 .page-header) */
/* ================================================== */

.modern-page-header {
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--avfd-red);
}

.modern-page-header h1 {
    color: var(--avfd-navy);
    font-weight: 700;
    margin-bottom: 0;
}

/* ================================================== */
/* MODERN HERO BANNER (replaces BS3 .jumbotron) */
/* ================================================== */

.modern-banner {
    position: relative;
    padding: 4rem 2rem;
    margin-bottom: 3rem;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    color: var(--avfd-white);
}

.modern-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 35, 50, 0.7);
    z-index: 1;
}

.modern-banner-content {
    position: relative;
    z-index: 2;
}

.modern-banner h1 {
    color: var(--avfd-white);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.modern-banner p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 0;
}

/* ================================================== */
/* UTILITY CLASSES */
/* ================================================== */

.section-title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--avfd-navy);
    margin-bottom: 3rem;
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--avfd-red);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.text-avfd-red {
    color: var(--avfd-red);
}

.text-avfd-navy {
    color: var(--avfd-navy);
}

.bg-avfd-red {
    background-color: var(--avfd-red);
}

.bg-avfd-navy {
    background-color: var(--avfd-navy);
}

.bg-avfd-gray {
    background-color: var(--avfd-gray);
}

/* ================================================== */
/* CONTENT ENHANCEMENT STYLES */
/* ================================================== */

/* Feature boxes for highlighting content */
.feature-box {
    background: var(--avfd-white);
    border-left: 4px solid var(--avfd-red);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.feature-box h3 {
    color: var(--avfd-navy);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-box .icon {
    font-size: 3rem;
    color: var(--avfd-red);
    margin-bottom: 1rem;
}

/* Info cards for structured content */
.info-card {
    background: var(--avfd-white);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--avfd-red);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.info-card h2, .info-card h3 {
    color: var(--avfd-navy);
}

/* Highlight callout boxes */
.callout {
    background: linear-gradient(135deg, var(--avfd-gray) 0%, #e8e6e0 100%);
    border-left: 5px solid var(--avfd-red);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.callout-danger {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border-left-color: var(--avfd-red);
}

.callout-info {
    background: linear-gradient(135deg, #f0f7ff 0%, #e0f0ff 100%);
    border-left-color: #4B9CD3;
}

/* Content with icons */
.icon-list {
    list-style: none;
    padding: 0;
}

.icon-list li {
    padding-left: 2.5rem;
    position: relative;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.icon-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--avfd-red);
    font-size: 1.2rem;
}

/* Stats or number highlights */
.number-highlight {
    font-size: 3rem;
    font-weight: 700;
    color: var(--avfd-red);
    font-family: var(--font-heading);
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
}

/* Better hero contrast with stronger overlay */
.hero-section.hero-dark::before {
    background: linear-gradient(135deg,
        rgba(26, 35, 50, 0.92) 0%,
        rgba(204, 51, 51, 0.75) 100%);
}

/* Subsection headers */
.subsection-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--avfd-navy);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--avfd-red);
}

/* Enhanced tables */
.table-modern {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-modern thead {
    background: var(--avfd-navy);
    color: var(--avfd-white);
}

.table-modern thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.table-modern tbody tr:hover {
    background-color: var(--avfd-gray);
    transition: background-color 0.2s ease;
}

/* ================================================== */
/* RESPONSIVE ADJUSTMENTS */
/* ================================================== */

@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
        height: 70vh;
    }

    .stats-bar {
        padding: 3rem 0;
    }

    .ways-to-help,
    .testimonials-section,
    .events-section,
    .social-section {
        padding: 3rem 0;
    }

    .cta-banner {
        padding: 3rem 1.5rem;
    }

    .help-card .card-body {
        padding: 2rem;
    }

    footer.modern-footer {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-section .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }

    .cta-banner .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }

    .stat-item {
        margin-bottom: 2rem;
    }
}

/* ================================================== */
/* DASHBOARD WIDGETS                                   */
/* ================================================== */

.dashboard-widget {
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.dashboard-widget:hover {
    box-shadow: var(--shadow-md);
}

.dashboard-widget .card-header h5 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--avfd-navy);
}

.dashboard-widget .card-footer {
    background-color: var(--avfd-gray);
    font-size: 0.875rem;
}

.dashboard-widget .card-footer a {
    color: var(--avfd-red);
    text-decoration: none;
    font-weight: 500;
}

.dashboard-widget .card-footer a:hover {
    text-decoration: underline;
}
