/* Foundation Variables for Farm Ranch */
:root {
    --primary-bg: #fdfbf7;
    --secondary-bg: #f4efe6;
    --accent-color: #4a5d23; /* Earthy natural green */
    --accent-hover: #3b4b1c;
    --text-main: #2c241b;
    --text-muted: #5e503f;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(74, 93, 35, 0.1);
    --gradient-hero: linear-gradient(135deg, rgba(244, 239, 230, 0.8) 0%, rgba(253, 251, 247, 0.95) 70%);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: 'Merriweather', serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Typography */
h1 { font-size: 4.5rem; font-weight: 700; line-height: 1.1; margin-bottom: 20px; color: #1a2211; }
h2 { font-size: 3rem; font-weight: 700; margin-bottom: 30px; color: #1a2211; }
h3 { font-size: 1.8rem; font-weight: 600; margin-bottom: 15px; color: #1a2211; }
p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 20px; }
.accent { color: var(--accent-color); }

.real-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.image-placeholder {
    width: 100%;
    height: 100%;
    background: #e8e3d8;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}


/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #1a2211;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links li a {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    color: var(--text-main);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: 0.3s ease;
    border-radius: 3px;
}

/* Navbar Hero - White text initially */
.navbar-hero .nav-links li a,
.navbar-hero .logo a {
    color: #ffffff;
}
.navbar-hero .hamburger span {
    background-color: #ffffff;
}

/* When scrolled, revert to dark */
.navbar-hero.scrolled .nav-links li a,
.navbar-hero.scrolled .logo a {
    color: var(--text-main);
}
.navbar-hero.scrolled .logo a {
    color: #1a2211;
}
.navbar-hero.scrolled .hamburger span {
    background-color: var(--text-main);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    border: 1px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(74, 93, 35, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background-color: var(--accent-hover);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 93, 35, 0.3);
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 93, 35, 0.3);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 50px;
    position: relative;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    animation: slideUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.hero-bg-graphic {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    z-index: 1;
}

.hero-bg-graphic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50% 50% 12px 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: 8px solid #fff;
}

/* Sections */
.section {
    padding: 100px 50px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Two Column Layouts */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

/* Cards */
.card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(74, 93, 35, 0.3);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.card-image-wrapper {
    height: 250px;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
}

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

.form-control {
    width: 100%;
    padding: 15px 20px;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(74, 93, 35, 0.1);
}

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

/* Footer */
.footer {
    background: var(--secondary-bg);
    border-top: 1px solid var(--glass-border);
    padding: 80px 50px 30px;
}

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

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #1a2211;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
}

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

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Page Headers */
.page-header {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('../images/header_bg.jpeg') no-repeat center center/cover;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(44, 36, 27, 0.5); /* dark overlay */
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 4rem;
    margin-bottom: 0;
    color: #ffffff;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.page-header p {
    color: #fdfbf7;
    font-size: 1.2rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    h1 { font-size: 3.5rem; }
    .split-section { grid-template-columns: 1fr; }
    .hero-bg-graphic { display: none; }
}

@media (max-width: 768px) {
    .navbar { padding: 20px; }
    .navbar.scrolled { padding: 15px 20px; }
    
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        background: var(--primary-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        transition: 0.3s ease;
    }
    
    .nav-links.active { right: 0; }
    
    /* On mobile active menu, links must be dark even if navbar-hero */
    .navbar-hero .nav-links.active li a {
        color: var(--text-main);
    }

    .hamburger { display: flex; z-index: 1001; }
    .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    
    .hero-actions { flex-direction: column; width: 100%; align-items: stretch; }
    .hero-actions .btn { width: 100%; text-align: center; }
    
    .grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 15px; }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .section { padding: 60px 20px; }
    .hero { padding: 0 20px; text-align: center; }
    
    /* Fix active hamburger color to be dark on the light menu background */
    .navbar-hero .hamburger.active span {
        background-color: var(--text-main);
    }
    
    /* Enhance inline grids on mobile */
    .grid-3[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Enhance specific inline padded elements */
    .container > div[style*="padding: 80px 40px"] {
        padding: 40px 20px !important;
    }

    /* Fix image placeholders height on mobile */
    div[style*="height: 600px"],
    div[style*="height: 500px"],
    div[style*="height: 400px"] {
        height: 300px !important;
    }
}

