/* ===================================
   RIDGEWOOD GUEST QUARTERS
   Bold Editorial — Charcoal + Coral
   =================================== */

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

:root {
    --charcoal: #1a1a1a;
    --charcoal-light: #2d2d2d;
    --charcoal-mid: #3d3d3d;
    --coral: #e8634a;
    --coral-dark: #c94e36;
    --coral-light: #f07860;
    --cream: #f7f4f0;
    --cream-dark: #ede8e0;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #f7f4f0;
    --text-muted: #6b6b6b;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-xxl: 8rem;
    --radius: 4px;
    --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 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

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

/* HEADER */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    z-index: 1001;
}

.logo-mark {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius);
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

/* NAV */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    position: relative;
    transition: background var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color var(--transition);
}

.nav-menu a:hover {
    color: var(--coral);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn-coral:hover {
    background: var(--coral-dark);
    border-color: var(--coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 99, 74, 0.35);
}

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

.btn-charcoal:hover {
    background: var(--charcoal-light);
    border-color: var(--charcoal-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 26, 26, 0.3);
}

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

.btn-outline-light:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.625rem 1.5rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 1.125rem 2.75rem;
    font-size: 0.95rem;
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 26, 0.72) 0%,
        rgba(26, 26, 26, 0.55) 50%,
        rgba(26, 26, 26, 0.80) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 6rem;
    padding-bottom: var(--space-xl);
    max-width: 800px;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: var(--space-md);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

.hero-sub {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

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

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

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

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

/* SECTION HEADERS */
.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: var(--space-sm);
}

.section-eyebrow.light {
    color: var(--coral-light);
}

.section-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--charcoal);
    letter-spacing: -0.01em;
    margin-bottom: var(--space-md);
}

.section-headline.light {
    color: var(--white);
}

/* INTRO */
.intro {
    padding: var(--space-xxl) 0;
    background: var(--cream);
}

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

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

.intro-text p:first-of-type {
    font-size: 1.15rem;
    color: var(--text-dark);
    line-height: 1.7;
}

.intro-image img {
    border-radius: var(--radius);
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
}

/* ROOMS */
.rooms {
    padding: var(--space-xxl) 0;
    background: var(--charcoal);
}

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

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

.room-card {
    background: var(--charcoal-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition);
}

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

.room-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 0;
}

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

.room-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-xs);
}

.room-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

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

.room-features li {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.08);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
}

.room-body .btn {
    margin-top: auto;
}

/* EXPERIENCE */
.experience {
    padding: var(--space-xxl) 0;
    background: var(--cream);
}

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

.experience-image img {
    border-radius: var(--radius);
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 7/9;
}

.experience-content .section-headline {
    margin-bottom: var(--space-md);
}

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

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

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--coral);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.feature-item h4 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* LOCATION */
.location {
    background: var(--white);
}

.location-content {
    padding: var(--space-xxl) 0 var(--space-lg);
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.location-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.location-highlights {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.highlight-item {
    text-align: center;
}

.highlight-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--coral);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.highlight-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.location-map {
    width: 100%;
    height: 480px;
    background: var(--charcoal);
}

.location-map iframe {
    width: 100%;
    height: 100%;
    display: block;
    filter: grayscale(30%);
}

/* CTA */
.cta {
    padding: var(--space-xxl) 0;
    background: var(--charcoal);
    text-align: center;
}

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

.cta-inner .section-headline {
    margin-bottom: var(--space-sm);
}

.cta-inner > p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

/* CONTACT */
.contact {
    padding: var(--space-xxl) 0;
    background: var(--cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

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

.contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--charcoal);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral);
}

.contact-item strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.contact-item p {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.contact-item a {
    color: var(--coral);
    font-weight: 600;
    transition: color var(--transition);
}

.contact-item a:hover {
    color: var(--coral-dark);
}

.contact-form-wrapper {
    margin-top: var(--space-md);
}

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

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

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

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--cream-dark);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text-dark);
    transition: border-color var(--transition);
    outline: none;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-success {
    margin-top: var(--space-sm);
    padding: 1rem;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: var(--radius);
    font-weight: 500;
    text-align: center;
}

.contact-image img {
    border-radius: var(--radius);
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3/4;
}

/* FOOTER */
.site-footer {
    background: var(--charcoal);
    padding: var(--space-lg) 0 var(--space-sm);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-brand .logo-mark {
    display: inline-block;
    width: fit-content;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    transition: color var(--transition);
}

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

.footer-bottom {
    padding-top: var(--space-sm);
    text-align: center;
}

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

/* REVEAL ANIMATIONS (below-fold only, progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

/* RESPONSIVE */
@media (max-width: 1024px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rooms-grid .room-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 4rem;
        --space-xxl: 5rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        background: var(--charcoal);
        flex-direction: column;
        justify-content: center;
        gap: 1.5rem;
        padding: 2rem;
        transform: translateX(100%);
        transition: transform var(--transition);
        box-shadow: -8px 0 32px rgba(0,0,0,0.3);
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-menu a {
        font-size: 1rem;
    }

    .intro-grid,
    .experience-split,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .intro-image,
    .contact-image {
        order: -1;
    }

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

    .rooms-grid .room-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }

    .location-highlights {
        gap: var(--space-md);
    }

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

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }

    .hero-content {
        padding-top: 4rem;
    }

    .highlight-num {
        font-size: 2rem;
    }
}
