/* ========================================
   CSS Variables & Root Styles
   ======================================== */
:root {
    /* Colors */
    --primary-color: #1a5f7a;
    --secondary-color: #57c5b6;
    --accent-color: #159895;
    --dark-color: #0f2a35;
    --light-color: #f5f9fa;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --overlay-dark: rgba(15, 42, 53, 0.7);
    --overlay-light: rgba(255, 255, 255, 0.9);
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 20px;
    --container-max-width: 1200px;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition-smooth);
    padding: 20px 0;
}

.nav.scrolled {
    background: rgba(15, 42, 53, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 65px;
    transition: var(--transition-smooth);
}

.nav.scrolled .nav-logo img {
    height: 50px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    padding: 5px 0;
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-light);
    transition: var(--transition-smooth);
}

/* Navigation Weather Display */
.nav-weather {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(87, 197, 182, 0.15);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-weather .weather-temp,
.nav-weather .weather-loading {
    color: #ffffff !important;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

/* ========================================
   Section Base Styles
   ======================================== */
.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.section-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
    z-index: 1;
}

.content-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--section-padding);
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text-light);
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-intro {
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.section-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.lead-text {
    font-size: 1.3rem;
    line-height: 1.9;
    color: var(--text-dark);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    letter-spacing: 0.3px;
}

.lead-text strong {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.05em;
}

.section-intro strong {
    color: var(--accent-color);
    font-weight: 700;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    min-height: 100vh;
    position: relative;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.8) 0%, rgba(21, 152, 149, 0.6) 100%);
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.logo-container {
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

.hero-logo {
    max-width: 300px;
    margin: 0 auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease-out 0.3s both;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 10px;
    animation: fadeInUp 1s ease-out 0.5s both;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.hero-date {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--secondary-color);
    animation: fadeInUp 1s ease-out 0.7s both;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* Countdown Timer */
.countdown-container {
    margin: 30px auto;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px 10px;
    text-align: center;
    border: 2px solid rgba(87, 197, 182, 0.3);
}

.countdown-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.countdown-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.countdown-message {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-align: center;
}

/* ========================================
   Buttons
   ======================================== */
.cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--secondary-color);
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 20px rgba(87, 197, 182, 0.4);
    animation: fadeInUp 1s ease-out 0.9s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(87, 197, 182, 0.6);
    background: var(--accent-color);
}

.cta-button.large {
    padding: 22px 60px;
    font-size: 1.3rem;
}

/* ========================================
   Section Dividers
   ======================================== */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--secondary-color) 50%, transparent 100%);
    margin: 0;
}

.section-divider.thick {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-color);
}

.section-divider.thick.dark {
    background: var(--dark-color);
}

.section-divider.thick::after {
    content: '';
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--secondary-color) 50%,
        transparent 100%
    );
    border-radius: 2px;
}

/* ========================================
   Content Sections
   ======================================== */
.content-section {
    background: var(--dark-color);
}

.charity-highlight {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 15px;
    text-align: center;
}

.charity-highlight p {
    color: var(--text-light);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-section {
    background: var(--light-color);
    padding: 100px 20px;
}

.faq-section .section-title {
    color: var(--dark-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.faq-question {
    width: 100%;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark-color);
    text-align: left;
    transition: var(--transition-smooth);
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: var(--transition-smooth);
    font-weight: 300;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 30px 25px 30px;
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ========================================
   Map Section
   ======================================== */
.map-section {
    background: var(--light-color);
    padding: 100px 0;
}

.map-section .content-container {
    max-width: 1400px;
    padding: 0 20px;
}

.map-section .section-title {
    color: var(--dark-color);
}

.map-section .section-intro {
    color: var(--text-dark);
}

.map-container {
    margin-top: 50px;
    max-width: 100%;
    padding: 0;
}

#trail-map {
    height: 600px;
    width: 100%;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.map-placeholder {
    background: white;
    border: 2px dashed var(--secondary-color);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder p {
    padding: 20px;
}

/* ========================================
   Saunas Section
   ======================================== */
.saunas-section {
    background: var(--light-color);
    padding: 100px 20px;
}

.saunas-section .content-container {
    max-width: 1600px;
}

.saunas-section .section-title {
    color: var(--dark-color);
}

.saunas-section .section-intro {
    color: var(--text-dark);
}

.saunas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.sauna-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.sauna-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.sauna-image {
    position: relative;
    padding-bottom: 75%;
    overflow: hidden;
}

.sauna-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-slow);
}

/* Only apply contain to logo images */
.sauna-card.logo-card .sauna-image img {
    object-fit: contain;
    padding: 20px;
}

/* Suvi Sauna - background color fill */
.saunas-grid .sauna-card:nth-child(4) .sauna-image {
    background-color: #9b5e4b;
}

/* Remove padding for specific logos that have their own whitespace */
.sauna-card:first-child .sauna-image img {
    padding: 0;
    object-fit: cover;
}

.sauna-card:hover .sauna-image img {
    transform: scale(1.1);
}

.sauna-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(15, 42, 53, 0.95) 0%, rgba(15, 42, 53, 0.7) 70%, transparent 100%);
    color: var(--text-light);
    transition: var(--transition-smooth);
}

.sauna-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.sauna-overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.learn-more {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 5px;
    transition: var(--transition-smooth);
}

.sauna-card:hover .learn-more {
    transform: translateX(5px);
}

/* ========================================
   Details Section
   ======================================== */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.detail-item {
    text-align: center;
    padding: 30px;
    background: rgba(87, 197, 182, 0.1);
    border-radius: 15px;
}

.detail-item h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.detail-item p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ========================================
   Tickets Section
   ======================================== */
.tickets-section {
    background: var(--dark-color);
}

.ticket-cta {
    text-align: center;
    margin-top: 50px;
}

.ticket-note {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-style: italic;
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    background: var(--light-color);
    padding: 100px 20px;
}

.about-section .section-title {
    color: var(--dark-color);
}

.about-section .lead-text {
    color: var(--text-dark);
    margin-bottom: 60px;
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.founder-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    text-align: center;
}

.founder-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.founder-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--dark-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.founder-role {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.founder-card p:not(.founder-role) {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--dark-color);
    color: var(--text-light);
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo img {
    max-width: 200px;
    opacity: 0.9;
}

.footer-info {
    text-align: center;
}

.footer-info p {
    margin: 10px 0;
    opacity: 0.8;
}

/* ========================================
   Enhancement Features
   ======================================== */
/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 0 0 5px 0;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Weather Widget Section */
.weather-widget-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 80px 20px;
}

.weather-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-light);
}

.weather-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

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

.weather-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.weather-description {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.95;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.weather-stat {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.weather-stat:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 10px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

/* Sauna Challenge Tracker */
.challenge-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 40px auto;
    max-width: 600px;
}

.challenge-card h3 {
    color: var(--dark-color);
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    transition: width 0.5s ease;
}

.progress-text {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 600;
    margin: 15px 0;
}

.completion-message {
    text-align: center;
    color: var(--accent-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 20px;
}

.encourage-message {
    text-align: center;
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-top: 20px;
}

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

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

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 968px) {
    :root {
        --section-padding: 80px 20px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(15, 42, 53, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition-smooth);
        gap: 30px;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-content {
        padding: 40px 30px;
    }
    
    .saunas-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-logo {
        max-width: 200px;
    }
    
    .countdown-grid {
        gap: 10px;
    }
    
    .countdown-item {
        padding: 15px 5px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .lead-text {
        font-size: 1.1rem;
    }
    
    .section-content {
        padding: 30px 20px;
    }
    
    .cta-button {
        padding: 15px 35px;
        font-size: 1rem;
    }
    
    .cta-button.large {
        padding: 18px 40px;
        font-size: 1.1rem;
    }
    
    .details-grid,
    .founders-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
