/* ============================================
   Snowbiz — Home & Repair Services
   Bold Editorial · Emerald + Cream
   ============================================ */

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

:root {
    --emerald-50: #d1fae5;
    --emerald-100: #a7f3d0;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    --cream-50: #fafaf5;
    --cream-100: #f5f5ee;
    --cream-200: #e8e6d8;
    --cream-300: #d4d0be;
    --stone-50: #f8f7f4;
    --stone-100: #f0eeea;
    --stone-200: #e2dfd6;
    --stone-400: #989386;
    --stone-500: #6b6560;
    --stone-600: #4a4540;
    --stone-700: #3a3530;
    --stone-800: #2a2520;
    --stone-900: #1a1510;
    --white: #ffffff;
    --black: #0a0a0a;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.16);
}

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

body {
    font-family: var(--font-sans);
    color: var(--stone-800);
    background: var(--cream-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.1;
    color: var(--stone-900);
}

em {
    font-style: italic;
    font-weight: 400;
}

/* --- Section Labels --- */
.section-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-600);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin-bottom: 20px;
    color: var(--stone-900);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--stone-500);
    max-width: 560px;
    line-height: 1.7;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9375rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn--emerald {
    background: var(--emerald-800);
    color: var(--white);
    border-color: var(--emerald-800);
}
.btn--emerald:hover {
    background: var(--emerald-700);
    border-color: var(--emerald-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--cream {
    background: var(--cream-100);
    color: var(--emerald-900);
    border-color: var(--cream-100);
}
.btn--cream:hover {
    background: var(--cream-200);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--outline-emerald {
    background: transparent;
    color: var(--emerald-800);
    border-color: var(--emerald-800);
}
.btn--outline-emerald:hover {
    background: var(--emerald-800);
    color: var(--white);
}

.btn--outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn--outline-light:hover {
    background: var(--white);
    color: var(--emerald-900);
    border-color: var(--white);
}

.btn--outline-cream {
    background: transparent;
    color: var(--stone-800);
    border-color: var(--stone-300);
}
.btn--outline-cream:hover {
    background: var(--stone-800);
    color: var(--white);
    border-color: var(--stone-800);
}

.btn--small {
    padding: 8px 18px;
    font-size: 0.8125rem;
}

.btn--lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cream-200);
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--stone-900);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__menu a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--stone-600);
    transition: color 0.2s ease;
}

.nav__menu a:hover {
    color: var(--emerald-700);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav__toggle-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--stone-700);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(2) {
    opacity: 0;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--stone-900);
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/5799375/pexels-photo-5799375.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center/cover no-repeat;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(6, 78, 59, 0.92) 0%,
        rgba(6, 95, 70, 0.85) 40%,
        rgba(26, 21, 16, 0.88) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
}

.hero__eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--emerald-100);
    margin-bottom: 24px;
}

.hero__headline {
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.0;
    color: var(--white);
    margin-bottom: 28px;
}

.hero__accent {
    color: var(--emerald-100);
}

.hero__subhead {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: rgba(255,255,255,0.78);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero__trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__trust-item {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.04em;
}

.hero__trust-dot {
    color: rgba(255,255,255,0.3);
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.4);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    z-index: 1;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    padding: 120px 0;
    background: var(--cream-50);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

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

.service-card {
    background: var(--white);
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--emerald-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-50);
    border-radius: var(--radius-sm);
    color: var(--emerald-700);
    margin-bottom: 20px;
}

.service-card__title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--stone-900);
}

.service-card__desc {
    font-size: 0.9375rem;
    color: var(--stone-500);
    line-height: 1.65;
    margin-bottom: 20px;
}

.service-card__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--emerald-700);
    transition: color 0.2s ease;
}

.service-card__link:hover {
    color: var(--emerald-600);
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: 120px 0;
    background: var(--white);
}

.about__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__content .section-label {
    margin-bottom: 16px;
}

.about__content .section-title {
    margin-bottom: 28px;
}

.about__body {
    font-size: 1.0625rem;
    color: var(--stone-500);
    line-height: 1.75;
    margin-bottom: 20px;
}

.about__stats {
    display: flex;
    gap: 24px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--cream-200);
}

.stat__number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--emerald-700);
    line-height: 1;
    margin-bottom: 6px;
}

.stat__label {
    font-size: 0.8125rem;
    color: var(--stone-500);
    line-height: 1.4;
}

.stat-divider {
    width: 1px;
    background: var(--cream-200);
    align-self: stretch;
}

/* ============================================
   WHY US
   ============================================ */
.why-us {
    padding: 120px 0;
    background: var(--emerald-900);
}

.why-us__header {
    text-align: center;
    margin-bottom: 64px;
}

.why-us__header .section-title {
    color: var(--white);
}

.why-us__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.why-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    transition: all 0.3s ease;
}

.why-card:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.why-card__number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255,255,255,0.12);
    line-height: 1;
    margin-bottom: 16px;
}

.why-card__title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.why-card__desc {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    padding: 120px 0;
    background: var(--cream-50);
}

.testimonials__header {
    text-align: center;
    margin-bottom: 64px;
}

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

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.testimonial-card__stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.testimonial-card__quote {
    font-size: 1rem;
    color: var(--stone-600);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-card__footer {
    border-top: 1px solid var(--cream-200);
    padding-top: 20px;
}

.testimonial-card__name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--stone-800);
    margin-bottom: 2px;
}

.testimonial-card__location {
    font-size: 0.8125rem;
    color: var(--stone-400);
}

/* ============================================
   CTA
   ============================================ */
.cta {
    padding: 120px 0;
    background: var(--stone-900);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(5,150,105,0.2) 0%, transparent 70%);
    pointer-events: none;
}

.cta__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta__eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-100);
    margin-bottom: 20px;
}

.cta__headline {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    color: var(--white);
    margin-bottom: 20px;
}

.cta__body {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin-bottom: 40px;
}

.cta__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: 120px 0;
    background: var(--white);
}

.contact__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact__info .section-title {
    margin-bottom: 20px;
}

.contact__body {
    font-size: 1.0625rem;
    color: var(--stone-500);
    line-height: 1.75;
    margin-bottom: 36px;
}

.contact__details {
    list-style: none;
    margin-bottom: 32px;
}

.contact__detail {
    padding: 20px 0;
    border-bottom: 1px solid var(--cream-200);
}

.contact__detail:first-child {
    padding-top: 0;
}

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

.contact__detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--stone-400);
    margin-bottom: 6px;
}

.contact__detail dd {
    font-size: 1rem;
    color: var(--stone-700);
    line-height: 1.6;
}

.contact__detail a {
    color: var(--stone-700);
    transition: color 0.2s ease;
}

.contact__detail a:hover {
    color: var(--emerald-700);
}

.contact__map {
    margin-top: 8px;
    overflow: hidden;
}

.contact__form-wrap {
    background: var(--cream-50);
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-md);
    padding: 40px;
}

.contact__form-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--stone-900);
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--stone-700);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--stone-800);
    background: var(--white);
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--emerald-600);
    box-shadow: 0 0 0 3px rgba(5,150,105,0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--stone-400);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-note {
    font-size: 0.8125rem;
    color: var(--stone-400);
    text-align: center;
    margin-top: 12px;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success svg {
    margin: 0 auto 16px;
}

.form-success h4 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--stone-900);
    margin-bottom: 8px;
}

.form-success p {
    font-size: 0.9375rem;
    color: var(--stone-500);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--stone-900);
    padding: 64px 0 32px;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 32px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.footer__tagline {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    max-width: 280px;
    line-height: 1.6;
}

.footer__nav {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.footer__nav a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s ease;
}

.footer__nav a:hover {
    color: var(--emerald-100);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer__bottom p {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.4);
}

.footer__bottom a {
    color: rgba(255,255,255,0.5);
    transition: color 0.2s ease;
}

.footer__bottom a:hover {
    color: var(--emerald-100);
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials__grid .testimonial-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250,250,245,0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 20px;
        border-bottom: 1px solid var(--cream-200);
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
    }
    
    .nav__menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav__toggle {
        display: flex;
    }
    
    .hero {
        padding: 100px 20px 60px;
        min-height: 100svh;
    }
    
    .hero__actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero__actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .about__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about__image {
        aspect-ratio: 16/10;
    }
    
    .why-us__grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials__grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials__grid .testimonial-card:last-child {
        grid-column: span 1;
    }
    
    .cta__actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta__actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .contact__layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact__form-wrap {
        padding: 28px;
    }
    
    .footer__top {
        flex-direction: column;
        gap: 28px;
    }
    
    .footer__nav {
        gap: 16px;
    }
    
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .services,
    .about,
    .why-us,
    .testimonials,
    .cta,
    .contact {
        padding: 80px 0;
    }
    
    .hero {
        padding: 80px 16px 48px;
    }
    
    .hero__trust {
        flex-direction: column;
        gap: 8px;
    }
    
    .hero__trust-dot {
        display: none;
    }
    
    .about__stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-divider {
        width: 100%;
        height: 1px;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}
