/* ===== General Styles ===== */
:root {
    /* Main Colors */
    --primary: rgba(255, 215, 0, 1);
    --secondary: rgba(158, 9, 9, 1);
    --accent: rgba(255, 255, 255, 1);

    /* Text Colors */
    --title: rgba(255, 255, 255, 1);
    --subtitle: rgba(255, 255, 255, 0.4);
    --text: rgba(255, 255, 255, 1);
    --icon: rgba(255, 255, 255, 1);
    --title-inverse: #ffffff;
    --text-inverse: rgba(255, 255, 255, 0.4);

    /* Background Colors */
    --bg-primary: rgba(158, 9, 9, 1);
    --bg-secondary: #f5f8f8;
    --bg-dark: rgba(26, 24, 27, 1);
    --bg-dark-accent: #20364c;
    --border: #eeeeee;

    /* Legacy support */
    --primary-color: rgba(255, 215, 0, 1);
    --secondary-color: rgba(158, 9, 9, 1);
    --dark-color: rgba(26, 24, 27, 1);
    --light-color: #f5f8f8;

    /* Fonts */
    --font-primary: 'Poppins', sans-serif;
    --font-christmas: 'Mountains of Christmas', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
    background-color: var(--bg-secondary);
}

/* ===== Navigation ===== */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-scrolled {
    padding: 0.5rem 0;
    background-color: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: var(--font-christmas);
    font-size: 2rem;
    color: var(--secondary) !important;
    font-weight: bold;
}

.navbar-nav .nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary) !important;
}

.navbar-nav .btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    background: var(--primary);
    color: var(--bg-dark);
    border: 2px solid var(--primary);
    font-weight: 600;
}

.navbar-nav .btn:hover {
    background: transparent;
    color: var(--secondary);
    border-color: var(--secondary);
}

/* Navbar focus/active states cleanup */
.navbar .nav-link:focus,
.navbar .nav-link:focus-visible,
.navbar .nav-link:active,
.navbar .dropdown-toggle:focus,
.navbar .dropdown-toggle:focus-visible,
.navbar .dropdown-toggle:active {
    outline: none !important;
    box-shadow: none !important;
}

.navbar .dropdown-menu .dropdown-item:focus,
.navbar .dropdown-menu .dropdown-item:focus-visible,
.navbar .dropdown-menu .dropdown-item:active {
    outline: none !important;
    box-shadow: none !important;
}

.navbar .nav-link.active,
.navbar .dropdown.show > .nav-link,
.navbar .dropdown.show > .nav-link.dropdown-toggle {
    color: var(--primary) !important;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    min-height: 70vh;
    background: #9e0909;
    background-image: url('/images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: var(--text);
    padding: 48px 0 32px;
}

/* Hero height tweaks */
.hero-section .row.align-items-center.min-vh-100 {
    min-height: 70vh !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(158, 9, 9, 0.85);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--title);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title span {
    color: var(--primary) !important;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons .btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    border: 2px solid var(--primary);
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary:hover {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.hero-buttons .btn-outline-light {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.hero-buttons .btn-outline-light:hover {
    background: var(--accent);
    color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--text);
}

.feature-item i {
    color: var(--primary);
}

.hero-snow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 3;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: var(--primary);
    -webkit-user-select: none;
    user-select: none;
    cursor: default;
    animation: snowfall linear infinite;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

@keyframes snowfall {
    to {
        transform: translateY(100vh);
    }
}

/* ===== Section Styles ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--dark-color);
    opacity: 0.8;
    margin-bottom: 3rem;
}

/* ===== Feature Cards ===== */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(158, 9, 9, 0.15);
    border-color: var(--primary);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature-icon i {
    color: var(--secondary);
}

.feature-card h4 {
    color: var(--secondary);
}

/* ===== Visit Type Switcher ===== */
.visit-type-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    background: white;
    padding: 0.5rem;
    border-radius: 50px;
    border: 2px solid var(--border);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    justify-content: center;
    max-width: 100%;
}

.btn-visit-type {
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    border: none;
    background: transparent;
    color: var(--dark-color);
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
    text-align: center;
    flex: 0 1 auto;
}

.btn-visit-type:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--secondary);
}

.btn-visit-type.active {
    background: var(--secondary);
    color: var(--accent);
    box-shadow: 0 3px 10px rgba(158, 9, 9, 0.3);
}

.btn-visit-type i {
    font-size: 1.2rem;
}

.visit-packages {
    animation: fadeIn 0.5s ease;
}

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

/* ===== Pricing Cards ===== */
.pricing-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(158, 9, 9, 0.15);
    border-color: var(--primary);
}

.pricing-card.featured {
    border: 3px solid var(--primary);
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.2);
}

.badge-popular {
    position: absolute;
    top: 35px;
    right: -50px;
    background: var(--primary);
    color: var(--bg-dark);
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--bg-dark) 100%);
    color: var(--text);
    padding: 2rem;
    text-align: center;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    display: flex;
    justify-content: center;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.price .currency {
    font-size: 1.2rem;
    margin-right: 5px;
}

.price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.duration {
    opacity: 0.9;
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    padding: 2rem;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: var(--secondary);
    margin-right: 0.5rem;
}

.pricing-features .text-muted i {
    color: #ccc;
}

/* ===== Step Cards ===== */
.step-card {
    padding: 2rem;
    height: 100%;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.step-card h4 {
    color: var(--secondary);
}

/* ===== Gallery ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(158, 9, 9, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

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

/* ===== Testimonials ===== */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.testimonial-card .stars {
    color: var(--primary);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author strong {
    display: block;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: #999;
    font-size: 0.9rem;
}

/* ===== Order Form ===== */
.order-form-card {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    border: 2px solid var(--primary);
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

/* ===== Contact Cards ===== */
.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(158, 9, 9, 0.15);
    border-color: var(--primary);
}

.contact-card i {
    color: var(--secondary);
}

.contact-card h4 {
    color: var(--secondary);
}

.contact-card a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
}

.footer h5 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
    color: var(--accent);
}

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

.footer .text-white-50 {
    color: var(--text-inverse) !important;
}

/* ===== Back to Top Button ===== */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    display: none;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

#backToTop:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(158, 9, 9, 0.3);
}

/* ===== Stats Section ===== */
.stats-section .feature-card {
    border: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,215,0,0.08));
    box-shadow: 0 10px 20px rgba(158, 9, 9, 0.18);
}
.stats-section .feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(158, 9, 9, 0.28);
}
.stats-section i {
    color: var(--primary) !important;
    font-size: 3rem; /* ~1.5x większe od standardowych */
}
.stats-section .counter {
    color: var(--secondary);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
}
.stats-section p.text-muted {
    margin-top: 0.25rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

    .pricing-card.featured {
        transform: scale(1);
        margin-top: 1rem;
    }

    .hero-features {
        flex-direction: column;
    }

    .navbar-nav .nav-link {
        margin: 0.25rem 0;
    }

    .hero-section {
        padding-top: calc(96px + constant(safe-area-inset-top));
        padding-top: calc(96px + env(safe-area-inset-top));
        padding-bottom: 28px;
        background-attachment: scroll;
        scroll-margin-top: 96px;
    }
    .hero-section .row.align-items-center.min-vh-100 {
        min-height: 0 !important;
    }
}

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

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

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .order-form-card {
        padding: 1.5rem;
    }

    .hero-section {
        padding-top: calc(112px + constant(safe-area-inset-top));
        padding-top: calc(112px + env(safe-area-inset-top));
        padding-bottom: 24px;
        scroll-margin-top: 112px;
    }
}

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

.hero-image img {
    animation: float 3s ease-in-out infinite;
}

/* ===== Loading Spinner ===== */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
