/* ========================================
   Key West Hideways La Casa Cubana
   Bold Editorial · Burgundy + Blush
   ======================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --burgundy: #7B2D3B;
    --burgundy-deep: #5C1F2C;
    --burgundy-light: #9A3D4E;
    --blush: #F5E6E0;
    --blush-light: #FBF5F3;
    --blush-mid: #E8D5CE;
    --cream: #FDF8F6;
    --charcoal: #1A1416;
    --charcoal-light: #2D2428;
    --warm-gray: #6B5E63;
    --warm-gray-light: #9E8E94;
    --white: #FFFFFF;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 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);
    color: var(--charcoal);
    background-color: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Typography
   ======================================== */

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--charcoal);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

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

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 14px 32px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--burgundy);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--burgundy-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(123, 45, 59, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

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

.btn-full {
    width: 100%;
}

/* ========================================
   Navigation
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
    background-color: rgba(253, 248, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    transition: padding 0.4s var(--ease-out);
}

.nav.scrolled .nav-inner {
    padding: 14px 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    transition: color 0.3s ease;
}

.nav.scrolled .nav-logo {
    color: var(--charcoal);
}

.nav-logo-icon {
    display: flex;
    align-items: center;
    opacity: 0.8;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
    letter-spacing: 0.02em;
}

.nav.scrolled .nav-links a {
    color: var(--warm-gray);
}

.nav-links a:hover {
    color: var(--white);
}

.nav.scrolled .nav-links a:hover {
    color: var(--burgundy);
}

.nav-cta {
    background-color: var(--white) !important;
    color: var(--burgundy) !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600 !important;
    transition: all 0.3s var(--ease-out) !important;
}

.nav.scrolled .nav-cta {
    background-color: var(--burgundy) !important;
    color: var(--white) !important;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav.scrolled .nav-toggle-bar {
    background-color: var(--charcoal);
}

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

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

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

/* ========================================
   Hero
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--burgundy-deep) 0%, var(--burgundy) 35%, var(--burgundy-light) 65%, var(--blush-mid) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.pexels.com/photos/31969409/pexels-photo-31969409.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(92, 31, 44, 0.7) 0%,
        rgba(123, 45, 59, 0.6) 50%,
        rgba(92, 31, 44, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    padding: 0 24px;
    padding-top: 80px;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--blush);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    color: var(--white);
    margin-bottom: 28px;
    letter-spacing: -0.025em;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.4s forwards;
}

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

.hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    max-width: 580px;
    margin: 0 auto 40px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.6s forwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.8s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.5);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ========================================
   Intro
   ======================================== */

.intro {
    padding: 120px 0;
    background-color: var(--cream);
}

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

.intro-text {
    max-width: 520px;
}

.intro-text .section-title {
    margin-bottom: 32px;
}

.intro-text p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--warm-gray);
    margin-bottom: 20px;
}

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

.intro-image {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4;
}

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

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

/* ========================================
   Rooms
   ======================================== */

.rooms {
    padding: 120px 0;
    background-color: var(--blush-light);
}

.rooms-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.rooms-header .section-title {
    margin-bottom: 16px;
}

.rooms-sub {
    font-size: 1.125rem;
    color: var(--warm-gray);
    line-height: 1.7;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 64px;
}

.room-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(123, 45, 59, 0.06);
    transition: all 0.4s var(--ease-out);
}

.room-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(123, 45, 59, 0.12);
}

.room-card-img {
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

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

.room-card-body {
    padding: 32px;
}

.room-card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.room-card-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--warm-gray);
    margin-bottom: 20px;
}

.room-card-amenities {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.room-card-amenities li {
    font-size: 0.8125rem;
    color: var(--warm-gray-light);
    padding-left: 16px;
    position: relative;
}

.room-card-amenities li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    background-color: var(--burgundy);
    border-radius: 50%;
}

.rooms-cta {
    text-align: center;
}

/* ========================================
   Experience
   ======================================== */

.experience {
    padding: 120px 0;
    background-color: var(--cream);
}

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

.experience .section-title {
    margin-bottom: 64px;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: left;
}

.exp-item {
    padding: 0;
}

.exp-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--blush);
    border-radius: 12px;
    margin-bottom: 24px;
    color: var(--burgundy);
}

.exp-title {
    font-family: var(--font-serif);
    font-size: 1.3125rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.exp-item p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--warm-gray);
}

/* ========================================
   Location
   ======================================== */

.location {
    padding: 120px 0;
    background-color: var(--charcoal);
}

.location .section-eyebrow {
    color: var(--blush);
}

.location .section-title {
    color: var(--white);
    margin-bottom: 24px;
}

.location-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: stretch;
}

.location-text {
    max-width: 520px;
}

.location-text p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 40px;
}

.location-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.location-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
}

.location-tag svg {
    color: var(--blush-mid);
    flex-shrink: 0;
}

.location-map {
    border-radius: 12px;
    overflow: hidden;
    min-height: 400px;
}

/* ========================================
   Gallery
   ======================================== */

.gallery {
    padding: 120px 0;
    background-color: var(--cream);
}

.gallery-header {
    text-align: center;
    margin-bottom: 64px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: auto;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-item--wide {
    grid-column: span 8;
    aspect-ratio: 16/9;
}

.gallery-item:not(.gallery-item--wide) {
    grid-column: span 4;
    aspect-ratio: 4/3;
}

/* ========================================
   Contact
   ======================================== */

.contact {
    padding: 120px 0;
    background-color: var(--blush-light);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info {
    max-width: 480px;
}

.contact-info .section-title {
    margin-bottom: 24px;
}

.contact-info > p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--warm-gray);
    margin-bottom: 48px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-detail {
    display: flex;
    gap: 20px;
}

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

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

.contact-detail-value {
    font-size: 1.0625rem;
    color: var(--charcoal);
    line-height: 1.6;
}

.contact-detail-value a {
    color: var(--burgundy);
    transition: color 0.3s ease;
}

.contact-detail-value a:hover {
    color: var(--burgundy-deep);
    text-decoration: underline;
}

.contact-form-wrap {
    background-color: var(--white);
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 4px 20px rgba(123, 45, 59, 0.06);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

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

.form-group input,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--charcoal);
    background-color: var(--blush-light);
    border: 1.5px solid transparent;
    border-radius: 8px;
    padding: 14px 16px;
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--burgundy);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(123, 45, 59, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--warm-gray-light);
}

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

.form-note {
    font-size: 0.8125rem;
    color: var(--warm-gray-light);
    text-align: center;
    margin-top: 8px;
}

.form-success {
    text-align: center;
    padding: 48px 24px;
}

.form-success-icon {
    color: var(--burgundy);
    margin-bottom: 24px;
}

.form-success h3 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 12px;
}

.form-success p {
    font-size: 1rem;
    color: var(--warm-gray);
    line-height: 1.7;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background-color: var(--charcoal);
    padding: 80px 0 40px;
}

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

.footer-brand {
    max-width: 380px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

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

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    flex-wrap: wrap;
    gap: 16px;
}

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

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

.footer-bottom a:hover {
    color: var(--blush);
}

/* ========================================
   Scroll Reveal (progressive enhancement)
   ======================================== */

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    }

    .reveal.revealed {
        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; }
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
    .intro-layout,
    .location-layout,
    .contact-layout {
        gap: 48px;
    }

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

    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .gallery-item--wide {
        grid-column: span 12;
    }

    .gallery-item:not(.gallery-item--wide) {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background-color: var(--charcoal);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        padding: 40px;
        transition: right 0.4s var(--ease-out);
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.2);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        color: rgba(255, 255, 255, 0.8) !important;
        font-size: 1.125rem;
    }

    .nav-links a:hover {
        color: var(--blush) !important;
    }

    .nav-cta {
        background-color: var(--burgundy) !important;
        color: var(--white) !important;
        text-align: center;
        display: block;
        padding: 14px 24px !important;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

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

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

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

    .intro-layout,
    .location-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .intro-image {
        aspect-ratio: 4/3;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .experience-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

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

    .gallery-item--wide,
    .gallery-item:not(.gallery-item--wide) {
        grid-column: span 1;
        aspect-ratio: 16/10;
    }

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

    .contact-form-wrap {
        padding: 32px 24px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .intro,
    .rooms,
    .experience,
    .location,
    .gallery,
    .contact {
        padding: 80px 0;
    }
}

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

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

    .room-card-body {
        padding: 24px;
    }
}
