/********** Tanganyika Herds & Homestead - Modern 2026 Stylesheet **********/
:root {
    --primary: #0F3816;
    --primary-dark: #09240E;
    --primary-light: #165624;
    --emerald: #059669;
    --emerald-light: #ECFDF5;
    --emerald-border: #A7F3D0;
    --secondary: #E5A910;
    --secondary-hover: #D49B0E;
    --dark: #0F172A;
    --slate: #334155;
    --muted: #64748B;
    --light-bg: #F8FAFC;
    --card-border: #E2E8F0;
    --whatsapp: #25D366;
    --whatsapp-dark: #1EBE5B;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 12px 30px -4px rgba(15, 23, 42, 0.08);
}

html {
    scroll-behavior: smooth;
}

section, 
div[id], 
header[id] {
    scroll-margin-top: 80px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--slate);
    background-color: #FFFFFF;
    overflow-x: hidden;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--dark);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    display: none;
    right: 20px;
    bottom: 20px;
    z-index: 99;
    background-color: var(--primary);
    border: none;
    color: #FFFFFF;
    box-shadow: var(--shadow-md);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    line-height: 44px;
    padding: 0;
    transition: background-color 0.2s ease;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: #FFFFFF;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--whatsapp);
    color: #FFFFFF !important;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
    z-index: 999;
    display: flex;
    align-items: center;
    padding: 10px 18px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.whatsapp-float i {
    font-size: 19px;
    margin-right: 8px;
}

.whatsapp-float:hover {
    background-color: var(--whatsapp-dark);
    color: #FFFFFF !important;
}

@media (max-width: 576px) {
    .whatsapp-float span {
        display: none;
    }
    .whatsapp-float {
        padding: 12px;
        left: 15px;
        bottom: 15px;
        width: 44px;
        height: 44px;
        justify-content: center;
    }
    .whatsapp-float i {
        margin-right: 0;
    }
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease-out, visibility 0s linear .3s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .3s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Typography & Helpers ***/
.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.border-secondary {
    border-color: var(--secondary) !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-semi-bold {
    font-weight: 600 !important;
}

.fw-medium {
    font-weight: 500 !important;
}

.btn-square {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-lg-square {
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/*** Modern Pill Badges ***/
.modern-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    background-color: var(--emerald-light);
    color: var(--emerald);
    border: 1px solid var(--emerald-border);
}

.modern-badge.badge-gold {
    background-color: #FEF9C3;
    color: #854D0E;
    border-color: #FEF08A;
}

/*** Buttons ***/
.btn {
    font-weight: 600;
    font-size: 0.92rem;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    box-shadow: none;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #FFFFFF;
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: #1E293B;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
    color: #1E293B;
}

.btn-outline-light {
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    color: #FFFFFF;
    background-color: transparent;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #FFFFFF;
    color: #FFFFFF;
}

.btn-whatsapp {
    background-color: var(--whatsapp);
    border-color: var(--whatsapp);
    color: #FFFFFF !important;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background-color: var(--whatsapp-dark);
    border-color: var(--whatsapp-dark);
    color: #FFFFFF !important;
}

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

.btn-outline-whatsapp:hover {
    background-color: var(--whatsapp);
    color: #FFFFFF !important;
}

/*** Navbar ***/
.navbar.sticky-top {
    top: 0;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 0;
}

.navbar-brand .brand-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: var(--radius-full);
    border: 1px solid var(--card-border);
}

.navbar-brand .brand-text-container {
    display: flex;
    flex-direction: column;
}

.navbar-brand .brand-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--primary);
    margin: 0;
}

.navbar-brand .brand-tagline {
    font-size: 0.68rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}

.navbar .navbar-nav .nav-link {
    margin-right: 18px;
    padding: 20px 0;
    color: var(--dark);
    font-size: 15px;
    font-weight: 600;
    outline: none;
    transition: color 0.15s ease;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid var(--card-border);
        margin-top: 12px;
        padding-top: 10px;
    }
}

/*** Header & Carousel ***/
#header-carousel .carousel-item {
    position: relative;
    min-height: 460px;
}

#header-carousel .carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.38);
    z-index: 1;
    padding: 24px;
}

.carousel-caption h1 {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.03em;
    color: #FFFFFF;
}

.carousel-caption p {
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
}

.carousel-control-prev,
.carousel-control-next {
    width: 6%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    background-color: rgba(15, 56, 22, 0.85);
    backdrop-filter: blur(4px);
    border: none;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        min-height: 420px;
    }
    
    .carousel-caption {
        padding: 16px;
    }

    .navbar-brand .brand-title {
        font-size: 0.95rem;
    }
    
    .navbar-brand .brand-logo-img {
        width: 38px;
        height: 38px;
    }
}

/*** Quick Info Strips ***/
.info-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 24px 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--card-border);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--emerald-light);
    color: var(--emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
}

.info-card h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

/*** About Section ***/
.about-experience {
    position: absolute;
    width: 100%;
    height: 100%;
    right: -15px;
    bottom: -15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    padding: 15px;
    text-align: center;
    border-radius: var(--radius-md);
}

.about-feature-box {
    background: #FFFFFF;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
}

/*** Product Cards ***/
.product-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--card-border);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card.featured-product {
    border: 1.5px solid var(--secondary);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--secondary);
    color: #1E293B;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    z-index: 2;
}

.product-img-wrapper {
    position: relative;
    height: 190px;
    overflow: hidden;
    background-color: var(--light-bg);
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-body {
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-card-body h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Interactive Price / Order Now Dual Button */
.btn-product-action {
    position: relative;
    overflow: hidden;
    background-color: var(--primary);
    border: 1px solid var(--primary);
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0;
    height: 42px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.btn-product-action .btn-price-text,
.btn-product-action .btn-order-text {
    position: absolute;
    width: 100%;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-product-action .btn-price-text {
    opacity: 1;
    transform: translateY(0);
    color: #FFFFFF;
}

.btn-product-action .btn-order-text {
    opacity: 0;
    transform: translateY(6px);
    color: #FFFFFF;
}

.btn-product-action:hover,
.btn-product-action:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #FFFFFF !important;
}

.btn-product-action:hover .btn-price-text,
.btn-product-action:focus .btn-price-text {
    opacity: 0;
    transform: translateY(-6px);
}

.btn-product-action:hover .btn-order-text,
.btn-product-action:focus .btn-order-text {
    opacity: 1;
    transform: translateY(0);
}

/*** Minimalist Contact & Order Form Card ***/
.contact-form-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 32px 28px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 576px) {
    .contact-form-card {
        padding: 22px 16px;
    }
}

.contact-form-card .form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--slate);
    margin-bottom: 4px;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    border: 1px solid #CBD5E1;
    background-color: #FFFFFF;
    color: #0F172A;
    font-size: 0.92rem;
    font-weight: 500;
    transition: border-color 0.15s ease;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(15, 56, 22, 0.12);
    outline: none;
}

/*** Edge-to-Edge Mobile & Responsive Overrides ***/
@media (max-width: 767.98px) {
    .container, 
    .container-fluid, 
    .container-xxl {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .row {
        --bs-gutter-x: 8px;
        --bs-gutter-y: 8px;
    }

    section {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    #header-carousel .carousel-item {
        min-height: 380px;
    }

    .carousel-caption {
        padding: 12px 10px !important;
        align-items: flex-end !important;
        padding-bottom: 24px !important;
        text-align: left !important;
    }

    .carousel-caption .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .carousel-caption h1 {
        font-size: 1.6rem !important;
        line-height: 1.2 !important;
        margin-bottom: 8px !important;
    }

    .carousel-caption .btn {
        padding: 8px 16px;
        font-size: 0.84rem;
    }

    .about-experience {
        position: relative;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        min-height: 120px;
        margin-bottom: 0;
    }

    .info-card {
        padding: 16px 14px;
    }

    .info-card h4 {
        font-size: 1.05rem;
    }

    .product-card {
        border-radius: var(--radius-sm);
    }

    .product-img-wrapper {
        height: 140px;
    }

    .product-card-body {
        padding: 12px 8px;
    }

    .product-card-body h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .btn-product-action {
        height: 38px;
        font-size: 0.82rem;
    }

    .contact-form-card {
        padding: 18px 14px;
        border-radius: var(--radius-sm);
    }

    .contact-item-box {
        padding: 14px 12px;
        border-radius: var(--radius-sm);
    }

    .banner {
        padding: 18px 14px !important;
        border-radius: var(--radius-sm);
    }

    .banner h3 {
        font-size: 1.25rem;
    }

    .cow-gallery-item img {
        height: 150px;
    }
}

/*** Contact Cards ***/
.contact-item-box {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--card-border);
    margin-bottom: 14px;
}

.contact-icon-bubble {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background-color: var(--emerald-light);
    color: var(--emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

/*** Cow Gallery Grid ***/
.cow-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    display: block;
}

.cow-gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.cow-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 56, 22, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

/*** Banner Strip ***/
.banner {
    background: var(--primary);
    border-radius: var(--radius-md);
}

/*** Footer ***/
.footer {
    background: #0B1E10;
    color: #94A3B8;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer h6 {
    color: #FFFFFF;
    font-size: 1.05rem;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 6px;
    padding: 0;
    text-align: left;
    color: #94A3B8;
    font-weight: 500;
    text-transform: capitalize;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
    color: var(--secondary);
}

.footer .btn.btn-link:hover {
    color: #FFFFFF;
}

.footer-logo {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: #FFFFFF;
    padding: 2px;
}

.copyright {
    background: #07150A;
    color: #64748B;
    font-size: 0.84rem;
}