/* ============================================
   Glacier Pk Lodge Rest — Stylesheet
   Clean minimalist · Burgundy + Blush
   ============================================ */

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

:root {
    --burgundy: #722F37;
    --burgundy-deep: #5A252C;
    --burgundy-light: #8B3A42;
    --blush: #F5E6E0;
    --blush-light: #FAF3F0;
    --blush-mid: #E8D5CE;
    --cream: #FDFBF9;
    --white: #FFFFFF;
    --charcoal: #1A1A1A;
    --text: #2C2C2C;
    --text-light: #5A5A5A;
    --text-muted: #8A8A8A;
    --line: rgba(114, 47, 55, 0.12);
    --line-strong: rgba(114, 47, 55, 0.25);
    
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    
    --nav-height: 72px;
    --container-max: 1200px;
    --radius: 4px;
}

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

/* --- Container --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
    background: rgba(253, 251, 249, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--line);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.02em;
    transition: color 0.4s ease;
}

.nav.scrolled .nav-brand {
    color: var(--burgundy);
}

.nav-brand-text {
    display: inline;
}

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

.nav-link {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

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

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

.nav.scrolled .nav-link {
    color: var(--text-light);
}

.nav.scrolled .nav-link:hover {
    color: var(--burgundy);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--white);
    color: var(--burgundy);
    border-color: var(--white);
}

.nav.scrolled .nav-cta {
    color: var(--burgundy);
    border-color: var(--burgundy);
}

.nav.scrolled .nav-cta:hover {
    background: var(--burgundy);
    color: var(--white);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle-line {
    width: 22px;
    height: 1.5px;
    background: var(--white);
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav.scrolled .nav-toggle-line {
    background: var(--burgundy);
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.72) 0%,
        rgba(90, 37, 44, 0.55) 50%,
        rgba(26, 26, 26, 0.40) 100%
    );
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 140px 24px 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    flex: 1;
}

.hero-content {
    max-width: 520px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blush);
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero-sub {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 40px;
    max-width: 440px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: var(--burgundy-deep);
    border-color: var(--burgundy-deep);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(114, 47, 55, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
    background: var(--white);
    color: var(--burgundy);
    border-color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--burgundy);
    border-color: var(--burgundy);
    margin-top: 8px;
}

.btn-outline:hover {
    background: var(--burgundy);
    color: var(--white);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 0.88rem;
}

/* Hero Image */
.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 1px solid var(--burgundy);
    border-radius: var(--radius);
    opacity: 0.3;
    z-index: -1;
}

/* Hero Scroll */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* --- Section Divider --- */
.section-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--line);
}

.divider-icon {
    color: var(--burgundy);
    opacity: 0.5;
    flex-shrink: 0;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-eyebrow {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 14px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--charcoal);
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-light);
}

/* --- Rooms --- */
.rooms {
    padding: 100px 0;
}

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

.room-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    transition: all 0.4s ease;
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(114, 47, 55, 0.1);
    border-color: var(--line-strong);
}

.room-card-img {
    overflow: hidden;
    height: 220px;
}

.room-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.room-card:hover .room-card-img img {
    transform: scale(1.04);
}

.room-card-body {
    padding: 28px;
}

.room-card-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.room-card-desc {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 18px;
}

.room-card-amenities {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.room-card-amenities li {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.room-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--burgundy);
    transition: gap 0.3s ease;
}

.room-card-cta:hover {
    gap: 10px;
}

/* --- Experience --- */
.experience {
    padding: 100px 0;
    background: var(--blush-light);
}

.experience-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.experience-desc {
    font-size: 0.98rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--text-light);
    margin-bottom: 16px;
}

.exp-img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
}

.exp-img-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

.exp-img-grid img:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
    height: 340px;
}

.exp-img-grid img:nth-child(2) {
    height: 160px;
}

.exp-img-grid img:nth-child(3) {
    height: 160px;
}

/* --- Amenities --- */
.amenities {
    padding: 100px 0;
}

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

.amenity {
    text-align: center;
    padding: 32px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.amenity:hover {
    border-color: var(--burgundy);
    background: var(--blush-light);
}

.amenity-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
    opacity: 0.8;
}

.amenity-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.amenity-desc {
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-light);
}

/* --- Location --- */
.location {
    padding: 100px 0;
    background: var(--blush-light);
}

.location-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
}

.location-info {
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.location-desc {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--text-light);
    margin-bottom: 28px;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.location-detail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text);
}

.location-detail svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--burgundy);
    opacity: 0.7;
}

.location-detail a {
    color: var(--burgundy);
    transition: color 0.3s ease;
}

.location-detail a:hover {
    color: var(--burgundy-deep);
    text-decoration: underline;
}

.location-map {
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 400px;
    border: 1px solid var(--line);
}

.location-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* --- CTA --- */
.cta {
    padding: 100px 0;
    background: var(--burgundy);
    text-align: center;
}

.cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.cta-eyebrow {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--white);
    margin-bottom: 18px;
    line-height: 1.2;
}

.cta-desc {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 36px;
}

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

.cta .btn-primary:hover {
    background: var(--blush-light);
    border-color: var(--blush-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-note {
    margin-top: 20px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.02em;
}

/* --- Footer --- */
.footer {
    background: var(--charcoal);
    padding: 48px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--white);
}

.footer-logo {
    color: var(--burgundy-light);
}

.footer-info {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
}

.footer-info a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

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

.footer-copy {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.02em;
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Default state for reveal elements — visible for no-JS */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal.animate-on-scroll {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.animate-on-scroll.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-sub {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 480px;
        margin: 0 auto;
    }
    
    .hero-image img {
        height: 380px;
    }
    
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .experience-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .location-layout {
        grid-template-columns: 1fr;
    }
    
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        transition: right 0.4s ease;
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-link {
        color: var(--text) !important;
        font-size: 0.9rem;
    }
    
    .nav-link:hover {
        color: var(--burgundy) !important;
    }
    
    .nav-cta {
        color: var(--burgundy) !important;
        border-color: var(--burgundy) !important;
    }
    
    .nav-cta:hover {
        background: var(--burgundy) !important;
        color: var(--white) !important;
    }
    
    .hero-inner {
        padding: 120px 24px 80px;
    }
    
    .hero-headline {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }
    
    .hero-image img {
        height: 280px;
    }
    
    .hero-scroll {
        display: none;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .exp-img-grid {
        grid-template-columns: 1fr;
    }
    
    .exp-img-grid img:nth-child(1) {
        grid-column: auto;
        grid-row: auto;
        height: 240px;
    }
    
    .exp-img-grid img:nth-child(2),
    .exp-img-grid img:nth-child(3) {
        height: 200px;
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .section-divider {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .btn-lg {
        padding: 16px 28px;
        font-size: 0.82rem;
    }
}
