/* 
 * West Hill Community Association Stylesheet 
 * Design System: Modern, Clean, Trustworthy
 */

:root {
    /* Color Palette */
    --primary: #F39200;
    /* West Hill Orange - Energy, Community */
    --primary-dark: #D47B00;
    --primary-light: #FFF4E5;
    --secondary: #0082CA;
    /* West Hill Blue */
    --accent-red: #E3205E;
    /* West Hill Pink/Red */
    --accent-green: #3EAE4B;
    /* West Hill Green */

    /* Neutrals */
    --background: #F8FAFC;
    --surface: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border: #E2E8F0;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows & Radii */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.highlight {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(243, 146, 0, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 146, 0, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-text {
    background: transparent;
    color: var(--primary);
    padding: 0;
}

.btn-text:hover {
    color: var(--primary-dark);
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 55px;
    /* Sizing perfectly fits the navbar */
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
    padding-bottom: 3px;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover {
    color: var(--primary-dark);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.hero-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-family: var(--font-heading);
    animation: float 6s ease-in-out infinite;
}

.hero-card i {
    font-size: 1.5rem;
    color: var(--primary);
}

.float-card-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.float-card-2 {
    bottom: 10%;
    right: -5%;
    animation-delay: 3s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Section Common */
.section-header {
    margin-bottom: 3rem;
    max-width: 600px;
}

.section-header.center {
    margin: 0 auto 3rem auto;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Events Section */
.events-section {
    padding: 5rem 0;
    background-color: var(--surface);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.event-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.event-date,
.event-icon {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary-dark);
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.event-icon i {
    font-size: 2rem;
}

.event-date .month {
    font-size: 0.75rem;
    text-transform: uppercase;
}

.event-date .day {
    font-size: 1.25rem;
    line-height: 1;
    margin: 2px 0;
}

.event-date .year {
    font-size: 0.75rem;
    font-weight: 500;
}

.event-details h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.event-details p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.event-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.event-link:hover {
    gap: 0.75rem;
}

.highlight-card {
    background: var(--accent-green);
    color: white;
    border: none;
}

.highlight-card h3,
.highlight-card p {
    color: white;
}

.highlight-card .event-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.highlight-card .btn-outline {
    border-color: white;
    color: white;
}

.highlight-card .btn-outline:hover {
    background: white;
    color: var(--accent-green);
}

.event-card:nth-child(1) .event-date,
.event-card:nth-child(1) .event-icon {
    background: rgba(243, 146, 0, 0.1);
    color: var(--primary-dark);
}

.event-card:nth-child(2) .event-date,
.event-card:nth-child(2) .event-icon {
    background: rgba(0, 130, 202, 0.1);
    color: var(--secondary);
}

.event-card:nth-child(3) .event-date,
.event-card:nth-child(3) .event-icon {
    background: rgba(227, 32, 94, 0.1);
    color: var(--accent-red);
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 0;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.gallery-header h3 {
    font-size: 1.5rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.photo-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1/1;
    cursor: pointer;
    position: relative;
}

.photo-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    opacity: 0;
    transition: var(--transition);
}

.photo-item:hover::after {
    opacity: 1;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: #0B1120;
    color: #F8FAFC;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-brand h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #94A3B8;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #94A3B8;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748B;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .section-header.center {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }
}

/* ==============================================
   HERO SLIDESHOW
   ============================================== */
.hero-slideshow { position: relative; }

.hero-slide { display: none; }

.hero-slide.active {
    display: block;
    animation: slideIn 0.7s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.slide-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.slide-highlights {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.slide-highlights li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

.slide-highlights li i {
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.slide-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1rem 1.25rem;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
}

.slide-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.slide-meta span i { color: var(--primary); font-size: 1rem; }

.slide-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 1.25rem 0 0.25rem;
}

.slide-prev, .slide-next {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
    font-size: 1rem;
}

.slide-prev:hover, .slide-next:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.slide-dots { display: flex; gap: 0.5rem; align-items: center; }

.slide-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: var(--radius-full);
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.slide-dot.active { background: var(--primary); width: 1.25rem; }

/* ==============================================
   ANNOUNCEMENT TICKER
   ============================================== */
.ticker-strip {
    background: var(--primary);
    color: white;
    overflow: hidden;
    padding: 0.8rem 0;
    width: 100%;
}

.ticker-track {
    display: inline-flex;
    white-space: nowrap;
    animation: ticker-scroll 32s linear infinite;
}

.ticker-strip:hover .ticker-track { animation-play-state: paused; }

.ticker-content {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    color: white;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==============================================
   WHAT'S HAPPENING SECTION
   ============================================== */
.whats-happening-section {
    padding: 5rem 0;
    background-color: var(--background);
}

.happening-featured { border: 2px solid var(--primary); }

.happening-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.72rem;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.happening-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

/* ==============================================
   GET INVOLVED SECTION
   ============================================== */
.get-involved-section {
    padding: 5rem 0;
    background-color: var(--primary-light);
}

.involve-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.involve-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border);
}

.involve-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.involve-icon {
    width: 4rem;
    height: 4rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.involve-card h3 { font-size: 1.2rem; margin: 0; }
.involve-card p  { color: var(--text-muted); font-size: 0.95rem; margin: 0; flex: 1; }

/* ==============================================
   GALLERY — PLAY OVERLAY (VIDEO ITEMS)
   ============================================== */
.video-item { position: relative; cursor: pointer; }

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
    transition: var(--transition);
}

.play-overlay i {
    font-size: 3.5rem;
    color: white;
    opacity: 0.88;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
    transition: var(--transition);
}

.video-item:hover .play-overlay i { opacity: 1; transform: scale(1.12); }

/* ==============================================
   IMAGE LIGHTBOX
   ============================================== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active { display: flex; animation: fadeModal 0.25s ease; }

@keyframes fadeModal {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lightbox-img {
    max-width: 88vw;
    max-height: 84vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    display: block;
}

.lightbox-close {
    position: fixed;
    top: 1.25rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 1.6rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10000;
    line-height: 1;
}

.lightbox-close:hover { background: rgba(255,255,255,0.3); }

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10000;
    line-height: 1;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

/* ==============================================
   VIDEO MODAL
   ============================================== */
.video-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.video-modal-overlay.active { display: flex; animation: fadeModal 0.25s ease; }

.video-modal-content {
    background: #0B1120;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    width: 100%;
    max-width: 860px;
    position: relative;
}

.video-modal-close {
    position: absolute;
    top: -1rem;
    right: -1rem;
    background: var(--primary);
    border: none;
    color: white;
    font-size: 1.2rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10000;
    line-height: 1;
}

.video-modal-close:hover { background: var(--primary-dark); transform: scale(1.1); }

.video-modal-wrapper {
    position: relative;
    padding-top: 56.25%;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.video-modal-wrapper iframe,
.video-modal-wrapper video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* ==============================================
   EVENT DETAIL PAGES
   ============================================== */
.event-detail-hero {
    padding: 5rem 0 4rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.event-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.event-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.event-detail-text h1 { font-size: 3rem; margin-bottom: 1.5rem; }

.event-meta-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: var(--background);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
}

.event-meta-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.event-meta-list li i {
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.event-detail-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.event-detail-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.event-body-section {
    padding: 4rem 0;
    background-color: var(--background);
}

.event-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.event-highlight-item {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.event-highlight-item:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); }
.event-highlight-item i  { font-size: 2rem; color: var(--primary); margin-bottom: 0.75rem; display: block; }
.event-highlight-item h4 { font-size: 1rem; margin-bottom: 0.4rem; }
.event-highlight-item p  { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

.event-cta-section {
    padding: 4rem 0;
    background: var(--surface);
    text-align: center;
    border-top: 1px solid var(--border);
}

.rsvp-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.rsvp-counter i { color: var(--primary); font-size: 1.1rem; }

/* ==============================================
   FORM FEEDBACK (register.html)
   ============================================== */
.form-success {
    text-align: center;
    padding: 3rem 2rem;
    display: none;
}

.form-success .success-icon { font-size: 4rem; color: var(--accent-green); margin-bottom: 1.5rem; display: block; }
.form-success h2 { color: var(--accent-green); margin-bottom: 1rem; }
.form-success p  { color: var(--text-muted); margin-bottom: 2rem; }

.form-error-msg {
    display: none;
    background: rgba(227,32,94,0.08);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

/* ==============================================
   RESPONSIVE ADDITIONS
   ============================================== */
@media (max-width: 992px) {
    .event-detail-content { grid-template-columns: 1fr; }
    .event-detail-text h1 { font-size: 2.25rem; }
}

@media (max-width: 768px) {
    .involve-grid { grid-template-columns: 1fr; }
    .happening-actions { flex-direction: column; align-items: flex-start; }
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
}

/* ==============================================
   COMMUNITY MAP SECTION
   ============================================== */
.map-section {
    padding: 5rem 0;
    background-color: var(--surface);
    border-top: 1px solid var(--border);
}

.map-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.map-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--background);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.map-highlight-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.map-highlight-item i {
    font-size: 1.75rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.map-highlight-item strong {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.map-highlight-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.map-embed-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
    padding-top: 42%;
    background: var(--background);
}

.map-embed-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .map-embed-wrapper { padding-top: 65%; }
}

/* ==============================================
   GET INVOLVED — BACKGROUND VISUAL ENHANCEMENT
   ============================================== */
.get-involved-section {
    position: relative;
    background-color: var(--primary-light);
    background-image: url('images/Past-Westhill-day-images/Westhill-day-20.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.get-involved-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 244, 229, 0.93);
    z-index: 0;
}

.get-involved-section .container {
    position: relative;
    z-index: 1;
}

/* ==============================================
   FULL FOOTER
   ============================================== */
.footer-new {
    background: #0B1120;
    color: #F8FAFC;
    font-family: var(--font-body);
}

.footer-main {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 3rem;
    align-items: flex-start;
}

/* Brand col */
.footer-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    display: block;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
}

.footer-desc {
    font-size: 0.9rem;
    color: #94A3B8;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    color: #94A3B8;
    font-size: 1.1rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Facebook brand color */
.social-icon[aria-label="Facebook"] {
    color: #1877F2;
    border-color: rgba(24, 119, 242, 0.3);
    background: rgba(24, 119, 242, 0.1);
}

.social-icon[aria-label="Facebook"]:hover {
    background: #1877F2;
    border-color: #1877F2;
    color: white;
}

/* Column headings */
.footer-col-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
    margin-bottom: 1.25rem;
}

/* Navigation links */
.footer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-nav a {
    color: #94A3B8;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--primary);
    padding-left: 4px;
}

/* Contact list */
.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #94A3B8;
    line-height: 1.5;
}

.footer-contact li i {
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.footer-contact a {
    color: #94A3B8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover { color: white; }

/* Newsletter */
.footer-newsletter-text {
    font-size: 0.875rem;
    color: #94A3B8;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-email-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    color: white;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-email-input::placeholder { color: #64748B; }

.footer-email-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.footer-subscribe-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9rem;
}

.footer-newsletter-success {
    color: #3EAE4B;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

/* Bottom bar */
.footer-bottom-bar {
    padding: 1.25rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-bottom-inner p {
    font-size: 0.82rem;
    color: #475569;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    font-size: 0.82rem;
    color: #475569;
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-links a:hover { color: #94A3B8; }

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        gap: 1rem;
        justify-content: center;
    }


    .get-involved-section {
        background-attachment: scroll;
    }
}

/* ==============================================
   FORM MODALS
   ============================================== */
.form-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    backdrop-filter: blur(4px);
}

.form-modal-overlay.active {
    display: flex;
    animation: fadeModal 0.25s ease;
}

.form-modal-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    padding: 2.5rem;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border-top: 4px solid var(--primary);
    animation: slideInModal 0.3s ease;
}

@keyframes slideInModal {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.form-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.form-modal-header h3 {
    font-size: 1.45rem;
    line-height: 1.3;
    margin: 0;
}

.form-modal-close {
    background: var(--background);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1.3rem;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    line-height: 1;
    padding: 0;
}

.form-modal-close:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
}

/* ---- Field styles ---- */
.fm-group { margin-bottom: 1.2rem; }

.fm-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

.fm-control {
    width: 100%;
    padding: 0.78rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
    background: white;
    transition: var(--transition);
}

.fm-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(243, 146, 0, 0.12);
}

textarea.fm-control { resize: vertical; min-height: 90px; }

.fm-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ---- Radio buttons ---- */
.fm-radio-group {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.4rem;
}

.fm-radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.55rem 1.25rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    transition: var(--transition);
    user-select: none;
}

.fm-radio-item:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary-dark);
}

.fm-radio-item input { accent-color: var(--primary); }

/* ---- Checkboxes ---- */
.fm-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.4rem;
}

.fm-check-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.fm-check-item:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
}

.fm-check-item input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.fm-check-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
}

.fm-check-label i { color: var(--primary); font-size: 1rem; }

/* ---- Submit button ---- */
.fm-submit-btn {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
    margin-top: 0.75rem;
    gap: 0.5rem;
}

/* ---- Error message ---- */
.fm-error {
    background: rgba(227, 32, 94, 0.08);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

/* ---- Success state ---- */
.modal-success {
    text-align: center;
    padding: 2rem 1rem;
}

.modal-success h4 {
    font-size: 1.4rem;
    color: var(--accent-green);
    margin-bottom: 0.75rem;
}

.modal-success p { color: var(--text-muted); margin: 0; }

@media (max-width: 600px) {
    .form-modal-card { padding: 1.75rem 1.25rem; }
    .fm-row { grid-template-columns: 1fr; gap: 0; }
    .fm-radio-group { flex-direction: column; }
    .form-modal-header h3 { font-size: 1.2rem; }
}


/* ==============================================
   HERO WALLPAPER OVERLAY
   ============================================== */
.hero-with-wallpaper {
    position: relative;
}
.hero-with-wallpaper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('images/Past-Westhill-day-images/Westhill-day-20.jpeg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    opacity: 0.07;
    z-index: 0;
    pointer-events: none;
}
.hero-with-wallpaper .hero-slideshow {
    position: relative;
    z-index: 1;
}

/* ==============================================
   NAV CONTACT BUTTON
   ============================================== */
.nav-contact-btn {
    background: var(--primary) !important;
    color: white !important;
    padding: 0.45rem 1.1rem !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
}
.nav-contact-btn::after { display: none !important; }
.nav-contact-btn:hover {
    background: var(--primary-dark) !important;
    color: white !important;
    transform: translateY(-1px);
}

/* ==============================================
   IMAGE-BASED EVENT CARDS
   ============================================== */
.event-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    align-items: start;
}

.event-img-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.event-img-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.event-img-card.happening-featured {
    border-top: 3px solid var(--primary);
}

.event-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--background);
}

.event-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.event-img-card:hover .event-img-wrap img {
    transform: scale(1.04);
}

.event-img-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
}

.event-img-month {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(0,0,0,0.55);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
}

.event-img-body {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.event-img-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}
.event-img-date i { color: var(--primary); }

.event-img-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-main);
    line-height: 1.35;
}

.event-img-body p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
}

@media (max-width: 900px) {
    .event-cards-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .event-cards-grid { grid-template-columns: 1fr; }
}

/* ==============================================
   ABOUT US SECTION
   ============================================== */
.about-section {
    padding: 5rem 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.section-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.about-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.about-stat {
    padding: 1rem 0 1rem 1.25rem;
    border-left: 3px solid var(--primary);
    /* subtle divider between items */
    border-bottom: 1px solid var(--border);
    transition: border-left-color 0.3s ease;
}

.about-stat:last-child {
    border-bottom: none;
}

.about-stat:hover {
    border-left-color: var(--primary-dark);
}

.about-stat-row {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.about-count {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    flex-shrink: 0;
    /* smooth final pop when count finishes */
    transition: color 0.3s ease;
}

.about-stat span {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
    font-weight: 500;
}


.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about-value-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: var(--transition);
}

.about-value-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.about-value-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.about-value-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

.about-value-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-values { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
    .about-values { grid-template-columns: 1fr; }
    .about-stats { gap: 1.5rem; }
}

/* ==============================================
   COMMUNITY NEWS SECTION
   ============================================== */
.news-section {
    padding: 5rem 0;
    background: var(--background);
    border-top: 1px solid var(--border);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.news-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.news-card-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-full);
    width: fit-content;
}

.news-tag-announcement {
    background: rgba(243, 146, 0, 0.12);
    color: var(--primary-dark);
}
.news-tag-update {
    background: rgba(0, 130, 202, 0.1);
    color: var(--secondary);
}
.news-tag-community {
    background: rgba(62, 174, 75, 0.1);
    color: var(--accent-green);
}
.news-tag-alert {
    background: rgba(227, 32, 94, 0.1);
    color: var(--accent-red);
}

.news-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
}

.news-card-excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.news-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.news-read-more {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
}

.news-read-more:hover {
    color: var(--primary-dark);
    gap: 0.5rem;
}

@media (max-width: 900px) {
    .news-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
    .news-grid { grid-template-columns: 1fr; }
}


