/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* iOS safe area support */
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--navy);
    overflow-x: hidden;
    background: var(--offwhite);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Color Variables */
:root {
    --navy: #17202A;
    --gold: #C7A15B;
    --offwhite: #F7F5F2;
    --navy-dark: #101820;
    --notification-bg: #071D2E;
}

/* Top Notification Bar */
.notification-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--notification-bg);
    color: white;
    z-index: 1001;
    padding: 8px 0;
    transition: background-color 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.notification-bar:hover {
    background-color: #0A2438;
}

.notification-content {
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    padding: 0 20px;
    max-width: 1200px;
    width: 100%;
}

#notification-text {
    display: inline-block;
    transition: opacity 0.5s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 40px;
    width: 100%;
    background: var(--offwhite);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.5vh 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(23,32,42,0.04);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 10vh;
    min-height: 60px;
    max-height: 100px;
    /* Removed position: relative to allow fixed dropdown to position relative to viewport */
}

.logo {
    height: 7vh;
    min-height: 45px;
    max-height: 75px;
    width: auto;
    transition: all 0.3s ease;
    margin-top: 3px;
}

.nav-logo h2 {
    color: var(--navy-dark);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--navy);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--navy);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--offwhite) 0%, var(--gold) 100%);
    color: var(--navy-dark);
    padding-top: 120px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy-dark);
}

.btn-primary:hover {
    background: var(--navy-dark);
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--navy-dark);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--navy-dark);
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic {
    width: 300px;
    height: 300px;
    background: rgba(199,161,91,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    animation: float 6s ease-in-out infinite;
    color: var(--gold);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--navy-dark);
}

/* About Section */
.about {
    padding: 5rem 0;
    background: #f8fafc;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.about-stats {
    display: grid;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--navy);
    font-weight: 500;
}

/* Services Section */
.services {
    padding: 5rem 0;
}

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

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--navy-dark);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--navy);
}

.service-card p {
    color: var(--navy);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: #f8fafc;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--navy);
    width: 40px;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.contact-item p {
    color: var(--navy);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--navy-dark);
    color: var(--gold);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--gold);
}

.footer-section p {
    color: var(--gold);
    margin-bottom: 1rem;
}

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

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

.footer-section ul li a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--offwhite);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--navy-dark);
    color: var(--gold);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gold);
    color: var(--gold);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed; /* Fixed to viewport for reliable positioning */
        left: 0;
        top: 0; /* JS will set inline top value */
        width: 100%;
        flex-direction: column;
        background-color: white;
        text-align: center;
        z-index: 1100; /* Above navbar */
        max-height: calc(100vh - 120px); /* Fallback height */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateX(-100%); /* Slide animation */
        transform-origin: top right;
        transition: transform 0.22s ease;
        /* Visual fixes to hide tiny gaps */
        border-top: 1px solid rgba(0,0,0,0.04);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        padding: 2rem 0;
    }

    .nav-menu.active {
        transform: translateX(0); /* Slide in from left */
    }
    
    /* JavaScript positioning removed - using CSS-only positioning */

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-graphic {
        width: 200px;
        height: 200px;
        font-size: 3rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-container {
        height: 7vh;
        min-height: 50px;
        max-height: 70px;
    }
    
    .logo {
        height: 4.5vh;
        min-height: 30px;
        max-height: 50px;
        margin-top: 2px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .nav-container {
        height: 6vh;
        min-height: 45px;
        max-height: 60px;
    }
    
    .nav-menu {
        position: fixed; /* Fixed to viewport for reliable positioning */
        top: 0; /* JS will set inline top value */
        max-height: calc(100vh - 100px); /* Fallback height */
    }
    
    .logo {
        height: 4vh;
        min-height: 25px;
        max-height: 40px;
        margin-top: 1px;
    }
}

/* Extra small screens and landscape phones */
@media (max-width: 360px) {
    .nav-menu {
        position: fixed; /* Fixed to viewport for reliable positioning */
        top: 0; /* JS will set inline top value */
        max-height: calc(100vh - 100px); /* Fallback height */
        padding: 1.5rem 0;
    }
    
    .nav-container {
        height: 6vh;
        min-height: 40px;
        max-height: 55px;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .nav-menu {
        position: fixed; /* Fixed to viewport for reliable positioning */
        top: 0; /* JS will set inline top value */
        max-height: calc(100vh - 100px); /* Fallback height */
        padding: 1rem 0;
    }
    
    .nav-container {
        height: 6vh;
        min-height: 40px;
        max-height: 50px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Smooth scrolling for anchor links */
html {
    scroll-padding-top: 120px;
}

.scroll-to-top {
    background: var(--gold) !important;
    color: var(--navy-dark) !important;
}

/* Modern Calendar Grid Layout */
.calendar-container-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(23,32,42,0.04);
    padding: 2.5rem 2rem 3rem 2rem;
}
.calendar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 0;
    width: 100%;
    position: relative;
}
.calendar-arrow {
    background-color: transparent;
    border: none;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--navy-dark);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    padding: 4px;
    line-height: 1;
    vertical-align: middle;
    border-radius: 50%;
    outline: none;
    position: absolute;
    top: 50%;
    left: unset;
    right: unset;
    transform: translateY(-50%);
    z-index: 1;
}
.calendar-arrow#prev-month {
    left: 0;
}
.calendar-arrow#next-month {
    right: 0;
}
.calendar-arrow:hover, .calendar-arrow:focus {
    background-color: var(--gold);
    color: #fff;
}
.calendar-title {
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--navy-dark);
    text-transform: uppercase;
    margin: 0;
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 0;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #E0E0E0;
    overflow: hidden;
}
.calendar-day-header {
    font-size: clamp(0.7rem, 2.5vw, 1.1rem);
    font-weight: 700;
    text-align: center;
    padding: 0.7rem 0;
    background: #faf9f7;
    color: var(--navy-dark);
    border-bottom: 1px solid #E0E0E0;
    border-right: 1px solid #E0E0E0;
}
.calendar-day-header:last-child {
    border-right: none;
}
.calendar-cell {
    min-height: 110px;
    background: #fff;
    border-right: 1px solid #E0E0E0;
    border-bottom: 1px solid #E0E0E0;
    position: relative;
    padding: 8px 6px 6px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}
.calendar-cell:last-child {
    border-right: none;
}
.calendar-row:last-child .calendar-cell {
    border-bottom: none;
}
.calendar-date-num {
    font-size: clamp(0.8rem, 2.5vw, 1.1rem);
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--navy-dark);
    text-align: center;
    display: block;
}
.today {
    background-color: #0F1111;
    color: #fff !important;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px auto;
    font-weight: 700;
    font-size: 1.1rem;
}
.calendar-event-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    align-items: center;
}
.calendar-event-box {
    background: #f0dcb4 !important;
    color: #222;
    border-radius: 8px;
    padding: clamp(6px, 1.5vw, 14px) clamp(8px, 2vw, 18px);
    font-size: clamp(0.8rem, 2.2vw, 1.05rem);
    font-weight: 500;
    text-align: left;
    width: 100%;
    max-width: 200px;
    box-sizing: border-box;
    margin: 0 auto;
    box-shadow: 0 1px 4px rgba(199,161,91,0.10);
    transition: box-shadow 0.18s, background 0.18s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: none;
    gap: 2px;
}
.calendar-event-box:hover {
    background: #e5cfa2 !important;
    box-shadow: 0 4px 16px rgba(199,161,91,0.18);
}
.calendar-event-box strong {
    font-size: clamp(0.85rem, 2.5vw, 1.13rem);
    font-weight: 800;
    margin-bottom: 2px;
    color: #222;
}
.calendar-event-box .event-meta {
    font-size: clamp(0.7rem, 2vw, 0.85rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    margin-bottom: 0.1rem;
    color: #222;
    display: inline;
}
@media (max-width: 900px) {
    .calendar-container-modern {
        padding: 1rem 0.2rem 1.5rem 0.2rem;
    }
    .calendar-grid {
        font-size: 0.95rem;
    }
    .calendar-event-box {
        max-width: 90px;
        font-size: 0.92rem;
    }
}
@media (max-width: 600px) {
    .calendar-container-modern {
        padding: 0.5rem 0 1rem 0;
    }
    .calendar-grid {
        font-size: 0.85rem;
    }
    .calendar-event-box {
        max-width: 100%;
        padding: 8px 10px;
    }
    .calendar-day-header {
        font-size: 0.75rem;
        padding: 0.5rem 0;
    }
    .calendar-cell {
        min-height: 90px;
    }
}
@media (max-width: 480px) {
    .calendar-day-header {
        font-size: 0.6rem;
    }
    .calendar-event-box strong {
        font-size: 0.8rem;
    }
    .calendar-event-box .event-meta {
        font-size: 0.65rem;
    }
}

/* Media Preview Section */
.media {
    padding: 5rem 0;
    background: #f8fafc;
}

.media-description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 3rem;
    opacity: 0.8;
}

.media-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.media-videos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 1000px;
}

.media-video-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.media-video-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.media-video-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    position: relative;
}

.media-video-thumbnail::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.media-video-item:hover .media-video-thumbnail::after {
    background: var(--gold);
    color: var(--navy-dark);
    transform: translate(-50%, -50%) scale(1.1);
}

.media-video-info {
    padding: 1rem;
}

.media-video-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy-dark);
    margin-bottom: 0.5rem;
}

.media-video-date {
    color: var(--navy);
    font-size: 0.8rem;
    opacity: 0.8;
}

.media-actions {
    text-align: center;
}

.media-actions .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.media-actions .btn i {
    font-size: 1rem;
}

/* Responsive Media Videos */
@media (max-width: 768px) {
    .media-videos {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .media-video-thumbnail {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .media-videos {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    
    .media-video-thumbnail {
        height: 200px;
    }
}

/* Remove any old .day or .event-box styles if present */
/* .day, .event-box {
    all: unset;
} */

.community-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1200px) {
    .nav-container {
        height: 8vh;
        min-height: 55px;
        max-height: 85px;
    }
    
    .nav-menu {
        position: fixed; /* Fixed to viewport for reliable positioning */
        top: 0; /* JS will set inline top value */
    }
    
    .logo {
        height: 5.5vh;
        min-height: 35px;
        max-height: 60px;
    }
}

.hero-video-content {
    background: var(--navy-dark);
}
.hero-video-content.killswitch-active {
    background: #EBE8E1 !important;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(199,161,91,0.18); background: #ffefc1; }
    100% { box-shadow: 0 0 16px 4px rgba(199,161,91,0.28); background: #ffe08a; }
}
.limited-spots-message {
    animation: pulse 1.2s infinite alternate;
} 