/* ==========================================================================
   GALLUS AGROVET - CLEAN MODERN POULTRY FARM STYLING
   ========================================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    /* --- Solid Theme Color Brand Guidelines --- */
    --primary-green: #0f6d39;
    --primary-green-dark: #084c26;
    --primary-green-light: #16934e;
    --primary-orange: #e67e22;
    --primary-orange-dark: #d35400;
    --primary-orange-light: #f39c12;
    
    --solid-black: #111111;
    --solid-grey-dark: #1c1c1c;
    --solid-grey-light: #f8f9fa;
    --solid-grey-border: #eef0ed;
    --body-bg: #ffffff;
    
    /* --- Shadow and Transition Defaults --- */
    --card-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 12px 30px rgba(15, 109, 57, 0.12);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* --- Base Rules --- */
body {
    font-family: var(--font-body);
    background-color: var(--body-bg);
    color: #333333;
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #111111;
}

.text-muted {
    color: #7f8c8d !important;
}

/* --- Custom Page Loader --- */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease, visibility 0.4s;
}
.loader {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(15, 109, 57, 0.1);
    border-radius: 50%;
    border-left-color: var(--primary-green);
    border-right-color: var(--primary-orange);
    animation: loader-spin 1s linear infinite;
}
@keyframes loader-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Top Utility Bar --- */
.top-bar {
    background-color: var(--solid-grey-dark);
    font-size: 0.85rem;
    border-bottom: 1px solid #2c2c2c;
}
.top-bar a {
    transition: color 0.3s ease;
}
.top-bar a:hover {
    color: var(--primary-orange-light) !important;
}

/* --- Clean Navigation Bar --- */
.glass-navbar {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid var(--solid-grey-border) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    padding: 0.8rem 0;
}
.glass-navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
.glass-navbar .navbar-brand {
    padding: 0;
}
.glass-navbar .nav-link {
    color: #333333 !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.glass-navbar .nav-link:hover,
.glass-navbar .nav-link.active {
    color: var(--primary-green) !important;
}
/* Active line indicator for desktop */
@media (min-width: 992px) {
    .glass-navbar .nav-link::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 1rem;
        right: 1rem;
        height: 3px;
        background-color: var(--primary-green);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }
    .glass-navbar .nav-link:hover::after,
    .glass-navbar .nav-link.active::after {
        transform: scaleX(1);
    }
}

/* --- Clean Solid Cards --- */
.glass-card {
    background: #ffffff;
    border: 1px solid var(--solid-grey-border);
    box-shadow: var(--card-shadow);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(15, 109, 57, 0.2);
}

.glass-card-dark {
    background: var(--solid-grey-dark);
    border: 1px solid #2d2d2d;
    box-shadow: var(--card-shadow);
    border-radius: 12px;
    color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card-dark:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* --- Color Helpers Redefined --- */
.text-metallic-green {
    color: var(--primary-green) !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
    text-shadow: none !important;
    font-weight: 700;
}
.text-metallic-orange {
    color: var(--primary-orange) !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
    text-shadow: none !important;
    font-weight: 700;
}
.text-metallic-white {
    color: #ffffff !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
    text-shadow: none !important;
}

/* --- Section Header Title Styling --- */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-weight: 800;
    color: #111111;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-orange);
    border-radius: 2px;
}
.section-title.text-start::after {
    left: 0;
    transform: none;
}

/* --- Buttons Overhaul --- */
.btn-metallic-green,
.btn-primary-green {
    background-color: var(--primary-green);
    color: #ffffff !important;
    border: 1px solid var(--primary-green);
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(15, 109, 57, 0.15);
}
.btn-metallic-green:hover,
.btn-primary-green:hover {
    background-color: var(--primary-green-dark);
    border-color: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(15, 109, 57, 0.25);
}

.btn-metallic-orange,
.btn-primary-orange {
    background-color: var(--primary-orange);
    color: #ffffff !important;
    border: 1px solid var(--primary-orange);
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.15);
}
.btn-metallic-orange:hover,
.btn-primary-orange:hover {
    background-color: var(--primary-orange-dark);
    border-color: var(--primary-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(230, 126, 34, 0.25);
}

.btn-outline-metallic,
.btn-outline-green {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    transition: all 0.3s ease;
}
.btn-outline-metallic:hover,
.btn-outline-green:hover {
    background: var(--primary-green);
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* --- Clean Responsive Hero Banner Layout --- */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 50%, #ffffff 100%);
    padding-top: 130px;
    padding-bottom: 80px;
    overflow: hidden;
}
.hero-right-img {
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 8px solid #ffffff;
}
.hero-badge {
    background: rgba(15, 109, 57, 0.08);
    border: 1px solid var(--primary-green);
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--primary-green);
    display: inline-block;
    margin-bottom: 20px;
}

/* --- Features Horizonal Blocks Section --- */
.features-strip {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}
.feature-block {
    color: #ffffff;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
}
.feature-block:hover {
    transform: translateY(-5px);
}
.feature-block.green {
    background-color: var(--primary-green);
}
.feature-block.dark {
    background-color: var(--solid-grey-dark);
}
.feature-block-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
}
.feature-block-title {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.feature-block-desc {
    font-size: 0.88rem;
    opacity: 0.85;
    margin: 0;
}

/* --- Product Section --- */
.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
}
.product-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
    border-radius: 8px;
}
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-img {
    transform: scale(1.05);
}
.product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-orange);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.product-card-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-top: 15px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Statistics Banner --- */
.statistics-banner {
    background-color: var(--primary-green);
    color: #ffffff;
    padding: 60px 0;
}
.stat-box {
    text-align: center;
    padding: 20px;
}
.stat-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #ffffff;
    color: var(--primary-green);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}
.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: #ffffff !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: none !important;
}
.stat-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* --- Testimonials --- */
.testimonial-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--solid-grey-border);
    box-shadow: var(--card-shadow);
    position: relative;
}
.testimonial-quote {
    font-size: 1.8rem;
    color: rgba(15, 109, 57, 0.1);
    position: absolute;
    top: 15px;
    left: 20px;
}
.testimonial-text {
    font-style: italic;
    color: #555555;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

/* --- Gallery & Masonry --- */
.gallery-grid {
    column-count: 3;
    column-gap: 20px;
}
@media (max-width: 992px) {
    .gallery-grid { column-count: 2; }
}
@media (max-width: 576px) {
    .gallery-grid { column-count: 1; }
}
.gallery-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}
.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(15, 109, 57, 0.2));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover img { transform: scale(1.05); }

/* --- Floating Communication Widgets --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-orange);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}
.back-to-top.active {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background-color: var(--primary-orange-dark);
    transform: translateY(-3px);
}
.whatsapp-float {
    position: fixed;
    bottom: 95px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
}
.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* --- Clean Premium Footer --- */
.premium-footer {
    background: var(--solid-grey-dark);
    color: #b0b5c4;
    padding-top: 60px;
    padding-bottom: 20px;
    border-top: 4px solid var(--primary-green);
}
.premium-footer .footer-title {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}
.premium-footer .footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-orange);
}
.premium-footer .footer-links li a {
    color: #b0b5c4;
    text-decoration: none;
    transition: all 0.3s ease;
}
.premium-footer .footer-links li a:hover {
    color: #ffffff;
    padding-left: 5px;
}
.premium-footer .copyright-section {
    border-top: 1px solid #2d2d2d;
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.85rem;
}

/* --- Inner Page Header --- */
.inner-page-header {
    background: #f8f9fa !important;
    padding: 140px 0 55px;
    text-align: center;
    border-bottom: 1px solid var(--solid-grey-border);
}
.inner-page-header h1 {
    color: var(--primary-green) !important;
    font-weight: 800;
}
.inner-page-header .breadcrumb-item a {
    color: #555555 !important;
}
.inner-page-header .breadcrumb-item.active {
    color: var(--primary-orange) !important;
}

/* --- Form Elements --- */
.premium-form-control,
.premium-form-control-light {
    border: 1px solid var(--solid-grey-border);
    border-radius: 6px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}
.premium-form-control:focus,
.premium-form-control-light:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 8px rgba(15, 109, 57, 0.15);
    outline: none;
}

/* --- General Fixes & Overrides to match new clean flat theme --- */
.bg-grid-pattern {
    background-color: #ffffff;
}
.bg-dark-grid-pattern {
    background-color: var(--solid-grey-light);
}

/* --- Override Metallic Gradient Texts Globally --- */
.glass-navbar .navbar-brand .text-metallic-orange,
.glass-navbar .navbar-brand span,
.inner-page-header h1,
.inner-page-header h1 span,
.premium-footer .text-metallic-orange,
.premium-footer .footer-logo-text span,
.bg-dark-grid-pattern h1,
.bg-dark-grid-pattern h2,
.bg-dark-grid-pattern h3,
.hero-section h1,
.hero-section h2,
.hero-section h3,
.premium-footer h4,
.glass-card-dark h3,
.team-info h4,
.hero-section .text-metallic-green,
.hero-section .text-metallic-orange,
.bg-dark-grid-pattern .text-metallic-green,
.bg-dark-grid-pattern .text-metallic-orange,
.glass-card-dark .text-metallic-green,
.glass-card-dark .text-metallic-orange,
.premium-footer .text-metallic-green,
.team-info .text-metallic-green,
.team-info .text-metallic-orange,
.bg-dark-grid-pattern .stat-number {
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: none !important;
}

.logo-text span.text-primary-green {
    color: var(--primary-green) !important;
}
.logo-text span.text-primary-orange {
    color: var(--primary-orange) !important;
}

/* Override active link styling from main.js or other overrides */
.glass-navbar .navbar-collapse {
    background: transparent;
}
@media (max-width: 991px) {
    .glass-navbar .navbar-collapse {
        background: #ffffff !important;
        border: 1px solid var(--solid-grey-border);
        border-radius: 8px;
        padding: 15px;
        margin-top: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }
}
.why-icon {
    background: var(--primary-green);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(15, 109, 57, 0.15);
}
.infra-badge {
    background: var(--primary-orange);
    color: #ffffff;
}
.team-info {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 70%, rgba(0,0,0,0) 100%) !important;
}
.team-info h4 {
    color: #ffffff !important;
}
.team-member-card {
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}
.lightbox-modal {
    background-color: rgba(0, 0, 0, 0.9);
}
