/* ============================================
   WONDERLAND MOTEL — Styles
   Palette: Midnight Blue (#0B1D3A) + Mint (#A8D8C8)
   Fonts: Playfair Display + Inter
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1a1a2e;
    background-color: #FAFAF8;
    -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;
}

address {
    font-style: normal;
}

/* ---------- Typography ---------- */
.serif-italic {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 400;
}

.section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #5A9E8A;
    margin-bottom: 0.75rem;
}

.section-eyebrow-light {
    color: #A8D8C8;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 500;
    line-height: 1.2;
    color: #0B1D3A;
    margin-bottom: 1.5rem;
}

.section-title-light {
    color: #ffffff;
}

.section-italic-light {
    color: #A8D8C8;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(11, 29, 58, 0.06);
    transition: box-shadow 0.3s ease;
}

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

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

/* ---------- Logo ---------- */
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: #0B1D3A;
    clip-path: polygon(50% 0%, 100% 35%, 100% 100%, 0% 100%, 0% 35%);
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: #0B1D3A;
    letter-spacing: -0.01em;
}

.logo-accent {
    color: #5A9E8A;
}

.logo-footer {
    /* same as base */
}

/* ---------- Navigation ---------- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: #0B1D3A;
    position: relative;
    transition: background 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: #0B1D3A;
    left: 0;
    transition: transform 0.3s;
}

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

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

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

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

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #0B1D3A;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.nav-link:hover {
    background: rgba(11, 29, 58, 0.06);
}

.nav-cta {
    background: #0B1D3A;
    color: #ffffff !important;
    margin-left: 0.5rem;
}

.nav-cta:hover {
    background: #162d50;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: #0B1D3A;
    color: #ffffff;
}

.btn-primary:hover {
    background: #162d50;
    box-shadow: 0 4px 16px rgba(11, 29, 58, 0.25);
}

.btn-ghost {
    background: transparent;
    color: #0B1D3A;
    border: 1.5px solid rgba(11, 29, 58, 0.2);
}

.btn-ghost:hover {
    border-color: #0B1D3A;
    background: rgba(11, 29, 58, 0.04);
}

.btn-ghost-light {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-light {
    background: #ffffff;
    color: #0B1D3A;
}

.btn-light:hover {
    background: #f0f0ec;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 10px;
}

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

.btn-icon {
    display: flex;
    align-items: center;
}

.btn-arrow {
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #0B1D3A;
    overflow: hidden;
    padding-top: 72px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(90, 158, 138, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(168, 216, 200, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 540px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #A8D8C8;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 400;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
}

.title-line.serif-italic {
    color: #A8D8C8;
    font-style: italic;
    font-weight: 400;
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    max-width: 460px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    border-radius: 100px;
    background: rgba(168, 216, 200, 0.12);
    color: #A8D8C8;
    border: 1px solid rgba(168, 216, 200, 0.2);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 580px;
}

.hero-image-main {
    width: 75%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

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

.hero-image-float {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    border: 4px solid rgba(250, 250, 248, 0.15);
}

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

.float-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(transparent, rgba(11, 29, 58, 0.8));
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), 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); }
}

/* ---------- Intro Section ---------- */
.intro {
    padding: 7rem 0;
    background: #FAFAF8;
}

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

.intro-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(11, 29, 58, 0.1);
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.intro-text .section-title {
    margin-bottom: 1.25rem;
}

.intro-text p {
    color: #4a4a5a;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.intro-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(11, 29, 58, 0.08);
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 500;
    color: #0B1D3A;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b6b7b;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(11, 29, 58, 0.1);
}

/* ---------- Section Header (shared) ---------- */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

.section-header .section-title {
    margin-bottom: 0.5rem;
}

/* ---------- Rooms Section ---------- */
.rooms {
    padding: 7rem 0;
    background: #F3F5F2;
}

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

.room-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(11, 29, 58, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(11, 29, 58, 0.12);
}

.room-image {
    height: 240px;
    overflow: hidden;
}

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

.room-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #0B1D3A;
    margin-bottom: 0.5rem;
}

.room-desc {
    font-size: 0.9rem;
    color: #5a5a6a;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.room-features li {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.3rem 0.65rem;
    border-radius: 100px;
    background: rgba(90, 158, 138, 0.1);
    color: #3d7a65;
}

/* ---------- Amenities Section ---------- */
.amenities {
    padding: 7rem 0;
    background: #FAFAF8;
}

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

.amenity-card {
    padding: 2rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(11, 29, 58, 0.06);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.amenity-card:hover {
    border-color: rgba(90, 158, 138, 0.3);
    box-shadow: 0 8px 24px rgba(11, 29, 58, 0.07);
}

.amenity-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(11, 29, 58, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B1D3A;
    margin-bottom: 1.25rem;
}

.amenity-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: #0B1D3A;
    margin-bottom: 0.5rem;
}

.amenity-desc {
    font-size: 0.9rem;
    color: #5a5a6a;
    line-height: 1.65;
}

/* ---------- Location Section ---------- */
.location {
    padding: 7rem 0;
    background: #F3F5F2;
}

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

.location-text .section-title {
    margin-bottom: 1.25rem;
}

.location-text p {
    color: #4a4a5a;
    margin-bottom: 1rem;
}

.location-address {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    border-left: 3px solid #5A9E8A;
    font-size: 0.95rem;
    color: #1a1a2e;
    line-height: 1.8;
}

.location-address a {
    color: #5A9E8A;
    font-weight: 500;
    transition: color 0.2s;
}

.location-address a:hover {
    color: #3d7a65;
}

.location-links {
    margin-top: 1.5rem;
}

.location-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(11, 29, 58, 0.1);
    height: 100%;
    min-height: 400px;
}

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

/* ---------- CTA Section ---------- */
.cta {
    padding: 7rem 0;
    background: #0B1D3A;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(90, 158, 138, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 10% 90%, rgba(168, 216, 200, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cta-text {
    max-width: 460px;
}

.cta-description {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

/* ---------- Contact Form ---------- */
.cta-form-wrap {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(8px);
}

.form-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.4rem;
    letter-spacing: 0.03em;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

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

.form-input:focus {
    border-color: #A8D8C8;
    background: rgba(255, 255, 255, 0.1);
}

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

.form-note {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 0.75rem;
    text-align: center;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem;
    margin-top: 1rem;
    background: rgba(90, 158, 138, 0.15);
    border: 1px solid rgba(90, 158, 138, 0.3);
    border-radius: 8px;
    color: #A8D8C8;
    font-size: 0.9rem;
}

.form-success svg {
    flex-shrink: 0;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #071426;
    color: rgba(255, 255, 255, 0.6);
}

.footer-inner {
    padding: 4rem 1.5rem 3rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.footer-brand .logo-text {
    color: #ffffff;
    font-size: 1.25rem;
}

.footer-tagline {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    max-width: 280px;
}

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

.footer-col h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-col address {
    font-size: 0.875rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-col a {
    font-size: 0.875rem;
    color: #A8D8C8;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-col ul li {
    margin-bottom: 0.4rem;
}

.footer-col ul li a,
.footer-col ul li:not(:has(a)) {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

.footer-col ul li:not(:has(a)):hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: #A8D8C8;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-badges {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .intro-layout,
    .location-layout,
    .cta-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

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

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

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 250, 248, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(11, 29, 58, 0.06);
        padding: 1rem 1.5rem 1.5rem;
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.35s ease, opacity 0.35s ease;
        pointer-events: none;
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    .nav-link {
        padding: 0.75rem 1rem;
    }

    .nav-cta {
        margin-left: 0;
        text-align: center;
        margin-top: 0.5rem;
    }

    .hero {
        min-height: auto;
        padding: 8rem 0 5rem;
    }

    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

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

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

    .intro-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .stat-divider {
        display: none;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .cta-form-wrap {
        padding: 1.5rem;
    }
}

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

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

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

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .room-card:hover {
        transform: none;
    }

    .room-card:hover .room-image img {
        transform: none;
    }
}
