/* Main Styles for Sip Nordic Website */

/* Base Styles */
body { 
    font-family: 'Inter', sans-serif; 
}

/* Hero Video Styles */
.hero-video { 
    position: relative; 
    overflow: hidden; 
    background: #000;
}

.hero-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

/* Text Effects */
.text-gradient { 
    background: linear-gradient(135deg, #16a34a, #15803d); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

/* Navigation */
.nav-blur { 
    backdrop-filter: blur(10px); 
    background: rgba(34, 197, 94, 0.7); 
}

/* Cards and Hover Effects */
.card-hover { 
    transition: all 0.3s ease; 
}

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

/* Calculator Styles */
.calculator-input { 
    transition: all 0.2s ease; 
}

.calculator-input:focus { 
    transform: scale(1.02); 
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1); 
}

.price-highlight { 
    background: linear-gradient(135deg, #16a34a, #15803d); 
}

.section-active { 
    color: #15803d; 
    font-weight: 600; 
}

.calculator-section { 
    border-left: 4px solid #22c55e; 
    background: linear-gradient(135deg, #f0fdf4, #ffffff); 
}

/* Input Groups */
.input-group { 
    position: relative; 
}

.input-icon { 
    position: absolute; 
    left: 12px; 
    top: 50%; 
    transform: translateY(-50%); 
    color: #22c55e; 
}

/* Calculator Cards */
.calculator-card { 
    background: linear-gradient(135deg, #ffffff, #f8fafc); 
    border: 1px solid #e5e7eb; 
}

.result-card { 
    background: linear-gradient(135deg, #dcfce7, #bbf7d0); 
}

/* Step Indicators */
.step-indicator { 
    background: white; 
    color: #1f2937; 
    border: 2px solid #e5e7eb; 
    transition: all 0.3s ease; 
}

.step-indicator.active { 
    background: #22c55e; 
    color: white; 
    border-color: #22c55e; 
    transform: scale(1.1); 
}

.step-indicator.completed { 
    background: #22c55e; 
    color: white; 
    border-color: #22c55e; 
}

.step-line { 
    background: #d1d5db; 
    transition: all 0.3s ease; 
}

.step-line.active { 
    background: #22c55e; 
}

/* Calculator Pages */
.calculator-page { 
    display: none; 
}

.calculator-page.active { 
    display: block; 
}

/* Illustration Cards */
.illustration-card { 
    background: linear-gradient(135deg, #f8fafc, #ffffff); 
    border: 2px solid #e5e7eb; 
}

.illustration-card.selected { 
    border-color: #22c55e; 
    background: linear-gradient(135deg, #f0fdf4, #ffffff); 
}

/* Calculator Layout */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.calculator-box {
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.calculator-box-full {
    grid-column: 1 / -1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation Styles */
.card-hover {
    transition: all 0.3s ease;
}

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

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes */
.bg-gradient-green {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.text-green-custom {
    color: #15803d;
}

.border-green-custom {
    border-color: #22c55e;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .calculator-section {
        padding: 1.5rem;
    }
    
    .step-indicator {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.875rem;
    }
    
    /* Mobile Hero Video Layout - Video visible with menu bar at top */
    .hero-video {
        position: relative;
        height: 100vh; /* Full viewport height */
        overflow: hidden;
        background: #000;
    }
    
    .hero-video video {
        position: absolute;
        top: 80px; /* Start video below the menu bar */
        left: 0;
        width: 100%;
        height: calc(100vh - 80px); /* Video takes remaining height after menu bar */
        z-index: 1;
        object-fit: cover;
        object-position: center center;
    }
    
    .hero-content {
        position: relative;
        z-index: 3;
        margin-top: 100vh; /* Push content below the video section */
        padding: 2rem 1rem;
        width: 100%;
        background: white;
        text-align: center;
        min-height: auto;
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        color: #1f2937;
    }
    
    .hero-content p {
        font-size: 1rem;
        color: #6b7280;
    }
    
    /* Ensure proper video container positioning */
    .hero-video .hero-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Fix video positioning for better visibility */
    .hero-video {
        background: #000;
    }
    
    /* Ensure video fills the container properly */
    .hero-video video {
        min-width: 100%;
        min-height: calc(100vh - 80px);
    }
    
    /* Fix text colors for visibility on white background */
    .hero-content .text-white {
        color: #1f2937 !important;
    }
    
    .hero-content .text-green-400 {
        color: #16a34a !important;
    }
    
    .hero-content .opacity-90 {
        color: #6b7280 !important;
    }
}

/* Tablet Responsive Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-video {
        min-height: 100vh;
        position: relative;
        overflow: hidden;
    }
    
    .hero-video video {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        height: 100%;
        transform: translate(-50%, -50%);
        z-index: 1;
        object-fit: cover;
        object-position: center center;
    }
    
    .hero-content {
        position: relative;
        z-index: 3;
        padding-top: 80px;
        min-height: calc(100vh - 80px);
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .calculator-box {
        min-height: 250px;
    }
    
    .calculator-section {
        padding: 1rem;
    }
    
    /* Mobile layout - video visible, content below */
    .hero-content {
        padding: 1rem;
        margin-top: 100vh; /* Content appears after video section */
        background: white;
        text-align: center;
        min-height: auto;
        display: block;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
        color: #1f2937;
    }
    
    /* Better mobile video positioning */
    .hero-video video {
        top: 80px; /* Video starts below menu bar */
        height: calc(100vh - 80px); /* Video takes remaining viewport height */
        min-height: calc(100vh - 80px);
        transform: none;
        position: absolute;
        left: 0;
        width: 100%;
    }
    
    /* Ensure content stays within viewport */
    .hero-content .grid {
        width: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    /* Center all hero content */
    .hero-content .space-y-8 {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    /* Small mobile adjustments */
    .hero-content .text-5xl {
        font-size: 2.5rem;
    }
    
    .hero-content .text-xl {
        font-size: 1rem;
    }
    
    /* Ensure buttons stack properly */
    .hero-content .flex-col {
        width: 100%;
        max-width: 300px;
    }
    
    /* Fix text colors for visibility on white background */
    .hero-content .text-white {
        color: #1f2937 !important;
    }
    
    .hero-content .text-green-400 {
        color: #16a34a !important;
    }
    
    .hero-content .opacity-90 {
        color: #6b7280 !important;
    }
}