/* ========================================
   Holiday Valley Ski Patrol — Styles
   ======================================== */

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

:root {
    --forest-dark: #1a3a2a;
    --forest: #2e7d4f;
    --forest-light: #4a9e6f;
    --forest-muted: #6bb88a;
    --off-white: #f5f7f4;
    --off-white-dark: #e8ece6;
    --cream: #fafcfa;
    --text-dark: #1a2e22;
    --text-mid: #3d5a48;
    --text-light: #6b8a74;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(26,58,42,0.08);
    --shadow-md: 0 4px 16px rgba(26,58,42,0.1);
    --shadow-lg: 0 8px 32px rgba(26,58,42,0.12);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
    color: var(--forest-light);
}

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

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 6vw;
    transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
    background: rgba(26, 58, 42, 0.97);
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--white);
}

.nav-logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: rgba(245, 247, 244, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--white);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--forest-dark);
    border-color: var(--forest-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(245, 247, 244, 0.5);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--forest-dark);
    border-color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--forest-dark);
    border-color: var(--white);
}

.btn-light:hover {
    background: var(--off-white-dark);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
}

/* ========================================
   Section Shared
   ======================================== */
.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--forest);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.section-lead {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.7;
    max-width: 640px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

/* ========================================
   Hero
   ======================================== */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    background: var(--off-white);
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 6vw 4rem;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--forest);
    margin-bottom: 1.25rem;
}

.hero-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--forest);
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 0.35rem;
}

.hero-image {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,58,42,0.15) 0%, transparent 60%);
    pointer-events: none;
}

/* ========================================
   About
   ======================================== */
.about {
    padding: 7rem 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 6/7;
}

.about-content .section-lead {
    margin-bottom: 1rem;
}

.about-content p + p {
    margin-top: 1rem;
}

.about-list {
    list-style: none;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.5;
}

.about-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ========================================
   Services
   ======================================== */
.services {
    padding: 7rem 0;
    background: var(--off-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid rgba(46,125,79,0.06);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(46,125,79,0.15);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46,125,79,0.08);
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ========================================
   Safety Banner
   ======================================== */
.safety-banner {
    padding: 7rem 0;
    background: var(--forest-dark);
}

.safety-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.safety-banner .section-eyebrow {
    color: var(--forest-muted);
}

.safety-banner .section-title {
    color: var(--white);
}

.safety-banner .section-lead {
    color: rgba(245,247,244,0.75);
}

.safety-tips {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.safety-tip {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.tip-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--forest-muted);
    line-height: 1;
    min-width: 2rem;
}

.safety-tip span:last-child {
    font-size: 0.95rem;
    color: rgba(245,247,244,0.85);
    line-height: 1.6;
    padding-top: 0.3rem;
}

.safety-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.safety-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 5/6;
}

/* ========================================
   Team
   ======================================== */
.team {
    padding: 7rem 0;
    background: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.team-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 5/6;
    cursor: default;
}

.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover img {
    transform: scale(1.05);
}

.team-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,58,42,0.92) 0%, rgba(26,58,42,0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem;
    transition: background var(--transition);
}

.team-card:hover .team-card-overlay {
    background: linear-gradient(to top, rgba(26,58,42,0.95) 0%, rgba(26,58,42,0.5) 60%, transparent 100%);
}

.team-card-overlay h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.team-card-overlay p {
    font-size: 0.85rem;
    color: rgba(245,247,244,0.8);
    line-height: 1.65;
}

/* ========================================
   Contact
   ======================================== */
.contact {
    padding: 7rem 0;
    background: var(--off-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: start;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--forest);
    margin-bottom: 0.25rem;
}

.contact-item span,
.contact-item a {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.6;
}

.contact-item a:hover {
    color: var(--forest);
    text-decoration: underline;
}

.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-mid);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--off-white-dark);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--cream);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--forest);
    box-shadow: 0 0 0 3px rgba(46,125,79,0.1);
}

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

.form-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(46,125,79,0.08);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--forest-dark);
    margin-top: 0.5rem;
}

.form-success svg {
    flex-shrink: 0;
}

/* ========================================
   Map
   ======================================== */
.map-section {
    background: var(--off-white-dark);
}

.map-section iframe {
    display: block;
    width: 100%;
    height: 350px;
    filter: saturate(0.7) contrast(1.05);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--forest-dark);
    color: rgba(245,247,244,0.7);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.footer-logo span {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links strong,
.footer-contact strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--forest-muted);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    color: rgba(245,247,244,0.7);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0.25rem;
}

.footer-contact a {
    color: rgba(245,247,244,0.7);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(245,247,244,0.1);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(245,247,244,0.45);
}

/* ========================================
   Reveal Animations (progressive enhancement)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .hero-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-text {
        padding: 8rem 5vw 3rem;
    }

    .hero-image {
        min-height: 50vh;
    }

    .about-grid,
    .safety-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image-wrap {
        max-height: 400px;
    }

    .services-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .hero-text {
        padding: 7rem 5vw 2.5rem;
    }

    .hero-headline {
        font-size: 1.85rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-num {
        font-size: 1.5rem;
    }

    .services-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .safety-image {
        order: -1;
    }

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