/* ========================================
   THE RUMI — Boutique Hotel Website
   Color Palette: Emerald + Cream
   Typography: Playfair Display + Inter
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --cream-50: #fefdf8;
    --cream-100: #fef9ef;
    --cream-200: #fdf3e0;
    --cream-300: #f5e6c8;
    --charcoal: #1a1a1a;
    --charcoal-light: #2d2d2d;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #6b6b6b;
    --white: #ffffff;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

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

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

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

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

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

ul {
    list-style: none;
}

/* --- Utility --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.938rem;
    letter-spacing: 0.02em;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

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

.btn--primary:hover {
    background: var(--emerald-700);
    border-color: var(--emerald-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6, 78, 59, 0.3);
}

.btn--dark {
    background: var(--charcoal);
    color: var(--cream-50);
    border: 2px solid var(--charcoal);
}

.btn--dark:hover {
    background: var(--charcoal-light);
    border-color: var(--charcoal-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 26, 26, 0.25);
}

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

.btn--light:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn--outline-light {
    background: transparent;
    color: var(--cream-50);
    border: 2px solid rgba(254, 253, 248, 0.6);
}

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

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

.btn--lg {
    padding: 18px 40px;
    font-size: 1rem;
}

/* --- Section Shared --- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 24px;
}

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

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease-out);
}

.header.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo__mark {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--cream-50);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(254, 253, 248, 0.5);
    border-radius: 4px;
    transition: all 0.3s var(--ease-out);
}

.header.scrolled .logo__mark {
    color: var(--emerald-800);
    border-color: var(--emerald-800);
}

.logo--light .logo__mark {
    color: var(--emerald-800);
    border-color: var(--emerald-800);
}

.logo__text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cream-50);
    letter-spacing: 0.02em;
    transition: color 0.3s var(--ease-out);
}

.header.scrolled .logo__text,
.logo--light .logo__text {
    color: var(--text-primary);
}

/* Navigation */
.nav__list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(254, 253, 248, 0.85);
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s var(--ease-out);
    letter-spacing: 0.02em;
}

.nav__link:hover {
    color: var(--cream-50);
    background: rgba(254, 253, 248, 0.1);
}

.header.scrolled .nav__link {
    color: var(--text-secondary);
}

.header.scrolled .nav__link:hover {
    color: var(--emerald-800);
    background: rgba(6, 78, 59, 0.06);
}

.nav__book {
    margin-left: 8px;
    background: rgba(254, 253, 248, 0.15);
    border: 1px solid rgba(254, 253, 248, 0.3);
    color: var(--cream-50) !important;
    padding: 10px 24px !important;
}

.nav__book:hover {
    background: var(--cream-50) !important;
    color: var(--emerald-800) !important;
}

.header.scrolled .nav__book {
    background: var(--emerald-800);
    border-color: var(--emerald-800);
    color: var(--cream-50) !important;
}

.header.scrolled .nav__book:hover {
    background: var(--emerald-700) !important;
    border-color: var(--emerald-700) !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
    z-index: 1001;
}

.nav-toggle__line {
    width: 100%;
    height: 1.5px;
    background: var(--cream-50);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.header.scrolled .nav-toggle__line {
    background: var(--charcoal);
}

.nav-toggle.active .nav-toggle__line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

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

.nav-toggle.active .nav-toggle__line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

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

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

.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(6, 30, 20, 0.82) 0%,
        rgba(6, 78, 59, 0.65) 50%,
        rgba(6, 30, 20, 0.75) 100%
    );
}

.hero__container {
    position: relative;
    z-index: 1;
    padding-top: 100px;
    padding-bottom: 80px;
    width: 100%;
}

.hero__content {
    max-width: 680px;
}

.hero__eyebrow {
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cream-300);
    margin-bottom: 24px;
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 6vw, 5rem);
    font-weight: 400;
    line-height: 1.08;
    color: var(--cream-50);
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

.hero__headline em {
    font-style: italic;
    color: var(--cream-200);
}

.hero__sub {
    font-size: 1.125rem;
    color: rgba(254, 253, 248, 0.75);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 480px;
    font-weight: 300;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Floating Stat Cards */
.hero__stats {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 2;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(254, 253, 248, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(254, 253, 248, 0.15);
    border-radius: 12px;
    padding: 20px 24px;
    color: var(--cream-50);
    transition: all 0.3s var(--ease-out);
    min-width: 220px;
}

.stat-card:hover {
    background: rgba(254, 253, 248, 0.16);
    transform: translateX(-6px);
    border-color: rgba(254, 253, 248, 0.25);
}

.stat-card--1 { margin-top: 32px; }
.stat-card--3 { margin-bottom: 32px; }

.stat-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(254, 253, 248, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
    color: var(--cream-200);
}

.stat-card__info {
    display: flex;
    flex-direction: column;
}

.stat-card__number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.stat-card__label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(254, 253, 248, 0.6);
    font-weight: 500;
}

/* --- Rooms Section --- */
.rooms {
    padding: 120px 0;
    background: var(--cream-50);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 72px;
}

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

.room-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.4s var(--ease-out);
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.room-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

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

.room-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--emerald-800);
    color: var(--cream-50);
    font-size: 0.688rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
}

.room-card__content {
    padding: 32px 28px;
}

.room-card__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.room-card__desc {
    font-size: 0.938rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.room-card__amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.room-card__amenities li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.813rem;
    color: var(--text-muted);
    font-weight: 500;
}

.room-card__amenities svg {
    color: var(--emerald-600);
    flex-shrink: 0;
}

.room-card__content .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
}

/* --- Experience Section --- */
.experience {
    padding: 120px 0;
    background: var(--cream-100);
}

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

.experience__text {
    font-size: 1.063rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 48px;
    max-width: 520px;
}

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

.feature {
    display: flex;
    gap: 20px;
}

.feature__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-800);
    border-radius: 12px;
    color: var(--cream-50);
    flex-shrink: 0;
}

.feature__title {
    font-family: var(--font-serif);
    font-size: 1.188rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.feature__desc {
    font-size: 0.938rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.experience__images {
    position: relative;
    height: 600px;
}

.exp-img {
    border-radius: 12px;
    overflow: hidden;
    position: absolute;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

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

.exp-img--1 {
    width: 340px;
    height: 440px;
    top: 0;
    left: 0;
    z-index: 1;
}

.exp-img--2 {
    width: 280px;
    height: 260px;
    bottom: 40px;
    right: 0;
    z-index: 2;
}

/* --- Location Section --- */
.location {
    padding: 120px 0;
    background: var(--cream-50);
}

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

.location__text {
    font-size: 1.063rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 48px;
}

.location__highlights {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.highlight {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 12px 32px;
}

.highlight__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-700);
    padding-top: 4px;
}

.highlight__value {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.highlight__phone {
    color: var(--emerald-700);
    font-weight: 500;
    transition: color 0.3s;
}

.highlight__phone:hover {
    color: var(--emerald-600);
}

.location__map {
    position: relative;
}

.location__map img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    aspect-ratio: 4/3;
    object-fit: cover;
}

.location__map-btn {
    position: absolute;
    bottom: 24px;
    left: 24px;
    padding: 12px 24px;
    font-size: 0.875rem;
}

/* --- CTA Section --- */
.cta {
    padding: 120px 0;
    background: var(--emerald-900);
}

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

.cta .section-eyebrow {
    color: var(--cream-300);
}

.cta .section-title {
    color: var(--cream-50);
}

.cta .section-title em {
    color: var(--cream-200);
}

.cta__text {
    font-size: 1.063rem;
    color: rgba(254, 253, 248, 0.7);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 480px;
}

.cta__form-wrap {
    background: rgba(254, 253, 248, 0.06);
    border: 1px solid rgba(254, 253, 248, 0.1);
    border-radius: 16px;
    padding: 40px;
}

.form__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cream-50);
    margin-bottom: 28px;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    font-size: 0.813rem;
    font-weight: 500;
    color: rgba(254, 253, 248, 0.6);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.form__input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(254, 253, 248, 0.08);
    border: 1px solid rgba(254, 253, 248, 0.15);
    border-radius: 8px;
    color: var(--cream-50);
    font-family: var(--font-sans);
    font-size: 0.938rem;
    transition: all 0.3s var(--ease-out);
    outline: none;
}

.form__input::placeholder {
    color: rgba(254, 253, 248, 0.35);
}

.form__input:focus {
    border-color: rgba(254, 253, 248, 0.4);
    background: rgba(254, 253, 248, 0.12);
}

.form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fef3c7' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form__select option {
    background: var(--emerald-900);
    color: var(--cream-50);
}

.form__textarea {
    resize: vertical;
    min-height: 80px;
}

.btn--full {
    margin-top: 8px;
}

.form__success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form__success svg {
    color: var(--emerald-500);
    margin-bottom: 16px;
}

.form__success p {
    color: var(--cream-200);
    font-size: 1rem;
    line-height: 1.6;
}

/* --- Footer --- */
.footer {
    background: var(--charcoal);
    padding: 80px 0 0;
    color: var(--cream-50);
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    padding-bottom: 60px;
}

.footer__tagline {
    font-size: 0.938rem;
    color: rgba(254, 253, 248, 0.5);
    line-height: 1.7;
    margin-top: 20px;
    max-width: 280px;
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.footer__heading {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cream-300);
    margin-bottom: 20px;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__list li {
    font-size: 0.938rem;
    color: rgba(254, 253, 248, 0.55);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer__list a {
    color: rgba(254, 253, 248, 0.55);
    transition: color 0.3s;
}

.footer__list a:hover {
    color: var(--cream-200);
}

.footer__bottom {
    border-top: 1px solid rgba(254, 253, 248, 0.08);
    padding: 24px 0;
}

.footer__bottom p {
    font-size: 0.813rem;
    color: rgba(254, 253, 248, 0.3);
}

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero__stats {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin-top: 60px;
        flex-wrap: wrap;
    }

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

    .stat-card--1 { margin-top: 0; }
    .stat-card--3 { margin-bottom: 0; }

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

    .experience__inner,
    .location__inner,
    .cta__card {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .experience__images {
        height: 400px;
        order: -1;
    }

    .exp-img--1 {
        width: 240px;
        height: 320px;
    }

    .exp-img--2 {
        width: 200px;
        height: 200px;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

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

    .nav {
        position: fixed;
        inset: 0;
        background: rgba(6, 30, 20, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s var(--ease-out);
        z-index: 1000;
    }

    .nav.active {
        opacity: 1;
        visibility: visible;
    }

    .nav__list {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .nav__link {
        font-size: 1.25rem;
        color: rgba(254, 253, 248, 0.85) !important;
        padding: 14px 24px;
    }

    .nav__link:hover {
        background: rgba(254, 253, 248, 0.1) !important;
        color: var(--cream-50) !important;
    }

    .nav__book {
        margin-left: 0 !important;
        margin-top: 16px;
        background: rgba(254, 253, 248, 0.15) !important;
        border-color: rgba(254, 253, 248, 0.3) !important;
        color: var(--cream-50) !important;
    }

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

    .hero__stats {
        flex-direction: column;
        align-items: stretch;
    }

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

    .rooms__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .experience__images {
        height: 320px;
    }

    .exp-img--1 {
        width: 200px;
        height: 260px;
    }

    .exp-img--2 {
        width: 160px;
        height: 160px;
    }

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

    .cta__form-wrap {
        padding: 28px 24px;
    }

    .footer__links {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .location__map-btn {
        position: static;
        display: inline-flex;
        margin-top: 16px;
    }
}

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

    .hero__actions {
        flex-direction: column;
    }

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

    .rooms {
        padding: 80px 0;
    }

    .experience,
    .location {
        padding: 80px 0;
    }

    .cta {
        padding: 80px 0;
    }
}
