/* ============================================
   Cleary Summit Cabins — Styles
   Bold editorial | Forest green + off-white
   ============================================ */

/* --- CSS Variables --- */
:root {
    --color-forest: #1a3c2a;
    --color-forest-deep: #0f2418;
    --color-forest-light: #2d5a3f;
    --color-forest-muted: #3d7a56;
    --color-off-white: #f5f2eb;
    --color-cream: #ede8dd;
    --color-warm-gray: #8a8278;
    --color-charcoal: #1a1814;
    --color-text: #2a2520;
    --color-text-light: #6b6358;
    --color-white: #ffffff;
    --color-overlay: rgba(15, 36, 24, 0.72);
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-off-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* --- Typography --- */
.section-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-forest-muted);
    margin-bottom: var(--space-sm);
}

.section-label--light {
    color: rgba(255, 255, 255, 0.6);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-forest-deep);
    margin-bottom: var(--space-lg);
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--color-forest-light);
    border-color: var(--color-forest-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(26, 60, 42, 0.3);
}

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

.btn-light:hover {
    background: var(--color-off-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

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

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

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

.btn-ghost-light:hover {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.08);
}

.btn-outline {
    background: transparent;
    color: var(--color-forest);
    border-color: var(--color-forest);
}

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

.btn-full {
    width: 100%;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(245, 242, 235, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 60, 42, 0.08);
    transition: all var(--transition);
}

.site-header.scrolled {
    background: rgba(245, 242, 235, 0.97);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--color-forest);
    color: var(--color-white);
    font-family: var(--font-serif);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-forest-deep);
    letter-spacing: -0.01em;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.main-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    transition: color var(--transition);
    position: relative;
}

.main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-forest);
    transition: width var(--transition);
}

.main-nav a:not(.btn):hover {
    color: var(--color-forest);
}

.main-nav a:not(.btn):hover::after {
    width: 100%;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--color-forest-deep);
    transition: all var(--transition);
    transform-origin: center;
}

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

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--color-off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.mobile-nav a {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-forest-deep);
}

.mobile-nav .btn {
    font-size: 1rem;
    padding: 1rem 2.5rem;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

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

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 36, 24, 0.55) 0%,
        rgba(15, 36, 24, 0.70) 50%,
        rgba(15, 36, 24, 0.82) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: var(--space-md);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.hero-accent {
    font-style: italic;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.78);
    max-width: 560px;
    margin: 0 auto var(--space-xl);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 255, 255, 0.5);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Intro --- */
.intro {
    padding: var(--space-3xl) 0;
    background: var(--color-off-white);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.intro-text .section-title {
    margin-bottom: var(--space-md);
}

.intro-text p {
    font-size: 1.05rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    aspect-ratio: 3/4;
}

/* --- Cabin --- */
.cabin {
    padding: var(--space-3xl) 0;
    background: var(--color-cream);
}

.cabin-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.cabin-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    aspect-ratio: 4/5;
}

.cabin-content .section-title {
    margin-bottom: var(--space-md);
}

.cabin-content p {
    font-size: 1.05rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.cabin-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.5;
}

.highlight-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-forest-muted);
}

/* --- Amenities --- */
.amenities {
    padding: var(--space-3xl) 0;
    background: var(--color-off-white);
}

.amenities-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-2xl);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.amenity-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    border: 1px solid rgba(26, 60, 42, 0.06);
    transition: all var(--transition);
}

.amenity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(26, 60, 42, 0.08);
    border-color: transparent;
}

.amenity-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-forest);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    color: var(--color-white);
}

.amenity-card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-forest-deep);
    margin-bottom: 0.5rem;
}

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

/* --- Area --- */
.area {
    padding: var(--space-3xl) 0;
    background: var(--color-cream);
}

.area-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--space-2xl);
}

.area-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

.area-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.area-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.area-card--large {
    grid-column: 1 / -1;
}

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

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

.area-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-xl);
    background: linear-gradient(transparent, rgba(15, 36, 24, 0.85));
    color: var(--color-white);
}

.area-card-content h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.area-card-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* --- Booking --- */
.booking {
    position: relative;
    padding: var(--space-3xl) 0;
    overflow: hidden;
}

.booking-bg {
    position: absolute;
    inset: 0;
}

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

.booking-scrim {
    position: absolute;
    inset: 0;
    background: var(--color-overlay);
}

.booking-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.booking-content {
    padding-top: var(--space-lg);
}

.booking-content .section-title {
    margin-bottom: var(--space-md);
}

.booking-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.booking-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition);
}

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

/* Form */
.booking-form-wrap {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.form-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-forest-deep);
    margin-bottom: var(--space-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-warm-gray);
    margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-off-white);
    border: 1.5px solid rgba(26, 60, 42, 0.12);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-forest);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(26, 60, 42, 0.08);
}

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

.form-note {
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-align: center;
    margin-top: var(--space-sm);
}

.form-success {
    display: none;
    text-align: center;
    padding: var(--space-xl);
}

.form-success.active {
    display: block;
}

.form-success svg {
    color: var(--color-forest-muted);
    margin: 0 auto var(--space-md);
}

.form-success h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-forest-deep);
    margin-bottom: 0.75rem;
}

.form-success p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

/* --- Map Section --- */
.map-section {
    padding: var(--space-2xl) 0;
    background: var(--color-off-white);
    text-align: center;
}

.map-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.map-header .section-title {
    margin-bottom: 0;
}

/* --- Footer --- */
.site-footer {
    background: var(--color-forest-deep);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand .logo {
    margin-bottom: var(--space-md);
}

.footer-brand .logo-mark {
    background: rgba(255, 255, 255, 0.15);
}

.footer-brand .logo-text {
    color: var(--color-white);
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    max-width: 280px;
}

.footer-nav h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: var(--space-md);
}

.footer-nav ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-nav a,
.footer-contact a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    transition: color var(--transition);
}

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

.footer-contact li:last-child {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: var(--space-lg);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .intro-grid,
    .cabin-layout,
    .booking-inner {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .intro-image {
        order: -1;
    }
    
    .intro-image img {
        aspect-ratio: 16/10;
    }
    
    .cabin-image-wrap img {
        aspect-ratio: 4/3;
    }
    
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-actions {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .area-grid {
        grid-template-columns: 1fr;
    }
    
    .area-card--large {
        grid-column: auto;
    }
    
    .cabin-highlights {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .booking-form-wrap {
        padding: var(--space-lg);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-brand {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero-content {
        padding-top: var(--space-2xl);
    }
    
    .section-title {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
    }
}
