@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --bs-dark-teal: #18333c;
    --bs-orange: #e88651;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0; /* Removed default margin */
  font-family: 'Poppins', sans-serif;
}

/* Custom Colors */
.bg-dark-teal { background-color: var(--bs-dark-teal) !important; }
.bg-orange { background-color: var(--bs-orange) !important; }
.text-orange { color: var(--bs-orange) !important; }

/* Buttons */
.btn-orange { 
    background-color: var(--bs-orange); 
    color: white; 
    border: none; 
    transition: all 0.3s;
}
.btn-orange:hover { 
    background-color: #c06a3b; 
    color: white; 
}

.btn-dark-teal { 
    background-color: var(--bs-dark-teal); 
    color: white; 
    border: none; 
    transition: all 0.3s;
}
.btn-dark-teal:hover { 
    background-color: #1f363c; 
    color: white; 
}

/* Typography */
.letter-spacing-1 { letter-spacing: 1px; }
.letter-spacing-2 { letter-spacing: 2px; }

/* New Hero Slider Section */
.hero-section-slider {
    height: 85vh;
    position: relative;
    overflow: hidden;
    background-color: var(--bs-dark-teal); /* Fallback color */
}

#heroCarousel, .carousel-inner, .carousel-item {
    height: 100%;
}

.carousel-image {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.0);
    transition: transform 8s ease;
}

.carousel-item.active .carousel-image {
    transform: scale(1.1);
}

@media (max-width: 767.98px) {
    .hero-section-slider {
        height: 60vh; /* Adjusted height for mobile */
        min-height: 400px; /* Minimum height */
    }
}

.hero-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(to right, rgba(44, 74, 82, 0.9), rgba(44, 74, 82, 0.4));
    z-index: 1;
}

/* Booking Bar */
.booking-bar {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
    .booking-bar {
        margin-top: -50px;
    }
}

.booking-bar .form-control, 
.booking-bar .form-select {
    color: white;
}

.booking-bar .form-control::placeholder { 
    color: rgba(255,255,255,0.7); 
}

.booking-bar .form-select { 
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"); 
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar-logo {
    max-height: 75px;
    width: auto;
}

/* About Section Image */

.about-img {
    background-image: url('../img/bvo-banner3.jpg');
    background-size: cover;
    background-position: center;
    background-color: #eee; /* fallback */
}
.about-img2 {
    background-image: url('../img/bvo-banner5.png');
    background-size: cover;
    background-position: center;
    background-color: #eee; /* fallback */
}


/* Footer */
.site-footer {
    background-color: var(--bs-dark-teal);
    color: #fff;
}

.site-footer .footer-primary {
    padding: 2.5rem 0;
    background: linear-gradient(135deg, rgba(24, 51, 60, 0.98), rgba(9, 24, 29, 0.98));
}

.site-footer .footer-title {
font-size: 0.95rem;
letter-spacing: 2px;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.site-footer .footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--bs-orange);
}

.site-footer .footer-links {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.site-footer .footer-links li {
    margin-bottom: 0.4rem;
}

.site-footer .footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer .footer-links a:hover {
    color: var(--bs-orange);
    transform: translateX(4px);
}

.site-footer .footer-contact-item {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.site-footer .footer-contact-item i {
    color: var(--bs-orange);
    margin-right: 0.75rem;
    font-size: 1rem;
}

.site-footer .footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-right: 0.5rem;
    transition: background-color 0.2s ease;
}

.site-footer .footer-social a:hover {
    background-color: var(--bs-orange);
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    background-color: rgba(0, 0, 0, 0.15);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.site-footer .footer-logo {
    max-height: 60px;
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.1) !important;
    border-bottom-color: var(--bs-orange);
}

.service-card .icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(217, 123, 69, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.service-card:hover .icon-box {
    background-color: var(--bs-orange);
    color: white !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* =========================================
   RESPONSIVE & MOBILE FIXES
   ========================================= */

/* prevent horizontal scroll caused by negative margins on mobile */
body {
    overflow-x: hidden;
    width: 100%;
}

/* Typography Scaling for Mobile */
@media (max-width: 991.98px) {
    html { font-size: 14px; }
    
    h1, .display-1 { font-size: 2.5rem !important; }
    h2, .display-2 { font-size: 2rem !important; }
    h3, .display-3 { font-size: 1.75rem !important; }
    h4, .display-4 { font-size: 1.5rem !important; }
    .display-5 { font-size: 1.35rem !important; }
    .display-6 { font-size: 1.2rem !important; }
    
    .navbar-logo {
        max-height: 50px !important;
    }
}


/* Hero Section Adjustments */
.hero-min-height {
    min-height: 80vh;
}

@media (max-width: 767.98px) {
    .hero-min-height {
        min-height: 50vh; /* Reduced height on mobile */
    }
    
    /* Adjust internal padding of hero */
    .hero-section .container {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .hero-section-slider {
        height: 50vh;
        min-height: 300px;
    }
}

/* Horizontal Scrollable Nav for Works Page on Mobile */
@media (max-width: 767.98px) {
    .scrollable-nav-mobile {
        display: flex;
        flex-wrap: nowrap !important; /* Prevent stacking */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem;
        padding-bottom: 0.5rem; /* Space for scrollbar */
        justify-content: flex-start !important;
    }
    
    .scrollable-nav-mobile .nav-link {
        flex: 0 0 auto !important; /* Don't stretch */
        width: auto !important;
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        white-space: nowrap;
    }
    
    /* Hide scrollbar visually but allow scroll */
    .scrollable-nav-mobile::-webkit-scrollbar {
        height: 4px;
    }
    .scrollable-nav-mobile::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.2);
        border-radius: 4px;
    }
}

/* Footer & General Stacking Fixes */
@media (max-width: 767.98px) {
    /* Center align footer content on mobile */
    .site-footer {
        text-align: center;
    }
    
    .site-footer .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .site-footer .footer-contact-item {
        justify-content: center;
    }
    
    .site-footer .footer-social {
        justify-content: center;
        display: flex;
    }
    
    /* Margin adjustments */
    .mb-5 { margin-bottom: 2rem !important; }
    .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    
    /* Product Categories on Home */
    .product-category-row .col-lg-1, 
    .product-category-row .col-lg-2, 
    .product-category-row .col-lg-3, 
    .product-category-row .col-lg-5 {
        text-align: center !important;
        margin-bottom: 1rem;
    }
    
    /* About page image fix */
    .about-hero {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Fix for catalog images on mobile */
@media (max-width: 575.98px) {
    .catalog-image-wrapper {
        min-height: 200px;
    }
    .catalog-img {
        max-height: 180px;
    }
}
