/* ========================================
   NELIS LODGE — Design System
   Palette: Terracotta + Sand
   ======================================== */

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

:root {
    --terracotta: #C0603C;
    --terracotta-dark: #A84E2E;
    --terracotta-light: #D4845E;
    --sand: #F4E8DC;
    --sand-light: #FAF3EB;
    --sand-dark: #E8D5C0;
    --charcoal: #1E1E1E;
    --charcoal-light: #3A3A3A;
    --cream: #FDF9F5;
    --white: #FFFFFF;
    --text-dark: #1E1E1E;
    --text-medium: #4A4A4A;
    --text-light: #7A7A7A;
    --text-on-dark: #F4E8DC;
    --text-on-dark-muted: #C8B8A8;

    --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: 12px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--cream);
    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: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-sm);
    background: var(--terracotta);
    color: var(--white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 500;
}
.skip-link:focus {
    top: var(--space-sm);
}

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

.btn--terracotta {
    background: var(--terracotta);
    color: var(--white);
    border-color: var(--terracotta);
}
.btn--terracotta:hover {
    background: var(--terracotta-dark);
    border-color: var(--terracotta-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(192, 96, 60, 0.3);
}

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

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

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

.btn--sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
}

.btn--lg {
    padding: 1.125rem 2.5rem;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
}

/* ========== SECTION LABELS ========== */
.section-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: var(--space-sm);
}
.section-label--light {
    color: var(--sand-dark);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}
.section-title--light {
    color: var(--white);
}

/* ========== HEADER ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(253, 249, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(192, 96, 60, 0.1);
    transition: all var(--transition);
}
.site-header.scrolled {
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}
.logo--light {
    color: var(--white);
}

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

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}
.nav-list a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-medium);
    letter-spacing: 0.02em;
    transition: color var(--transition);
    position: relative;
}
.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--terracotta);
    transition: width var(--transition);
}
.nav-list a:hover {
    color: var(--terracotta);
}
.nav-list a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: var(--space-sm);
}
.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: all var(--transition);
}
.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    z-index: 99;
    padding: var(--space-xl) var(--space-md);
    overflow-y: auto;
}
.mobile-menu.active {
    display: block;
    animation: fadeSlide 0.3s ease;
}
@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.mobile-nav-list a {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: color var(--transition);
}
.mobile-nav-list a:hover {
    color: var(--terracotta);
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--charcoal);
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(30, 30, 30, 0.4) 0%,
        rgba(30, 30, 30, 0.2) 40%,
        rgba(30, 30, 30, 0.6) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
    padding-top: 72px;
}
.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sand-dark);
    margin-bottom: var(--space-md);
}
.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5.5vw, 4.5rem);
    font-weight: 500;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}
.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.1875rem);
    color: var(--text-on-dark-muted);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}
.hero-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}
.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-on-dark-muted);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--sand-dark), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.7); }
}

/* ========== INTRO ========== */
.intro {
    padding: var(--space-3xl) 0;
    background: var(--cream);
}
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}
.intro-text .section-title {
    margin-bottom: var(--space-md);
}
.intro-text p {
    font-size: 1.0625rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}
.intro-image {
    position: relative;
}
.intro-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-md);
}
.intro-image-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 200px;
    height: 200px;
    background: var(--terracotta);
    border-radius: var(--radius-md);
    z-index: -1;
    opacity: 0.15;
}

/* ========== ROOMS ========== */
.rooms {
    padding: var(--space-3xl) 0;
    background: var(--sand-light);
}
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-xl);
}
.section-header .section-title {
    margin-bottom: var(--space-sm);
}
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}
.room-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}
.room-card-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}
.room-card-body {
    padding: var(--space-md);
}
.room-card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
}
.room-card-desc {
    font-size: 0.9375rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}
.room-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem 1rem;
}
.room-features li {
    font-size: 0.8125rem;
    color: var(--text-light);
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1rem;
}
.room-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.625rem;
    width: 4px;
    height: 4px;
    background: var(--terracotta);
    border-radius: 50%;
}
.rooms-cta {
    text-align: center;
}

/* ========== EXPERIENCE ========== */
.experience {
    padding: var(--space-3xl) 0;
    background: var(--cream);
}
.experience-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}
.experience-text .section-title {
    margin-bottom: var(--space-md);
}
.experience-intro {
    font-size: 1.0625rem;
    color: var(--text-medium);
    line-height: 1.8;
}
.experience-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}
.feature {
    display: flex;
    gap: var(--space-md);
}
.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--sand);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta);
}
.feature-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.375rem;
}
.feature p {
    font-size: 0.9375rem;
    color: var(--text-medium);
    line-height: 1.7;
}

/* ========== GALLERY STRIP ========== */
.gallery-strip {
    overflow: hidden;
    padding: var(--space-xl) 0;
    background: var(--sand-light);
}
.gallery-scroll {
    display: flex;
    gap: var(--space-sm);
    animation: galleryScroll 40s linear infinite;
    width: max-content;
}
@keyframes galleryScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.gallery-scroll img {
    height: 260px;
    width: 400px;
    object-fit: cover;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

/* ========== LOCATION ========== */
.location {
    padding: var(--space-3xl) 0;
    background: var(--cream);
}
.location-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}
.location-desc {
    font-size: 1.0625rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}
.location-highlights {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.loc-highlight {
    display: flex;
    flex-direction: column;
    padding: var(--space-sm) var(--space-md);
    background: var(--sand-light);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--terracotta);
}
.loc-highlight-label {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-dark);
}
.loc-highlight-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.125rem;
}
.location-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* ========== CTA ========== */
.cta {
    position: relative;
    padding: var(--space-3xl) 0;
    overflow: hidden;
}
.cta-bg {
    position: absolute;
    inset: 0;
}
.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.85) 0%, rgba(168, 78, 46, 0.75) 100%);
}
.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}
.cta-content .section-title {
    margin-bottom: var(--space-sm);
}
.cta-text {
    font-size: 1.0625rem;
    color: var(--text-on-dark-muted);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}
.cta-phone {
    color: var(--sand);
    font-weight: 600;
    border-bottom: 1px solid rgba(244, 232, 220, 0.3);
    transition: border-color var(--transition);
}
.cta-phone:hover {
    border-color: var(--sand);
}
.cta-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== CONTACT ========== */
.contact {
    padding: var(--space-3xl) 0;
    background: var(--sand-light);
}
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}
.contact-desc {
    font-size: 1.0625rem;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}
.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.contact-detail {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}
.contact-detail-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--terracotta);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}
.contact-detail strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}
.contact-detail p {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}
.contact-detail a {
    color: var(--terracotta);
    transition: color var(--transition);
}
.contact-detail a:hover {
    color: var(--terracotta-dark);
}

/* Form */
.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}
.form-group {
    margin-bottom: var(--space-sm);
}
.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--text-dark);
    background: var(--sand-light);
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--terracotta);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(192, 96, 60, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.form-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: var(--space-sm);
    padding: var(--space-sm);
    background: #E8F5E9;
    border-radius: var(--radius-sm);
    color: #2E7D32;
    font-size: 0.9375rem;
    font-weight: 500;
}
.form-success svg {
    flex-shrink: 0;
}

/* ========== FOOTER ========== */
.site-footer {
    background: var(--charcoal);
    color: var(--text-on-dark);
    padding: var(--space-2xl) 0 var(--space-md);
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(244, 232, 220, 0.1);
}
.footer-brand {
    max-width: 280px;
}
.footer-tagline {
    font-size: 0.9375rem;
    color: var(--text-on-dark-muted);
    line-height: 1.7;
    margin-top: var(--space-sm);
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.footer-links a {
    font-size: 0.9375rem;
    color: var(--text-on-dark-muted);
    transition: color var(--transition);
}
.footer-links a:hover {
    color: var(--sand);
}
.footer-contact p {
    font-size: 0.9375rem;
    color: var(--text-on-dark-muted);
    line-height: 1.7;
}
.footer-contact a {
    color: var(--sand-dark);
    transition: color var(--transition);
}
.footer-contact a:hover {
    color: var(--white);
}
.footer-bottom {
    padding-top: var(--space-md);
    text-align: center;
}
.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--text-on-dark-muted);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .room-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-list,
    .nav-actions .btn {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }

    .hero-headline {
        font-size: clamp(1.875rem, 7vw, 2.75rem);
    }
    .hero-sub {
        font-size: 1rem;
    }

    .intro-grid,
    .experience-layout,
    .location-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    .intro-image {
        order: -1;
    }
    .intro-image img {
        height: 320px;
    }
    .intro-image-accent {
        display: none;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
    }
    .room-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }
    .room-card-image img {
        height: 240px;
    }

    .gallery-scroll img {
        height: 200px;
        width: 300px;
    }

    .location-map {
        height: 300px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    .footer-brand {
        max-width: 100%;
    }

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

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .gallery-scroll {
        animation: none;
    }
}
