/* Premium ECV58 Design System */
:root {
    --ecv-red-primary: #DC143C;
    --ecv-red-dark: #B22222;
    --ecv-red-darker: #8B0000;
    --ecv-gold: #FFD700;
    --ecv-gold-dark: #B8860B;
    --ecv-navy: #1a2332;
    --ecv-navy-light: #2c3e50;
    --ecv-cream: #f8f6f0;
    --ecv-white: #ffffff;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.2);
    --gradient-hero: linear-gradient(135deg,
        rgba(26, 35, 50, 0.95) 0%,
        rgba(44, 62, 80, 0.95) 50%,
        rgba(26, 35, 50, 0.95) 100%);
    --gradient-red: linear-gradient(135deg, var(--ecv-red-primary) 0%, var(--ecv-red-dark) 100%);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--ecv-navy);
    background-color: var(--ecv-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--ecv-white) 0%, var(--ecv-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.hero-tagline {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.5;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--ecv-navy);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--ecv-navy-light);
    margin-bottom: 3rem;
}

/* Header */
.header {
    background: var(--gradient-red);
    color: var(--ecv-white);
    padding: 1rem 0;
    box-shadow: var(--shadow-medium);
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
}

.header-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: absolute;
    left: 0;
}

.header-logo {
    height: 60px;
    width: auto;
    transition: var(--transition-smooth);
}

.header-logo:hover {
    transform: scale(1.05);
}

.header h1 {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    flex: 1;
    text-align: center;
}

/* Mobile responsive header */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-logo-link {
        position: static;
        margin-bottom: 0.5rem;
    }

    .header-logo {
        height: 50px;
    }

    .header h1 {
        font-size: 1.5rem;
    }
}

/* Navigation */
.navbar {
    background-color: var(--ecv-navy) !important;
    border-bottom: 3px solid var(--ecv-red-primary);
    box-shadow: var(--shadow-light);
    padding: 0.5rem 0;
}

.navbar a {
    color: var(--ecv-white) !important;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.navbar a:hover {
    color: var(--ecv-gold) !important;
    transform: translateY(-1px);
}

/* Hero Section */
.hero-banner {
    background: var(--gradient-hero),
                radial-gradient(circle at 30% 30%, rgba(220, 20, 60, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(220, 20, 60, 0.05) 0%, transparent 50%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="75" cy="75" r="0.3" fill="rgba(255,255,255,0.01)"/><circle cx="50" cy="10" r="0.4" fill="rgba(255,255,255,0.015)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    color: var(--ecv-white);
    position: relative;
    overflow: hidden;
    height: 300px;
    display: flex;
    align-items: center;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(220, 20, 60, 0.05) 50%, transparent 100%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    position: relative;
}

.badge-text {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--ecv-gold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Premium Buttons */
.btn-hero-primary {
    background: var(--gradient-red);
    border: none;
    color: var(--ecv-white);
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-hero-primary:hover::before {
    left: 100%;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(220, 20, 60, 0.4);
    color: var(--ecv-white);
    text-decoration: none;
}

.btn-arrow {
    font-size: 1.3rem;
    transition: var(--transition-bounce);
}

.btn-hero-primary:hover .btn-arrow {
    transform: translateX(5px);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--ecv-white);
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--ecv-gold);
    color: var(--ecv-gold);
    transform: translateY(-3px);
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--ecv-white);
    border-bottom: 2px solid var(--ecv-white);
    transform: rotate(45deg);
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Quick Access Section */
.quick-access-section {
    padding: 5rem 0;
    background: #fafafa;
    position: relative;
}

.quick-access-section.elevated {
    margin-top: -3rem;
    position: relative;
    z-index: 10;
    border-radius: 2rem 2rem 0 0;
    box-shadow: var(--shadow-heavy);
}

.quick-access-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--ecv-red-primary) 50%, transparent 100%);
}

.feature-card {
    background: var(--ecv-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
    height: 100%;
    border: 2px solid rgba(220, 20, 60, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.02) 0%, transparent 50%, rgba(220, 20, 60, 0.02) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(220, 20, 60, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--ecv-red-primary);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card .image-link {
    display: block;
    overflow: hidden;
    height: 200px;
}

.feature-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

/* Specific positioning for upcoming events and members-only images */
.feature-card img[src*="upcoming-events"],
.feature-card img[src*="members-only"] {
    object-position: center center;
}

.feature-card:hover img {
    transform: scale(1.05);
}

.feature-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    border-top: 1px solid rgba(220, 20, 60, 0.1);
    position: relative;
}

.feature-body h3 {
    color: var(--ecv-navy);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    padding-top: 0.5rem;
    border-bottom: 2px solid rgba(220, 20, 60, 0.1);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

.feature-body p {
    color: var(--ecv-navy-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.feature-actions {
    margin-top: auto;
}

.feature-actions .btn {
    background: var(--gradient-red);
    color: var(--ecv-white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.feature-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.3);
    color: var(--ecv-white);
}

/* Mission Section */
.mission-section {
    padding: 6rem 0;
    background: var(--ecv-white);
    position: relative;
}

.mission-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--ecv-red-primary) 50%, transparent 100%);
}

.section-badge {
    display: inline-block;
    background: rgba(220, 20, 60, 0.1);
    color: var(--ecv-red-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mission-card {
    text-align: center;
    padding: 2rem;
    height: 100%;
    transition: var(--transition-smooth);
    border-radius: 15px;
}

.mission-card:hover {
    transform: translateY(-5px);
    background: var(--ecv-cream);
}

.mission-icon {
    margin-bottom: 2rem;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: var(--gradient-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
}

.mission-card:hover .icon-circle {
    transform: scale(1.1);
    box-shadow: var(--shadow-heavy);
}

.icon-circle svg {
    color: var(--ecv-white);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.mission-card h3 {
    color: var(--ecv-navy);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.mission-card p {
    color: var(--ecv-navy-light);
    line-height: 1.7;
}

/* Call to Action Section */
.cta-section {
    padding: 5rem 0;
    background: #f5f5f5;
    color: var(--ecv-navy);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(220, 20, 60, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

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

.cta-section .lead {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--ecv-navy-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons .btn {
    margin: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient-red);
    border: none;
    color: var(--ecv-white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.4);
    color: var(--ecv-white);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--ecv-red-primary);
    color: var(--ecv-red-primary);
}

.btn-outline-primary:hover {
    background: var(--ecv-red-primary);
    color: var(--ecv-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3);
}

/* Main content area */
main {
    flex: 1;
}

/* Footer */
.footer {
    background-color: var(--ecv-navy);
    color: var(--ecv-white);
    padding: 2rem 0;
    text-align: center;
    border-top: 3px solid var(--ecv-red-primary);
    margin-top: auto;
}

.footer p {
    margin: 0;
    opacity: 0.8;
}

/* Cart Styles */
.cart {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 150px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(220, 20, 60, 0.2);
    padding: 1rem;
    box-shadow: var(--shadow-medium);
    z-index: 10;
    border-radius: 15px 15px 0 0;
}

.cart h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--ecv-navy);
}

.cart button {
    width: 100%;
    margin-top: 0.5rem;
    background: var(--gradient-red);
    border: none;
    color: var(--ecv-white);
    padding: 0.8rem;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.cart button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

/* PayPal Button Styling */
#paypal-button-container button {
    width: 100% !important;
    border-radius: 10px !important;
}

/* Utility Classes */
.min-vh-75 {
    min-height: 75vh;
}

.mb-6 {
    margin-bottom: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-banner {
        height: 350px;
        padding: 2rem 0;
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 3rem);
        line-height: 1.3;
        margin-bottom: 1rem;
        white-space: nowrap;
    }

    .hero-tagline {
        font-size: clamp(1rem, 4vw, 1.2rem);
        line-height: 1.6;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .quick-access-section.elevated {
        margin-top: -2rem;
        border-radius: 1.5rem 1.5rem 0 0;
        padding: 3rem 0;
    }

    .quick-access-section {
        padding: 3rem 0;
    }

    .feature-card {
        margin-bottom: 2rem;
    }

    .feature-card .image-link {
        height: 220px;
    }

    /* Better upcoming events and members-only image positioning on mobile */
    .feature-card img[src*="upcoming-events"],
    .feature-card img[src*="members-only"] {
        object-position: center 20%;
    }

    .feature-body {
        padding: 1.5rem;
    }

    .feature-body h3 {
        font-size: 1.4rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .feature-body p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .mission-section {
        padding: 4rem 0;
    }

    .mission-card {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 2.5rem;
    }

    .cta-section {
        padding: 4rem 0;
    }

    .cta-section h2 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }

    .cta-section .lead {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .cta-buttons .btn {
        width: 100%;
        margin: 0;
        padding: 1.2rem 2rem;
        font-size: 1rem;
        text-align: center;
    }

    .cart {
        position: fixed;
        bottom: 0;
        right: 0;
        width: 100%;
        border-radius: 15px 15px 0 0;
        padding: 1.5rem;
    }

    .header h1 {
        font-size: 1.6rem;
        padding: 0 1rem;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        height: 300px;
        padding: 1.5rem 0;
    }

    .hero-title {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
        line-height: 1.2;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
        white-space: nowrap;
    }

    .hero-tagline {
        font-size: clamp(0.95rem, 4vw, 1.1rem);
        line-height: 1.5;
        padding: 0 1.5rem;
        margin-bottom: 1.5rem;
    }

    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .section-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        line-height: 1.2;
        padding: 0 0.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .feature-card .image-link {
        height: 200px;
    }

    /* Better upcoming events and members-only image positioning on small mobile */
    .feature-card img[src*="upcoming-events"],
    .feature-card img[src*="members-only"] {
        object-position: center 25%;
    }

    .feature-body {
        padding: 1.25rem;
    }

    .feature-body h3 {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .feature-body p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .mission-card {
        padding: 1.5rem 1rem;
    }

    .mission-card h3 {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .mission-card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .icon-circle {
        width: 60px;
        height: 60px;
    }

    .cta-section h2 {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        line-height: 1.2;
        padding: 0 0.5rem;
    }

    .cta-section .lead {
        font-size: 1rem;
        line-height: 1.5;
        padding: 0 1.5rem;
    }

    .cta-buttons .btn {
        font-size: 0.95rem;
        padding: 1rem 1.5rem;
    }

    .header h1 {
        font-size: 1.4rem;
        padding: 0 0.5rem;
    }

    .quick-access-section {
        padding: 2.5rem 0;
    }

    .mission-section {
        padding: 3.5rem 0;
    }

    .cta-section {
        padding: 3.5rem 0;
    }
}

/* Animation Enhancements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.mission-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Hide elements that might interfere */
#shipToBillingAddress {
    display: none !important;
}

/* Focus and Accessibility */
.btn:focus,
.feature-card:focus,
.mission-card:focus {
    outline: 2px solid var(--ecv-gold);
    outline-offset: 2px;
}

/* Member Dropdown Styles */
.navbar .dropdown-menu {
    background-color: var(--ecv-white) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    box-shadow: var(--shadow-medium) !important;
    border-radius: 0.5rem !important;
    padding: 0.5rem 0 !important;
    min-width: 200px !important;
}

.navbar .dropdown-item {
    color: var(--ecv-navy) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition-smooth) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: var(--ecv-red-primary) !important;
    color: var(--ecv-white) !important;
}

.navbar .dropdown-item i {
    width: 1.2rem;
    text-align: center;
}

.navbar .dropdown-divider {
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    margin: 0.5rem 0 !important;
}

.navbar .dropdown-toggle {
    color: var(--ecv-white) !important;
}

/* Print Styles */
@media print {
    .hero-banner,
    .navbar,
    .footer,
    .cart {
        display: none;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
}