/* ============================================
   Carmi Motel — Custom Styles
   Palette: Burgundy (#781F37) + Blush (#F5E6E8)
   Fonts: Inter (body) + Playfair Display (headlines)
============================================ */

:root {
    --burgundy: #781F37;
    --burgundy-deep: #5A1528;
    --burgundy-light: #9E2D4A;
    --blush: #F5E6E8;
    --blush-light: #FBF5F6;
    --blush-dark: #E8CDD2;
    --cream: #FFFAF8;
    --text-primary: #2A1B1E;
    --text-secondary: #6B5559;
    --text-muted: #9A8589;
    --white: #FFFFFF;
    --border: rgba(120, 31, 55, 0.12);
    --shadow-sm: 0 1px 3px rgba(42, 27, 30, 0.04), 0 1px 2px rgba(42, 27, 30, 0.06);
    --shadow-md: 0 4px 20px rgba(42, 27, 30, 0.06), 0 2px 8px rgba(42, 27, 30, 0.04);
    --shadow-lg: 0 12px 40px rgba(42, 27, 30, 0.08), 0 4px 16px rgba(42, 27, 30, 0.04);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Typography
============================================ */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-primary);
}

.section-label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.25rem;
}

.text-accent {
    color: var(--burgundy);
    font-style: italic;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.8;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header--centered {
    text-align: center;
}

.section-header--centered .section-sub {
    margin: 0 auto;
}

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

/* ============================================
   Buttons
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.875rem 1.75rem;
    border-radius: 100px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--burgundy-deep);
    border-color: var(--burgundy-deep);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background: var(--white);
    color: var(--text-primary);
    border-color: var(--white);
}

.btn-outline-light {
    background: transparent;
    color: var(--burgundy);
    border-color: var(--burgundy);
}

.btn-outline-light:hover {
    background: var(--burgundy);
    color: var(--white);
}

.btn-ghost {
    background: transparent;
    color: var(--burgundy);
    border-color: var(--blush-dark);
    padding: 0.625rem 1.25rem;
    font-size: 0.8rem;
}

.btn-ghost:hover {
    background: var(--blush);
    border-color: var(--blush-dark);
}

/* ============================================
   Navigation
============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(255, 250, 248, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.nav-logo-mark {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    transition: var(--transition);
}

.nav.scrolled .nav-logo-mark {
    color: var(--burgundy);
    border-color: var(--burgundy);
}

.nav-logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--white);
    transition: var(--transition);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: var(--transition);
}

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

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

.nav.scrolled .nav-link {
    color: var(--text-secondary);
}

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

.nav.scrolled .nav-link::after {
    background: var(--burgundy);
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.9) !important;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-weight: 500;
}

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

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

.nav.scrolled .nav-phone:hover {
    background: var(--burgundy-deep);
    border-color: var(--burgundy-deep);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle-line {
    width: 22px;
    height: 1.5px;
    background: var(--white);
    transition: var(--transition);
    transform-origin: center;
}

.nav.scrolled .nav-toggle-line {
    background: var(--text-primary);
}

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

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

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

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(42, 27, 30, 0.5);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: var(--transition);
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

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

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

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

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(42, 27, 30, 0.72) 0%,
        rgba(120, 31, 55, 0.55) 50%,
        rgba(42, 27, 30, 0.4) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    padding-top: 6rem;
    padding-bottom: 4rem;
    width: 100%;
}

.hero-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
}

.hero-headline {
    font-size: clamp(2.75rem, 6vw, 5rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1.5rem;
    max-width: 680px;
}

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

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 460px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Floating stat cards */
.hero-cards {
    position: absolute;
    right: 2rem;
    bottom: 6rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.125rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
    animation: floatCard 6s ease-in-out infinite;
}

.stat-card:nth-child(2) {
    animation-delay: -2s;
}

.stat-card:nth-child(3) {
    animation-delay: -4s;
}

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

.stat-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blush);
    border-radius: var(--radius-sm);
    color: var(--burgundy);
    flex-shrink: 0;
}

.stat-card-number {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-card-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

/* ============================================
   Divider
============================================ */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--border);
    max-width: 200px;
}

.divider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--burgundy);
    opacity: 0.4;
}

/* ============================================
   Intro
============================================ */
.intro {
    padding: 8rem 0;
}

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

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

.intro-image {
    position: relative;
}

.intro-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 6/7;
}

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

.intro-image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 1.5px solid var(--blush-dark);
    border-radius: var(--radius-md);
    z-index: -1;
}

/* ============================================
   Rooms
============================================ */
.rooms {
    padding: 8rem 0;
    background: var(--blush-light);
}

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

.room-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.room-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.room-card-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--burgundy);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
}

.room-card-body {
    padding: 1.75rem;
}

.room-card-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

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

.room-card-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.room-card-features li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.room-card-features li svg {
    color: var(--burgundy);
    flex-shrink: 0;
}

/* ============================================
   Amenities
============================================ */
.amenities {
    padding: 8rem 0;
}

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

.amenity-card {
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: var(--transition);
    background: var(--white);
}

.amenity-card:hover {
    border-color: var(--burgundy);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.amenity-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blush);
    border-radius: var(--radius-sm);
    color: var(--burgundy);
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.amenity-card:hover .amenity-card-icon {
    background: var(--burgundy);
    color: var(--white);
}

.amenity-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.625rem;
    color: var(--text-primary);
}

.amenity-card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ============================================
   Location
============================================ */
.location {
    padding: 8rem 0;
    background: var(--text-primary);
    color: var(--white);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: stretch;
}

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

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

.location .text-accent {
    color: var(--blush);
}

.location-address {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--blush);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.location-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.85;
    margin-bottom: 2rem;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 2.5rem;
}

.location-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

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

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.location-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 450px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    filter: grayscale(30%) contrast(1.05);
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
}

/* ============================================
   CTA
============================================ */
.cta {
    padding: 8rem 0;
    background: var(--blush-light);
}

.cta-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.cta-content {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-content .section-label {
    margin-bottom: 1rem;
}

.cta-content .section-title {
    margin-bottom: 1.25rem;
}

.cta-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.cta-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-phone {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--burgundy);
    transition: var(--transition);
}

.cta-phone:hover {
    color: var(--burgundy-deep);
}

.cta-email {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.cta-email:hover {
    color: var(--burgundy);
}

.cta-visual {
    position: relative;
    min-height: 400px;
}

.cta-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

/* ============================================
   Footer
============================================ */
.footer {
    background: var(--text-primary);
    color: rgba(255, 255, 255, 0.6);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

.footer-logo .nav-logo-mark {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.footer-logo .nav-logo-text {
    color: var(--white);
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.75;
    max-width: 280px;
}

.footer-heading {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1.25rem;
}

.footer-address {
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.9;
}

.footer-address a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

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

.footer-links li {
    margin-bottom: 0.625rem;
}

.footer-links a {
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   Animations
============================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="delay-1"] { transition-delay: 0.1s; }
[data-animate="delay-2"] { transition-delay: 0.2s; }
[data-animate="delay-3"] { transition-delay: 0.3s; }
[data-animate="delay-4"] { transition-delay: 0.4s; }

/* ============================================
   Responsive
============================================ */
@media (max-width: 1024px) {
    .hero-cards {
        position: relative;
        right: auto;
        bottom: auto;
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 3rem;
        gap: 0.75rem;
    }

    .stat-card {
        min-width: auto;
        flex: 1;
    }

    .hero-content {
        padding-bottom: 2rem;
    }

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

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

    .location-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .cta-card {
        grid-template-columns: 1fr;
    }

    .cta-visual {
        min-height: 300px;
    }

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

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

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

    .nav-link {
        color: var(--text-primary) !important;
        font-size: 1rem;
    }

    .nav-phone {
        background: var(--burgundy) !important;
        color: var(--white) !important;
        border-color: var(--burgundy) !important;
        justify-content: flex-start;
        width: 100%;
    }

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

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

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .intro-image {
        order: -1;
    }

    .intro-image-accent {
        top: -12px;
        right: -12px;
        width: 80px;
        height: 80px;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

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

    .cta-content {
        padding: 2.5rem;
    }

    .cta-phone {
        font-size: 1.25rem;
    }

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

    .container {
        padding: 0 1.25rem;
    }

    .intro, .rooms, .amenities, .location, .cta {
        padding: 5rem 0;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

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

    .stat-card {
        min-width: 100%;
    }

    .cta-content {
        padding: 2rem 1.5rem;
    }
}
