/* ============================================
   Buena Trailer Villa — Editorial Style
   Colors: Terracotta + Sand
   ============================================ */

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

:root {
    --terracotta: #B85C38;
    --terracotta-dark: #9A4A2C;
    --terracotta-light: #D4845E;
    --sand: #F5E6D3;
    --sand-light: #FAF3EB;
    --sand-dark: #E8D5C0;
    --charcoal: #1E1E1E;
    --charcoal-light: #3A3A3A;
    --cream: #FDFBF8;
    --white: #FFFFFF;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--charcoal);
    background-color: var(--cream);
    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: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 251, 248, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.header.scrolled {
    border-bottom-color: var(--sand-dark);
    box-shadow: 0 1px 20px rgba(30, 30, 30, 0.06);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--charcoal);
    letter-spacing: -0.01em;
}

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

.logo-light {
    color: var(--sand);
}

.logo-light .logo-icon {
    color: var(--sand);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    transition: all 0.3s var(--ease-out);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

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

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--charcoal-light);
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--terracotta);
    transition: width 0.3s var(--ease-out);
}

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

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

.nav-cta {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--terracotta);
    padding: 10px 20px;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.2s var(--ease-out);
}

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

/* ============================================
   HERO
   ============================================ */
.hero {
    padding-top: 72px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--cream);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 80px 0;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-eyebrow::before {
    content: '';
    width: 40px;
    height: 1.5px;
    background: var(--terracotta);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--charcoal);
    margin-bottom: 28px;
}

.hero-subheadline {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--charcoal-light);
    max-width: 480px;
    margin-bottom: 40px;
}

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

.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 16px 32px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

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

.btn-primary:hover {
    background: var(--terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 92, 56, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--charcoal);
    border: 1.5px solid var(--charcoal);
}

.btn-secondary:hover {
    background: var(--charcoal);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ============================================
   SECTION EYEBROW & HEADLINES
   ============================================ */
.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 16px;
    display: block;
}

.section-headline {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--charcoal);
    margin-bottom: 24px;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.lead-text {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--charcoal-light);
    max-width: 560px;
}

/* ============================================
   INTRO
   ============================================ */
.intro {
    padding: 120px 0;
    background: var(--sand-light);
}

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

.intro-content .section-headline {
    margin-bottom: 28px;
}

.intro-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--charcoal-light);
    margin-bottom: 20px;
}

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

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

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

/* ============================================
   SERVICES
   ============================================ */
.services {
    padding: 120px 0;
    background: var(--cream);
}

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

.service-card {
    background: var(--white);
    border: 1px solid var(--sand-dark);
    border-radius: 8px;
    padding: 48px 40px;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--terracotta);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(30, 30, 30, 0.08);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    color: var(--terracotta);
    margin-bottom: 24px;
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--charcoal);
    margin-bottom: 16px;
}

.service-body {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--charcoal-light);
}

/* ============================================
   SPLIT BANNER
   ============================================ */
.split-banner {
    padding: 0;
    background: var(--charcoal);
}

.split-banner-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
}

.split-banner-content {
    padding: 100px 80px 100px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-banner-content .section-eyebrow {
    color: var(--terracotta-light);
}

.split-banner-content .section-headline {
    color: var(--sand);
}

.split-banner-content .lead-text {
    color: rgba(245, 230, 211, 0.7);
}

.split-banner-image {
    overflow: hidden;
    border-radius: 0;
}

.split-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.8s var(--ease-out), opacity 0.4s ease;
}

.split-banner-image:hover img {
    transform: scale(1.03);
    opacity: 1;
}

/* ============================================
   LOCATION
   ============================================ */
.location {
    padding: 120px 0;
    background: var(--sand-light);
}

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

.location-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.location-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.location-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terracotta);
}

.location-value {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--charcoal);
}

.location-link {
    color: var(--charcoal);
    border-bottom: 1px solid var(--sand-dark);
    transition: border-color 0.3s ease, color 0.3s ease;
}

.location-link:hover {
    color: var(--terracotta);
    border-color: var(--terracotta);
}

.location-map {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--sand-dark);
}

.location-image {
    border-radius: 8px;
    overflow: hidden;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

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

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

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

.contact-content .section-headline {
    margin-bottom: 20px;
}

.contact-content .lead-text {
    margin-bottom: 40px;
}

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

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-item-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terracotta);
}

.contact-item-value {
    font-size: 1.0625rem;
    color: var(--charcoal);
    transition: color 0.3s ease;
}

.contact-item-value a {
    color: var(--charcoal);
    border-bottom: 1px solid var(--sand-dark);
    transition: border-color 0.3s ease, color 0.3s ease;
}

.contact-item-value a:hover {
    color: var(--terracotta);
    border-color: var(--terracotta);
}

.contact-form-wrapper {
    background: var(--white);
    border: 1px solid var(--sand-dark);
    border-radius: 8px;
    padding: 48px;
}

.form-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--charcoal);
    margin-bottom: 32px;
}

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

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--charcoal-light);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--charcoal);
    background: var(--sand-light);
    border: 1.5px solid var(--sand-dark);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input::placeholder {
    color: #aaa;
}

.form-input:focus {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.12);
}

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

.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 18px;
    background: #E8F5E9;
    border: 1px solid #A5D6A7;
    border-radius: 4px;
    color: #2E7D32;
    font-size: 0.9375rem;
    font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--charcoal);
    color: var(--sand);
    padding: 80px 0 40px;
}

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

.footer-tagline {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(245, 230, 211, 0.6);
    margin-top: 16px;
    max-width: 280px;
}

.footer-heading {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terracotta-light);
    margin-bottom: 20px;
}

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

.footer-links a,
.footer-contact a {
    font-size: 0.9375rem;
    color: rgba(245, 230, 211, 0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--sand);
}

.footer-contact span {
    font-size: 0.9375rem;
    color: rgba(245, 230, 211, 0.7);
    line-height: 1.7;
}

.footer-bottom {
    border-top: 1px solid rgba(245, 230, 211, 0.12);
    padding-top: 32px;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(245, 230, 211, 0.4);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   MOBILE NAV
   ============================================ */
@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100dvh;
        background: var(--cream);
        flex-direction: column;
        align-items: stretch;
        padding: 100px 32px 40px;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease-out);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
        z-index: 999;
    }

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

    .nav-link {
        font-size: 1.125rem;
        padding: 16px 0;
        border-bottom: 1px solid var(--sand-dark);
    }

    .nav-link::after {
        display: none;
    }

    .nav-cta {
        margin-top: 24px;
        text-align: center;
        display: block;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 998;
    }

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 48px 0;
    }

    .hero-image {
        order: -1;
        max-height: 400px;
    }

    .hero-image img {
        height: 100%;
    }

    .intro-grid,
    .split-banner-inner,
    .location-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .split-banner-content {
        padding: 64px 24px;
    }

    .split-banner-inner {
        min-height: auto;
    }

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

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

    .contact-form-wrapper {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-headline {
        font-size: 2.125rem;
    }

    .hero-actions {
        flex-direction: column;
    }

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

    .service-card {
        padding: 32px 28px;
    }
}
