/* ============================================
   The Blue House — East Durham, NY
   Clean Minimalist | Deep Navy + Warm Gold
   ============================================ */

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

:root {
    --navy-950: #0a1628;
    --navy-900: #0f2140;
    --navy-800: #152d56;
    --navy-700: #1a3a6e;
    --navy-600: #1e4d8a;
    --gold-500: #D4AF37;
    --gold-400: #e0be52;
    --gold-300: #ebcd6d;
    --cream-50: #faf9f7;
    --cream-100: #f5f3ef;
    --cream-200: #ece8e0;
    --text-dark: #0f1a2e;
    --text-mid: #3a4a5c;
    --text-light: #6b7a8d;
    --white: #ffffff;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Manrope', -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;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--text-dark);
    background: var(--cream-50);
    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;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

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

/* ---------- Typography ---------- */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 300;
    line-height: 1.2;
    color: var(--text-dark);
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 1.5rem;
    color: var(--navy-900);
}

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

.section-title--center {
    text-align: center;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-mid);
    max-width: 560px;
    line-height: 1.8;
}

.section-subtitle--center {
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all 0.4s var(--ease-out);
    white-space: nowrap;
}

.btn-gold {
    background: var(--gold-500);
    color: var(--navy-950);
    border: 1px solid var(--gold-500);
}

.btn-gold:hover {
    background: var(--gold-400);
    border-color: var(--gold-400);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--navy-900);
    border: 1px solid var(--navy-900);
}

.btn-outline:hover {
    background: var(--navy-900);
    color: var(--white);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
    background: var(--white);
    color: var(--navy-900);
    border-color: var(--white);
}

.btn-full {
    width: 100%;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0;
    transition: all 0.5s var(--ease-out);
}

.site-header.scrolled {
    background: rgba(250, 249, 247, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cream-200);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    transition: padding 0.5s var(--ease-out);
}

.site-header.scrolled .header-inner {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-mark {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--gold-500);
    border: 1px solid var(--gold-500);
    padding: 0.3rem 0.5rem;
    letter-spacing: 0.05em;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--navy-900);
    letter-spacing: 0.02em;
}

.site-header.scrolled .logo-text {
    color: var(--navy-900);
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.main-nav a {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-mid);
    position: relative;
    transition: color 0.3s ease;
}

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

.main-nav a:hover {
    color: var(--navy-900);
}

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

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--navy-900);
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile nav overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--cream-50);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-nav-link {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 300;
    color: var(--navy-900);
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--gold-500);
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, 
            var(--navy-950) 0%, 
            var(--navy-800) 25%, 
            #1a3a6e 50%, 
            var(--navy-700) 75%, 
            var(--navy-900) 100%);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(30, 77, 138, 0.3) 0%, transparent 60%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/36162677/pexels-photo-36162677.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center/cover no-repeat;
    opacity: 0.15;
    mix-blend-mode: luminosity;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

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

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-title .text-gold {
    color: var(--gold-500);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.9;
    max-width: 520px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

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

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

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

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

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

/* ---------- About ---------- */
.about {
    background: var(--cream-50);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-text p {
    color: var(--text-mid);
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.85;
}

.split-text p:last-child {
    margin-bottom: 0;
}

.split-image {
    overflow: hidden;
    border-radius: 2px;
}

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

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

/* ---------- Stay / Rooms ---------- */
.stay {
    background: var(--white);
}

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

.room-card {
    background: var(--cream-50);
    border-radius: 2px;
    overflow: hidden;
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.room-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(15, 33, 64, 0.1);
}

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

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

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

.room-info {
    padding: 2rem;
}

.room-name {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--navy-900);
}

.room-desc {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

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

.room-features li {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--cream-200);
    border-radius: 2px;
}

/* ---------- Surroundings ---------- */
.surroundings {
    background: var(--cream-50);
}

.surroundings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.surrounding-item {
    padding: 2rem;
    border: 1px solid var(--cream-200);
    border-radius: 2px;
    transition: all 0.4s var(--ease-out);
}

.surrounding-item:hover {
    border-color: var(--gold-500);
    background: var(--white);
}

.surrounding-icon {
    width: 40px;
    height: 40px;
    color: var(--gold-500);
    margin-bottom: 1.25rem;
}

.surrounding-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--navy-900);
    margin-bottom: 0.75rem;
}

.surrounding-desc {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.75;
}

.surroundings-image {
    border-radius: 2px;
    overflow: hidden;
}

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

/* ---------- Contact ---------- */
.contact {
    background: var(--navy-900);
    color: var(--white);
}

.contact .section-label {
    color: var(--gold-500);
}

.contact .section-title {
    color: var(--white);
}

.contact .section-title em {
    color: var(--gold-500);
}

.contact .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

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

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-500);
}

.contact-value {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.contact-link {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

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

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

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

.form-group label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    padding: 0.9rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--white);
    transition: all 0.3s ease;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold-500);
    background: rgba(255, 255, 255, 0.08);
}

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

.form-success {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 2px;
    color: var(--gold-400);
    font-size: 0.9rem;
}

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

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-950);
    padding: 4rem 0 0;
    color: var(--white);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

.footer-name {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--white);
}

.footer-tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

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

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

.footer-contact p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
}

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

/* ---------- Animations (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 0;
        transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    }

    .reveal-up {
        transform: translateY(30px);
    }

    .reveal-left {
        transform: translateX(-30px);
    }

    .reveal-right {
        transform: translateX(30px);
    }

    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: translate(0, 0);
    }
}

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

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

@media (max-width: 768px) {
    .section {
        padding: 5rem 0;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .split-layout.reverse-on-mobile {
        grid-template-columns: 1fr;
    }

    .split-text {
        order: 1;
    }

    .split-image {
        order: 2;
    }

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

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

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

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

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

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

    .section {
        padding: 4rem 0;
    }

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