/* Optimized CSS - Custom styles for landing page with Bootstrap */

/* CSS Variables */
:root {
    --primary: #FFE468;
    --secondary: #8CC641;
    --light: #F2F2F2;
    --dark: #272630;
}

/* Base styles */
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings use Roboto Condensed */
h1, h2, h3, h4, h5, h6,
.display-1, .display-5 {
    font-family: 'Roboto Condensed', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
}

/* Bold text styling */
strong, b, .fw-bold {
    font-weight: 800;
}

/* Button font weight */
.btn {
    font-weight: 800;
}

/* Link styles */
a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: none;
}

/* Specific link styles */
.nav-link {
    text-decoration: none !important;
}

.nav-link:hover {
    text-decoration: none !important;
}

.btn {
    text-decoration: none !important;
}

.btn:hover {
    text-decoration: none !important;
}

/* Footer and content links */
.text-dark a, .text-light a, .text-primary a {
    text-decoration: none;
}

.text-dark a:hover, .text-light a:hover, .text-primary a:hover {
    text-decoration: none;
}

img {
    height: auto;
    max-width: 100%;
}

/* Custom color overrides for Bootstrap */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }

/* Button styles */
.btn {
    font-weight: 700;
    transition: .5s;
    will-change: transform;
}

.btn:hover {
    -webkit-box-shadow: 0 8px 6px -6px #555555;
    -moz-box-shadow: 0 8px 6px -6px #555555;
    box-shadow: 0 8px 6px -6px #555555;
}

.btn.btn-secondary {
    color: #FFFFFF;
    background-color: #198754;
    border-color: #198754;
}

.btn.btn-secondary:hover {
    background-color: #146c43;
    border-color: #146c43;
    color: #fff;
}

.btn-outline-secondary {
    background-color: transparent;
    border-color: #198754;
    color: #198754;
}

.btn-outline-secondary:hover {
    background-color: #198754;
    border-color: #198754;
    color: #fff;
}

/* Navbar styles */
.navbar-dark .navbar-nav .nav-link {
    position: relative;
    margin-left: 30px;
    padding: 35px 0;
    font-size: 18px;
    color: var(--light);
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 0;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

/* Hero section */
.bg-hero {
    background: url(../img/hero.webp) top right no-repeat;
    background-size: contain;
    height: auto;
    filter: drop-shadow(0 8px 32px rgba(0,0,0,0.12));
}

/* About section */
.about-start,
.about-end {
    background: url(../img/about-bg.webp) center center no-repeat;
    background-size: contain;
}

/* Service items */
.service-item {
    background: url(../img/service.webp) top center no-repeat;
    background-size: cover;
    transition: .5s;
    will-change: transform;
}

.service-item:hover {
    background: url(../img/service.webp) bottom center no-repeat;
    background-size: cover;
}

.service-item .service-icon {
    margin-top: -50px;
    width: 100px;
    height: 100px;
    color: var(--secondary);
    background: #FFFFFF;
    transform: rotate(-45deg);
    backface-visibility: hidden;
}

.service-item .service-icon div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    transition: .5s;
}

.service-item .service-icon i {
    transform: rotate(45deg);
    transition: .5s;
    backface-visibility: hidden;
}

.service-item:hover .service-icon div {
    background: var(--secondary);
}

.service-item:hover .service-icon i {
    color: var(--primary);
}

/* WhatsApp float */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100;
    background: #25d366;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    padding: 6px;
    transition: box-shadow 0.2s;
    display: flex;
    align-items: center;
}

.whatsapp-float:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    background: #1ebe57;
}

.whatsapp-float img {
    display: block;
}

/* Testimonial styles */
.bg-testimonial {
    background-color: #F3F4F6;
    background-size: contain;
}

.testimonial-box {
    background: #ffeb77;
    border-radius: 12px;
    min-height: 200px;
    display: flex;
    align-items: center;
}

.testimonial-box img {
    border-radius: 10px;
    object-fit: cover;
    width: 320px;
    max-height: 220px;
    flex-shrink: 0;
}

/* Call to action */
.bg-call-to-action {
    background: url(../img/call-to-action.webp) top right no-repeat;
    background-size: contain;
}

/* Footer */
.bg-footer {
    background: url(../img/footer.webp) center center no-repeat;
    background-size: contain;
}

/* Carousel optimization */
.carousel-item {
    contain: layout style paint;
}

/* Typography */
.display-1 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link {
        margin-left: 0;
        padding: 10px 0;
    }
    
    .bg-hero {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 520px;
        background: url(../img/hero.webp) top right no-repeat;
        background-size: cover;
        position: relative;
        box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.256);
    }
    
    .display-1 {
        font-size: clamp(2rem, 5vw, 2.5rem);
        color: #0D1B2A;
        line-height: 1.2;
    }
    
    .bg-testimonial {
        background-size: cover;
    }
    
    .bg-call-to-action,
    .bg-footer {
        background-size: cover;
    }
    
    .testimonial-box {
        flex-direction: column !important;
        text-align: center;
    }
    
    .testimonial-box img {
        width: 100%;
        max-width: 320px;
        margin-bottom: 20px;
    }
    
    .bg-call-to-action {
        background-image: url('../img/call-to-action-mobile.webp') !important;
        background-position: center !important;
        background-size: cover !important;
    }
    
    .bg-hero {
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 520px;
        background: url(../img/hero.webp) top right no-repeat;
        background-size: cover;
        position: relative;
    }
    
    .bg-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(255, 227, 104, 0.605) 0%, rgba(255, 255, 255, 0.18) 100%), rgba(0,0,0,0.10);
        z-index: 1;
        pointer-events: none;
    }
    
    .bg-hero > * {
        position: relative;
        z-index: 2;
    }
}

@media (min-width: 992px) {
    .about-start {
        position: relative;
        margin-right: -90px;
        z-index: 1;
    }

    .about-end {
        position: relative;
        margin-left: -90px;
        z-index: 1;
    }
    
    .navbar-dark .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        bottom: 0;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-dark .navbar-nav .nav-link:hover::before,
    .navbar-dark .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }
}