/* ============================================
   Magnolia Moon Farm — Styles
   Classic · Elegant · Emerald & Cream
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --cream: #faf8f4;
    --cream-dark: #f5f0e8;
    --cream-mid: #ebe4d6;
    --text-dark: #1a1a1a;
    --text-mid: #3d3d3d;
    --text-light: #6b6b6b;
    --gold: #b8956a;
    --gold-light: #d4b896;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', 'Segoe UI', sans-serif;
    
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.7;
    font-weight: 300;
    overflow-x: hidden;
}

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

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

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

/* ============================================
   Typography
   ============================================ */

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

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 520px;
    line-height: 1.8;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 2px;
}

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

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

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.5);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.btn-nav {
    background: var(--emerald-800);
    color: #fff;
    padding: 10px 24px;
    font-size: 0.75rem;
}

.btn-nav:hover {
    background: var(--emerald-700);
}

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

/* ============================================
   Header
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.site-header.scrolled {
    border-bottom-color: var(--cream-mid);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--emerald-900);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    color: var(--emerald-700);
}

.nav ul {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav a {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-mid);
    transition: color var(--transition);
    position: relative;
}

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

.nav a:hover {
    color: var(--emerald-800);
}

.nav a:hover::after {
    width: 100%;
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text-dark);
    transition: var(--transition);
    transform-origin: center;
}

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

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

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

/* ============================================
   Hero
   ============================================ */

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

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/18587954/pexels-photo-18587954.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.12); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(6, 30, 20, 0.45) 0%,
        rgba(6, 30, 20, 0.30) 50%,
        rgba(6, 30, 20, 0.60) 100%
    );
}

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

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-light);
    display: block;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 24px;
}

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

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    max-width: 540px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

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

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: scrollBounce 2s ease-in-out infinite;
}

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

/* ============================================
   Intro / About
   ============================================ */

.intro {
    padding: 120px 0;
}

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

.intro-text p {
    font-size: 1.05rem;
    color: var(--text-mid);
    margin-bottom: 20px;
    line-height: 1.85;
}

.intro-text p:first-of-type {
    font-size: 1.15rem;
    color: var(--text-dark);
}

.intro-image {
    border-radius: 4px;
    overflow: hidden;
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.intro-image:hover img {
    transform: scale(1.03);
}

/* ============================================
   Stay / Rooms
   ============================================ */

.stay {
    padding: 120px 0;
    background: var(--cream-dark);
}

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

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

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

.room-card {
    background: var(--cream);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
}

.room-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

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

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

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

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

.room-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.room-desc {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 20px;
}

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

.room-features li {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--emerald-800);
    background: rgba(6, 78, 59, 0.08);
    padding: 6px 12px;
    border-radius: 2px;
}

/* ============================================
   Grounds
   ============================================ */

.grounds {
    position: relative;
    padding: 140px 0;
    overflow: hidden;
}

.grounds-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/8082564/pexels-photo-8082564.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=800') center center / cover no-repeat;
}

.grounds::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(6, 30, 20, 0.82);
    z-index: 1;
}

.grounds-content {
    position: relative;
    z-index: 2;
}

.grounds-eyebrow {
    color: var(--gold-light);
}

.grounds-title {
    color: #fff;
    margin-bottom: 20px;
}

.grounds-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    max-width: 600px;
    line-height: 1.85;
    margin-bottom: 64px;
}

.grounds-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.ground-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.ground-feature svg {
    color: var(--gold-light);
    flex-shrink: 0;
    margin-top: 2px;
}

.ground-feature h4 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 6px;
}

.ground-feature p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

/* ============================================
   Location
   ============================================ */

.location {
    padding: 120px 0;
}

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

.location-info p {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.85;
    margin-bottom: 40px;
}

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

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

.detail-item svg {
    color: var(--emerald-700);
    flex-shrink: 0;
    margin-top: 3px;
}

.detail-item strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.detail-item span,
.detail-item a {
    font-size: 0.95rem;
    color: var(--text-light);
    transition: color var(--transition);
}

.detail-item a:hover {
    color: var(--emerald-700);
}

.location-map {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

/* ============================================
   Contact
   ============================================ */

.contact {
    padding: 120px 0;
    background: var(--emerald-900);
}

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

.contact-text .section-eyebrow {
    color: var(--gold-light);
}

.contact-text .section-title {
    color: #fff;
}

.contact-text p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.85;
}

.contact-form-wrap {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 2px;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: #fff;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.35);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background: rgba(255,255,255,0.12);
}

.form-group select {
    appearance: none;
    cursor: pointer;
}

.form-group select option {
    background: var(--emerald-900);
    color: #fff;
}

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

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success svg {
    color: var(--gold-light);
    margin: 0 auto 20px;
}

.form-success h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 12px;
}

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

/* ============================================
   Footer
   ============================================ */

.site-footer {
    background: #041a14;
    padding: 64px 0 0;
}

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

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    margin-top: 12px;
    line-height: 1.8;
}

.footer-brand a {
    color: rgba(255,255,255,0.7);
    transition: color var(--transition);
}

.footer-brand a:hover {
    color: var(--gold-light);
}

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

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

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    text-align: center;
}

/* ============================================
   Animations
   ============================================ */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grounds-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .intro-grid,
    .location-grid,
    .contact-inner {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(250, 248, 244, 0.98);
        backdrop-filter: blur(12px);
        padding: 32px 24px;
        border-bottom: 1px solid var(--cream-mid);
        transform: translateY(-120%);
        transition: transform var(--transition);
        z-index: 999;
    }
    
    .nav.open {
        transform: translateY(0);
    }
    
    .nav ul {
        flex-direction: column;
        gap: 24px;
    }
    
    .nav a {
        font-size: 0.9rem;
    }
    
    .intro-grid,
    .location-grid,
    .contact-inner {
        grid-template-columns: 1fr;
    }
    
    .intro-image {
        order: -1;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .grounds-features {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .intro,
    .stay,
    .location {
        padding: 80px 0;
    }
    
    .contact {
        padding: 80px 0;
    }
    
    .contact-form-wrap {
        padding: 28px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-content {
        padding: 100px 20px 60px;
    }
}
