/* ==========================================================================
   Vespa Club Ostrava - Custom Stylesheet
   ========================================================================== */

/* --- Custom Properties (Design System Tokens) --- */
:root {
    /* Color Palette */
    --color-green: #009246;
    --color-red: #CE2B37;
    --color-white: #FFFFFF;
    --color-off-white: #F4F6F4;
    --color-dark-bg: #121212;
    --color-dark-card: #1E1E1E;
    --color-text-dark: #2A2A2A;
    --color-text-light: #F4F6F4;
    --color-text-muted: #8E8E8E;
    
    /* Brand Accents */
    --color-rust: #D35400; /* Ostrava industrial orange */
    --color-rust-hover: #E67E22;
    --color-green-hover: #007D3C;
    --color-red-hover: #B3202A;
    
    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions & Shadows */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 15px 40px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-small: 6px;
    --radius-medium: 12px;
    --radius-large: 24px;
    --radius-circle: 50%;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-off-white);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

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

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    border-radius: var(--radius-small);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--color-red);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(206, 43, 55, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(206, 43, 55, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border: 2px solid var(--color-white);
    backdrop-filter: blur(5px);
}

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

.btn-pulse {
    animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(206, 43, 55, 0.6);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(206, 43, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(206, 43, 55, 0);
    }
}

/* --- Section Headers --- */
.section-header {
    margin-bottom: 50px;
}

.section-header.text-center {
    text-align: center;
}

.section-tagline {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-rust);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 8px;
}

.section-heading {
    font-size: 2.2rem;
    color: var(--color-dark-bg);
    margin-bottom: 16px;
    position: relative;
    letter-spacing: -0.5px;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin-left: 0;
}

.section-header.text-center .section-intro {
    margin-left: auto;
    margin-right: auto;
}

/* Heading Divider for news */
.heading-divider {
    display: inline-flex;
    gap: 4px;
    margin-top: 10px;
}

.heading-divider span {
    display: block;
    height: 4px;
    width: 25px;
    border-radius: 2px;
}

.heading-divider .div-green { background-color: var(--color-green); }
.heading-divider .div-white { background-color: #D5D6D5; }
.heading-divider .div-red { background-color: var(--color-red); }


/* ==========================================================================
   Header & Navigation
   ========================================================================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition-smooth);
}

/* Class added via JS on scroll */
#main-header.scrolled {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.header-container {
    width: 100%;
    margin: 0 auto;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    width: 100%;
    height: 90px;
    align-items: stretch;
    transition: var(--transition-smooth);
}

#main-header.scrolled .nav-menu {
    height: 70px;
}

/* Segments representing the Italian Flag */
.nav-segment {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.nav-green {
    background-color: var(--color-green);
}

.nav-white {
    background-color: var(--color-white);
    flex: 0 0 160px; /* Exact size for logo */
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

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

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-item {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    position: relative;
    padding: 10px 0;
}

/* Text colors inside green and red fields */
.nav-green .nav-item {
    color: rgba(255, 255, 255, 0.85);
}
.nav-red .nav-item {
    color: rgba(255, 255, 255, 0.85);
}

.nav-green .nav-item:hover,
.nav-red .nav-item:hover {
    color: var(--color-white);
}

/* Underline active animation */
.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-white);
    transition: var(--transition-smooth);
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

/* Logo Wrapper */
.logo-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    width: 120px;
    height: 120px;
    background-color: var(--color-white);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    z-index: 10;
    transition: var(--transition-smooth);
    border: 3px solid var(--color-white);
}

#main-header.scrolled .logo-wrapper {
    width: 90px;
    height: 90px;
    transform: translate(-50%, -35%);
}

.header-logo {
    width: 85px;
    height: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

#main-header.scrolled .header-logo {
    width: 65px;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.mobile-nav-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Mobile menu toggle button colors */
#main-header.scrolled .mobile-nav-toggle .bar {
    background-color: var(--color-white);
}


/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 650px;
    background-image: url('assets/hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.85) 0%, rgba(18, 18, 18, 0.4) 60%, rgba(18, 18, 18, 0.75) 100%);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 0 24px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(211, 84, 0, 0.2);
    border: 1px solid rgba(211, 84, 0, 0.5);
    color: var(--color-rust-hover);
    padding: 8px 16px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    border-radius: 50px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Scroll indicator mouse */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.hero-scroll-indicator:hover {
    opacity: 1;
}

.mouse-icon {
    width: 26px;
    height: 42px;
    border: 2px solid var(--color-white);
    border-radius: 20px;
    position: relative;
}

.mouse-wheel {
    width: 6px;
    height: 6px;
    background-color: var(--color-white);
    border-radius: 50%;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 1.8s infinite;
}

.scroll-text {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes scrollMouse {
    0% { opacity: 0; top: 8px; }
    30% { opacity: 1; }
    100% { opacity: 0; top: 26px; }
}

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


/* ==========================================================================
   Tricolore Cards Section
   ========================================================================== */
.tricolore-cards-section {
    padding: 0;
    position: relative;
    z-index: 10;
    margin-top: -60px; /* Overlap with hero */
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card-item {
    padding: 45px 35px;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.3);
}

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

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    background-color: rgba(255, 255, 255, 0.15);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.card-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.card-btn {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.card-btn i {
    transition: var(--transition-smooth);
}

.card-btn:hover i {
    transform: translateX(5px);
}

/* Green Card specifics */
.card-green {
    background-color: var(--color-green);
    color: var(--color-white);
}
.card-green .card-icon-wrapper {
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.15);
}
.card-green .card-btn {
    color: var(--color-white);
}

/* White Card specifics */
.card-white {
    background-color: var(--color-white);
    color: var(--color-text-dark);
}
.card-white::before {
    background-color: var(--color-rust);
}
.card-white .card-icon-wrapper {
    color: var(--color-dark-bg);
    background-color: var(--color-off-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.card-white .card-btn {
    color: var(--color-rust);
}

/* Red Card specifics */
.card-red {
    background-color: var(--color-red);
    color: var(--color-white);
}
.card-red .card-icon-wrapper {
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.15);
}
.card-red .card-btn {
    color: var(--color-white);
}


/* ==========================================================================
   Split History & Story Section
   ========================================================================== */
.split-history-section {
    padding: 120px 0;
}

.split-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: start;
}

/* --- Left Side: Vespa History --- */
.history-side {
    position: relative;
}

.timeline-container {
    position: relative;
    margin-top: 40px;
    padding-left: 30px;
}

.timeline-track {
    position: absolute;
    left: 4px;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background-color: #E2E8F0;
    border-radius: 2px;
}

.timeline-progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%;
    background-color: var(--color-green);
    border-radius: 2px;
    transition: height 0.5s ease;
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #CBD5E1;
    border: 2px solid var(--color-off-white);
    transition: var(--transition-smooth);
    z-index: 2;
}

.timeline-item.active .timeline-dot {
    background-color: var(--color-green);
    box-shadow: 0 0 0 5px rgba(0, 146, 70, 0.25);
    transform: scale(1.2);
}

.timeline-year {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--color-text-muted);
    margin-bottom: 4px;
    transition: var(--transition-smooth);
}

.timeline-item.active .timeline-year {
    color: var(--color-green);
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark-bg);
    margin-bottom: 6px;
}

.timeline-summary {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Visual Panel for active timeline item info */
.timeline-visual-panel {
    margin-top: 30px;
    perspective: 1000px;
}

/* Polaroid Photo Styling */
.polaroid-frame {
    background-color: var(--color-white);
    padding: 16px 16px 24px 16px;
    border-radius: 2px;
    box-shadow: var(--shadow-medium);
    transform: rotate(-1deg);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.polaroid-frame:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: var(--shadow-strong);
}

.polaroid-img-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #000;
    aspect-ratio: 4 / 3;
}

.polaroid-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
    transition: filter 0.5s ease;
}

.polaroid-caption {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: var(--color-red);
    color: var(--color-white);
    padding: 6px 12px;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: var(--shadow-soft);
    border-radius: 2px;
}

.polaroid-text {
    padding-top: 16px;
    font-size: 0.9rem;
    color: var(--color-text-dark);
    line-height: 1.5;
}

/* --- Right Side: Ostrava Story --- */
.ostrava-side {
    padding-left: 20px;
}

.story-content {
    margin-top: 40px;
}

.story-content p {
    font-size: 1rem;
    color: var(--color-text-dark);
    margin-bottom: 20px;
}

blockquote {
    position: relative;
    padding: 24px 30px;
    background-color: var(--color-white);
    border-left: 4px solid var(--color-rust);
    border-radius: 0 var(--radius-medium) var(--radius-medium) 0;
    margin: 30px 0;
    font-style: italic;
    font-weight: 500;
    box-shadow: var(--shadow-soft);
}

blockquote i {
    font-size: 1.8rem;
    color: rgba(211, 84, 0, 0.15);
    position: absolute;
    top: 15px;
    left: 15px;
}

blockquote span {
    position: relative;
    z-index: 2;
    display: block;
    color: var(--color-text-dark);
}

/* Photo Collage */
.collage-container {
    margin-top: 40px;
}

.collage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.collage-item {
    position: relative;
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.collage-item.large-item {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
}

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

.collage-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 60%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    transition: var(--transition-smooth);
}

.collage-overlay span {
    color: var(--color-white);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.collage-item:hover .collage-overlay {
    opacity: 1;
}

.collage-item:hover .collage-overlay span {
    transform: translateY(0);
}

.collage-item:hover img {
    transform: scale(1.08);
}


/* ==========================================================================
   News & Updates Section
   ========================================================================== */
.news-section {
    padding: 120px 0;
    background-color: var(--color-white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.news-card {
    background-color: var(--color-off-white);
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.news-img-wrapper {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

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

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

.news-date {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: var(--color-dark-bg);
    color: var(--color-white);
    padding: 6px 12px;
    font-size: 0.8rem;
    font-family: var(--font-display);
    font-weight: 600;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.news-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-title {
    font-size: 1.25rem;
    color: var(--color-dark-bg);
    margin-bottom: 12px;
    font-weight: 700;
}

.news-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.btn-link {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.btn-link i {
    transition: var(--transition-smooth);
}

.btn-link:hover i {
    transform: translateX(4px);
}


/* ==========================================================================
   Merchandise Section
   ========================================================================== */
.merch-section {
    padding: 120px 0;
    background-color: var(--color-dark-bg);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

/* Background graphics */
.merch-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background-color: var(--color-red);
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    bottom: -150px;
    left: -100px;
}

.merch-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.merch-info .section-heading {
    color: var(--color-white);
}

.merch-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.merch-features {
    list-style: none;
    margin-bottom: 35px;
}

.merch-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.merch-features li i {
    font-size: 1rem;
}

.text-green { color: var(--color-green); }
.text-white-accent { color: var(--color-white); }
.text-red { color: var(--color-red); }

.merch-pricing-panel {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px;
    border-radius: var(--radius-medium);
    margin-bottom: 35px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}

.price-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.price-item:first-child {
    padding-top: 0;
}

.price-item span {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.price-item strong {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--color-white);
}

#btn-merch-order {
    background-color: var(--color-green);
    box-shadow: 0 4px 15px rgba(0, 146, 70, 0.3);
}

#btn-merch-order:hover {
    background-color: var(--color-green-hover);
    box-shadow: 0 6px 20px rgba(0, 146, 70, 0.4);
}

/* Merch Visual Graphic Card */
.merch-visual {
    display: flex;
    justify-content: center;
}

.merch-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-large);
    padding: 30px;
    box-shadow: var(--shadow-strong);
    position: relative;
    max-width: 400px;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.merch-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
}

.merch-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--color-rust);
    color: var(--color-white);
    padding: 5px 12px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.75rem;
    border-radius: 50px;
    letter-spacing: 1px;
}

#merch-tshirt-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-medium);
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px;
    margin-bottom: 20px;
}

.merch-card-info h4 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.merch-card-info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}


/* ==========================================================================
   Contact & Form Section
   ========================================================================== */
.contact-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--color-off-white) 0%, #E2E8F0 100%);
}

.contact-card {
    background-color: var(--color-white);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
}

/* Form Styling */
.form-wrapper {
    padding: 60px;
}

.form-title {
    font-size: 1.8rem;
    color: var(--color-dark-bg);
    margin-bottom: 10px;
}

.form-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-dark-bg);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    border-radius: var(--radius-small);
    border: 1px solid #CBD5E1;
    background-color: var(--color-off-white);
    color: var(--color-text-dark);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-green);
    background-color: var(--color-white);
    box-shadow: 0 0 0 4px rgba(0, 146, 70, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 30px;
}

.form-checkbox input {
    margin-top: 4px;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    cursor: pointer;
}

#btn-submit {
    display: flex;
    gap: 10px;
    width: auto;
}

/* SUCCESS ALERT */
.form-success-alert {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    background-color: #ECFDF5;
    border: 2px solid #10B981;
    border-radius: var(--radius-medium);
    color: #065F46;
}

.form-success-alert i {
    font-size: 4rem;
    color: #10B981;
    margin-bottom: 20px;
}

.form-success-alert h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Info Side Styling */
.info-wrapper {
    background-color: var(--color-dark-bg);
    color: var(--color-white);
    padding: 60px;
    display: flex;
    flex-direction: column;
}

.info-block {
    margin-bottom: 30px;
}

.info-title {
    font-size: 1rem;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: var(--color-rust-hover);
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-detail {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
}

.info-detail a:hover {
    color: var(--color-rust-hover);
}

.info-socials {
    margin-bottom: 30px;
}

.info-socials h3 {
    font-size: 1rem;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    width: 44px;
    height: 44px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-white);
}

.social-icons a:hover {
    background-color: var(--color-white);
    color: var(--color-dark-bg);
    transform: translateY(-3px);
}

.map-container {
    margin-top: auto;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
}


/* ==========================================================================
   Footer Styling
   ========================================================================== */
.main-footer {
    background-color: #0B0B0B;
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    width: 90px;
    height: auto;
    margin-bottom: 20px;
}

.footer-tagline {
    font-family: var(--font-display);
    font-weight: 500;
    font-style: italic;
    color: var(--color-white);
}

.footer-links-block h4,
.footer-legal-block h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-white);
    margin-bottom: 25px;
}

.footer-links-block ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
}

.footer-links-block ul a:hover {
    color: var(--color-white);
    padding-left: 4px;
}

.footer-legal-block p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.association-icons {
    display: flex;
    gap: 16px;
    font-size: 1.8rem;
    color: rgba(255,255,255,0.25);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    font-size: 0.85rem;
}

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


/* ==========================================================================
   Lightbox Gallery Component
   ========================================================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 70vh;
    object-fit: contain;
    border: 3px solid var(--color-white);
    box-shadow: var(--shadow-strong);
    animation: zoomLightbox 0.3s ease;
}

@keyframes zoomLightbox {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.lightbox-close {
    position: absolute;
    top: 40px;
    right: 40px;
    color: var(--color-white);
    font-size: 3rem;
    font-weight: bold;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.lightbox-close:hover {
    color: var(--color-red);
    transform: scale(1.1);
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--color-white);
    padding: 20px 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.1rem;
}


/* ==========================================================================
   Scroll to Top Button
   ========================================================================== */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-red);
    color: var(--color-white);
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    z-index: 999;
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    background-color: var(--color-red-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}


/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

/* Laptop & Small Desktop */
@media (max-width: 1200px) {
    .split-layout {
        gap: 40px;
    }
}

/* Tablet (Portrait) */
@media (max-width: 991px) {
    /* Header & Nav */
    .mobile-nav-toggle {
        display: flex;
        position: absolute;
        top: 25px;
        right: 24px;
    }

    #main-header.scrolled .mobile-nav-toggle {
        top: 25px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        flex-direction: column;
        background-color: var(--color-dark-bg);
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
        transition: right 0.4s ease;
        padding-top: 100px;
        align-items: flex-start;
    }

    .nav-menu.open {
        right: 0;
    }

    /* Segments adapt to mobile */
    .nav-segment {
        flex: none;
        width: 100%;
        background-color: transparent;
        justify-content: flex-start;
        padding: 0 40px;
    }

    .nav-green {
        border-left: 4px solid var(--color-green);
        margin-bottom: 20px;
    }

    .nav-red {
        border-left: 4px solid var(--color-red);
    }

    .nav-white {
        display: none; /* Hide center white block on mobile drawer */
    }

    .nav-links {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .nav-item {
        font-size: 1.1rem;
    }

    .logo-wrapper {
        top: 15px;
        left: 24px;
        transform: none;
        width: 60px;
        height: 60px;
        border-radius: var(--radius-circle);
        border-width: 2px;
    }

    #main-header.scrolled .logo-wrapper {
        top: 15px;
        left: 24px;
        transform: none;
        width: 60px;
        height: 60px;
    }

    .header-logo,
    #main-header.scrolled .header-logo {
        width: 42px;
    }

    /* Hero */
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.25rem;
    }

    /* Cards Grid */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    /* Split Layout */
    .split-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .ostrava-side {
        padding-left: 0;
    }

    /* News Grid */
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Merch Grid */
    .merch-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .info-wrapper {
        padding: 40px;
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Mobile (Landscape & Portrait) */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .split-history-section {
        padding: 60px 0;
    }

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

    .form-wrapper {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
