/* ========================================
   Beth's Acres MO — Stylesheet
   Vibrant Modern · Terracotta + Sand
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    --color-terracotta: #C2594A;
    --color-terracotta-dark: #A04538;
    --color-terracotta-light: #D4786A;
    --color-sand: #F5E6D3;
    --color-sand-light: #FDF6EE;
    --color-sand-dark: #E8D5C0;
    --color-dark: #2A1F1A;
    --color-dark-soft: #3D302A;
    --color-text: #2A1F1A;
    --color-text-muted: #6B5648;
    --color-white: #FFFFFF;
    --color-off-white: #FDF9F5;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-sm: 0 2px 8px rgba(42, 31, 26, 0.08);
    --shadow-md: 0 8px 32px rgba(42, 31, 26, 0.12);
    --shadow-lg: 0 16px 64px rgba(42, 31, 26, 0.16);

    --transition-fast: 0.2s ease;
    --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-off-white);
    line-height: 1.6;
    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 --- */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    background: rgba(194, 89, 74, 0.1);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--color-dark);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.text-center {
    text-align: center;
}

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

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

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

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

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

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

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

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

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

.btn-lg {
    padding: 18px 36px;
    font-size: 1.0625rem;
    border-radius: var(--radius-lg);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(253, 249, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-dark);
    z-index: 1001;
}

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

.logo-icon {
    display: flex;
    align-items: center;
    color: var(--color-terracotta);
}

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

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-dark-soft);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-terracotta);
    transition: width var(--transition-base);
}

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

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

/* 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: 2px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.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;
    overflow: hidden;
    background: var(--color-dark);
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(42, 31, 26, 0.85) 0%,
        rgba(42, 31, 26, 0.6) 50%,
        rgba(194, 89, 74, 0.4) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 140px 0 120px;
    max-width: 780px;
}

.hero .tagline {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-sand);
    background: rgba(245, 230, 211, 0.15);
    border: 1px solid rgba(245, 230, 211, 0.3);
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 28px;
    backdrop-filter: blur(4px);
}

.hero .headline {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.08;
    color: var(--color-white);
    margin-bottom: 24px;
}

.hero .subheadline {
    font-size: clamp(1.0625rem, 2vw, 1.3125rem);
    color: rgba(253, 249, 245, 0.8);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 580px;
}

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

.hero-shape {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.hero-shape--top {
    top: -2px;
    right: -2px;
    width: 320px;
    height: 320px;
    background: var(--color-terracotta);
    border-radius: 0 var(--radius-xl) 0 0;
    opacity: 0.15;
}

.hero-shape--bottom {
    bottom: -2px;
    left: -2px;
    width: 240px;
    height: 240px;
    background: var(--color-sand);
    border-radius: 0 0 var(--radius-xl) 0;
    opacity: 0.1;
}

/* --- Intro / About --- */
.intro {
    padding: 120px 0;
    background: var(--color-off-white);
}

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

.intro-image-wrap {
    position: relative;
}

.intro-image-wrap img {
    border-radius: var(--radius-lg);
    width: 100%;
    height: 500px;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.intro-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 160px;
    height: 160px;
    background: var(--color-terracotta);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.2;
}

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

.intro-content .section-title {
    margin-bottom: 24px;
}

.lead-text {
    font-size: 1.1875rem;
    font-weight: 500;
    color: var(--color-dark);
    line-height: 1.7;
    margin-bottom: 16px;
}

.intro-content p {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.intro-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--color-sand-dark);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-terracotta);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --- Features --- */
.features {
    position: relative;
    padding: 120px 0;
    background: var(--color-sand-light);
    overflow: hidden;
}

.features-bg-shape {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: var(--color-terracotta);
    border-radius: 50%;
    opacity: 0.05;
    pointer-events: none;
}

.features .section-header {
    margin-bottom: 64px;
}

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

.feature-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid rgba(245, 230, 211, 0.5);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-terracotta-light);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-terracotta), var(--color-terracotta-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    margin-bottom: 24px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* --- Gallery --- */
.gallery {
    padding: 120px 0;
    background: var(--color-off-white);
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item--large {
    grid-column: span 7;
    grid-row: span 2;
}

.gallery-item--large img {
    height: 100%;
    min-height: 420px;
}

.gallery-item--tall {
    grid-column: span 5;
    grid-row: span 2;
}

.gallery-item--tall img {
    height: 100%;
    min-height: 420px;
}

.gallery-item:not(.gallery-item--large):not(.gallery-item--tall) img {
    height: 200px;
}

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

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

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

.location-content .section-title {
    margin-bottom: 20px;
}

.location-content > p {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 32px;
}

.location-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
}

.location-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.0625rem;
    color: var(--color-dark-soft);
}

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

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

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* --- CTA Section --- */
.cta-section {
    position: relative;
    padding: 120px 0;
    background: var(--color-terracotta);
    overflow: hidden;
}

.cta-bg-shape {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(245, 230, 211, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(160, 69, 56, 0.4) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-content .section-tag {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-sand);
}

.cta-content .section-title {
    color: var(--color-white);
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.125rem;
    color: rgba(253, 249, 245, 0.85);
    line-height: 1.7;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.cta-note {
    font-size: 0.9375rem;
    color: rgba(253, 249, 245, 0.6);
}

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

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

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

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

.footer-info h4,
.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 20px;
}

.footer-info p {
    color: rgba(245, 230, 211, 0.6);
    font-size: 0.9375rem;
    line-height: 1.8;
}

.footer-info a {
    color: var(--color-terracotta-light);
    transition: color var(--transition-fast);
}

.footer-info a:hover {
    color: var(--color-sand);
}

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

.footer-links a {
    color: rgba(245, 230, 211, 0.6);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-terracotta-light);
}

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

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

/* --- Scroll Reveal --- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
    }

    .reveal-up.visible,
    .reveal-left.visible,
    .reveal-right.visible {
        opacity: 1;
        transform: none;
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .intro-grid,
    .location-grid {
        gap: 48px;
    }

    .features-grid {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-off-white);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 40px;
        gap: 24px;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition-base);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.125rem;
    }

    .hero-content {
        padding: 120px 0 100px;
    }

    .hero .headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

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

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

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

    .intro-image-wrap {
        order: -1;
    }

    .intro-image-wrap img {
        height: 320px;
    }

    .intro-stats {
        gap: 24px;
    }

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

    .feature-card {
        padding: 28px;
    }

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

    .gallery-item--large,
    .gallery-item--tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item--large img,
    .gallery-item--tall img {
        min-height: 240px;
    }

    .gallery-item:not(.gallery-item--large):not(.gallery-item--tall) img {
        height: 160px;
    }

    .location-map {
        min-height: 280px;
    }

    .map-placeholder {
        min-height: 280px;
    }

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

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

    .intro,
    .features,
    .gallery,
    .location {
        padding: 80px 0;
    }

    .cta-section {
        padding: 80px 0;
    }

    .intro-stats {
        flex-direction: column;
        gap: 20px;
    }

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

    .gallery-item img {
        height: 200px;
    }
}
