/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --color-primary-dark: #2c2c2c;
    /* New Client Theme */
    --color-maroon: #625143;
    /* Dark */
    --color-maroon-light: #806A58;
    /* Light Dark */
    --color-maroon-dark: #3E3229;
    /* Darker shade of #625143 */

    --color-bg-light: #ffffff;
    --color-bg-offwhite: #EFE8E2;
    /* Light */
    --color-text-body: #555555;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;

    /* Secondary accents */
    --color-earth-green: #4A6741;
    --color-earth-light: #EFE8E2;
    /* Mapped to Light */
    --color-sand: #EFE8E2;
    /* Mapped to Light */
}

body {
    font-family: var(--font-body);
    color: var(--color-text-body);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 100px;
    /* Offset for fixed navbar to prevent overlapping breadcrumbs/heroes */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-maroon);
}

.font-playfair {
    font-family: var(--font-heading);
}

.text-maroon {
    color: var(--color-maroon) !important;
}

.bg-maroon {
    background-color: var(--color-maroon) !important;
}

.text-primary-dark {
    color: var(--color-primary-dark) !important;
}

/* Navbar */
.navbar {
    padding: 0.8rem 0;
    background-color: white !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: 1.8rem;
    letter-spacing: 0.5px;
    color: var(--color-maroon) !important;
}

.nav-link {
    color: var(--color-primary-dark) !important;
    font-weight: 500;
    margin: 0 0.8rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.05rem;
    position: relative;
    padding: 0.5rem 1.2rem !important;
    border-radius: 12px;
    overflow: hidden;
}

/* Modern gradient underline effect */
.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-maroon), var(--color-maroon-light));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px 3px 0 0;
}

/* Subtle shine effect on hover */
.nav-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.nav-link:hover {
    color: var(--color-maroon) !important;
    background: linear-gradient(135deg, rgba(98, 81, 67, 0.12), rgba(98, 81, 67, 0.08));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 12px rgba(98, 81, 67, 0.15);
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover::after {
    left: 100%;
}

.nav-link.active::before {
    width: 100%;
}

/* Dropdown Custom Styles */
.dropdown-menu {
    margin-top: 0 !important;
    /* Removed gap */
    border-radius: 12px !important;
    padding: 1rem 0.5rem !important;
    animation: dropdownFadeUp 0.3s ease forwards;
    border: none !important;
}

/* Pseudo-element bridge to prevent gap between link and menu */
.dropdown::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 20px;
    bottom: -20px;
    left: 0;
    display: block;
    z-index: 1000;
}

.dropdown-item {
    color: var(--color-primary-dark);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(98, 81, 67, 0.08);
    color: var(--color-maroon) !important;
    transform: translateX(5px);
}

.dropdown-divider {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

@keyframes dropdownFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Show dropdown on hover for desktop */
@media (min-width: 992px) {
    .dropdown:hover>.dropdown-menu {
        display: block;
    }

    .dropdown>.nav-link:active {
        pointer-events: none;
    }
}

/* Buttons */
.btn-primary-maroon {
    background-color: var(--color-maroon);
    color: white;
    border: none;
    padding: 0.7rem 1.8rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-earth {
    background-color: var(--color-earth-green);
    color: white;
    border: none;
    padding: 0.7rem 1.8rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-earth:hover {
    background-color: #3d5535;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(74, 103, 65, 0.3);
}

.btn-primary-maroon:hover {
    background-color: var(--color-maroon-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(98, 81, 67, 0.3);
}

.btn-outline-maroon {
    border: 2px solid var(--color-maroon);
    color: var(--color-maroon);
    padding: 0.7rem 1.8rem;
    border-radius: 6px;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-maroon:hover {
    background-color: var(--color-maroon);
    color: white;
}

/* Hero Carousel */
#heroCarousel {
    position: relative;
}

.hero-slide {
    position: relative;
    height: 85vh;
    /* Large height for impact */
    min-height: 600px;
}

.hero-bg-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    /* transition: transform 6s ease; enable for slow zoom effect if desired */
}

/* Gradient Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

/* Specific overlay for center-aligned slide */
.hero-slide .hero-overlay:nth-child(2) {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.hero-caption {
    z-index: 2;
    padding-bottom: 3rem;
}

.carousel-indicators [data-bs-target] {
    background-color: transparent;
    border: 2px solid white;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: var(--color-maroon);
    border-color: var(--color-maroon);
    transform: scale(1.2);
    opacity: 1;
}

/* Animations */
@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideRight {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideLeft {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-slide-down {
    animation: slideDown 1s ease forwards;
}

.animate-slide-right {
    animation: slideRight 1s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.animate-slide-left {
    animation: slideLeft 1s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.animate-zoom-in {
    animation: zoomIn 1.2s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.animate-fade-up {
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.delay-200 {
    animation-delay: 0.6s;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   ======================================== */

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575px) {
    body {
        padding-top: 80px;
        /* Offset for fixed navbar on mobile */
    }

    /* Full width carousel on mobile */
    #heroCarousel {
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        width: 100vw;
    }

    /* Typography */
    .display-3 {
        font-size: 2rem !important;
    }

    .display-4 {
        font-size: 1.75rem !important;
    }

    .display-5 {
        font-size: 1.5rem !important;
    }

    .display-6 {
        font-size: 1.25rem !important;
    }

    .lead {
        font-size: 1rem !important;
    }

    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    /* Reduce letter spacing on mobile */
    .letter-spacing-2 {
        letter-spacing: 1px;
    }

    /* Navbar */
    .navbar-brand img {
        width: 60px !important;
    }

    .navbar-toggler {
        padding: 0.5rem;
        font-size: 1.25rem;
    }

    .nav-link {
        margin: 0.3rem 0;
        padding: 0.75rem 1rem !important;
        text-align: center;
    }

    /* Hide top bar on very small screens */
    .bg-maroon.py-2 {
        display: none !important;
    }

    /* Hero Carousel - Auto height for mobile */
    .hero-slide {
        height: auto !important;
        min-height: 200px !important;
    }

    .hero-bg-img {
        height: auto !important;
        width: 100% !important;
        object-fit: contain !important;
        display: block;
    }

    .carousel-indicators {
        margin-bottom: 1rem !important;
    }

    .carousel-indicators [data-bs-target] {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        padding: 0.8rem !important;
        background-size: 50%;
    }

    /* Hero Section */
    .hero-section {
        padding: 3rem 0 !important;
    }

    .hero-section img[width="150"] {
        width: 100px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 auto;
        display: block;
    }

    /* Center hero content on mobile */
    .hero-section .col-lg-6:first-child {
        text-align: center;
    }

    .hero-section .d-flex.gap-3 {
        justify-content: center;
    }

    .hero-section .d-flex.gap-4 {
        justify-content: center;
    }

    /* Sections */
    section {
        padding: 3rem 0 !important;
    }

    .section-lg {
        padding: 4rem 0 !important;
    }

    /* Buttons */
    .btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.95rem;
    }

    .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }

    /* Product Cards */
    .product-card {
        margin-bottom: 1.5rem;
    }

    /* Manufacturing Process */
    .process-step .bg-white {
        width: 150px !important;
        height: 150px !important;
    }

    .process-step i {
        font-size: 2.5rem !important;
    }

    .process-number-badge {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    /* WhatsApp Widget */
    .whatsapp-widget {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        left: auto;
    }

    .whatsapp-widget i {
        font-size: 26px;
    }

    /* Footer */
    footer {
        padding-top: 3rem !important;
    }

    footer .col-lg-4,
    footer .col-lg-2 {
        margin-bottom: 2rem;
    }

    /* Utility spacing */
    .mb-5 {
        margin-bottom: 2rem !important;
    }

    .mt-5 {
        margin-top: 2rem !important;
    }

    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    /* Back to Basics Section */
    .back-to-basics-section {
        padding: 3rem 0 !important;
    }

    /* Icon boxes */
    .icon-box-dark {
        margin-bottom: 1rem;
    }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
    .display-3 {
        font-size: 2.5rem !important;
    }

    .display-4 {
        font-size: 2rem !important;
    }

    .hero-slide {
        height: 55vh;
        min-height: 400px;
    }

    .navbar-brand img {
        width: 100px !important;
    }

    section {
        padding: 4rem 0 !important;
    }

    .section-lg {
        padding: 5rem 0 !important;
    }

    .process-step .bg-white {
        width: 180px !important;
        height: 180px !important;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    .display-3 {
        font-size: 3rem !important;
    }

    .display-4 {
        font-size: 2.5rem !important;
    }

    .hero-slide {
        height: 60vh;
        min-height: 450px;
    }

    .navbar-brand img {
        width: 110px !important;
    }

    section {
        padding: 5rem 0 !important;
    }

    .section-lg {
        padding: 6rem 0 !important;
    }

    /* Product cards - 2 columns on tablet */
    .product-card {
        margin-bottom: 2rem;
    }

    /* Testimonials - 2 columns */
    .testimonial-card {
        margin-bottom: 1.5rem;
    }

    .hero-img {
        max-width: 400px;
    }
}

/* General Mobile Adjustments (up to 991px) */
@media (max-width: 991px) {

    /* Center align hero content on mobile/tablet */
    .hero-caption {
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .hero-caption .text-end {
        text-align: center !important;
    }

    /* Stack columns */
    .col-lg-6,
    .col-lg-4,
    .col-lg-3 {
        margin-bottom: 2rem;
    }

    /* Navigation improvements */
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: 8px;
        margin-top: 1rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-link {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    /* Disable hover effects on mobile (use active states instead) */
    .nav-link:hover::after {
        display: none;
    }

    /* Manufacturing process - hide connecting line on mobile */
    .position-absolute.top-50.start-0.w-100.border-top {
        display: none !important;
    }

    /* Adjust text justification */
    .text-justify {
        text-align: left !important;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-slide {
        height: 85vh;
        min-height: 600px;
    }

    /* Show top bar on desktop */
    .bg-maroon.py-2 {
        display: block !important;
    }
}

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .hero-slide {
        height: 85vh;
        min-height: 650px;
    }
}

/* Ultra Wide Screens (1920px and up) */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }

    .hero-slide {
        height: 90vh;
        min-height: 700px;
    }

    .display-3 {
        font-size: 4rem !important;
    }

    .display-4 {
        font-size: 3.5rem !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {

    /* Increase touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-link {
        min-height: 44px;
        padding: 0.75rem 1.2rem !important;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 15%;
    }

    /* Disable hover animations on touch devices */
    .product-card:hover,
    .feature-card:hover,
    .icon-box-dark:hover {
        transform: none;
    }

    /* Make carousel indicators larger for touch */
    .carousel-indicators [data-bs-target] {
        width: 14px;
        height: 14px;
    }
}

/* Landscape Orientation Adjustments */
@media (max-width: 991px) and (orientation: landscape) {
    .hero-slide {
        height: 100vh;
        min-height: 500px;
    }

    section {
        padding: 3rem 0 !important;
    }
}

/* Print Styles */
@media print {

    .navbar,
    .whatsapp-widget,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators {
        display: none !important;
    }

    .hero-slide {
        height: auto !important;
        min-height: auto !important;
    }

    section {
        page-break-inside: avoid;
    }
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.whatsapp-widget:hover {
    transform: scale(1.1);
    color: white;
}

.whatsapp-widget i {
    font-size: 32px;
}

/* Cards & Sections */
.section-title h2 {
    color: var(--color-maroon);
    font-weight: 700;
}

.section-title p {
    color: var(--color-text-body);
}

.product-card,
.feature-card,
.client-card,
.testimonial-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.product-card:hover,
.feature-card:hover {
    border-color: var(--color-maroon-light);
    box-shadow: 0 10px 30px rgba(128, 106, 88, 0.08);
    /* Updated shadow color */
    transform: translateY(-5px);
}

.product-img-wrapper img {
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: var(--color-maroon);
    /* Dark (#625143) as requested */
    color: #e0e0e0;
}

footer h5,
footer h6 {
    color: #fff;
    font-family: var(--font-heading);
}

footer a:hover {
    color: var(--color-maroon-light) !important;
    padding-left: 5px;
    transition: all 0.2s;
}

/* Utilities */
.letter-spacing-2 {
    letter-spacing: 2px;
}

section {
    padding: 6rem 0;
}

.section-lg {
    padding: 8rem 0;
}

.bg-maroon-pattern {
    background: linear-gradient(135deg, var(--color-maroon) 0%, var(--color-maroon-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.bg-maroon-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
}

.icon-box-dark {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

.icon-box-dark:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.icon-box-dark h5,
.icon-box-dark i {
    color: white !important;
}

.process-step {
    position: relative;
    z-index: 1;
}

.process-number {
    display: none;
    /* Hide old style */
}

.process-number-badge {
    width: 40px;
    height: 40px;
    background-color: var(--color-maroon);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: var(--font-heading);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
    border: 3px solid white;
}