/* Custom Styles for NEUEXP-1236 - Mobile First */

:root {
    --primary-color: #8BD092;
    --secondary-color: #fafaca;
    --dark-color: #212529;
    
    /* Override Bootstrap variables if possible, or use custom classes */
    --bs-primary: #8BD092;
    --bs-primary-rgb: 139, 208, 146;
}

/* Bootstrap class overrides */
.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #79bf80;
    border-color: #79bf80;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--dark-color);
}

.btn-secondary:hover {
    background-color: #f1f1b2;
    border-color: #f1f1b2;
    color: var(--dark-color);
}

body {
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: #ffffff;
}

/* ============================================
   MOBILE FIRST - Base styles (mobile)
   ============================================ */

/* Hero Section - Mobile */
.hero-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    height: 60vh;
    min-height: 350px;
    margin-top: -56px;
    padding-top: 56px;
}

/* Hero photo is a real <img> (srcset + fetchpriority for LCP) laid out like a cover background */
.hero-section .hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Dark overlay for text contrast */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-section h1 {
    font-size: 1.75rem;
}

.hero-section .lead {
    font-size: 1rem;
}

/* Navbar Logo - Mobile */
.navbar-brand-logo {
    height: 32px;
    width: auto;
    margin-right: 8px;
}

.navbar-brand {
    font-size: 0.9rem;
}

/* Navigation - Mobile */
.navbar {
    padding-top: 10px;
    padding-bottom: 10px;
    transition: all 0.3s ease;
}

.nav-link {
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 0.5rem 0;
}

/* Typography & Layout */
.heading-line {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px 0;
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.icon-box img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Reference Cards - Uniform sizing */
#references .card {
    display: flex;
    flex-direction: column;
}

#references .card-body {
    flex: 1;
}

#references .card-img-bottom {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* About Section - Mobile */
#about .about-photo {
    max-width: 100%;
    height: auto;
}

/* Certification Stamp */
.certification-stamp {
    width: 120px;
    height: auto;
    transform: rotate(25deg);
    display: inline-block;
    margin-top: 1rem;
}

/* Contact Section - Mobile */
.contact-card {
    padding: 1.5rem;
}

/* Inline SVG icons (replace the Bootstrap Icons webfont) */
.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    fill: currentColor;
}

/* Map - Mobile */
.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio on mobile */
    height: 0;
    overflow: hidden;
    border-radius: 0.375rem;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Bures photo - Mobile */
.bures-photo {
    max-width: 100%;
    height: auto;
}

/* FAQ Section */
.accordion-button:not(.collapsed) {
    background-color: rgba(139, 208, 146, 0.1);
    color: var(--dark-color);
}

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(139, 208, 146, 0.25);
}

.accordion-button:not(.collapsed)::after {
    filter: none;
}

/* Footer - Mobile */
footer {
    text-align: center;
}

/* Service area list at the very bottom of the footer */
footer .service-area {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   TABLET (min-width: 576px)
   ============================================ */
@media (min-width: 576px) {
    .hero-section h1 {
        font-size: 2.25rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    .navbar-brand-logo {
        height: 36px;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .icon-box img {
        width: 54px;
        height: 54px;
    }
}

/* ============================================
   TABLET LANDSCAPE (min-width: 768px)
   ============================================ */
@media (min-width: 768px) {
    #references .card-img-bottom {
        height: 220px;
    }
    .hero-section {
        height: 70vh;
    }

    .hero-section h1 {
        font-size: 2.75rem;
    }

    .hero-section .lead {
        font-size: 1.15rem;
    }

    .navbar {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .nav-link {
        font-size: 0.875rem;
    }

    .map-container {
        padding-bottom: 56.25%; /* 16:9 aspect ratio on tablet */
    }
}

/* ============================================
   DESKTOP (min-width: 992px)
   ============================================ */
@media (min-width: 992px) {
    .hero-section {
        height: 80vh;
    }

    .hero-section h1 {
        font-size: 3.5rem;
    }

    .hero-section .lead {
        font-size: 1.25rem;
    }

    .navbar-brand-logo {
        height: 40px;
        margin-right: 10px;
    }

    .navbar-brand {
        font-size: 1.15rem;
    }

    .navbar {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .icon-box img {
        width: 64px;
        height: 64px;
    }

    #references .card-img-bottom {
        height: 250px;
    }

    .service-card:hover {
        transform: translateY(-10px);
    }

    .map-container {
        padding-bottom: 42.85%; /* 21:9 aspect ratio on desktop */
    }

    .bures-photo {
        max-width: 100%;
    }
}

/* ============================================
   LARGE DESKTOP (min-width: 1200px)
   ============================================ */
@media (min-width: 1200px) {
    .hero-section {
        max-width: 1920px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-section h1 {
        font-size: 3.75rem;
    }
}

/* ============================================
   15"+ SCREENS (min-width: 1440px)
   ============================================ */
@media (min-width: 1440px) {
    .hero-section .hero-bg {
        object-position: top center;
    }
}
