/* ========================================
   PATEL FARMING — Complete Stylesheet
   Modern, Professional, Agricultural Theme
   ======================================== */

/* ===== CSS VARIABLES / DESIGN TOKENS ===== */
:root {
    /* Primary Greens (Agriculture) */
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-300: #86efac;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-800: #166534;
    --green-900: #14532d;

    /* Earth Tones */
    --earth-50: #fdf8f0;
    --earth-100: #f5edd6;
    --earth-200: #ead9b0;
    --earth-300: #d4b96e;
    --earth-400: #c9a44c;
    --earth-500: #b08930;
    --earth-600: #8f6b24;
    --earth-700: #6b4f1c;
    --earth-800: #4a3714;
    --earth-900: #2d210d;

    /* Neutrals */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Accent */
    --accent: #f59e0b;
    --accent-dark: #d97706;

    /* Functional */
    --white: #ffffff;
    --black: #000000;
    --success: #10b981;
    --whatsapp: #25d366;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #15803d 0%, #22c55e 50%, #16a34a 100%);
    --gradient-hero: linear-gradient(135deg, rgba(20, 83, 45, 0.92) 0%, rgba(22, 101, 52, 0.85) 40%, rgba(21, 128, 61, 0.78) 100%);
    --gradient-dark: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    --gradient-earth: linear-gradient(135deg, #f5edd6 0%, #fdf8f0 100%);
    --gradient-cta: linear-gradient(135deg, #166534 0%, #15803d 50%, #14532d 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,.25);
    --shadow-green: 0 4px 14px rgba(22, 163, 74, .35);
    --shadow-card: 0 4px 24px rgba(0,0,0,.08);

    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
    text-align: center;
    justify-content: center;
}

.btn:hover {
    transform: translateY(-2px);
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-green);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(22, 163, 74, .45);
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--green-700);
}

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

.btn-outline-white:hover {
    background: var(--white);
    color: var(--green-800);
}

.btn-white {
    background: var(--white);
    color: var(--green-800);
    box-shadow: var(--shadow-lg);
}

.btn-white:hover {
    background: var(--green-50);
    box-shadow: var(--shadow-xl);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--white);
    font-size: 1rem;
}

.btn-whatsapp:hover {
    background: #1ebe5d;
    box-shadow: 0 4px 14px rgba(37, 211, 102, .4);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

.btn-call-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 10px 20px;
    font-size: 0.9rem;
    box-shadow: var(--shadow-green);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,.06);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

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

.logo-name {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--green-800);
    letter-spacing: 0.5px;
}

.logo-tagline {
    font-size: 0.7rem;
    color: var(--earth-500);
    font-weight: 500;
    letter-spacing: 0.3px;
}

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

.nav-link {
    padding: 8px 16px;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--gray-600);
    border-radius: var(--radius-full);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--green-700);
    background: var(--green-50);
}

.nav-link.active {
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--gray-800);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-only { display: none; }
.desktop-only { display: inline-flex; }

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

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

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: heroZoom 25s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: var(--radius-full);
    color: var(--green-200);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(0,0,0,.2);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title-accent {
    color: var(--green-300);
}

.hero-subtitle {
    font-family: var(--font-primary);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 500;
    color: var(--green-100);
    margin-bottom: 12px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-desc {
    font-size: 1rem;
    color: rgba(255,255,255,.75);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-phones {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.8);
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    transition: var(--transition);
}

.hero-phone:hover {
    background: rgba(255,255,255,.2);
    color: var(--white);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: bounce 2s infinite;
}

.hero-scroll a {
    color: rgba(255,255,255,.6);
    font-size: 1.5rem;
}

.hero-scroll a:hover {
    color: var(--white);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-12px); }
    60% { transform: translateX(-50%) translateY(-6px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== STATS BAR ===== */
.stats-bar {
    background: var(--gradient-dark);
    padding: 0;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 32px 24px;
    border-right: 1px solid rgba(255,255,255,.08);
    transition: var(--transition);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item:hover {
    background: rgba(255,255,255,.04);
}

.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray-400);
    font-weight: 500;
    margin-top: 4px;
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--green-50);
    color: var(--green-700);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-primary);
    margin-bottom: 16px;
    border: 1px solid var(--green-100);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 14px;
}

.text-accent {
    color: var(--green-600);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto;
}

/* ===== ABOUT ===== */
.about {
    padding: var(--section-padding);
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    z-index: 1;
}

.about-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.about-image-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    background: linear-gradient(transparent, rgba(0,0,0,.8));
    color: var(--white);
    display: flex;
    flex-direction: column;
}

.about-image-label strong {
    font-family: var(--font-primary);
    font-size: 1.2rem;
}

.about-image-label span {
    font-size: 0.85rem;
    color: var(--green-300);
}

.about-image-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 16px;
    left: 16px;
    border: 3px solid var(--green-300);
    border-radius: var(--radius-xl);
    z-index: 0;
}

.about-heading {
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: var(--green-800);
}

.about-text {
    color: var(--gray-600);
    margin-bottom: 16px;
    font-size: 0.98rem;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 28px 0;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--green-50);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--green-500);
    transition: var(--transition);
}

.value-item:hover {
    background: var(--green-100);
    transform: translateX(4px);
}

.value-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    font-size: 1.1rem;
}

.value-item div:nth-child(2) {
    display: flex;
    flex-direction: column;
}

.value-item strong {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--gray-800);
}

.value-item span {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ===== SERVICES ===== */
.services {
    padding: var(--section-padding);
    background: var(--gray-50);
}

.service-category {
    margin-bottom: 60px;
}

.service-category:last-child {
    margin-bottom: 0;
}

.service-category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.service-category-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tractor-icon {
    background: linear-gradient(135deg, var(--green-100), var(--green-200));
    color: var(--green-700);
}

.harvester-icon {
    background: linear-gradient(135deg, var(--earth-100), var(--earth-200));
    color: var(--earth-600);
}

.service-category-title {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.service-category-desc {
    color: var(--gray-500);
    font-size: 0.95rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.services-grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.service-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.service-card:hover .service-card-img img {
    transform: scale(1.08);
}

.service-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 14px;
    background: var(--green-600);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-card-badge.new {
    background: var(--accent);
}

.service-card-body {
    padding: 24px;
}

.service-card-body h4 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.service-card-body p {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-features {
    margin-bottom: 16px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.service-features li i {
    color: var(--green-500);
    font-size: 0.9rem;
}

.service-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.service-price {
    font-size: 0.85rem;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== GALLERY ===== */
.gallery {
    padding: var(--section-padding);
    background: var(--white);
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--green-300);
    color: var(--green-700);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-green);
}

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

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    transition: var(--transition);
}

.gallery-item.gallery-item-wide {
    grid-column: span 2;
}

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

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(20, 83, 45, 0.85));
    opacity: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-label {
    color: var(--white);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
}

.gallery-item.hidden {
    display: none;
}

/* ===== VIDEO SECTION ===== */
.videos-section {
    padding: var(--section-padding);
    background: var(--gray-50);
}

/* ===== VIDEO CAROUSEL SECTION ===== */
.video-carousel-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 48px;
    padding: 0 40px; /* Space for arrows on desktop */
}

.carousel-track-container {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    touch-action: pan-y; /* Allow vertical scrolling, intercept horizontal for swipe */
}

.carousel-track {
    display: flex;
    flex-direction: row; /* Default: Horizontal */
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    transition: var(--transition);
    padding: 0 8px; /* Gap between slides */
}

@media (min-width: 768px) {
    .carousel-slide { min-width: 50%; } /* 2 slides */
}

@media (min-width: 1024px) {
    .carousel-slide { min-width: 33.333%; } /* 3 slides */
}

/* Upslide Animation */
.carousel-slide {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.carousel-slide.active {
    opacity: 1;
    transform: translateY(0);
}

.video-container {
  aspect-ratio: 9 / 16;
  max-width: 300px;
  width: 100%;
  margin: 0 auto;
}

.video-container iframe,
.video-container video {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}


/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    color: var(--green-700);
    border: none;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--green-600);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: -10px; }
.next-btn { right: -10px; }

/* Hide arrows on mobile typically, relying on swipe, but optional */
@media (max-width: 767px) {
    .video-carousel-wrapper { 
        padding: 0; 
        position: relative;
    }
    .carousel-track-container {
        height: 560px; /* Adjusted height for mobile vertical view (9:16 aspect) */
    }
    .carousel-track {
        flex-direction: column;
        height: 100%;
    }
    .carousel-slide { 
        padding: 0; 
        min-width: 100%;
        height: 100%;
    }
    /* Reposition arrows for vertical mobile */
    .carousel-btn {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        top: auto;
        display: flex !important;
    }
    .prev-btn { top: 10px; }
    .next-btn { bottom: 10px; }
    
    /* Reposition dots for vertical mobile */
    .carousel-dots {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
        margin-top: 0;
        z-index: 25;
    }
}

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.dot:hover {
    background: var(--green-300);
}

.dot.active {
    background: var(--green-600);
    width: 24px;
    border-radius: 12px;
}

/* Video CTA */
.video-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

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

.btn-outline-green:hover {
    background: var(--green-600);
    color: var(--white);
    box-shadow: var(--shadow-green);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 80px 0;
    background: var(--gradient-cta);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,.03);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--white);
    margin-bottom: 16px;
    font-weight: 800;
}

.cta-desc {
    color: rgba(255,255,255,.8);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 32px;
}

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

/* ===== CONTACT ===== */
.contact {
    padding: var(--section-padding);
    background: var(--gray-50);
}

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

.contact-form-wrapper {
    position: relative;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gray-100);
}

.form-title {
    font-size: 1.4rem;
    margin-bottom: 24px;
    color: var(--green-800);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-group label i {
    color: var(--green-500);
    font-size: 0.85rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--gray-800);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green-400);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

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

.form-success {
    text-align: center;
    padding: 60px 40px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.success-icon {
    font-size: 4rem;
    color: var(--green-500);
    margin-bottom: 16px;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--green-800);
}

.form-success p {
    color: var(--gray-500);
    margin-bottom: 20px;
}

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

.contact-info-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gray-100);
}

.contact-info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: var(--green-800);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-detail {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-100);
}

.contact-detail:last-of-type {
    border-bottom: none;
    margin-bottom: 24px;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-50);
    color: var(--green-600);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    font-size: 1rem;
}

.contact-detail div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-detail strong {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--gray-800);
}

.contact-detail span,
.contact-detail a {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.contact-detail a:hover {
    color: var(--green-600);
}

.map-wrapper {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gray-100);
}

.map-wrapper h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--green-800);
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gradient-dark);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.footer-logo strong {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--white);
    display: block;
}

.footer-logo span {
    font-size: 0.75rem;
    color: var(--green-400);
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.08);
    color: var(--gray-400);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--green-600);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-links h4 {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-400);
    padding: 6px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--green-400);
    transform: translateX(4px);
}

.footer-contact h4 {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--gray-400);
}

.footer-contact-item i {
    color: var(--green-500);
    margin-top: 4px;
    width: 16px;
    text-align: center;
}

.footer-contact-item a {
    color: var(--gray-400);
}

.footer-contact-item a:hover {
    color: var(--green-400);
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ===== FLOATING BUTTONS ===== */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--whatsapp);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, .4);
    z-index: 999;
    transition: var(--transition);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, .5);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: var(--gray-800);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-family: var(--font-primary);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 4px 20px rgba(37, 211, 102, .4); }
    50% { box-shadow: 0 4px 20px rgba(37, 211, 102, .4), 0 0 0 12px rgba(37, 211, 102, .1); }
    100% { box-shadow: 0 4px 20px rgba(37, 211, 102, .4); }
}

.call-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.4rem;
    box-shadow: var(--shadow-green);
    z-index: 999;
    animation: phonePulse 1.5s infinite;
}

@keyframes phonePulse {
    0% { box-shadow: var(--shadow-green); }
    50% { box-shadow: var(--shadow-green), 0 0 0 10px rgba(22, 163, 74, .15); }
    100% { box-shadow: var(--shadow-green); }
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 40px;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 2.5rem;
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition);
    line-height: 1;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    color: var(--green-400);
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-2xl);
}

.lightbox-caption {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 1rem;
    padding: 8px 24px;
    background: rgba(0,0,0,.6);
    border-radius: var(--radius-full);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

    .about-img {
        height: 400px;
    }

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

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

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

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 70px 0;
    }

    /* Header */
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255,255,255,.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 12px 32px;
    }

    .hamburger {
        display: flex;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: inline-flex;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }

    .logo-name {
        font-size: 1rem;
    }

    /* Hero */
    .hero-content {
        padding: 100px 16px 70px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-phones {
        flex-direction: column;
        align-items: center;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item {
        padding: 20px 16px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .stat-item:nth-child(odd) {
        border-right: 1px solid rgba(255,255,255,.08);
    }

    .stat-number {
        font-size: 1.4rem;
    }

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

    .service-category-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

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

    .gallery-item.gallery-item-wide {
        grid-column: span 2;
    }

    /* Videos */
    .video-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Contact */
    .contact-form {
        padding: 28px 20px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Floating buttons */
    .call-float {
        display: flex;
    }

    .whatsapp-float {
        bottom: 96px;
    }

    /* CTA */
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    /* Video CTA */
    .video-cta {
        flex-direction: column;
        align-items: center;
    }
}

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

    .gallery-item.gallery-item-wide {
        grid-column: span 1;
    }

    .stat-item {
        gap: 12px;
    }

    .hero-title {
        letter-spacing: 1px;
    }

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