/* ═══════════════════════════════════════════
   PAM'S TREE CABINS — Stylesheet
   Palette: Plum + Amber | Clean Minimalist
   ═══════════════════════════════════════════ */

/* ── Custom Properties ────────────────────── */
:root {
    --plum-50:  #faf4f6;
    --plum-100: #f5e8ed;
    --plum-200: #ebcdd8;
    --plum-300: #d9a5b8;
    --plum-400: #c47a94;
    --plum-500: #a85576;
    --plum-600: #8b3d5c;
    --plum-700: #6e2d47;
    --plum-800: #5a263a;
    --plum-900: #4a1f30;
    --plum-950: #2a1019;

    --amber-50:  #fef9f0;
    --amber-100: #fdf0d8;
    --amber-200: #fce4b4;
    --amber-300: #f8cc7a;
    --amber-400: #f4b03f;
    --amber-500: #e89520;
    --amber-600: #c47510;
    --amber-700: #9a570a;
    --amber-800: #7a4309;
    --amber-900: #62350a;

    --stone-50:  #fafaf8;
    --stone-100: #f5f4f0;
    --stone-200: #e8e6e0;
    --stone-300: #d4d0c8;
    --stone-400: #a8a094;
    --stone-500: #787068;
    --stone-600: #565048;
    --stone-700: #3e3830;
    --stone-800: #282420;
    --stone-900: #181410;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', -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);
}

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

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--stone-800);
    background-color: var(--stone-50);
    letter-spacing: 0.01em;
}

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

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

/* ── Typography ───────────────────────────── */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.15;
    color: var(--stone-900);
}

.section-label {
    display: block;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--plum-600);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--stone-900);
    letter-spacing: -0.01em;
}

.lead {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--stone-600);
    max-width: 52ch;
    font-weight: 300;
}

/* ── Container ────────────────────────────── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
}

/* ── Header ───────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.site-header.scrolled {
    background-color: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--stone-200);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem clamp(1.5rem, 4vw, 4rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--stone-900);
    letter-spacing: 0.02em;
}

.logo-icon {
    color: var(--plum-600);
    opacity: 0.8;
}

/* ── Navigation ───────────────────────────── */
.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--stone-600);
    position: relative;
    transition: color 0.3s ease;
}

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

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

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

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

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background-color: var(--stone-700);
    transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

/* ── Hero ─────────────────────────────────── */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--plum-950);
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(42, 16, 25, 0.55) 0%,
        rgba(42, 16, 25, 0.40) 40%,
        rgba(42, 16, 25, 0.70) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.6875rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--amber-300);
    margin-bottom: 1.75rem;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.015em;
}

.hero-headline em {
    font-style: italic;
    color: var(--amber-200);
}

.hero-sub {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.78);
    max-width: 50ch;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: var(--font-sans);
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

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

/* ── 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.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 2.25rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    border-radius: 0;
}

.btn-primary {
    background-color: var(--plum-700);
    color: #fff;
    border-color: var(--plum-700);
}

.btn-primary:hover {
    background-color: var(--plum-800);
    border-color: var(--plum-800);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.08);
}

.btn-full {
    width: 100%;
}

/* ── Cabin Section ────────────────────────── */
.cabin-section {
    padding: clamp(5rem, 10vw, 9rem) 0;
    background: var(--stone-50);
}

.cabin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
}

.cabin-visual {
    position: relative;
    padding-top: 3rem;
}

.cabin-photo-main {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    margin-bottom: 2rem;
}

.cabin-photo-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

.cabin-photo-main:hover img {
    transform: scale(1.03);
}

.cabin-photo-accent {
    position: absolute;
    bottom: 0;
    right: -15%;
    width: 55%;
    aspect-ratio: 3/2;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.cabin-photo-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cabin-text {
    padding-top: 1rem;
}

.cabin-text p {
    color: var(--stone-600);
    margin-bottom: 1.25rem;
    font-weight: 300;
}

.cabin-features {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--stone-200);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--stone-700);
    font-weight: 400;
}

.feature-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--stone-200);
    border-radius: 50%;
    color: var(--plum-600);
}

/* ── Grounds Section ──────────────────────── */
.grounds-section {
    padding: clamp(5rem, 10vw, 9rem) 0;
    background: var(--plum-950);
}

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

.grounds-header .section-label {
    color: var(--amber-400);
}

.grounds-header .section-title {
    color: #fff;
}

.grounds-header .lead {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 auto;
}

.grounds-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.grounds-photo {
    aspect-ratio: 3/4;
    overflow: hidden;
}

.grounds-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out);
    filter: saturate(0.85);
}

.grounds-photo:hover img {
    transform: scale(1.05);
    filter: saturate(1);
}

/* ── Experience Section ───────────────────── */
.experience-section {
    padding: clamp(5rem, 10vw, 9rem) 0;
    background: var(--stone-50);
}

.experience-section .container {
    max-width: 1100px;
}

.experience-section .section-label {
    text-align: center;
    display: block;
}

.experience-section .section-title {
    text-align: center;
    margin-bottom: 4rem;
}

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

.exp-card {
    padding: 2.5rem 0;
    border-top: 1px solid var(--stone-200);
}

.exp-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 300;
    color: var(--plum-200);
    line-height: 1;
    margin-bottom: 1.25rem;
}

.exp-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--stone-900);
}

.exp-card p {
    color: var(--stone-600);
    font-weight: 300;
    line-height: 1.8;
}

.nearby-section {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid var(--stone-200);
}

.nearby-section h3 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--stone-800);
}

.nearby-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.nearby-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1.125rem 1.5rem;
    border: 1px solid var(--stone-200);
    margin-bottom: -1px;
    margin-right: -1px;
    transition: background-color 0.3s ease;
}

.nearby-item:hover {
    background-color: var(--plum-50);
}

.nearby-name {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--stone-700);
}

.nearby-dist {
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    font-style: italic;
    color: var(--plum-500);
    flex-shrink: 0;
    margin-left: 1rem;
}

/* ── Location Section ─────────────────────── */
.location-section {
    padding: clamp(5rem, 10vw, 9rem) 0;
    background: var(--stone-100);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 5rem);
    align-items: stretch;
}

.location-address {
    font-style: normal;
    margin-top: 2rem;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--stone-800);
}

.location-contact {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--plum-700);
    transition: color 0.3s ease;
}

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

.location-map {
    min-height: 450px;
    overflow: hidden;
    border: 1px solid var(--stone-200);
}

.location-map iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
}

/* ── Contact Section ──────────────────────── */
.contact-section {
    padding: clamp(5rem, 10vw, 9rem) 0;
    background: var(--stone-50);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
}

.contact-direct {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-direct-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.5rem;
    border: 1px solid var(--stone-200);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.contact-direct-link:hover {
    border-color: var(--plum-300);
    background-color: var(--plum-50);
}

.contact-direct-label {
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--stone-400);
    font-weight: 500;
}

.contact-direct-value {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--stone-800);
}

/* ── Form ─────────────────────────────────── */
.contact-form-wrap {
    position: relative;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--stone-500);
}

.form-group input,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--stone-800);
    background: #fff;
    border: 1px solid var(--stone-200);
    padding: 0.875rem 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    border-radius: 0;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--plum-400);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--stone-300);
}

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

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    gap: 1rem;
}

.form-success svg {
    color: var(--plum-500);
}

.form-success h3 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--stone-900);
}

.form-success p {
    color: var(--stone-600);
    max-width: 32ch;
}

/* ── Footer ───────────────────────────────── */
.site-footer {
    background: var(--stone-900);
    padding: 4rem 0 2.5rem;
}

.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.5rem;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.03em;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--stone-500);
    font-weight: 300;
    font-style: italic;
    font-family: var(--font-serif);
    font-size: 1rem;
}

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

.footer-info p {
    font-size: 0.8125rem;
    color: var(--stone-500);
    font-weight: 300;
}

.footer-info a {
    color: var(--plum-300);
    transition: color 0.3s ease;
}

.footer-info a:hover {
    color: var(--amber-300);
}

.footer-copy {
    padding-top: 2rem;
    border-top: 1px solid var(--stone-800);
    width: 100%;
}

.footer-copy p {
    font-size: 0.75rem;
    color: var(--stone-600);
    font-weight: 400;
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 1024px) {
    .cabin-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .cabin-visual {
        order: -1;
        padding-top: 0;
    }

    .cabin-photo-accent {
        right: 0;
        width: 50%;
    }

    .grounds-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .experience-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .exp-card {
        padding: 2rem 0;
    }

    .nearby-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

    .location-map {
        min-height: 350px;
    }

    .contact-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

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

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

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

    .nav {
        position: fixed;
        inset: 0;
        background: rgba(250, 250, 248, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s var(--ease-out);
    }

    .nav.open {
        opacity: 1;
        pointer-events: all;
    }

    .nav-list {
        flex-direction: column;
        gap: 2rem;
    }

    .nav-link {
        font-size: 1rem;
        letter-spacing: 0.12em;
    }

    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

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

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .cabin-features {
        grid-template-columns: 1fr;
    }

    .cabin-photo-accent {
        display: none;
    }

    .grounds-grid {
        grid-template-columns: 1fr;
    }

    .grounds-photo {
        aspect-ratio: 4/3;
    }

    .nearby-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .header-inner {
        padding: 1.25rem 1.25rem;
    }

    .hero {
        min-height: 600px;
    }

    .hero-scroll {
        bottom: 1.5rem;
    }
}
