/* ============================================
   4U Motel — Classic & Elegant Hotel Website
   Forest Green + Off-White Palette
   ============================================ */

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

:root {
    --forest-dark: #1a3c2a;
    --forest-mid: #2d5a3f;
    --forest-light: #4a7c5c;
    --forest-pale: #e8f0ea;
    --cream: #f7f4ee;
    --cream-light: #faf8f4;
    --warm-white: #fefdfb;
    --warm-gray: #6b6560;
    --warm-gray-light: #9a9490;
    --warm-gray-dark: #3d3835;
    --gold-accent: #b8943e;
    --gold-light: #d4b86a;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Lora', 'Palatino Linotype', Palatino, serif;
    
    --shadow-sm: 0 1px 3px rgba(26, 60, 42, 0.06), 0 1px 2px rgba(26, 60, 42, 0.04);
    --shadow-md: 0 4px 16px rgba(26, 60, 42, 0.08), 0 2px 4px rgba(26, 60, 42, 0.04);
    --shadow-lg: 0 12px 40px rgba(26, 60, 42, 0.12), 0 4px 12px rgba(26, 60, 42, 0.06);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --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(--warm-gray-dark);
    background-color: var(--warm-white);
    line-height: 1.7;
    -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;
}

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

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
    color: var(--forest-dark);
}

.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--forest-light);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 20px;
    color: var(--forest-dark);
}

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

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

.btn-primary {
    background-color: var(--forest-dark);
    color: var(--cream-light);
    border: 2px solid var(--forest-dark);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--cream-light);
    border: 2px solid rgba(247, 244, 238, 0.5);
}

.btn-secondary:hover {
    background-color: rgba(247, 244, 238, 0.1);
    border-color: rgba(247, 244, 238, 0.8);
}

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

.btn-light:hover {
    background-color: var(--warm-white);
    border-color: var(--warm-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

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

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

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(254, 253, 251, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 60, 42, 0.08);
    transition: all var(--transition);
}

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

.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: baseline;
    gap: 2px;
}

.nav-logo-text {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--forest-dark);
}

.nav-logo-sub {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--warm-gray);
    letter-spacing: 0.05em;
}

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

.nav-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--warm-gray-dark);
    transition: color var(--transition);
    position: relative;
}

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

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

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

.nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--forest-dark);
    transition: color var(--transition);
}

.nav-phone:hover {
    color: var(--forest-light);
}

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

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--forest-dark);
    border-radius: 2px;
    transition: all var(--transition);
}

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

/* ---------- Mobile Menu ---------- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background-color: var(--warm-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: var(--forest-dark);
    padding: 8px;
}

.mobile-menu-link {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--forest-dark);
    padding: 12px 24px;
    transition: color var(--transition);
}

.mobile-menu-link:hover {
    color: var(--forest-light);
}

.mobile-menu-phone {
    margin-top: 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--forest-light);
    padding: 12px 24px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #0f2b1a 0%,
        #1a3c2a 20%,
        #2d5a3f 40%,
        #1a4a35 60%,
        #0d3020 80%,
        #071a10 100%
    );
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(74, 124, 92, 0.3) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 20%, rgba(184, 148, 62, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(45, 90, 63, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

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

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-accent);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 6vw, 4rem);
    font-weight: 500;
    color: var(--cream-light);
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-title-accent {
    font-style: italic;
    font-weight: 400;
    color: var(--gold-light);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(247, 244, 238, 0.75);
    line-height: 1.8;
    max-width: 580px;
    margin: 0 auto 40px;
}

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

.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(247, 244, 238, 0.4);
    animation: scrollBounce 2s ease-in-out infinite;
}

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

/* ---------- Intro ---------- */
.intro {
    padding: 100px 0;
    background-color: var(--warm-white);
}

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

.intro-image-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.intro-text p {
    font-size: 1.02rem;
    color: var(--warm-gray);
    line-height: 1.85;
    margin-bottom: 16px;
}

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

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

.section-header .section-subtitle {
    margin: 0 auto;
}

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

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

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

.room-card-image {
    overflow: hidden;
    aspect-ratio: 5 / 3.4;
}

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

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

.room-card-desc {
    font-size: 0.95rem;
    color: var(--warm-gray);
    line-height: 1.75;
}

/* ---------- Amenities ---------- */
.amenities {
    padding: 100px 0;
    background-color: var(--warm-white);
}

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

.amenity-card {
    padding: 36px 28px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(26, 60, 42, 0.08);
    transition: all var(--transition);
    background-color: var(--warm-white);
}

.amenity-card:hover {
    border-color: rgba(26, 60, 42, 0.18);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.amenity-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background-color: var(--forest-pale);
    color: var(--forest-dark);
    margin-bottom: 20px;
}

.amenity-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--forest-dark);
}

.amenity-desc {
    font-size: 0.92rem;
    color: var(--warm-gray);
    line-height: 1.75;
}

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

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

.location-text p {
    font-size: 1.02rem;
    color: var(--warm-gray);
    line-height: 1.85;
    margin-bottom: 28px;
}

.location-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.location-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--warm-gray-dark);
}

.location-features li svg {
    color: var(--forest-light);
    flex-shrink: 0;
}

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

.map-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.map-link img {
    width: 100%;
    aspect-ratio: 6 / 4;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-link:hover img {
    transform: scale(1.03);
}

.map-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 60, 42, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity var(--transition);
}

.map-link:hover .map-overlay {
    opacity: 1;
}

.map-overlay span,
.map-overlay svg {
    color: var(--cream-light);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
}

.map-overlay {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---------- Contact ---------- */
.contact {
    padding: 100px 0;
    background-color: var(--warm-white);
}

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

.contact-intro {
    font-size: 1.02rem;
    color: var(--warm-gray);
    line-height: 1.85;
    margin-bottom: 36px;
}

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

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

.contact-detail-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background-color: var(--forest-pale);
    color: var(--forest-dark);
    flex-shrink: 0;
}

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

.contact-detail-value {
    font-size: 1rem;
    color: var(--warm-gray-dark);
    line-height: 1.6;
}

.contact-phone {
    transition: color var(--transition);
}

.contact-phone:hover {
    color: var(--forest-light);
}

/* ---------- Form ---------- */
.contact-form-wrapper {
    background-color: var(--cream);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

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

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--warm-gray-dark);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--warm-gray-dark);
    background-color: var(--warm-white);
    border: 1.5px solid rgba(26, 60, 42, 0.12);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}

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

.form-input:focus {
    border-color: var(--forest-light);
    box-shadow: 0 0 0 3px rgba(74, 124, 92, 0.1);
}

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

.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 18px;
    background-color: var(--forest-pale);
    border-radius: var(--radius-sm);
    color: var(--forest-dark);
    font-size: 0.92rem;
    font-weight: 500;
}

.form-success svg {
    color: var(--forest-light);
    flex-shrink: 0;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
    padding: 80px 0;
    background: linear-gradient(
        135deg,
        var(--forest-dark) 0%,
        var(--forest-mid) 50%,
        var(--forest-dark) 100%
    );
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='1' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

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

.cta-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-accent);
    margin-bottom: 16px;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--cream-light);
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.05rem;
    color: rgba(247, 244, 238, 0.7);
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Footer ---------- */
.footer {
    background-color: var(--forest-dark);
    color: rgba(247, 244, 238, 0.7);
    padding: 64px 0 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(247, 244, 238, 0.1);
}

.footer-logo {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 12px;
}

.footer-logo-text {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--cream-light);
}

.footer-logo-sub {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: rgba(247, 244, 238, 0.5);
}

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

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

.footer-link {
    font-size: 0.9rem;
    color: rgba(247, 244, 238, 0.6);
    transition: color var(--transition);
}

.footer-link:hover {
    color: var(--cream-light);
}

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

.footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gold-light);
    transition: color var(--transition);
}

.footer-phone:hover {
    color: var(--gold-accent);
}

.footer-address {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(247, 244, 238, 0.5);
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
}

.footer-copyright {
    font-size: 0.82rem;
    color: rgba(247, 244, 238, 0.35);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content {
        padding: 100px 20px 60px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .intro-layout,
    .location-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .contact-form-wrapper {
        padding: 28px;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 12px 22px;
        font-size: 0.9rem;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
