/* =============================================
   ANAN AGRO INDUSTRY - MAIN STYLESHEET
   ============================================= */

/* ----- BASE ----- */
:root {
    --primary: #1a5e3a;
    --primary-dark: #0f4228;
    --primary-light: #2d7a4d;
    --secondary: #f5c842;
    --secondary-dark: #d4a832;
    --cream: #f5efe8;
    --dark: #0f172a;
    --text: #1f2937;
    --text-light: #64748b;
    --white: #ffffff;
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.12);
    --radius: 16px;
    --radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background: var(--cream);
}

.text-center {
    text-align: center;
}

/* ----- TYPOGRAPHY ----- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--dark);
    line-height: 1.2;
}

.section-header {
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    background: rgba(26, 94, 58, 0.1);
    color: var(--primary);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 12px;
}

.section-header h2 span {
    color: var(--primary);
}

.section-header p {
    font-size: 17px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ----- BUTTONS ----- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26, 94, 58, 0.3);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--dark);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 200, 66, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 18px 44px;
    font-size: 18px;
}

/* ----- HERO SECTION ----- */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1a3a2a 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.03"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>'),
        url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="%23ffffff" opacity="0.05"/></svg>');
    pointer-events: none;
}

.hero::after {
    content: '🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄🐄';
    position: absolute;
    bottom: 0;
    right: -30px;
    font-size: 24px;
    letter-spacing: 12px;
    opacity: 0.04;
    white-space: nowrap;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 40px 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: 64px;
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--secondary);
}

.hero p {
    font-size: 20px;
    opacity: 0.85;
    max-width: 600px;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 700px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 35px;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--secondary);
    font-family: var(--font-display);
}

.hero-stats .label {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 4px;
}

/* ----- FEATURES SECTION ----- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px 28px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.feature-card .icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(26, 94, 58, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 28px;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-light);
    margin: 0;
}

/* ----- PRODUCTS PREVIEW ----- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--cream);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-info {
    padding: 22px 24px 24px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.product-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.product-unit {
    font-size: 13px;
    color: var(--text-light);
}

/* ----- HEIFER CTA ----- */
.heifer-cta {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.heifer-cta::before {
    content: '🐄';
    position: absolute;
    right: -50px;
    top: -50px;
    font-size: 300px;
    opacity: 0.04;
    pointer-events: none;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 12px;
}

.cta-content h2 span {
    color: var(--secondary);
}

.cta-content p {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 30px;
}

.cta-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 32px;
}

.cta-stats .stat-item {
    text-align: center;
}

.cta-stats .stat-number {
    display: block;
    font-size: 32px;
    font-weight: 900;
    color: var(--secondary);
}

.cta-stats .stat-label {
    font-size: 14px;
    opacity: 0.7;
}

/* ----- TESTIMONIALS ----- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-card .stars {
    font-size: 18px;
    margin-bottom: 12px;
}

.testimonial-card p {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.8;
}

.testimonial-card .customer {
    border-top: 1px solid #e2e8f0;
    padding-top: 14px;
}

.testimonial-card .customer strong {
    display: block;
    color: var(--dark);
}

.testimonial-card .customer span {
    font-size: 13px;
    color: var(--text-light);
}

/* ----- BLOG PREVIEW ----- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.blog-image {
    height: 180px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-info {
    padding: 22px 24px 24px;
}

.blog-category {
    display: inline-block;
    background: rgba(26, 94, 58, 0.08);
    color: var(--primary);
    padding: 2px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.blog-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.blog-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-dark);
    gap: 12px;
}

/* ----- CONTACT CTA ----- */
.contact-cta {
    background: var(--cream);
}

.cta-wrapper {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-wrapper h2 {
    font-size: 38px;
    margin-bottom: 12px;
}

.cta-wrapper h2 span {
    color: var(--primary);
}

.cta-wrapper p {
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ----- HEADER ----- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding: 12px 0;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
    color: var(--dark);
}

.logo-text span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links .btn-nav {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
}

.nav-links .btn-nav::after {
    display: none;
}

.nav-links .btn-nav:hover {
    background: var(--primary-dark);
    color: var(--white) !important;
}

.language-switcher {
    display: flex;
    gap: 8px;
}

.language-switcher a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 6px;
    transition: var(--transition);
}

.language-switcher a.active {
    background: var(--primary);
    color: var(--white);
}

.language-switcher a:hover:not(.active) {
    background: rgba(0, 0, 0, 0.04);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
}

/* ----- FOOTER ----- */
.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-brand h3 span {
    color: var(--secondary);
}

.footer-brand p {
    font-size: 14px;
    max-width: 300px;
}

.footer-links h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links ul a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}

/* ----- HEIFER SHOP PAGE ----- */
.heifer-filters {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.heifer-filters select,
.heifer-filters input {
    padding: 12px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 14px;
    background: var(--white);
    transition: var(--transition);
}

.heifer-filters select:focus,
.heifer-filters input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 94, 58, 0.1);
}

.heifer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.heifer-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.heifer-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.heifer-card .heifer-image {
    height: 220px;
    overflow: hidden;
    background: var(--cream);
}

.heifer-card .heifer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.heifer-card .heifer-info {
    padding: 22px 24px 24px;
}

.heifer-card .heifer-info .tag {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.heifer-card .heifer-info h3 {
    font-size: 20px;
    margin: 4px 0 8px;
}

.heifer-card .heifer-info .breed {
    font-size: 14px;
    color: var(--text-light);
}

.heifer-card .heifer-info .price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin: 12px 0;
}

.heifer-card .heifer-info .status-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-available {
    background: #dcfce7;
    color: #15803d;
}

.status-sold {
    background: #fee2e2;
    color: #dc2626;
}

.status-ready {
    background: #fef3c7;
    color: #d97706;
}

.status-reserved {
    background: #dbeafe;
    color: #2563eb;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 1024px) {
    .features-grid,
    .products-grid,
    .testimonials-grid,
    .blog-grid,
    .heifer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 17px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hero-stats .number {
        font-size: 28px;
    }

    .features-grid,
    .products-grid,
    .testimonials-grid,
    .blog-grid,
    .heifer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        gap: 16px;
    }

    .nav-links.open {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .cta-stats {
        gap: 20px;
        flex-wrap: wrap;
    }

    .section-header h2 {
        font-size: 30px;
    }

    .heifer-filters {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 70vh;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .logo-text {
        font-size: 18px;
    }
}



/* ----- ANIMATIONS ----- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.6s ease forwards;
}