/* ======================================
   Biashara Continent - Custom Styles
   ====================================== */

/* Root Variables - Soil/Earth Tones with Green */
:root {
    --primary-color: #6B4423;
    --soil-brown: #7B5C3D;
    --earth-brown: #8B6F47;
    --forest-green: #2D5016;
    --sage-green: #4A7C59;
    --clay-terracotta: #C87533;
    --sandy-beige: #D4B59E;
    --dark-soil: #3E2723;
    --secondary-color: #4A7C59;
    --success-color: #2D5016;
    --danger-color: #dc3545;
    --warning-color: #C87533;
    --info-color: #4A7C59;
    --dark-color: #000000;
    --light-color: #FFFFFF;
}

/* Import Twcent Font */
@import url('https://fonts.googleapis.com/css2?family=Trispace:wght@300;400;500;600;700&display=swap');

/* Global Styles */
body {
    font-family: 'Trispace', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Logo Styling */
.navbar-brand img {
    height: 45px;
    width: auto;
    margin-right: 10px;
}

/* Bootstrap Color Overrides */
.bg-primary {
    background-color: #2D5016 !important;
    background: linear-gradient(135deg, #2D5016 0%, #4A7C59 100%) !important;
}

.text-primary {
    color: #2D5016 !important;
}

.btn-outline-primary {
    color: #2D5016;
    border-color: #2D5016;
}

.btn-outline-primary:hover {
    background-color: #2D5016;
    border-color: #2D5016;
}

.border-primary {
    border-color: #4A7C59 !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.9) 0%, rgba(123, 92, 61, 0.85) 50%, rgba(74, 124, 89, 0.9) 100%),
                url('https://images.unsplash.com/photo-1553877522-43269d4ea984?w=1920&h=1080&fit=crop&q=80') center center/cover no-repeat;
    min-height: 75vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Feature Images */
.feature-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=800&h=600&fit=crop&q=80') center center/cover;
}

.service-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Service-specific backgrounds */
.service-bg-business {
    background: linear-gradient(rgba(45, 80, 22, 0.1), rgba(45, 80, 22, 0.1)),
                url('https://images.unsplash.com/photo-1556761175-b413da4baf72?w=1200&h=800&fit=crop&q=80') center center/cover;
}

.service-bg-social {
    background: linear-gradient(rgba(45, 80, 22, 0.1), rgba(45, 80, 22, 0.1)),
                url('https://images.unsplash.com/photo-1611162617474-5b21e879e113?w=1200&h=800&fit=crop&q=80') center center/cover;
}

.service-bg-video {
    background: linear-gradient(rgba(45, 80, 22, 0.1), rgba(45, 80, 22, 0.1)),
                url('https://images.unsplash.com/photo-1492691527719-9d1e07e534b4?w=1200&h=800&fit=crop&q=80') center center/cover;
}

.service-bg-web {
    background: linear-gradient(rgba(45, 80, 22, 0.1), rgba(45, 80, 22, 0.1)),
                url('https://images.unsplash.com/photo-1547658719-da2b51169166?w=1200&h=800&fit=crop&q=80') center center/cover;
}

.service-bg-design {
    background: linear-gradient(rgba(45, 80, 22, 0.1), rgba(45, 80, 22, 0.1)),
                url('https://images.unsplash.com/photo-1561070791-2526d30994b5?w=1200&h=800&fit=crop&q=80') center center/cover;
}

/* Background pattern overlay */
.bg-pattern {
    position: relative;
}

.bg-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><path d="M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657 8.787 5.07 13.857 0H11.03zm32.284 0L49.8 6.485 48.384 7.9l-7.9-7.9h2.83zM16.686 0L10.2 6.485 11.616 7.9l7.9-7.9h-2.83zm20.97 0l9.315 9.314-1.414 1.414L34.828 0h2.83zM22.344 0L13.03 9.314l1.414 1.414L25.172 0h-2.83zM32 0l12.142 12.142-1.414 1.414L30 .828 17.272 13.556l-1.414-1.414L28 0h4zM.284 0l28 28-1.414 1.414L0 2.544V0h.284zM0 5.373l25.456 25.455-1.414 1.415L0 8.2V5.374zm0 5.656l22.627 22.627-1.414 1.414L0 13.86v-2.83zm0 5.656l19.8 19.8-1.415 1.413L0 19.514v-2.83zm0 5.657l16.97 16.97-1.414 1.415L0 25.172v-2.83zM0 28l14.142 14.142-1.414 1.414L0 30.828V28zm0 5.657L11.314 44.97 9.9 46.386l-9.9-9.9v-2.828zm0 5.657L8.485 47.8 7.07 49.212 0 42.143v-2.83zm0 5.657l5.657 5.657-1.414 1.415L0 47.8v-2.83zm0 5.657l2.828 2.83-1.414 1.414L0 53.456v-2.83zM54.627 60L30 35.373 5.373 60H8.2L30 38.2 51.8 60h2.827zm-5.656 0L30 41.03 11.03 60h2.828L30 43.858 46.142 60h2.83zm-5.656 0L30 46.686 16.686 60h2.83L30 49.515 40.485 60h2.83zm-5.657 0L30 52.343 22.344 60h2.83L30 55.172 34.828 60h2.83zM32 60l-2-2-2 2h4zM59.716 0l-28 28 1.414 1.414L60 2.544V0h-.284zM60 5.373L34.544 30.828l1.414 1.415L60 8.2V5.374zm0 5.656L37.373 33.656l1.414 1.414L60 13.86v-2.83zm0 5.656l-19.8 19.8 1.415 1.413L60 19.514v-2.83zm0 5.657l-16.97 16.97 1.414 1.415L60 25.172v-2.83zM60 28L45.858 42.142l1.414 1.414L60 30.828V28zm0 5.657L48.686 44.97l1.415 1.415 9.9-9.9v-2.828zm0 5.657L51.515 47.8l1.414 1.413 7.07-7.07v-2.83zm0 5.657l-5.657 5.657 1.414 1.415L60 47.8v-2.83zm0 5.657l-2.828 2.83 1.414 1.414L60 53.456v-2.83z" fill="%234A7C59" fill-opacity="0.05" fill-rule="evenodd"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Page Header */
.page-header {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.95) 0%, rgba(123, 92, 61, 0.9) 50%, rgba(74, 124, 89, 0.95) 100%),
                url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1920&h=400&fit=crop&q=80') center center/cover no-repeat;
}

/* Card Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Service Icons */
.service-icon {
    transition: transform 0.3s ease;
}

.card:hover .service-icon {
    transform: scale(1.1);
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #2D5016 0%, #4A7C59 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4A7C59 0%, #2D5016 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 80, 22, 0.4);
}

.btn-lg {
    padding: 12px 30px;
}

/* Cards */
.card {
    border-radius: 10px;
    transition: all 0.3s ease;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
}

/* Social Links */
.social-links a {
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

/* Footer */
footer {
    margin-top: auto;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: #4A7C59 !important;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
    box-shadow: 2px 2px 20px rgba(0, 0, 0, 0.4);
}

.whatsapp-float i {
    line-height: 60px;
}

/* Pulse Animation for WhatsApp Button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: pulse 2s infinite;
}

/* Accordion */
.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.125);
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: #4A7C59;
    box-shadow: 0 0 0 0.25rem rgba(74, 124, 89, 0.25);
}

.form-label {
    font-weight: 500;
    color: #495057;
}

/* Alert */
.alert {
    border-radius: 10px;
    border: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #4A7C59;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2D5016;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 50vh;
    }

    .display-3 {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 1.75rem;
    }

    .display-5 {
        font-size: 1.5rem;
    }

    .page-header {
        padding: 60px 0 40px;
    }

    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 22px;
        bottom: 15px;
        right: 15px;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Utility Classes */
.bg-gradient-primary {
    background: linear-gradient(135deg, #2D5016 0%, #7B5C3D 50%, #4A7C59 100%);
}

.text-gradient {
    background: linear-gradient(135deg, #2D5016 0%, #4A7C59 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Print Styles */
@media print {
    .navbar,
    .whatsapp-float,
    footer {
        display: none;
    }

    body {
        font-size: 12pt;
    }

    a {
        text-decoration: none;
        color: #000;
    }
}

/* Accessibility Improvements */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #4A7C59;
    outline-offset: 2px;
}

/* Skip to Main Content Link */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1em;
    background-color: #000;
    color: white;
    text-decoration: none;
}

.skip-to-main:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 0;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}