/* ============================================
   THE BEAUDOIN BEACH HOUSE
   Bold Editorial · Emerald + Cream
   ============================================ */

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

:root {
    --emerald-900: #0B3D2E;
    --emerald-800: #0F5138;
    --emerald-700: #14674A;
    --emerald-600: #1A8A5E;
    --emerald-500: #22A874;
    --cream-50: #FAF8F4;
    --cream-100: #F5F0E8;
    --cream-200: #EDE6D8;
    --cream-300: #E0D5C0;
    --gold: #D4A853;
    --gold-light: #E8C97A;
    --charcoal: #1A1A1A;
    --charcoal-light: #2D2D2D;
    --text-dark: #1A1A1A;
    --text-medium: #4A4A4A;
    --text-light: #6B6B6B;
    --white: #FFFFFF;
    --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: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--cream-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-sm);
    background: var(--emerald-900);
    color: var(--white);
    padding: var(--space-xs) var(--space-sm);
    z-index: 1000;
    border-radius: 0 0 4px 4px;
}

.skip-link:focus {
    top: 0;
}

/* --- HEADER --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cream-200);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 1px 20px rgba(11, 61, 46, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--emerald-900);
    color: var(--cream-50);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 4px;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--emerald-900);
    letter-spacing: -0.01em;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.main-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-medium);
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--emerald-700);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--emerald-900);
    padding: var(--space-xs);
}

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

.btn--emerald {
    background: var(--emerald-800);
    color: var(--cream-50);
    border-color: var(--emerald-800);
}

.btn--emerald:hover {
    background: var(--emerald-700);
    border-color: var(--emerald-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 81, 56, 0.25);
}

.btn--light {
    background: var(--white);
    color: var(--emerald-900);
    border-color: var(--white);
}

.btn--light:hover {
    background: var(--cream-100);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

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

.btn--outline-emerald {
    background: transparent;
    color: var(--emerald-800);
    border-color: var(--emerald-800);
}

.btn--outline-emerald:hover {
    background: var(--emerald-800);
    color: var(--cream-50);
}

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

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

/* --- HERO --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--emerald-900);
}

.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 right,
        rgba(11, 61, 46, 0.88) 0%,
        rgba(11, 61, 46, 0.72) 50%,
        rgba(11, 61, 46, 0.45) 100%
    );
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-2xl);
    align-items: center;
    padding-top: 72px;
    padding-bottom: var(--space-2xl);
    min-height: 100vh;
}

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

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--cream-50);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

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

.hero-sub {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(250, 248, 244, 0.8);
    max-width: 520px;
    margin-bottom: var(--space-xl);
}

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

.hero-card {
    background: var(--cream-50);
    border-radius: 8px;
    padding: var(--space-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-card-inner {
    text-align: center;
}

.hero-card-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: var(--space-sm);
}

.hero-card-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: var(--space-sm);
}

.hero-card-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-medium);
}

.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: var(--space-xs);
    color: rgba(250, 248, 244, 0.5);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

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

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}

.section-title em {
    font-style: italic;
    color: var(--emerald-700);
}

/* --- ABOUT --- */
.about {
    padding: var(--space-4xl) 0;
    background: var(--cream-50);
}

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

.about-image-wrap {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(11, 61, 46, 0.12);
}

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

.about-content p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-medium);
    margin-bottom: var(--space-md);
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-dark);
}

.feature-item svg {
    color: var(--emerald-700);
    flex-shrink: 0;
}

/* --- ROOMS --- */
.rooms {
    padding: var(--space-4xl) 0;
    background: var(--cream-100);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-3xl);
}

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

.room-card {
    background: var(--cream-50);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(11, 61, 46, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(11, 61, 46, 0.12);
}

.room-image {
    overflow: hidden;
    aspect-ratio: 3/2;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

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

.room-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.room-desc {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-medium);
    margin-bottom: var(--space-md);
}

.room-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs) var(--space-md);
}

.room-amenities li {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--emerald-700);
    padding: 0.375rem 0.75rem;
    background: rgba(26, 138, 94, 0.08);
    border-radius: 100px;
}

.rooms-cta {
    text-align: center;
    padding: var(--space-xl);
    background: var(--cream-50);
    border-radius: 8px;
    border: 1px solid var(--cream-200);
}

.rooms-cta p {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: var(--space-md);
}

/* --- EXPERIENCE STRIP --- */
.experience {
    padding: var(--space-3xl) 0;
    background: var(--emerald-900);
}

.experience-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.experience-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cream-50);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: var(--space-xs);
}

.experience-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

/* --- LOCATION --- */
.location {
    padding: var(--space-4xl) 0;
    background: var(--cream-50);
}

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

.location-content p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-medium);
    margin-bottom: var(--space-lg);
}

.location-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.location-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9375rem;
    color: var(--text-dark);
}

.location-list svg {
    color: var(--emerald-700);
    flex-shrink: 0;
}

.location-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(11, 61, 46, 0.1);
    aspect-ratio: 4/3;
}

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

/* --- CTA BANNER --- */
.cta-banner {
    position: relative;
    padding: var(--space-4xl) 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(
        to bottom,
        rgba(11, 61, 46, 0.9),
        rgba(11, 61, 46, 0.85)
    );
}

.cta-container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-eyebrow {
    color: var(--gold) !important;
}

.cta-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--cream-50);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}

.cta-headline em {
    font-style: italic;
    color: var(--gold-light);
}

.cta-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(250, 248, 244, 0.8);
    margin-bottom: var(--space-xl);
}

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

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

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

.contact-intro {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-medium);
    margin-bottom: var(--space-xl);
}

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

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

.contact-item svg {
    color: var(--emerald-700);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 2px;
}

.contact-item a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: var(--emerald-700);
}

.contact-item span {
    font-size: 1rem;
    color: var(--text-dark);
}

/* --- FORM --- */
.contact-form-wrap {
    background: var(--cream-50);
    border-radius: 8px;
    padding: var(--space-xl);
    box-shadow: 0 4px 20px rgba(11, 61, 46, 0.06);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--emerald-600);
    box-shadow: 0 0 0 3px rgba(26, 138, 94, 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: none;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: rgba(26, 138, 94, 0.08);
    border: 1px solid rgba(26, 138, 94, 0.2);
    border-radius: 4px;
    color: var(--emerald-800);
    font-size: 0.9375rem;
    font-weight: 500;
    margin-top: var(--space-sm);
}

.form-success.show {
    display: flex;
}

/* --- FOOTER --- */
.site-footer {
    background: var(--charcoal);
    color: var(--cream-200);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-2xl);
    align-items: start;
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-brand .logo-mark {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
}

.footer-brand .logo-text {
    color: var(--cream-50);
    font-size: 1.25rem;
}

.footer-tagline {
    font-size: 0.9375rem;
    color: rgba(224, 213, 192, 0.6);
    max-width: 280px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(224, 213, 192, 0.7);
    transition: color 0.2s ease;
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    text-align: right;
}

.footer-contact a {
    font-size: 0.9375rem;
    color: rgba(224, 213, 192, 0.7);
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    font-size: 0.8125rem;
    color: rgba(224, 213, 192, 0.4);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* --- SCROLL REVEAL (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) {
    .hero-container {
        grid-template-columns: 1fr;
        padding-top: 100px;
    }

    .hero-card {
        max-width: 400px;
    }

    .about-grid,
    .location-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .about-image-wrap {
        max-width: 500px;
    }

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

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-contact {
        text-align: center;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 248, 244, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: var(--space-lg);
        border-bottom: 1px solid var(--cream-200);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    }

    .main-nav.open {
        transform: translateY(0);
    }

    .main-nav ul {
        flex-direction: column;
        gap: var(--space-md);
    }

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

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

    .hero-card {
        display: none;
    }

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

    .experience-grid {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .experience-divider {
        display: none;
    }

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

    .hero-scroll {
        display: none;
    }
}

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

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

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