/* ===================================
   Modern 41 Motel — Custom Styles
   Palette: Emerald Green + Cream
=================================== */

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

:root {
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --cream-50: #fafaf5;
    --cream-100: #f5f5ed;
    --cream-200: #e8e8dc;
    --cream-300: #d4d4c4;
    --neutral-900: #1a1a1a;
    --neutral-800: #2d2d2d;
    --neutral-700: #3d3d3d;
    --neutral-600: #525252;
    --neutral-500: #6b6b6b;
    --neutral-400: #8a8a8a;
    --neutral-300: #b0b0b0;
    --neutral-200: #d4d4d4;
    --neutral-100: #ebebeb;
    --white: #ffffff;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--neutral-800);
    background: var(--cream-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 245, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--cream-200);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--emerald-900);
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--emerald-900);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    letter-spacing: -0.02em;
}

.logo-text {
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--neutral-700);
    transition: color var(--transition);
    position: relative;
}

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

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

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--emerald-800);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover {
    background: var(--emerald-700);
    transform: translateY(-1px);
}

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

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--neutral-800);
    transition: var(--transition);
    transform-origin: center;
}

.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background: var(--neutral-800);
    transition: var(--transition);
}

.hamburger.active::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    background: var(--cream-50);
    overflow: hidden;
}

.hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--emerald-100, #d1fae5);
    color: var(--emerald-800);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--neutral-900);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subheadline {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--neutral-600);
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--emerald-800);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--cream-300);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: var(--emerald-200, #a7f3d0);
    border-radius: var(--radius-lg);
    z-index: -1;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

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

.btn-primary:hover {
    background: var(--emerald-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--white);
    color: var(--neutral-800);
    border: 1.5px solid var(--neutral-200);
}

.btn-secondary:hover {
    border-color: var(--emerald-600);
    color: var(--emerald-800);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.05rem;
}

/* --- Section Shared --- */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    padding: 5px 14px;
    background: var(--emerald-100, #d1fae5);
    color: var(--emerald-800);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: var(--neutral-900);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--neutral-600);
}

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

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

.room-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

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

.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: 28px;
}

.room-info h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 10px;
}

.room-info > p {
    font-size: 0.9rem;
    color: var(--neutral-600);
    line-height: 1.6;
    margin-bottom: 18px;
}

.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.room-features li {
    padding: 5px 12px;
    background: var(--cream-100);
    color: var(--neutral-700);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 100px;
}

.rooms-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px 40px;
    background: var(--emerald-900);
    border-radius: var(--radius-md);
}

.rooms-cta p {
    color: var(--cream-200, #d1fae5);
    font-size: 1rem;
    font-weight: 500;
}

.rooms-cta .btn {
    flex-shrink: 0;
}

/* --- Amenities --- */
.amenities {
    padding: 100px 0;
    background: var(--cream-50);
}

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

.amenities-content .section-header {
    text-align: left;
    margin-bottom: 40px;
}

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

.amenity-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.amenity-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald-100, #d1fae5);
    color: var(--emerald-800);
    border-radius: var(--radius-sm);
}

.amenity-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 4px;
}

.amenity-text p {
    font-size: 0.9rem;
    color: var(--neutral-600);
    line-height: 1.6;
}

.amenities-image {
    position: relative;
}

.amenities-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.amenities-image-accent {
    position: absolute;
    top: -16px;
    left: -16px;
    width: 160px;
    height: 160px;
    background: var(--cream-300);
    border-radius: var(--radius-lg);
    z-index: -1;
}

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

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

.location-content .section-header {
    text-align: left;
    margin-bottom: 36px;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 36px;
}

.location-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.location-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--emerald-700);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.location-item div {
    font-size: 0.95rem;
    color: var(--neutral-700);
    line-height: 1.6;
}

.location-item strong {
    color: var(--neutral-900);
}

.location-map {
    height: 480px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* --- Testimonials --- */
.testimonials {
    padding: 100px 0;
    background: var(--white);
}

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

.testimonial-card {
    padding: 36px;
    background: var(--cream-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--cream-200);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.testimonial-quote {
    color: var(--emerald-600);
    margin-bottom: 20px;
    opacity: 0.7;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--neutral-700);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neutral-900);
}

/* --- CTA --- */
.cta {
    padding: 100px 0;
    background: var(--emerald-900);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta-content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-content .section-tag {
    background: rgba(255,255,255,0.12);
    color: var(--cream-200, #d1fae5);
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.cta-subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--cream-200, #d1fae5);
    margin-bottom: 40px;
}

.cta-details {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--cream-200, #d1fae5);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cta-item strong {
    color: var(--white);
    display: block;
}

.cta-item a {
    color: var(--cream-200, #d1fae5);
    transition: color var(--transition);
}

.cta-item a:hover {
    color: var(--white);
}

.cta-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    color: var(--cream-200, #d1fae5);
    flex-shrink: 0;
}

.cta .btn-primary {
    background: var(--white);
    color: var(--emerald-900);
}

.cta .btn-primary:hover {
    background: var(--cream-100);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* --- Footer --- */
.footer {
    padding: 64px 0 32px;
    background: var(--neutral-900);
    color: var(--neutral-400);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

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

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--neutral-500);
    max-width: 300px;
}

.footer-info h4,
.footer-links h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--neutral-300);
    margin-bottom: 16px;
}

.footer-info p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--neutral-500);
    margin-bottom: 4px;
}

.footer-info a {
    color: var(--emerald-400, #34d399);
    transition: color var(--transition);
}

.footer-info a:hover {
    color: var(--white);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--neutral-800);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--neutral-600);
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile Menu --- */
.nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--cream-50);
    border-bottom: 1px solid var(--cream-200);
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-md);
}

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

    .hero-image {
        order: -1;
        max-width: 500px;
    }

    .hero-image img {
        height: 500px;
    }

    .hero-content {
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
    }

    .hero-subheadline {
        margin-left: auto;
        margin-right: auto;
    }

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

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

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

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

    .amenities-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .amenities-image img {
        height: 400px;
    }

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

    .location-map {
        height: 360px;
    }

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

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--cream-50);
        border-bottom: 1px solid var(--cream-200);
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-md);
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-image img {
        height: 360px;
        border-radius: var(--radius-md);
    }

    .hero-image-accent {
        display: none;
    }

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

    .rooms-cta {
        flex-direction: column;
        text-align: center;
        padding: 28px;
    }

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

    .cta-details {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

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

@media (max-width: 480px) {
    .hero-headline {
        font-size: 1.75rem;
    }

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

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

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .section-title {
        font-size: 1.6rem;
    }

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

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
