:root {
    --primary-coffee: hsl(15, 60%, 15%);
    /* Deep brown from logo */
    --secondary-coffee: hsl(15, 50%, 25%);
    --accent-gold: hsl(35, 80%, 45%);
    /* Golden orange from logo */
    --accent-gold-hover: hsl(30, 90%, 40%);
    --accent-green: hsl(85, 50%, 45%);
    /* Leaf green from logo */
    --bg-cream: hsl(25, 20%, 98%);
    --text-dark: hsl(15, 30%, 10%);
    --text-muted: hsl(15, 10%, 40%);
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--primary-coffee);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.font-script {
    font-family: 'Dancing Script', cursive;
    text-transform: none;
    letter-spacing: normal;
}

.text-spaced {
    letter-spacing: 5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
}

.subtitle-script {
    font-family: 'Dancing Script', cursive;
    color: var(--accent-gold);
    font-size: 1.5rem;
    display: block;
    margin-bottom: -10px;
    font-weight: 600;
}

.text-gradient {
    background: linear-gradient(45deg, var(--primary-coffee), var(--accent-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-logo {
    height: 50px;
    width: auto;
    margin-right: 10px;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    /* Makes the logo white for dark background */
    opacity: 0.9;
}

/* Top Bar */
.top-bar {
    background: var(--primary-coffee);
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 0;
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar i {
    color: var(--accent-gold);
}

.top-social-icons a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.top-social-icons a:hover {
    color: var(--accent-gold);
    transform: translateY(-2px);
    display: inline-block;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 0.8rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.navbar.sticky-top {
    top: 0;
    z-index: 1020;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-coffee) !important;
}

.navbar-brand .font-script {
    font-size: 1.8rem;
    margin-right: -5px;
    color: var(--primary-coffee);
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent-gold) !important;
}

/* Hero */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero_coffee.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px;
}

.hero h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

/* Buttons */
.btn-premium {
    background-color: var(--accent-gold);
    color: var(--white);
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-premium-outline {
    background-color: transparent;
    color: var(--primary-coffee) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    border: 2px solid var(--accent-gold);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.btn-premium-outline:hover {
    background-color: var(--accent-gold);
    color: var(--white) !important;
    transform: translateY(-2px);
}

.btn-premium:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: var(--white);
}

/* Sections */
section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-gold);
}

/* Glassmorphism Cards */
.card-premium {
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 2.5rem;
    transition: var(--transition);
    height: 100%;
}

.card-premium:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(25, 40, 15, 0.12);
    background: rgba(255, 255, 255, 0.9);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-coffee);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 120px;
    animation: pulseLogo 2s infinite ease-in-out;
}

@keyframes pulseLogo {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Floating Beans */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-bean {
    position: absolute;
    color: var(--accent-gold);
    opacity: 0.15;
    font-size: 1.5rem;
    animation: floatBean 15s linear infinite;
}

@keyframes floatBean {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.15;
    }

    90% {
        opacity: 0.15;
    }

    100% {
        transform: translate(100px, -500px) rotate(360deg);
        opacity: 0;
    }
}

/* SVG Dividers */
.divider-wavy {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.divider-wavy svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.divider-wavy .shape-fill {
    fill: var(--bg-cream);
}

.card-premium .icon-box {
    width: 60px;
    height: 60px;
    background: var(--bg-cream);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
    font-size: 1.5rem;
}

#servicesSlider .carousel-indicators {
    bottom: -50px;
}

#servicesSlider .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-coffee);
    margin: 0 5px;
    border: none;
    opacity: 0.3;
}

#servicesSlider .carousel-indicators button.active {
    opacity: 1;
    background-color: var(--accent-gold);
}

.service-slider-img-wrapper {
    position: relative;
}

.service-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 50%, rgba(255, 255, 255, 0.1));
}

#servicesSlider .carousel-control-prev,
#servicesSlider .carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--primary-coffee);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    margin: 0 15px;
}

#servicesSlider .carousel-control-prev:hover,
#servicesSlider .carousel-control-next:hover {
    opacity: 1;
    background: var(--accent-gold);
}

#servicesSlider .carousel-control-prev {
    left: -25px;
}

#servicesSlider .carousel-control-next {
    right: -25px;
}

@media (max-width: 991px) {

    #servicesSlider .carousel-control-prev,
    #servicesSlider .carousel-control-next {
        display: none;
    }

    #servicesSlider .carousel-inner {
        border-radius: 20px;
    }

    #servicesSlider .carousel-indicators {
        bottom: 10px;
    }

    #servicesSlider .carousel-indicators button {
        background-color: var(--white);
    }
}

/* Products */
.product-img {
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    width: 100%;
}

/* Form */
.form-control {
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    border: 1px solid #eee;
    background: #f8f9fa;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--accent-gold);
    background: #fff;
}

/* Footer */
footer {
    background: var(--primary-coffee);
    color: #e0e0e0;
    padding: 4rem 0 2rem;
}

footer h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

footer a {
    color: #f1f1f1;
    /* Brighter link color */
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--accent-gold);
}

footer .text-muted {
    color: #d1d1d1 !important;
    /* Brighter muted text for dark footer */
}

footer .fa-accent {
    color: var(--accent-gold);
}

footer li {
    color: #e0e0e0;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 3rem;
    }
}

/* Floating Buttons (WhatsApp & Call) */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.whatsapp-float,
.call-float {
    width: 60px;
    height: 60px;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none !important;
}

.whatsapp-float {
    background-color: #25d366;
}

.call-float {
    background-color: var(--primary-coffee);
}

.whatsapp-float:hover,
.call-float:hover {
    transform: scale(1.1);
    color: #FFF;
}

.whatsapp-float:hover {
    background-color: #128c7e;
}

.call-float:hover {
    background-color: var(--accent-gold);
}

.social-links.inquiry-social a {
    font-size: 1.5rem;
    transition: var(--transition);
    opacity: 0.8;
}

.social-links.inquiry-social a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

/* Process Timeline */
.process-container {
    position: relative;
    padding: 3rem 0;
}

.process-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 3rem;
    border-left: 2px dashed rgba(255, 165, 0, 0.3);
}

.process-item::before {
    content: '';
    position: absolute;
    left: -11px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--accent-gold);
    border-radius: 50%;
    border: 4px solid var(--bg-cream);
}

.process-icon {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(rgba(25, 40, 15, 0.95), rgba(25, 40, 15, 0.95)), url('../images/hero_coffee.png') center/cover fixed;
    color: var(--white);
    padding: 5rem 0;
}

.stat-box h2 {
    color: var(--accent-gold);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.stat-box p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Africa Map Placeholder / Regional Spotlight */
.region-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #eee;
}

.region-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
}

.region-flag {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

/* Flavor Profiles */
.profile-container {
    background: var(--bg-cream);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1.5rem;
}

.flavor-tag {
    display: inline-flex;
    align-items: center;
    background: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0.2rem;
    color: var(--primary-coffee);
    border: 1px solid #eee;
}

.flavor-tag i {
    color: var(--accent-gold);
    margin-right: 5px;
}

.acidity-bar {
    height: 6px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 5px;
}

.acidity-fill {
    height: 100%;
    background: var(--accent-gold);
}

@media (max-width: 767px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    section {
        padding: 4rem 0;
    }
}