/* ========================================
   Yaak River Resort - Styles
   Palette: Terracotta + Sand
   ======================================== */

:root {
    /* Terracotta & Sand Palette */
    --terracotta-50: #fef7f4;
    --terracotta-100: #fdecea;
    --terracotta-200: #fad7cf;
    --terracotta-300: #f5b5a5;
    --terracotta-400: #ee8a76;
    --terracotta-500: #e06b52;
    --terracotta-600: #d15038;
    --terracotta-700: #ad3f2c;
    --terracotta-800: #8a3426;
    --terracotta-900: #702d22;

    --sand-50: #fdfcfa;
    --sand-100: #faf8f4;
    --sand-200: #f5f0e8;
    --sand-300: #ebe3d5;
    --sand-400: #dbcfb8;
    --sand-500: #c4b49a;
    --sand-600: #a69378;
    --sand-700: #867460;
    --sand-800: #6d5c4d;
    --sand-900: #5c4d42;

    --neutral-50: #fafaf9;
    --neutral-100: #f5f5f4;
    --neutral-200: #e7e5e4;
    --neutral-300: #d6d3d1;
    --neutral-400: #a8a29e;
    --neutral-500: #78716c;
    --neutral-600: #57534e;
    --neutral-700: #44403c;
    --neutral-800: #292524;
    --neutral-900: #1c1917;

    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;

    /* Layout */
    --container-max: 1200px;
    --nav-height: 80px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* 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);
    color: var(--neutral-800);
    background-color: var(--sand-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

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

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(253, 252, 250, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--sand-200);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--neutral-800);
}

.logo-icon {
    color: var(--terracotta-600);
}

.nav-links {
    display: none;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--neutral-600);
    transition: color 0.2s ease;
}

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

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-xs);
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--neutral-700);
    transition: all 0.3s ease;
}

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

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

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

.mobile-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--sand-50);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

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

.mobile-menu-content a {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--neutral-800);
}

.mobile-menu-content a:hover {
    color: var(--terracotta-600);
}

.mobile-phone {
    font-size: 1.1rem;
    color: var(--terracotta-600);
    margin-top: var(--space-md);
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.875rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--terracotta-600);
    color: white;
}

.btn-primary:hover {
    background: var(--terracotta-700);
    transform: translateY(-2px);
}

.btn-white {
    background: white;
    color: var(--neutral-800);
}

.btn-white:hover {
    background: var(--sand-100);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

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

.btn-terracotta {
    background: var(--terracotta-600);
    color: white;
}

.btn-terracotta:hover {
    background: var(--terracotta-700);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(28, 25, 23, 0.4) 0%,
        rgba(28, 25, 23, 0.6) 100%
    );
    z-index: -1;
}

.hero-content {
    text-align: center;
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: white;
    margin-bottom: var(--space-lg);
}

.hero h1 em {
    font-style: italic;
    color: var(--terracotta-300);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
}

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

.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: float 2s ease-in-out infinite;
}

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

/* ========================================
   Section Tags
   ======================================== */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--terracotta-600);
    margin-bottom: var(--space-sm);
}

.section-tag.light {
    color: var(--terracotta-300);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--neutral-800);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.section-header.light h2 {
    color: white;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--neutral-500);
}

.section-subtitle.light {
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   Intro Section
   ======================================== */
.intro {
    padding: var(--space-4xl) 0;
    background: var(--sand-50);
}

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

.intro-text h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    color: var(--neutral-800);
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

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

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

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

@media (min-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ========================================
   Accommodations Section
   ======================================== */
.accommodations {
    padding: var(--space-4xl) 0;
    background: var(--sand-100);
}

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

.cabin-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.cabin-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.cabin-image {
    position: relative;
    aspect-ratio: 3/2;
    overflow: hidden;
}

.cabin-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.cabin-tag {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: 0.375rem 0.75rem;
    background: var(--terracotta-600);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cabin-info {
    padding: var(--space-lg);
}

.cabin-info h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: var(--space-sm);
}

.cabin-info > p {
    font-size: 0.95rem;
    color: var(--neutral-500);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.cabin-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.cabin-features li {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--neutral-600);
}

.cabin-features li svg {
    color: var(--terracotta-500);
}

@media (min-width: 768px) {
    .cabins-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cabins-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   Experience Section
   ======================================== */
.experience {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, var(--neutral-800) 0%, var(--neutral-900) 100%);
    position: relative;
}

.experience::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.activities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    position: relative;
    z-index: 1;
}

.activity-item {
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

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

.activity-item h3 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-sm);
}

.activity-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

@media (min-width: 768px) {
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .activities-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   Location Section
   ======================================== */
.location {
    padding: var(--space-4xl) 0;
    background: var(--sand-50);
}

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

.location-info h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    color: var(--neutral-800);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.location-info > p {
    font-size: 1.05rem;
    color: var(--neutral-600);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.detail-item {
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--sand-200);
}

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

.detail-item strong {
    display: block;
    font-size: 1rem;
    color: var(--neutral-800);
    margin-bottom: 0.25rem;
}

.detail-item span {
    font-size: 0.95rem;
    color: var(--neutral-500);
    line-height: 1.7;
}

.contact-info {
    padding: var(--space-lg);
    background: var(--sand-100);
    border-radius: var(--radius-md);
}

.contact-info p {
    font-size: 0.9rem;
    color: var(--neutral-500);
    margin-bottom: 0.5rem;
}

.phone-link {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--terracotta-600);
    transition: color 0.2s ease;
}

.phone-link:hover {
    color: var(--terracotta-700);
}

.location-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

@media (min-width: 1024px) {
    .location-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .location-map {
        aspect-ratio: auto;
        height: 100%;
        min-height: 400px;
    }
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, var(--terracotta-700) 0%, var(--terracotta-900) 100%);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
}

.contact-content h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    color: white;
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.contact-content > p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

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

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.method-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: white;
    flex-shrink: 0;
}

.contact-method h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-method a,
.contact-method span {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-method a:hover {
    color: white;
}

.contact-form-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.contact-form h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: var(--space-lg);
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-700);
    margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--sand-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--neutral-800);
    background: var(--sand-50);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--terracotta-500);
    background: white;
    box-shadow: 0 0 0 3px rgba(224, 107, 82, 0.1);
}

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

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    text-align: center;
    color: var(--terracotta-600);
}

.form-success svg {
    margin-bottom: var(--space-sm);
}

.form-success p {
    font-size: 1rem;
    color: var(--neutral-600);
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: var(--space-3xl) 0 var(--space-lg);
    background: var(--neutral-900);
    color: white;
}

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

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-top: var(--space-sm);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    margin-bottom: var(--space-md);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

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

.footer-contact p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.phone-link-footer {
    font-size: 1.1rem;
    color: var(--terracotta-400);
    transition: color 0.2s ease;
}

.phone-link-footer:hover {
    color: var(--terracotta-300);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ========================================
   Animations
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}
