/* ========================================
   Economy Motel — Custom Styles
   Color Palette: Terracotta + Sand
   ======================================== */

:root {
    --terracotta: #C0603A;
    --terracotta-dark: #A04E2C;
    --terracotta-light: #D4845E;
    --sand: #F5EDE3;
    --sand-light: #FAF6F1;
    --sand-dark: #E8DDD0;
    --sand-mid: #EDE2D4;
    --charcoal: #2C2420;
    --charcoal-light: #4A3F38;
    --warm-gray: #7A6E66;
    --warm-gray-light: #A89A90;
    --cream: #FDF9F4;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(44, 36, 32, 0.06);
    --shadow-md: 0 4px 20px rgba(44, 36, 32, 0.08);
    --shadow-lg: 0 8px 40px rgba(44, 36, 32, 0.12);
    --shadow-hover: 0 12px 48px rgba(44, 36, 32, 0.15);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --font-heading: 'Lora', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--charcoal);
    background-color: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 600;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--terracotta);
    background: rgba(192, 96, 58, 0.1);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--charcoal);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--warm-gray);
    max-width: 540px;
    line-height: 1.7;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 100px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

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

.btn-primary:hover {
    background: var(--terracotta-dark);
    border-color: var(--terracotta-dark);
    box-shadow: var(--shadow-md);
}

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

.btn-terracotta:hover {
    background: var(--terracotta-dark);
    border-color: var(--terracotta-dark);
    box-shadow: var(--shadow-md);
}

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

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

.btn-light {
    background: var(--white);
    color: var(--terracotta);
    border-color: var(--white);
}

.btn-light:hover {
    background: var(--sand);
    border-color: var(--sand);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-lg-wide {
    padding: 18px 44px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* ========================================
   Header / Navigation
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 249, 244, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(192, 96, 58, 0.08);
    transition: all var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--charcoal);
}

.logo-text span {
    color: var(--terracotta);
}

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

.main-nav {
    display: flex;
    align-items: center;
}

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

.nav-links a {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--charcoal-light);
    border-radius: 100px;
    transition: all var(--transition);
}

.nav-links a:hover {
    color: var(--terracotta);
    background: rgba(192, 96, 58, 0.06);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--terracotta) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
    margin-left: 8px;
}

.nav-cta:hover {
    background: var(--terracotta-dark) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
}

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

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(44, 36, 32, 0.55) 0%,
        rgba(44, 36, 32, 0.45) 50%,
        rgba(44, 36, 32, 0.7) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 28px;
}

.hero-badge svg {
    opacity: 0.8;
}

.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    color: var(--white);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-accent {
    color: var(--terracotta-light);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

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

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

/* ========================================
   Quick Stats
   ======================================== */
.quick-stats {
    padding: 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.stat-card {
    padding: 36px 28px;
    text-align: center;
    border-right: 1px solid var(--sand-dark);
    transition: all var(--transition);
}

.stat-card:last-child {
    border-right: none;
}

.stat-card:hover {
    background: var(--sand-light);
}

.stat-icon {
    color: var(--terracotta);
    margin-bottom: 12px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--warm-gray);
    line-height: 1.4;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

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

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

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

.room-img {
    height: 220px;
    overflow: hidden;
}

.room-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.room-info {
    padding: 28px;
}

.room-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--charcoal);
}

.room-info p {
    font-size: 0.9rem;
    color: var(--warm-gray);
    line-height: 1.65;
    margin-bottom: 16px;
}

.room-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.room-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--charcoal-light);
}

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

.room-info .btn {
    width: 100%;
}

/* ========================================
   Amenities
   ======================================== */
.amenities {
    padding: 100px 0;
    background: var(--sand-light);
}

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

.amenities-images {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
}

.amenity-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    min-height: 350px;
}

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

.amenity-img-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.amenity-img-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    min-height: 140px;
}

.amenities-content .section-tag {
    margin-bottom: 16px;
}

.amenities-content .section-subtitle {
    margin-bottom: 36px;
}

.amenity-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.amenity-icon {
    color: var(--terracotta);
    flex-shrink: 0;
    background: rgba(192, 96, 58, 0.08);
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.amenity-item strong {
    display: block;
    font-size: 1rem;
    color: var(--charcoal);
    margin-bottom: 2px;
}

.amenity-item span {
    font-size: 0.88rem;
    color: var(--warm-gray);
    line-height: 1.5;
}

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

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

.location-content .section-tag {
    margin-bottom: 16px;
}

.location-content .section-subtitle {
    margin-bottom: 32px;
}

.location-highlights {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.location-highlights li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--charcoal-light);
}

.location-highlights svg {
    color: var(--terracotta);
    flex-shrink: 0;
}

.location-highlights strong {
    color: var(--charcoal);
}

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

/* ========================================
   Trust / Testimonial
   ======================================== */
.trust {
    padding: 80px 0;
    background: var(--sand);
}

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

.trust-quote {
    margin-bottom: 24px;
}

.trust-text {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    line-height: 1.65;
    color: var(--charcoal);
    margin-bottom: 24px;
    font-style: italic;
}

.trust-attr {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.trust-name {
    font-weight: 600;
    color: var(--charcoal);
    font-size: 0.9rem;
}

.trust-source {
    font-size: 0.82rem;
    color: var(--warm-gray-light);
}

/* ========================================
   CTA Banner
   ======================================== */
.cta-banner {
    padding: 80px 0;
    background: var(--terracotta);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-text {
    flex: 1;
    min-width: 280px;
}

.cta-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: var(--white);
    margin-bottom: 12px;
}

.cta-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.cta-actions {
    flex-shrink: 0;
}

/* ========================================
   Contact
   ======================================== */
.contact {
    padding: 100px 0;
    background: var(--cream);
}

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

.contact-info .section-tag {
    margin-bottom: 16px;
}

.contact-info .section-subtitle {
    margin-bottom: 36px;
}

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

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

.contact-icon {
    color: var(--terracotta);
    flex-shrink: 0;
    background: rgba(192, 96, 58, 0.08);
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item strong {
    display: block;
    font-size: 1rem;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.contact-item span,
.contact-item a {
    font-size: 0.9rem;
    color: var(--warm-gray);
    line-height: 1.6;
}

.contact-item a:hover {
    color: var(--terracotta);
    text-decoration: underline;
}

/* Contact Form */
.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-title {
    font-size: 1.4rem;
    color: var(--charcoal);
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--charcoal-light);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--sand-dark);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--charcoal);
    background: var(--sand-light);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--terracotta);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(192, 96, 58, 0.1);
}

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

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

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.form-success svg {
    margin-bottom: 16px;
}

.form-success h4 {
    font-size: 1.3rem;
    color: var(--charcoal);
    margin-bottom: 8px;
}

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

.form-success a {
    color: var(--terracotta);
    font-weight: 600;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--charcoal);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 32px;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-links a {
    padding: 6px 14px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    border-radius: 100px;
    transition: all var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.footer-phone a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--terracotta-light);
    font-weight: 600;
    transition: color var(--transition);
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 28px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ========================================
   Reveal Animations (progressive enhancement)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    .reveal.revealed {
        animation: revealUp 0.6s ease forwards;
    }
}

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

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rooms-grid .room-card:last-child {
        grid-column: span 2;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 40px;
        gap: 4px;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition);
        z-index: 999;
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-links a {
        width: 100%;
        padding: 12px 16px;
        font-size: 1rem;
    }
    
    .nav-cta {
        margin-left: 0 !important;
        margin-top: 12px;
        justify-content: center;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card {
        border-right: none;
        border-bottom: 1px solid var(--sand-dark);
    }
    
    .stat-card:nth-child(2) {
        border-right: none;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    
    .rooms-grid .room-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }
    
    .amenities-split,
    .location-split,
    .contact-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .amenities-images {
        order: -1;
    }
    
    .cta-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .contact-form-wrap {
        padding: 28px;
    }
    
    .footer-top {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        border-right: none;
        border-bottom: 1px solid var(--sand-dark);
        padding: 24px 20px;
    }
    
    .stat-card:last-child {
        border-bottom: none;
    }
    
    .hero-content {
        padding: 100px 20px 80px;
    }
    
    .rooms,
    .amenities,
    .location,
    .contact {
        padding: 70px 0;
    }
}

/* Mobile nav overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(44, 36, 32, 0.4);
    z-index: 998;
}

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