/* ============================================
   Chantier Creek Resort — Styles
   ============================================ */

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

:root {
    --forest: #1a3a2a;
    --forest-light: #2a5a3f;
    --forest-dark: #0f2419;
    --cream: #f5f0e8;
    --cream-light: #faf7f2;
    --cream-dark: #e8e0d0;
    --warm: #c8b49a;
    --warm-light: #d4c4a8;
    --text-dark: #1a1a1a;
    --text-mid: #3a3a3a;
    --text-light: #6a6a6a;
    --white: #ffffff;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;
}

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

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

/* ============================================
   Typography
   ============================================ */

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--warm);
    margin-bottom: var(--space-sm);
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 300;
    line-height: 1.15;
    color: var(--forest);
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); }
h4 { font-size: 1.1rem; font-family: var(--font-sans); font-weight: 500; }

p {
    color: var(--text-mid);
    font-size: 1rem;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1rem 2.2rem;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.btn-primary {
    background: var(--forest);
    color: var(--cream-light);
}

.btn-primary:hover {
    background: var(--forest-light);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--cream);
    border: 1px solid rgba(245, 240, 232, 0.3);
}

.btn-ghost:hover {
    border-color: var(--cream);
    background: rgba(245, 240, 232, 0.08);
}

.btn-large {
    padding: 1.3rem 3rem;
    font-size: 0.8rem;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.nav.scrolled {
    background: rgba(245, 240, 232, 0.95);
    backdrop-filter: blur(20px);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--cream-dark);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--cream);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: 0.02em;
    transition: color 0.4s;
}

.nav.scrolled .nav-logo {
    color: var(--forest);
}

.nav-logo-icon {
    color: var(--warm);
}

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

.nav-links a {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cream);
    transition: color 0.3s;
    position: relative;
}

.nav.scrolled .nav-links a {
    color: var(--text-mid);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--warm);
    transition: width 0.3s;
}

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

.nav-cta {
    border: 1px solid rgba(245, 240, 232, 0.4) !important;
    padding: 0.6rem 1.4rem !important;
    transition: all 0.3s !important;
}

.nav-cta:hover {
    background: var(--cream) !important;
    color: var(--forest) !important;
}

.nav.scrolled .nav-cta {
    border-color: var(--forest) !important;
    color: var(--forest) !important;
}

.nav.scrolled .nav-cta:hover {
    background: var(--forest) !important;
    color: var(--cream-light) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle-line {
    width: 22px;
    height: 1px;
    background: var(--cream);
    transition: all 0.3s;
}

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

/* ============================================
   Hero
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    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(
        135deg,
        rgba(15, 36, 25, 0.82) 0%,
        rgba(26, 58, 42, 0.65) 50%,
        rgba(15, 36, 25, 0.55) 100%
    );
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-lg);
    align-items: center;
    flex: 1;
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-xl);
}

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

.hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--warm);
    margin-bottom: var(--space-md);
}

.hero h1 {
    color: var(--cream-light);
    margin-bottom: var(--space-md);
    font-style: italic;
}

.hero-accent {
    font-style: normal;
    color: var(--warm-light);
}

.hero-desc {
    font-size: 1.05rem;
    color: rgba(245, 240, 232, 0.75);
    line-height: 1.8;
    margin-bottom: var(--space-md);
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

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

.hero-card {
    background: rgba(245, 240, 232, 0.07);
    border: 1px solid rgba(245, 240, 232, 0.12);
    padding: var(--space-sm) var(--space-md);
    backdrop-filter: blur(10px);
}

.hero-card-label {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--warm);
    display: block;
    margin-bottom: 0.4rem;
}

.hero-card p,
.hero-card a {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--cream-light);
    line-height: 1.6;
}

.hero-card a:hover {
    color: var(--warm-light);
}

.hero-divider {
    height: 1px;
    background: rgba(245, 240, 232, 0.12);
}

.hero-note {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: rgba(245, 240, 232, 0.55);
    line-height: 1.7;
    font-style: italic;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 1;
}

.hero-scroll span {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.4);
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(245, 240, 232, 0.4), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

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

/* ============================================
   Intro
   ============================================ */

.intro {
    padding: var(--space-2xl) 0;
    background: var(--cream-light);
}

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

.intro-text {
    padding-right: var(--space-md);
}

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

.intro-text p {
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
    line-height: 1.85;
}

.intro-image {
    position: relative;
    overflow: hidden;
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3/4;
}

.intro-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 1px solid var(--cream-dark);
    z-index: -1;
}

/* ============================================
   Rooms
   ============================================ */

.rooms {
    padding: var(--space-2xl) 0;
    background: var(--cream);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-header h2 {
    max-width: 600px;
    margin: 0 auto;
}

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

.room-card {
    background: var(--cream-light);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.room-card:hover {
    transform: translateY(-4px);
}

.room-image {
    overflow: hidden;
    aspect-ratio: 7/5;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

.room-info {
    padding: var(--space-md);
}

.room-info h3 {
    margin-bottom: var(--space-xs);
}

.room-desc {
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: var(--space-sm);
}

.room-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.2rem;
}

.room-features li {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    padding-left: 1rem;
    position: relative;
}

.room-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.4em;
    width: 4px;
    height: 1px;
    background: var(--warm);
}

.rooms-note {
    text-align: center;
    margin-top: var(--space-md);
    font-size: 0.9rem;
    color: var(--text-light);
}

.rooms-note a {
    color: var(--forest);
    border-bottom: 1px solid var(--cream-dark);
    transition: border-color 0.3s;
}

.rooms-note a:hover {
    border-color: var(--forest);
}

/* ============================================
   Experience
   ============================================ */

.experience {
    padding: var(--space-2xl) 0;
    background: var(--cream-light);
}

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

.experience-text h2 {
    margin-bottom: var(--space-lg);
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.exp-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: var(--space-sm);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--cream-dark);
}

.exp-item:first-child {
    padding-top: 0;
}

.exp-num {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--warm);
    padding-top: 0.15em;
}

.exp-item h4 {
    margin-bottom: 0.3rem;
    color: var(--forest);
}

.exp-item p {
    font-size: 0.9rem;
    line-height: 1.75;
}

.experience-images {
    position: relative;
    padding-top: var(--space-lg);
}

.exp-img-main {
    overflow: hidden;
}

.exp-img-main img {
    width: 100%;
    aspect-ratio: 6/7;
    object-fit: cover;
}

.exp-img-small {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    overflow: hidden;
    border: 4px solid var(--cream-light);
}

.exp-img-small img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* ============================================
   Location
   ============================================ */

.location {
    padding: var(--space-2xl) 0;
    background: var(--cream);
}

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

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

.location-info h2 {
    margin-bottom: var(--space-md);
}

.location-info > p {
    font-size: 0.95rem;
    line-height: 1.85;
    margin-bottom: var(--space-lg);
}

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

.loc-detail {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.loc-detail svg {
    color: var(--warm);
    flex-shrink: 0;
    margin-top: 0.2em;
}

.loc-detail strong {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--forest);
    margin-bottom: 0.3rem;
}

.loc-detail span,
.loc-detail a {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.7;
}

.loc-detail a {
    border-bottom: 1px solid var(--cream-dark);
    transition: border-color 0.3s;
}

.loc-detail a:hover {
    border-color: var(--forest);
}

.location-map {
    min-height: 450px;
    background: var(--cream-dark);
    overflow: hidden;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    filter: saturate(0.6) contrast(1.05);
}

/* ============================================
   CTA
   ============================================ */

.cta {
    padding: var(--space-2xl) 0;
    background: var(--forest);
    text-align: center;
}

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

.cta .section-eyebrow {
    color: var(--warm);
}

.cta h2 {
    color: var(--cream-light);
    margin-bottom: var(--space-sm);
}

.cta > .container > .cta-inner > p {
    color: rgba(245, 240, 232, 0.65);
    margin-bottom: var(--space-md);
    font-size: 1.05rem;
}

.cta .btn-primary {
    background: var(--cream-light);
    color: var(--forest);
}

.cta .btn-primary:hover {
    background: var(--warm-light);
}

.cta-address {
    margin-top: var(--space-sm);
    font-size: 0.85rem;
    color: rgba(245, 240, 232, 0.4);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    padding: var(--space-lg) 0;
    background: var(--forest-dark);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--cream-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-icon {
    color: var(--warm);
}

.footer-brand p {
    font-size: 0.8rem;
    color: rgba(245, 240, 232, 0.45);
    line-height: 1.7;
    margin-top: 0.4rem;
}

.footer-phone {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--cream-light);
    border-bottom: 1px solid rgba(245, 240, 232, 0.2);
    padding-bottom: 2px;
    transition: border-color 0.3s;
}

.footer-phone:hover {
    border-color: var(--warm);
    color: var(--warm-light);
}

.footer-copy p {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: rgba(245, 240, 232, 0.3);
    text-transform: uppercase;
}

/* ============================================
   Reveal animations
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

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

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }
    
    .hero-aside {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .hero-card {
        flex: 1;
        min-width: 200px;
    }
    
    .hero-divider {
        display: none;
    }
    
    .intro-layout,
    .experience-layout,
    .location-layout {
        grid-template-columns: 1fr;
    }
    
    .intro-text {
        padding-right: 0;
    }
    
    .intro-image {
        order: -1;
        max-height: 50vh;
    }
    
    .intro-image::after {
        display: none;
    }
    
    .experience-images {
        order: -1;
        padding-top: 0;
        max-height: 50vh;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--forest-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-md) !important;
        transition: right 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-links a {
        font-size: 0.9rem;
        color: var(--cream-light) !important;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active .nav-toggle-line:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }
    
    .nav-toggle.active .nav-toggle-line:nth-child(2) {
        transform: rotate(-45deg) translate(-4px, -4px);
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero h1 {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }
    
    .hero-aside {
        flex-direction: column;
    }
    
    .exp-img-small {
        display: none;
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 4rem;
        --space-2xl: 5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
        width: 100%;
    }
}
