/* ============================================
   The Farm West — Hotel & Lodging Website
   Warm, friendly, rounded, approachable design
   Color palette: Emerald Green + Cream
============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    --color-emerald-50:  #ecfdf5;
    --color-emerald-100: #d1fae5;
    --color-emerald-200: #a7f3d0;
    --color-emerald-300: #6ee7b7;
    --color-emerald-400: #34d399;
    --color-emerald-500: #10b981;
    --color-emerald-600: #059669;
    --color-emerald-700: #047857;
    --color-emerald-800: #065f46;
    --color-emerald-900: #064e3b;
    
    --color-cream-50:  #fffcf8;
    --color-cream-100: #fef9f3;
    --color-cream-200: #fdf3e8;
    --color-cream-300: #f5e6d0;
    
    --color-warm-50:  #fffdf8;
    --color-warm-100: #fef7ed;
    --color-warm-200: #fdecd4;
    
    --color-text-dark:   #1a2e23;
    --color-text-body:   #374151;
    --color-text-muted:  #6b7280;
    --color-text-light:  #f9fafb;
    
    --color-border: #e5e7eb;
    --color-border-light: #f3f4f6;
    
    --font-heading: 'DM Serif Display', Georgia, serif;
    --font-body: 'Nunito', 'Segoe UI', system-ui, sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.10), 0 4px 10px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.12);
    
    --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.7;
    color: var(--color-text-body);
    background-color: var(--color-cream-100);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

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

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p {
    color: var(--color-text-body);
}

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

.section {
    padding: 80px 0;
}

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

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

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

.btn-primary {
    background: var(--color-emerald-600);
    color: var(--color-text-light);
    border-color: var(--color-emerald-600);
}

.btn-primary:hover {
    background: var(--color-emerald-700);
    border-color: var(--color-emerald-700);
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: var(--color-text-light);
    border-color: rgba(255,255,255,0.5);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.8);
}

.btn-outline {
    background: transparent;
    color: var(--color-emerald-700);
    border-color: var(--color-emerald-600);
}

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

.btn-white {
    background: #ffffff;
    color: var(--color-emerald-700);
    border-color: #ffffff;
}

.btn-white:hover {
    background: var(--color-cream-50);
    box-shadow: var(--shadow-lg);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.85rem;
}

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

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

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-emerald-600);
    background: var(--color-emerald-50);
    border: 1px solid var(--color-emerald-200);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-title {
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 249, 243, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow var(--transition);
}

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

.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.3rem;
    color: var(--color-emerald-800);
    font-weight: 400;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--color-emerald-100);
    border-radius: var(--radius-sm);
    color: var(--color-emerald-700);
}

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

.nav-links a:not(.btn) {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-body);
}

.nav-links a:not(.btn):hover {
    background: var(--color-emerald-50);
    color: var(--color-emerald-700);
}

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

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--color-text-dark);
    border-radius: 2px;
    transition: all var(--transition);
}

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

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span: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;
    background: linear-gradient(
        135deg,
        #064e3b 0%,
        #047857 20%,
        #059669 40%,
        #10b981 60%,
        #34d399 80%,
        #6ee7b7 100%
    );
    padding: 120px 0 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(6, 78, 59, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(16, 185, 129, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(52, 211, 153, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

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

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

.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    color: #ffffff;
    margin-bottom: 24px;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

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

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 56px;
}

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

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.25);
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

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

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

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

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

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

.room-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-image img {
    transform: scale(1.05);
}

.room-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--color-emerald-600);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.room-info {
    padding: 28px;
}

.room-info h3 {
    margin-bottom: 10px;
    font-size: 1.35rem;
}

.room-info > p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.room-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

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

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

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

/* ---------- Amenities ---------- */
.amenities {
    background: #ffffff;
}

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

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

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

.amenity-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--color-cream-100);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition);
}

.amenity-item:hover {
    background: var(--color-emerald-50);
    border-color: var(--color-emerald-200);
    transform: translateX(4px);
}

.amenity-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-emerald-100);
    border-radius: var(--radius-md);
    color: var(--color-emerald-700);
}

.amenity-text h4 {
    margin-bottom: 4px;
    color: var(--color-text-dark);
}

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

.amenities-images {
    position: relative;
    min-height: 500px;
}

.amenity-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.amenity-img-float {
    position: absolute;
    bottom: -24px;
    left: -24px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid #ffffff;
}

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

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

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

.location-content .section-header {
    text-align: left;
    margin: 0 0 32px;
}

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

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

.location-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-emerald-100);
    border-radius: var(--radius-md);
    color: var(--color-emerald-700);
}

.location-detail strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-emerald-700);
    margin-bottom: 4px;
}

.location-detail p {
    font-size: 0.95rem;
    color: var(--color-text-body);
    line-height: 1.6;
}

.location-detail a {
    color: var(--color-emerald-700);
    font-weight: 700;
}

.location-detail a:hover {
    color: var(--color-emerald-500);
    text-decoration: underline;
}

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

/* ---------- CTA ---------- */
.cta {
    background: #ffffff;
    padding: 80px 0;
}

.cta-card {
    background: linear-gradient(
        135deg,
        var(--color-emerald-800) 0%,
        var(--color-emerald-600) 50%,
        var(--color-emerald-500) 100%
    );
    border-radius: var(--radius-xl);
    padding: 64px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

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

.cta-content .section-tag {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.25);
    color: var(--color-emerald-100);
}

.cta-content .section-title {
    color: #ffffff;
    margin-bottom: 16px;
}

.cta-content .section-subtitle {
    color: rgba(255,255,255,0.8);
}

.cta-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
}

.cta-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
}

.cta-info svg {
    flex-shrink: 0;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--color-emerald-900);
    color: rgba(255,255,255,0.75);
    padding: 64px 0 32px;
}

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

.footer-brand .logo {
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-brand .logo-icon {
    background: rgba(255,255,255,0.12);
    color: var(--color-emerald-300);
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    color: #ffffff;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

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

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.footer-links a:hover {
    color: var(--color-emerald-300);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--color-emerald-400);
}

.footer-contact a {
    color: rgba(255,255,255,0.75);
}

.footer-contact a:hover {
    color: var(--color-emerald-300);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

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

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .amenities-layout,
    .location-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .amenities-images {
        min-height: 400px;
        order: -1;
    }
    
    .cta-card {
        grid-template-columns: 1fr;
        padding: 48px;
        text-align: center;
    }
    
    .cta-actions {
        align-items: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-cream-100);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 32px;
        gap: 4px;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a:not(.btn) {
        width: 100%;
        padding: 14px 16px;
        font-size: 1rem;
    }
    
    .nav-links .btn {
        width: 100%;
        justify-content: center;
        margin-top: 16px;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 998;
    }
    
    .mobile-overlay.active {
        display: block;
    }
    
    .hero {
        padding: 100px 0 80px;
        min-height: auto;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    
    .amenities-images {
        min-height: 300px;
    }
    
    .amenity-img-float {
        left: 16px;
        bottom: -16px;
    }
    
    .location-map {
        min-height: 300px;
    }
    
    .cta-card {
        padding: 36px 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .section {
        padding: 48px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .room-features {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

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