/* ========================================
   Otter Point Cabin — Styles
   Palette: Terracotta + Sand
   ======================================== */

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

:root {
    --terracotta: #B8613A;
    --terracotta-dark: #9A4E2E;
    --terracotta-light: #D4896A;
    --sand: #F5E6D3;
    --sand-light: #FAF3EB;
    --sand-dark: #E8D5C0;
    --cream: #FDF9F5;
    --charcoal: #2A2420;
    --charcoal-light: #4A403A;
    --warm-gray: #8A7E76;
    --warm-gray-light: #B8AEA6;
    --white: #FFFFFF;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--charcoal);
    background: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 249, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(184, 97, 58, 0.1);
    transition: box-shadow 0.4s var(--ease-out);
}

.nav.scrolled {
    box-shadow: 0 1px 20px rgba(42, 36, 32, 0.06);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

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

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--warm-gray);
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

.nav-cta {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--terracotta);
    padding: 0.6rem 1.4rem;
    border-radius: 2px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.nav-cta:hover {
    background: var(--terracotta-dark);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--charcoal);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px 0 0;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    flex: 1;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.hero-sub {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--charcoal-light);
    max-width: 480px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-divider {
    width: 60px;
    height: 1px;
    background: var(--sand-dark);
    margin: 2rem 0;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--warm-gray);
    letter-spacing: 0.02em;
}

.hero-meta-sep {
    color: var(--sand-dark);
}

.hero-image {
    position: relative;
}

.hero-image-wrap {
    border-radius: 2px;
    overflow: hidden;
    aspect-ratio: 7/9;
}

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

.hero-image-accent {
    position: absolute;
    bottom: -2rem;
    left: -3rem;
    width: 55%;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(42, 36, 32, 0.12);
}

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

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--warm-gray-light);
}

.hero-scroll svg {
    animation: scrollBounce 2s ease-in-out infinite;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.8rem 1.6rem;
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

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

.btn-primary:hover {
    background: var(--terracotta-dark);
    border-color: var(--terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 97, 58, 0.25);
}

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

.btn-ghost:hover {
    border-color: var(--terracotta);
    color: var(--terracotta);
}

.btn-large {
    padding: 1rem 2.2rem;
    font-size: 0.875rem;
}

/* --- Sections --- */
.section {
    padding: 7rem 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-headline {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--charcoal);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-lead {
    font-size: 1rem;
    font-weight: 300;
    color: var(--warm-gray);
    line-height: 1.8;
}

/* --- Labels --- */
.about-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.label-line {
    width: 40px;
    height: 1px;
    background: var(--terracotta);
    flex-shrink: 0;
}

.label-text {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta);
}

/* --- About --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.about-content .lead {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 0.9375rem;
    color: var(--charcoal-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

.about-image-caption {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--warm-gray);
    letter-spacing: 0.04em;
    font-style: italic;
    font-family: var(--font-serif);
}

/* --- Amenities --- */
.amenities {
    background: var(--sand-light);
}

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

.amenity-card {
    padding: 2rem;
    background: var(--cream);
    border-radius: 2px;
    border: 1px solid var(--sand-dark);
    transition: all 0.3s var(--ease-out);
}

.amenity-card:hover {
    border-color: var(--terracotta-light);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(42, 36, 32, 0.08);
}

.amenity-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta);
    margin-bottom: 1.25rem;
}

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

.amenity-card p {
    font-size: 0.875rem;
    color: var(--warm-gray);
    line-height: 1.7;
}

/* --- Location --- */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}

.location-content .lead {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.location-content p {
    font-size: 0.9375rem;
    color: var(--charcoal-light);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--sand-dark);
}

.location-detail {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.detail-label {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--warm-gray);
}

.detail-value {
    font-size: 0.9375rem;
    color: var(--charcoal);
    line-height: 1.6;
}

.detail-link {
    color: var(--terracotta);
    transition: color 0.2s ease;
}

.detail-link:hover {
    color: var(--terracotta-dark);
}

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

/* --- CTA --- */
.cta {
    background: var(--charcoal);
    padding: 8rem 0;
}

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

.cta-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta-light);
    margin-bottom: 1.5rem;
}

.cta-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--sand);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.cta-body {
    font-size: 1rem;
    font-weight: 300;
    color: var(--warm-gray-light);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.cta-note p {
    font-size: 0.8125rem;
    color: var(--warm-gray);
    letter-spacing: 0.03em;
}

/* --- Footer --- */
.footer {
    background: var(--charcoal);
    border-top: 1px solid rgba(245, 230, 211, 0.08);
    padding: 3rem 0 2rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

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

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

.footer-tagline {
    font-size: 0.8125rem;
    color: var(--warm-gray);
    letter-spacing: 0.02em;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.footer-info p {
    font-size: 0.8125rem;
    color: var(--warm-gray);
}

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

.footer-phone:hover {
    color: var(--sand);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(245, 230, 211, 0.06);
    width: 100%;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--warm-gray);
    letter-spacing: 0.03em;
}

/* --- Reveal Animation --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* Mobile: content is visible by default, animation applied via JS */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-inner {
        gap: 2.5rem;
    }
    
    .about-grid,
    .location-grid {
        gap: 2.5rem;
    }
    
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(253, 249, 245, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--sand-dark);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s var(--ease-out);
    }
    
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-inner {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
        gap: 2.5rem;
    }
    
    .hero-image-accent {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 4rem;
    }
    
    .hero-scroll {
        display: none;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .location-grid {
        grid-template-columns: 1fr;
    }
    
    .location-map {
        min-height: 300px;
    }
    
    .cta {
        padding: 5rem 0;
    }
    
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}
