/*
Theme Name: Farmville
Theme URI: https://farmvilletheme.com
Author: Revolutionary IT
Author URI: https://revolutionaryit.com
Description: A warm, rustic WordPress theme for farms, orchards, ranches, and agritourism businesses. Features full Elementor page builder support and an animated farm loading screen with barns, trees, and walking farm animals.
Version: 0.0.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: farmville
Tags: farm, agriculture, ranch, food, elementor, business, full-width-template, custom-header, custom-menu, custom-logo, featured-images, threaded-comments, rtl-language-support, translation-ready

This theme requires the Elementor Page Builder plugin.
*/

/* ==========================================================================
   BASE RESET & ROOT VARIABLES
   ========================================================================== */
:root {
    --tc-primary:       #4a7c2a;       /* Barn-roof / fresh-grass green */
    --tc-primary-dark:  #355c1c;
    --tc-primary-light: #7ab048;
    --tc-secondary:     #d97706;       /* Wheat / harvest orange */
    --tc-accent:        #b91c1c;       /* Barn red */
    --tc-dark:          #3d2817;       /* Rich soil brown */
    --tc-dark-alt:      #5a3a22;
    --tc-text:          #2a1d10;
    --tc-gray:          #6b5a45;
    --tc-gray-light:    #f5efe2;       /* Hay / cream */
    --tc-white:         #ffffff;
    --tc-border:        #e6dcc7;
    --tc-sky:           #87ceeb;
    --tc-sun:           #fcd34d;
    --tc-heading-font:  'Fredoka', 'Inter', 'Segoe UI', sans-serif;
    --tc-body-font:     'Inter', 'Segoe UI', sans-serif;
    --tc-mono-font:     'JetBrains Mono', 'Courier New', monospace;
    --tc-radius:        12px;
    --tc-radius-lg:     20px;
    --tc-shadow:        0 4px 24px rgba(61, 40, 23, 0.12);
    --tc-shadow-lg:     0 8px 48px rgba(61, 40, 23, 0.20);
    --tc-transition:    all 0.3s ease;
}

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

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

body {
    font-family: var(--tc-body-font);
    color: var(--tc-dark);
    background: var(--tc-white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--tc-heading-font);
    font-weight: 700;
    line-height: 1.2;
    color: var(--tc-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }
a { color: var(--tc-primary); text-decoration: none; transition: var(--tc-transition); }
a:hover { color: var(--tc-primary-dark); }

strong, b { font-weight: 700; }
em, i { font-style: italic; }
code { font-family: var(--tc-mono-font); background: var(--tc-gray-light); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
blockquote { border-left: 4px solid var(--tc-primary); padding: 1rem 1.5rem; margin: 1.5rem 0; background: var(--tc-gray-light); border-radius: 0 var(--tc-radius) var(--tc-radius) 0; }

img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.25rem; }

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-wide {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding { padding: 5rem 0; }
.section-padding-sm { padding: 3rem 0; }

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

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--tc-radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--tc-transition);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.btn-primary {
    background: var(--tc-primary);
    color: var(--tc-white);
    border-color: var(--tc-primary);
}
.btn-primary:hover {
    background: var(--tc-primary-dark);
    border-color: var(--tc-primary-dark);
    color: var(--tc-white);
    transform: translateY(-2px);
    box-shadow: var(--tc-shadow-lg);
}

.btn-secondary {
    background: var(--tc-secondary);
    color: var(--tc-dark);
    border-color: var(--tc-secondary);
}
.btn-secondary:hover {
    background: #00a882;
    border-color: #00a882;
    color: var(--tc-white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--tc-primary);
    border-color: var(--tc-primary);
}
.btn-outline:hover {
    background: var(--tc-primary);
    color: var(--tc-white);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: var(--tc-white);
    border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
    background: var(--tc-white);
    color: var(--tc-primary);
    border-color: var(--tc-white);
}

.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; }

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
#tc-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: transparent;
    transition: var(--tc-transition);
}

#tc-header.scrolled {
    background: rgba(13, 27, 42, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

#tc-header.header-light {
    background: var(--tc-white);
    border-bottom: 1px solid var(--tc-border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

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

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    text-decoration: none;
}

.site-logo img {
    height: 44px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--tc-white);
    letter-spacing: -0.5px;
}

.logo-tagline {
    font-size: 0.65rem;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

#tc-header.header-light .logo-name { color: var(--tc-dark); }
#tc-header.header-light .logo-tagline { color: var(--tc-gray); }

/* Primary Nav — stretch items to full header height so there's no dead zone
   above/below the links (which would break hover when crossing to the dropdown). */
.primary-nav {
    display: flex;
    align-items: stretch;
    gap: 0.25rem;
    height: 100%;
}

.primary-nav > li {
    list-style: none;
    position: relative;
    display: flex;
    align-items: center;
}

.primary-nav > li > a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 0.9rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255,255,255,0.88);
    border-radius: 6px;
    transition: var(--tc-transition);
    white-space: nowrap;
}

.primary-nav > li > a:hover,
.primary-nav > li.current-menu-item > a,
.primary-nav > li.current-menu-ancestor > a {
    color: var(--tc-white);
    background: rgba(255,255,255,0.1);
}

#tc-header.header-light .primary-nav > li > a { color: var(--tc-dark); }
#tc-header.header-light .primary-nav > li > a:hover { background: var(--tc-gray-light); color: var(--tc-primary); }

/* Dropdown */
.primary-nav > li.menu-item-has-children { position: relative; }

/* Submenu sits IMMEDIATELY below the menu item (which now fills the full header
   height — see .primary-nav > li above). No gap to cross. */
.primary-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--tc-white);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius-lg);
    box-shadow: var(--tc-shadow-lg);
    padding: 0.5rem;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
    z-index: 9999;
}

.primary-nav > li:hover > .sub-menu,
.primary-nav > li:focus-within > .sub-menu,
.primary-nav .sub-menu:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
}

.primary-nav .sub-menu li a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--tc-dark);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: var(--tc-transition);
}

.primary-nav .sub-menu li a:hover {
    background: var(--tc-gray-light);
    color: var(--tc-primary);
    padding-left: 1.25rem;
}

/* Header — Right side nav */
#header-right-nav { flex-shrink: 0; }
.header-right-nav {
    display: flex; align-items: center; gap: 0.1rem;
    list-style: none; margin: 0; padding: 0;
}
.header-right-nav > li { list-style: none; position: relative; }
.header-right-nav > li > a {
    display: block;
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
}
.header-right-nav > li > a:hover,
.header-right-nav > li.current-menu-item > a {
    color: var(--tc-white);
    background: rgba(255,255,255,0.08);
}
#tc-header.header-light .header-right-nav > li > a { color: var(--tc-text); }
#tc-header.header-light .header-right-nav > li > a:hover,
#tc-header.header-light .header-right-nav > li.current-menu-item > a {
    color: var(--tc-primary); background: var(--tc-gray-light);
}

/* Mobile right-nav (within mobile-nav drawer) */
.mobile-right-nav {
    list-style: none; margin: 1.25rem 0 0; padding: 1rem 0 0;
    border-top: 1px solid var(--tc-border);
}
.mobile-right-nav li { padding: 0.5rem 0; }
.mobile-right-nav a {
    color: var(--tc-muted); font-size: 0.9rem; text-decoration: none; font-weight: 500;
}
.mobile-right-nav a:hover { color: var(--tc-primary); }

@media (max-width: 1024px) {
    #header-right-nav { display: none; }
}

/* Header — logo image variants */
.site-logo-img { display: block; max-height: var(--tc-logo-max-height, 48px); width: auto; }
.site-logo-light { display: none; }
#tc-header.header-transparent:not(.scrolled) .site-logo-default { display: none; }
#tc-header.header-transparent:not(.scrolled) .site-logo-light   { display: block; }

/* Header — TRANSPARENT mode */
#tc-header.header-transparent {
    background: transparent;
    box-shadow: none;
    border-bottom: 0;
}
#tc-header.header-transparent .primary-nav > li > a,
#tc-header.header-transparent .header-right-nav > li > a {
    color: rgba(255,255,255,0.92);
}
#tc-header.header-transparent .primary-nav > li > a:hover,
#tc-header.header-transparent .header-right-nav > li > a:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* When user scrolls past hero, transparent header becomes solid */
#tc-header.header-transparent.scrolled {
    background: var(--tc-white);
    box-shadow: 0 4px 18px rgba(13,27,42,.07);
    border-bottom: 1px solid var(--tc-border);
}
#tc-header.header-transparent.scrolled .primary-nav > li > a,
#tc-header.header-transparent.scrolled .header-right-nav > li > a {
    color: var(--tc-text);
}
#tc-header.header-transparent.scrolled .primary-nav > li > a:hover,
#tc-header.header-transparent.scrolled .header-right-nav > li > a:hover {
    color: var(--tc-primary); background: var(--tc-gray-light);
}

/* Header — STICKY */
#tc-header.header-sticky { position: sticky; top: 0; z-index: 9999; }

/* Header — OVERLAY mode (hamburger menu at all sizes) */
#tc-header.header-overlay-mode #primary-nav,
#tc-header.header-overlay-mode #header-right-nav { display: none !important; }
#tc-header.header-overlay-mode .menu-toggle { display: flex !important; }
#tc-header.header-overlay-mode.header-transparent .menu-toggle span { background: #fff; }

body.nav-open { overflow: hidden; }

/* Mobile Nav — UPGRADE to fullscreen overlay when triggered */
.mobile-nav {
    /* Override default dropdown — go fullscreen overlay */
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #0d1b2a 0%, #162032 100%);
    padding: 80px 32px 48px;
    z-index: 9998;
    overflow-y: auto;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform .35s ease, opacity .35s ease;
    display: block !important;
    visibility: hidden;
}
.mobile-nav.active { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-nav > ul {
    max-width: 720px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}
.mobile-nav > ul > li > a {
    display: block;
    padding: 18px 0;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    transition: color .15s ease, padding-left .25s ease;
}
.mobile-nav > ul > li > a:hover { color: var(--tc-secondary); padding-left: 12px; }
.mobile-nav .sub-menu {
    list-style: none;
    padding: 8px 0 12px 16px;
    margin: 0;
}
.mobile-nav .sub-menu li a {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    padding: 8px 0;
    display: block;
    text-decoration: none;
}
.mobile-nav .sub-menu li a:hover { color: var(--tc-primary-light); }
.mobile-right-nav {
    list-style: none;
    margin: 32px auto 0;
    padding: 24px 0 0;
    max-width: 720px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.mobile-right-nav li a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
}
.mobile-right-nav li a:hover { color: #fff; }

/* Hamburger spans go light on overlay-open or transparent state */
body.nav-open .menu-toggle span { background: #fff; }

/* Header CTA */
.header-cta { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
#tc-header.header-overlay-mode .header-cta { display: none; }
@media (min-width: 1025px) {
    #tc-header.header-overlay-mode .header-cta { display: flex; }
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--tc-white);
    border-radius: 2px;
    transition: var(--tc-transition);
}

#tc-header.header-light .menu-toggle span { background: var(--tc-dark); }

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--tc-dark);
    padding: 1.5rem;
    z-index: 9998;
    border-top: 1px solid rgba(255,255,255,0.1);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

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

.mobile-nav ul { list-style: none; padding: 0; }
.mobile-nav ul li a {
    display: block;
    padding: 0.8rem 0;
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav ul li a:hover { color: var(--tc-secondary); }
.mobile-nav .sub-menu { padding-left: 1rem; }
.mobile-nav .sub-menu li a { font-size: 0.9rem; color: rgba(255,255,255,0.7); }

/* ==========================================================================
   HERO
   ========================================================================== */
.tc-hero-fallback {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--tc-dark) 0%, var(--tc-dark-alt) 50%, #0a2540 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.tc-hero-fallback::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 50%, rgba(10, 102, 194, 0.25) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(0, 200, 160, 0.15) 0%, transparent 60%);
}

.tc-hero-fallback::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-content-wrap {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(10, 102, 194, 0.2);
    border: 1px solid rgba(10, 102, 194, 0.4);
    color: var(--tc-secondary);
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--tc-secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--tc-white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--tc-primary-light), var(--tc-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 560px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.hero-stat-item { text-align: left; }
.hero-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--tc-white);
    line-height: 1;
    display: block;
}
.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
    display: block;
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section-header { margin-bottom: 3.5rem; }
.section-header.center { text-align: center; }

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--tc-primary);
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 2px;
    background: var(--tc-primary);
}

.section-header.center .section-tag { padding-left: 0; }
.section-header.center .section-tag::before { display: none; }

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 800;
    color: var(--tc-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-title .accent { color: var(--tc-primary); }

.section-subtitle {
    font-size: 1.05rem;
    color: var(--tc-gray);
    max-width: 580px;
    line-height: 1.8;
}

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

/* ==========================================================================
   SERVICE CARDS
   ========================================================================== */
.services-section { background: var(--tc-white); }

.service-card {
    background: var(--tc-white);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius-lg);
    padding: 2rem;
    transition: var(--tc-transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tc-primary), var(--tc-secondary));
    transform: scaleX(0);
    transition: var(--tc-transition);
}

.service-card:hover {
    border-color: transparent;
    box-shadow: var(--tc-shadow-lg);
    transform: translateY(-6px);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(10, 102, 194, 0.1), rgba(0, 200, 160, 0.1));
    border-radius: var(--tc-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    color: var(--tc-primary);
    transition: var(--tc-transition);
}

.service-card:hover .service-icon {
    background: var(--tc-primary);
    color: var(--tc-white);
}

.service-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--tc-dark);
}

.service-desc {
    font-size: 0.92rem;
    color: var(--tc-gray);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.service-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--tc-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--tc-transition);
}

.service-link::after {
    content: '→';
    transition: var(--tc-transition);
}

.service-link:hover { color: var(--tc-primary-dark); }
.service-link:hover::after { transform: translateX(4px); }

/* ==========================================================================
   WHY CHOOSE US / FEATURES
   ========================================================================== */
.features-section {
    background: linear-gradient(135deg, var(--tc-dark) 0%, var(--tc-dark-alt) 100%);
    color: var(--tc-white);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(10, 102, 194, 0.15), transparent 70%);
    pointer-events: none;
}

.features-section .section-title { color: var(--tc-white); }
.features-section .section-subtitle { color: rgba(255,255,255,0.65); }

.feature-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: var(--tc-radius-lg);
    transition: var(--tc-transition);
}

.feature-item:hover { background: rgba(255,255,255,0.05); }

.feature-icon-wrap {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--tc-primary), var(--tc-secondary));
    border-radius: var(--tc-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--tc-white);
    flex-shrink: 0;
}

.feature-content h4 { color: var(--tc-white); margin-bottom: 0.5rem; font-size: 1.05rem; }
.feature-content p { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.65; margin: 0; }

/* ==========================================================================
   PROCESS / HOW IT WORKS
   ========================================================================== */
.process-section { background: var(--tc-gray-light); }

.process-steps { display: flex; flex-direction: column; gap: 0; }

.process-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem 0;
    border-bottom: 1px solid var(--tc-border);
    position: relative;
}

.process-step:last-child { border-bottom: none; }

.step-number {
    width: 56px;
    height: 56px;
    background: var(--tc-primary);
    color: var(--tc-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.process-step:not(:last-child) .step-number::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% + 2rem + 1px);
    background: linear-gradient(to bottom, var(--tc-primary), var(--tc-border));
    z-index: 0;
}

.step-content h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.step-content p { font-size: 0.92rem; color: var(--tc-gray); margin: 0; line-height: 1.7; }

/* ==========================================================================
   STATS / COUNTER STRIP
   ========================================================================== */
.stats-strip {
    background: linear-gradient(135deg, var(--tc-primary) 0%, var(--tc-primary-dark) 100%);
    padding: 3.5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }

.stat-item {}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--tc-white);
    line-height: 1;
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    display: block;
}

.stat-divider {
    width: 32px;
    height: 2px;
    background: rgba(255,255,255,0.3);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

/* ==========================================================================
   TECHNOLOGY STACK
   ========================================================================== */
.tech-stack-section { background: var(--tc-white); }

.tech-logos-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    align-items: center;
}

@media (max-width: 1024px) { .tech-logos-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .tech-logos-grid { grid-template-columns: repeat(3, 1fr); } }

.tech-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius-lg);
    transition: var(--tc-transition);
    text-align: center;
}

.tech-logo-item:hover {
    border-color: var(--tc-primary);
    box-shadow: var(--tc-shadow);
    transform: translateY(-3px);
}

.tech-logo-item .tech-icon {
    font-size: 2rem;
    color: var(--tc-gray);
    transition: var(--tc-transition);
}
.tech-logo-item:hover .tech-icon { color: var(--tc-primary); }

.tech-logo-item span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tc-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials-section { background: var(--tc-gray-light); }

.testimonial-card {
    background: var(--tc-white);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius-lg);
    padding: 2rem;
    transition: var(--tc-transition);
}

.testimonial-card:hover {
    box-shadow: var(--tc-shadow-lg);
    transform: translateY(-4px);
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--tc-dark);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--tc-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tc-white);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.author-info {}
.author-name { font-weight: 700; font-size: 0.92rem; color: var(--tc-dark); }
.author-role { font-size: 0.8rem; color: var(--tc-gray); }

/* ==========================================================================
   BLOG / INSIGHTS
   ========================================================================== */
.blog-card {
    background: var(--tc-white);
    border-radius: var(--tc-radius-lg);
    overflow: hidden;
    border: 1px solid var(--tc-border);
    transition: var(--tc-transition);
}

.blog-card:hover { box-shadow: var(--tc-shadow-lg); transform: translateY(-4px); }

.blog-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--tc-gray-light);
}

.blog-body { padding: 1.5rem; }

.blog-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.blog-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--tc-primary);
    background: rgba(10, 102, 194, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.blog-date { font-size: 0.8rem; color: var(--tc-gray); }

.blog-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tc-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: var(--tc-transition);
}

.blog-card:hover .blog-title { color: var(--tc-primary); }

.blog-excerpt { font-size: 0.88rem; color: var(--tc-gray); line-height: 1.65; margin-bottom: 1.25rem; }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band {
    background: linear-gradient(135deg, var(--tc-dark) 0%, #0a2540 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(10, 102, 194, 0.2), transparent 70%);
}

.cta-band-inner { position: relative; z-index: 1; }
.cta-band h2 { color: var(--tc-white); font-size: clamp(1.75rem, 3vw, 2.75rem); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,0.65); font-size: 1.05rem; margin-bottom: 2rem; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-band .cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.contact-section { background: var(--tc-white); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.contact-info p { color: var(--tc-gray); margin-bottom: 2rem; }

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.contact-detail-icon {
    width: 40px;
    height: 40px;
    background: rgba(10, 102, 194, 0.1);
    border-radius: var(--tc-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tc-primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-detail-text { font-size: 0.9rem; }
.contact-detail-text strong { display: block; color: var(--tc-dark); font-weight: 600; margin-bottom: 0.2rem; }
.contact-detail-text span { color: var(--tc-gray); }

.contact-form {}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--tc-dark); margin-bottom: 0.4rem; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--tc-border);
    border-radius: var(--tc-radius);
    font-family: var(--tc-body-font);
    font-size: 0.92rem;
    color: var(--tc-dark);
    background: var(--tc-white);
    transition: var(--tc-transition);
    outline: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--tc-primary);
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.12);
}

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

/* ==========================================================================
   FOOTER
   ========================================================================== */
#tc-footer {
    background: var(--tc-dark);
    color: rgba(255,255,255,0.7);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand {}
.footer-brand .logo-name { color: var(--tc-white); font-size: 1.5rem; }
.footer-brand .logo-tagline { color: rgba(255,255,255,0.4); }
.footer-brand p { font-size: 0.9rem; line-height: 1.8; margin-top: 1rem; margin-bottom: 1.5rem; }

.footer-social { display: flex; gap: 0.75rem; }
.social-link {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    transition: var(--tc-transition);
}
.social-link:hover { background: var(--tc-primary); border-color: var(--tc-primary); color: var(--tc-white); }

.footer-col h4 {
    color: var(--tc-white);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.65rem; }
.footer-col ul li a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    transition: var(--tc-transition);
}
.footer-col ul li a:hover { color: var(--tc-white); padding-left: 4px; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom-text { font-size: 0.83rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.83rem; color: rgba(255,255,255,0.5); }
.footer-bottom-links a:hover { color: var(--tc-white); }

/* ==========================================================================
   ELEMENTOR OVERRIDES
   ========================================================================== */
.elementor-page .tc-hero-fallback { display: none; }

.elementor-section.tc-section-dark { background: var(--tc-dark) !important; }
.elementor-section.tc-section-primary { background: var(--tc-primary) !important; }
.elementor-section.tc-section-gray { background: var(--tc-gray-light) !important; }

.elementor-widget-heading .elementor-heading-title { font-family: var(--tc-heading-font) !important; }

/* Elementor button enhancements */
.elementor-button {
    border-radius: var(--tc-radius) !important;
    font-weight: 600 !important;
    transition: var(--tc-transition) !important;
}

/* ==========================================================================
   WORDPRESS CORE / GUTENBERG
   ========================================================================== */
.wp-block-image img { border-radius: var(--tc-radius); }
.wp-block-quote { border-left: 4px solid var(--tc-primary); }
.wp-block-button__link { border-radius: var(--tc-radius) !important; }

.entry-content img { border-radius: var(--tc-radius); }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.entry-content table th, .entry-content table td { padding: 0.75rem 1rem; border: 1px solid var(--tc-border); text-align: left; }
.entry-content table th { background: var(--tc-gray-light); font-weight: 700; }

.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1.5rem; }

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.tc-pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.tc-pagination a, .tc-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tc-dark);
    transition: var(--tc-transition);
}

.tc-pagination a:hover, .tc-pagination .current {
    background: var(--tc-primary);
    border-color: var(--tc-primary);
    color: var(--tc-white);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ==========================================================================
   FRONT PAGE LAYOUT HELPERS
   ========================================================================== */
.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 900px) {
    .why-us-grid,
    .process-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.blog-thumb-placeholder {
    width: 100%;
    height: 220px;
    background: var(--tc-gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-thumb-placeholder i {
    font-size: 2.5rem;
    color: var(--tc-border);
}

/* ==========================================================================
   SCROLL-TO-TOP
   ========================================================================== */
#scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--tc-primary);
    color: var(--tc-white);
    border: none;
    border-radius: var(--tc-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--tc-shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--tc-transition);
    z-index: 8888;
}

#scroll-top.visible { opacity: 1; visibility: visible; }
#scroll-top:hover { background: var(--tc-primary-dark); transform: translateY(-3px); }

/* ==========================================================================
   FARM ANIMATED PRELOADER
   ========================================================================== */
#tc-preloader.farm-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    overflow: hidden;
    background: linear-gradient(180deg, #87ceeb 0%, #b8e1f0 60%, #c9e4a8 60%, #8bb866 100%);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#tc-preloader.farm-preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

/* Sky layer */
.farm-preloader__sky {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.farm-preloader__sun {
    position: absolute;
    top: 8%;
    right: 10%;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, #fff7c2 0%, #fcd34d 60%, #f59e0b 100%);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(252, 211, 77, 0.7), 0 0 120px rgba(245, 158, 11, 0.3);
    animation: farm-sun-pulse 4s ease-in-out infinite;
}

@keyframes farm-sun-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.farm-preloader__cloud {
    position: absolute;
    background: #ffffff;
    border-radius: 50px;
    opacity: 0.95;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.farm-preloader__cloud::before,
.farm-preloader__cloud::after {
    content: '';
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
}

.farm-preloader__cloud--1 {
    top: 12%; left: -120px;
    width: 110px; height: 32px;
    animation: farm-cloud-drift 28s linear infinite;
}
.farm-preloader__cloud--1::before { width: 50px; height: 50px; top: -22px; left: 15px; }
.farm-preloader__cloud--1::after  { width: 36px; height: 36px; top: -16px; right: 18px; }

.farm-preloader__cloud--2 {
    top: 22%; left: -160px;
    width: 80px; height: 26px;
    animation: farm-cloud-drift 36s linear infinite;
    animation-delay: -10s;
}
.farm-preloader__cloud--2::before { width: 40px; height: 40px; top: -18px; left: 10px; }
.farm-preloader__cloud--2::after  { width: 30px; height: 30px; top: -12px; right: 12px; }

.farm-preloader__cloud--3 {
    top: 5%; left: -200px;
    width: 130px; height: 36px;
    animation: farm-cloud-drift 44s linear infinite;
    animation-delay: -22s;
}
.farm-preloader__cloud--3::before { width: 60px; height: 60px; top: -26px; left: 20px; }
.farm-preloader__cloud--3::after  { width: 42px; height: 42px; top: -18px; right: 22px; }

@keyframes farm-cloud-drift {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(100vw + 220px)); }
}

/* Scene container */
.farm-preloader__scene {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Trees */
.farm-preloader__tree {
    position: absolute;
    bottom: 38%;
    width: 80px;
    height: 120px;
    filter: drop-shadow(0 4px 4px rgba(0,0,0,0.15));
    animation: farm-tree-sway 5s ease-in-out infinite;
    transform-origin: bottom center;
}
.farm-preloader__tree--1 { left: 8%;  bottom: 36%; animation-delay: -1s; }
.farm-preloader__tree--2 { left: 70%; bottom: 36%; width: 100px; height: 150px; animation-delay: -2.5s; }
.farm-preloader__tree--3 { left: 88%; bottom: 36%; width: 70px;  height: 100px; animation-delay: -4s; }

@keyframes farm-tree-sway {
    0%, 100% { transform: rotate(-1.5deg); }
    50%      { transform: rotate(1.5deg); }
}

/* Barn */
.farm-preloader__barn {
    position: absolute;
    bottom: 36%;
    left: 28%;
    width: 280px;
    height: 224px;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.25));
}

/* Ground / Field */
.farm-preloader__ground {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(180deg, #a3d063 0%, #7ab048 50%, #5a8a32 100%);
}

.farm-preloader__grass {
    position: absolute;
    top: -8px; left: 0; right: 0;
    height: 16px;
    background-image:
        radial-gradient(ellipse 6px 12px at 10px 8px, #4a7c2a 50%, transparent 51%),
        radial-gradient(ellipse 5px 10px at 30px 8px, #355c1c 50%, transparent 51%),
        radial-gradient(ellipse 7px 13px at 55px 8px, #4a7c2a 50%, transparent 51%),
        radial-gradient(ellipse 5px 11px at 80px 8px, #5a8a32 50%, transparent 51%);
    background-size: 100px 16px;
    background-repeat: repeat-x;
}

/* Picket fence */
.farm-preloader__fence {
    position: absolute;
    bottom: 28%;
    left: 0; right: 0;
    height: 30px;
    background-image:
        linear-gradient(180deg, transparent 0 4px, #ffffff 4px 6px, transparent 6px 100%),
        repeating-linear-gradient(90deg,
            #ffffff 0 6px,
            transparent 6px 18px
        );
    background-size: 18px 30px, 18px 30px;
    background-repeat: repeat-x;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.15));
    opacity: 0.92;
    z-index: 3;
}

.farm-preloader__fence::before {
    content: '';
    position: absolute;
    top: 18px; left: 0; right: 0; height: 3px;
    background: #ffffff;
    box-shadow: 0 2px 2px rgba(0,0,0,0.1);
}

/* Walking animals */
.farm-preloader__animals {
    position: absolute;
    bottom: 4%;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 4;
}

.farm-preloader__animal {
    position: absolute;
    bottom: 8px;
    filter: drop-shadow(0 4px 4px rgba(0,0,0,0.25));
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.farm-preloader__animal--cow {
    width: 130px;
    height: 90px;
    left: -150px;
    animation: farm-walk-cow 14s linear infinite;
}

.farm-preloader__animal--pig {
    width: 110px;
    height: 75px;
    left: -150px;
    animation: farm-walk-pig 14s linear infinite;
    animation-delay: -4.5s;
}

.farm-preloader__animal--chicken {
    width: 60px;
    height: 60px;
    left: -150px;
    animation: farm-walk-chicken 14s linear infinite;
    animation-delay: -9s;
}

@keyframes farm-walk-cow {
    0%   { transform: translateX(0) translateY(0); }
    50%  { transform: translateX(50vw) translateY(-2px); }
    100% { transform: translateX(calc(100vw + 180px)) translateY(0); }
}

@keyframes farm-walk-pig {
    0%   { transform: translateX(0) translateY(0); }
    50%  { transform: translateX(50vw) translateY(-2px); }
    100% { transform: translateX(calc(100vw + 180px)) translateY(0); }
}

@keyframes farm-walk-chicken {
    0%   { transform: translateX(0) translateY(0); }
    25%  { transform: translateX(25vw) translateY(-4px); }
    50%  { transform: translateX(50vw) translateY(0); }
    75%  { transform: translateX(75vw) translateY(-4px); }
    100% { transform: translateX(calc(100vw + 100px)) translateY(0); }
}

/* Cow legs */
.cow-leg { transform-origin: top center; animation: farm-leg-swing 0.5s ease-in-out infinite; }
.cow-leg--1 { animation-delay: 0s; }
.cow-leg--2 { animation-delay: 0.25s; }
.cow-leg--3 { animation-delay: 0.25s; }
.cow-leg--4 { animation-delay: 0s; }
.cow-tail   { transform-origin: 18px 30px; animation: farm-tail-swish 1.2s ease-in-out infinite; }

/* Pig legs */
.pig-leg { transform-origin: top center; animation: farm-leg-swing 0.45s ease-in-out infinite; }
.pig-leg--1 { animation-delay: 0s; }
.pig-leg--2 { animation-delay: 0.22s; }
.pig-leg--3 { animation-delay: 0.22s; }
.pig-leg--4 { animation-delay: 0s; }
.pig-tail   { transform-origin: 17px 28px; animation: farm-tail-wiggle 0.8s ease-in-out infinite; }

/* Chicken legs */
.chicken-leg { transform-origin: top center; animation: farm-leg-swing 0.25s ease-in-out infinite; }
.chicken-leg--1 { animation-delay: 0s; }
.chicken-leg--2 { animation-delay: 0.12s; }

@keyframes farm-leg-swing {
    0%, 100% { transform: rotate(-12deg); }
    50%      { transform: rotate(12deg); }
}

@keyframes farm-tail-swish {
    0%, 100% { transform: rotate(-8deg); }
    50%      { transform: rotate(12deg); }
}

@keyframes farm-tail-wiggle {
    0%, 100% { transform: rotate(-6deg); }
    50%      { transform: rotate(6deg); }
}

/* Caption */
.farm-preloader__caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    background: rgba(255,255,255,0.85);
    padding: 1.25rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(61, 40, 23, 0.2);
    backdrop-filter: blur(4px);
}

.farm-preloader__title {
    display: block;
    color: #3d2817;
    font-family: 'Fredoka', 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.farm-preloader__title img {
    max-height: 56px;
    width: auto;
}

.farm-preloader__subtitle {
    display: block;
    margin-top: 0.4rem;
    color: #6b5a45;
    font-size: 0.95rem;
    font-style: italic;
}

.farm-preloader__bar {
    margin-top: 1rem;
    width: 220px;
    height: 6px;
    background: rgba(61, 40, 23, 0.15);
    border-radius: 999px;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

.farm-preloader__bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4a7c2a, #d97706, #b91c1c);
    border-radius: 999px;
    animation: farm-load-bar 2.2s ease forwards;
}

@keyframes farm-load-bar {
    from { width: 0%; }
    to   { width: 100%; }
}

@media (max-width: 720px) {
    .farm-preloader__barn { width: 200px; height: 160px; left: 18%; }
    .farm-preloader__tree { width: 60px; height: 90px; }
    .farm-preloader__tree--2 { width: 70px; height: 100px; }
    .farm-preloader__sun { width: 60px; height: 60px; }
    .farm-preloader__caption { padding: 1rem 1.5rem; }
    .farm-preloader__title { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
    .farm-preloader__sun,
    .farm-preloader__cloud,
    .farm-preloader__tree,
    .farm-preloader__animal,
    .cow-leg, .cow-tail, .pig-leg, .pig-tail, .chicken-leg {
        animation: none !important;
    }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .primary-nav, .header-cta { display: none; }
    .menu-toggle { display: flex; }
    .section-padding { padding: 3.5rem 0; }
}

@media (max-width: 768px) {
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .hero-stats { gap: 1.5rem; }
    .process-step { grid-template-columns: 60px 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .btn-lg { padding: 0.85rem 1.5rem; font-size: 0.95rem; }
    .header-inner { height: 68px; }
}
