/* Custom editorial styles for Artic Insulation website */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Base typography */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #fefdfb;
    color: #38210c;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation scroll effect */
.nav-scrolled {
    background: rgba(254, 253, 251, 0.98) !important;
    box-shadow: 0 1px 3px rgba(56, 33, 12, 0.1);
}

/* Hero split layout */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

@media (max-width: 1023px) {
    .hero-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .hero-image {
        min-height: 50vh;
    }
}

/* Editorial typography scale */
.headline-large {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.headline-medium {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.2;
}

.headline-small {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    line-height: 1.3;
}

/* Image reveal animation */
.image-reveal {
    position: relative;
    overflow: hidden;
}

.image-reveal::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #fefdfb;
    transform: translateX(0);
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.image-reveal.revealed::after {
    transform: translateX(100%);
}

/* Scroll animations (below fold only) */
@media (prefers-reduced-motion: no-preference) {
    .fade-in-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .fade-in-up.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Primary button with gradient overlay */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.btn-primary:hover::before {
    transform: translateX(0);
}

/* Service card hover effect */
.service-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(56, 33, 12, 0.15);
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Decorative ornament */
.ornament {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #e55a28, #f4ad85);
}

/* Section padding */
.section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: #e55a28;
}

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

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

::-webkit-scrollbar-thumb {
    background: #d14018;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ad2f14;
}

/* Print styles */
@media print {
    nav, .mobile-menu, #contact-form, iframe {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero-split {
        grid-template-columns: 1fr;
    }
}
