/* ============================================================
   Blue Shark Excavation & Demolition LLC - Main Stylesheet
   Color Palette (SOLID COLORS ONLY - no gradients):
   - Primary:            #0075ef
   - Secondary / Dark:   #011c4b
   - Neutral / Light:    #ffffff
   ============================================================ */

:root {
    --primary: #0075ef;
    --primary-hover: #005fc4;
    --secondary: #011c4b;
    --secondary-hover: #00122f;
    --white: #ffffff;
    --light-bg: #f2f7fd;
    --border: #dde6f2;
    --text: #1f2a3d;
    --muted: #55627a;
    --radius: 12px;
    --shadow: 0 8px 24px rgba(1, 28, 75, 0.08);
    --shadow-lg: 0 18px 45px rgba(1, 28, 75, 0.16);

    /* z-index scale (single source of truth to avoid stacking conflicts) */
    --z-topbar: 10;
    --z-header: 1000;
    --z-dropdown: 1010;
    --z-floating: 1200;
    --z-chatbot: 1250;
    --z-overlay: 1990;
    --z-sidebar: 2000;
    --z-preloader: 99999;
}

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    color: var(--secondary);
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }

.section-title {
    text-align: center;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title span {
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto 40px;
    border-radius: 2px;
}

.eyebrow {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* ============================================================
   GLOBAL PRELOADER (Excavator animation)
   ============================================================ */
#preloader {
    position: fixed;
    inset: 0;
    z-index: var(--z-preloader);
    background: #011c4b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0s linear 0s;
}

#preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

#preloader.is-removed {
    display: none;
}

/* Instant show (page transition) - no fade-in, 100% opacity immediately */
#preloader.is-instant {
    transition: none;
}

.preloader-excavator {
    width: 220px;
    max-width: 60vw;
    height: auto;
    overflow: visible;
}

.preloader-excavator .exc-boom,
.preloader-excavator .exc-stick,
.preloader-excavator .exc-bucket,
.preloader-excavator .exc-body,
.preloader-excavator .exc-dirt {
    transform-box: view-box;
}

.preloader-excavator .exc-body {
    transform-origin: 80px 100px;
    animation: excBody 2s ease-in-out infinite;
}

.preloader-excavator .exc-boom {
    transform-origin: 100px 72px;
    animation: excBoom 2s ease-in-out infinite;
}

.preloader-excavator .exc-stick {
    transform-origin: 150px 40px;
    animation: excStick 2s ease-in-out infinite;
}

.preloader-excavator .exc-bucket {
    transform-origin: 168px 88px;
    animation: excBucket 2s ease-in-out infinite;
}

.preloader-excavator .exc-dirt {
    animation: excDirt 2s ease-in infinite;
}

.preloader-excavator .exc-dirt:nth-of-type(2) { animation-delay: 0.12s; }
.preloader-excavator .exc-dirt:nth-of-type(3) { animation-delay: 0.24s; }

.preloader-excavator .exc-track {
    animation: excTrack 0.8s linear infinite;
}

@keyframes excBody {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(1.5px); }
}

@keyframes excBoom {
    0%, 100% { transform: rotate(-6deg); }
    50% { transform: rotate(14deg); }
}

@keyframes excStick {
    0%, 100% { transform: rotate(-14deg); }
    50% { transform: rotate(16deg); }
}

@keyframes excBucket {
    0%, 100% { transform: rotate(-35deg); }
    45% { transform: rotate(30deg); }
    60% { transform: rotate(30deg); }
}

@keyframes excDirt {
    0%, 55% { opacity: 0; transform: translateY(0); }
    65% { opacity: 1; }
    100% { opacity: 0; transform: translateY(26px); }
}

@keyframes excTrack {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -20; }
}

.preloader-text {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
    padding: 0 20px;
}

.preloader-text span {
    color: #0075ef;
}

@media (prefers-reduced-motion: reduce) {
    .preloader-excavator * {
        animation: none !important;
    }
}

/* === TOP BAR (MARQUEE) === */
.top-bar {
    background: var(--secondary);
    color: var(--white);
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.9rem;
    position: relative;
    z-index: var(--z-topbar);
}

.marquee-content {
    display: inline-flex;
    gap: 40px;
    animation: marquee 40s linear infinite;
}

.marquee-content span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.marquee-content i {
    color: var(--primary);
}

.top-bar:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === HEADER === */
.main-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    box-shadow: 0 2px 10px rgba(1, 28, 75, 0.08);
    transition: box-shadow 0.3s ease;
}

.main-header.is-scrolled {
    box-shadow: 0 4px 20px rgba(1, 28, 75, 0.14);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 88px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    display: block;
    height: 74px;
    width: auto;
    max-width: 100%;
}

.sidebar-logo .logo-img {
    height: 58px;
}

.logo-mark {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text strong {
    font-size: 1.35rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-text strong span {
    color: var(--primary);
}

.logo-text small {
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    border-radius: 6px;
    transition: color 0.25s ease, background-color 0.25s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li > a:focus-visible,
.nav-menu > li > a.active {
    color: var(--primary);
    background: rgba(0, 117, 239, 0.08);
}

.nav-menu > li > a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Dropdown Menu (Desktop: hover on pointer devices + click/keyboard everywhere) */
.has-dropdown {
    position: relative;
}

.dropdown-toggle .fa-chevron-down {
    font-size: 0.7rem;
    transition: transform 0.25s ease;
}

.has-dropdown.open > .dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

.has-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 300px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    margin-top: 0;
    z-index: var(--z-dropdown);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}

/* Invisible bridge so the menu does not close while the cursor travels to it */
.has-dropdown .dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
}

.has-dropdown.open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s;
}

@media (hover: hover) and (pointer: fine) {
    .has-dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s;
    }

    .has-dropdown:hover > .dropdown-toggle .fa-chevron-down {
        transform: rotate(180deg);
    }
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.dropdown-menu li a i {
    color: var(--primary);
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus-visible,
.dropdown-menu li a.active {
    background: rgba(0, 117, 239, 0.08);
    color: var(--primary);
    padding-left: 25px;
    outline: none;
}

/* Header Actions */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    font-size: 0.98rem;
    padding: 10px 18px;
    border-radius: 6px;
    white-space: nowrap;
    transition: background-color 0.25s ease;
}

.header-phone:hover {
    background: var(--secondary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
}

.mobile-menu-toggle i {
    font-size: 26px;
    color: var(--secondary);
}

.mobile-menu-toggle:focus-visible {
    outline: 2px solid var(--primary);
}

/* === MOBILE SIDEBAR === */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 88vw;
    height: 100vh;
    height: 100dvh;
    background: var(--white);
    box-shadow: -2px 0 18px rgba(1, 28, 75, 0.2);
    z-index: var(--z-sidebar);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.32s ease, visibility 0s linear 0.32s;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mobile-sidebar.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.32s ease, visibility 0s linear 0s;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 15px 12px 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-header .logo-text strong {
    font-size: 1.05rem;
}

.sidebar-close {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    border: 2px solid var(--secondary);
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    color: var(--white);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.sidebar-close:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.sidebar-close:focus-visible {
    outline: 3px solid rgba(0, 117, 239, 0.35);
    outline-offset: 2px;
}

.sidebar-menu {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-menu a {
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    padding: 12px 15px;
    border-radius: 6px;
    transition: background-color 0.25s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--light-bg);
    color: var(--primary);
}

.sidebar-menu a i {
    width: 20px;
    margin-right: 8px;
    color: var(--primary);
}

/* Mobile SERVICES accordion */
.services-section {
    width: 100%;
    margin: 5px 0;
}

.services-title {
    padding: 12px 15px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    background: var(--light-bg);
    border-radius: 6px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.services-title:focus-visible {
    outline: 2px solid var(--primary);
}

.services-title i.service-icon {
    color: var(--primary);
    margin-right: 8px;
    width: 20px;
}

.services-title i.chevron-icon {
    color: var(--secondary);
    transition: transform 0.3s ease;
}

.services-section.open .services-title i.chevron-icon {
    transform: rotate(180deg);
}

.services-subitems {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
    padding-left: 10px;
}

.services-subitems > div {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.services-section.open .services-subitems {
    grid-template-rows: 1fr;
}

.services-subitems a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 14px;
    color: var(--muted);
    border-radius: 5px;
}

.services-subitems a i {
    width: 20px;
    color: var(--primary);
    font-size: 14px;
    margin-right: 0;
}

.sidebar-quote {
    background: var(--primary);
    color: var(--white) !important;
    text-align: center;
    margin-top: 15px;
    font-weight: 700 !important;
}

.sidebar-quote i {
    color: var(--white) !important;
}

.sidebar-quote:hover {
    background: var(--secondary) !important;
}

.sidebar-whatsapp {
    background: #25D366;
    color: var(--white) !important;
    text-align: center;
    font-weight: 700 !important;
}

.sidebar-whatsapp i {
    color: var(--white) !important;
}

.sidebar-whatsapp:hover {
    background: #1da851 !important;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(1, 28, 75, 0.55);
    z-index: var(--z-overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

body.sidebar-open {
    overflow: hidden;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 117, 239, 0.3);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 28, 75, 0.3);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--secondary);
}

.btn-white {
    background: var(--white);
    color: var(--secondary);
    font-size: 1.05rem;
    padding: 16px 36px;
}

.btn-white:hover {
    background: var(--light-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-sm {
    font-size: 0.85rem;
    padding: 10px 20px;
}

.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.btn-group.center {
    justify-content: center;
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    padding: 50px 20px;
    background: var(--secondary);
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease, visibility 1.2s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(1, 28, 75, 0.72);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 660px;
    animation: heroFadeIn 1s ease forwards;
}

.hero-content > p {
    font-size: 1.15rem;
    margin-bottom: 20px;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.top-tagline {
    display: inline-block;
    background: var(--primary);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    color: var(--white);
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 3.1rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero-content h1 span {
    color: var(--white);
    background: var(--primary);
    padding: 0 12px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 6px;
}

.hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    margin-bottom: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.02rem;
}

.feature-item i {
    color: var(--primary);
    background: var(--white);
    border-radius: 50%;
    font-size: 1.15rem;
}

.feature-item p {
    margin-bottom: 0;
}

.hero-btns {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.btn-quote-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 16px 30px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.08rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-transform: uppercase;
}

.btn-quote-large:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.hero-hours {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-hours i {
    color: var(--primary);
}

/* Estimate Form Box */
.estimate-box {
    width: 390px;
    min-width: 320px;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
    animation: heroFadeIn 1.2s ease forwards;
    color: var(--text);
}

.form-header {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 18px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-header small {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: none;
    opacity: 0.95;
}

.estimate-form {
    padding: 22px 25px 25px;
}

.estimate-form input,
.estimate-form select,
.estimate-form textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 12px;
    border: 2px solid #e0e6ef;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.3s ease;
}

.estimate-form input:focus,
.estimate-form select:focus,
.estimate-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.estimate-form textarea {
    min-height: 90px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    letter-spacing: 1px;
    font-family: inherit;
}

.btn-submit:hover {
    background: var(--secondary);
}

.btn-submit[disabled],
.btn[disabled] {
    opacity: 0.7;
    cursor: wait;
}

/* Honeypot field (anti-spam) */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Form status messages */
.form-status {
    display: none;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.5;
}

.form-status.is-visible {
    display: block;
}

.form-status.success {
    background: #e7f6ec;
    color: #146c2e;
    border: 1px solid #b7e4c4;
}

.form-status.error {
    background: #fdecec;
    color: #a12020;
    border: 1px solid #f5c2c2;
}

/* === TRUST BAR === */
.trust-bar {
    background: var(--primary);
    padding: 18px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
}

.trust-item i {
    font-size: 1.3rem;
    color: var(--white);
}

/* === SECTIONS === */
section {
    padding: 80px 0;
}

.light-bg {
    background: var(--light-bg);
}

.white-bg {
    background: var(--white);
}

.dark-bg {
    background: var(--secondary);
    color: rgba(255, 255, 255, 0.9);
}

.dark-bg .section-title,
.dark-bg h2,
.dark-bg h3 {
    color: var(--white);
}

.dark-bg .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* === ABOUT SECTION === */
.about-section {
    padding: 80px 0;
}

.about-grid {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-grid.reverse {
    flex-direction: row-reverse;
}

.about-image {
    flex: 0 0 45%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-content {
    flex: 1;
}

.about-content h2 {
    margin-bottom: 15px;
}

.about-content h2 span {
    color: var(--primary);
}

.about-content p {
    font-size: 1.05rem;
    color: var(--muted);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary);
}

.about-feature i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Image placeholder blocks (replace with real <img> when photos are available) */
.media-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--secondary);
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 20px;
    border-radius: inherit;
}

.media-placeholder i {
    font-size: 3.2rem;
    color: var(--primary);
}

.media-placeholder span {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* === STATS === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-box {
    text-align: center;
    padding: 25px 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
}

.stat-box strong {
    display: block;
    font-size: 2.4rem;
    color: var(--primary);
    line-height: 1.1;
}

.stat-box span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* === SERVICES GRID === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.services-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.service-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 117, 239, 0.15);
    border-color: var(--primary);
}

.service-card .icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary);
    color: var(--white);
    font-size: 2.3rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 4px solid rgba(0, 117, 239, 0.25);
}

.service-card:hover .icon {
    background-color: var(--primary);
    transform: translateY(-5px);
}

.service-card h3 {
    margin-bottom: 12px;
    color: var(--secondary);
}

.service-card p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 0;
    flex: 1;
}

.service-card ul {
    text-align: left;
    margin: 15px 0 0;
    width: 100%;
}

.service-card ul li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 0.92rem;
    color: var(--text);
    margin-bottom: 6px;
}

.service-card ul li i {
    color: var(--primary);
    margin-top: 5px;
    font-size: 0.8rem;
}

.service-card .btn {
    margin-top: 20px;
}

/* === WHY CHOOSE GRID === */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-card {
    text-align: center;
    padding: 30px 22px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--border);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.why-card .icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 15px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.why-card h3 {
    color: var(--secondary);
    margin-bottom: 10px;
    font-size: 1.18rem;
}

.why-card p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* === PROCESS STEPS === */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    counter-reset: step;
}

.process-step {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 22px 26px;
    text-align: center;
}

.process-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--white);
}

.process-step h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.process-step p {
    color: var(--muted);
    font-size: 0.93rem;
    margin-bottom: 0;
}

/* === SERVICE AREAS === */
.areas-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.areas-list li {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--secondary);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.areas-list li i {
    color: var(--primary);
}

/* === FAQ === */
.faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 22px;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.4rem;
    color: var(--primary);
    line-height: 1;
    transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 22px 18px;
    color: var(--muted);
    margin: 0;
}

/* === TESTIMONIALS (kept for future real reviews) === */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* === CTA SECTION === */
.cta-section {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.4rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.18rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-outline:hover {
    color: var(--primary);
}

/* === PAGE HEADER (inner pages) === */
.page-header {
    background-color: var(--secondary);
    color: var(--white);
    padding: 80px 0 70px;
    text-align: center;
    position: relative;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 10px;
}

.page-header h1 span {
    color: var(--primary);
}

.page-header p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.12rem;
    max-width: 780px;
    margin: 0 auto 0;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.88rem;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.75);
    list-style: none;
    padding: 0;
}

.breadcrumb a {
    color: var(--white);
    font-weight: 600;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 8px;
    color: var(--primary);
}

/* === CONTACT PAGE === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    background: var(--light-bg);
    padding: 40px;
    border-radius: var(--radius);
}

.contact-info h2 {
    margin-bottom: 15px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-detail > i {
    width: 46px;
    height: 46px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-detail h4 {
    margin-bottom: 3px;
    color: var(--secondary);
    font-size: 1rem;
}

.contact-detail p,
.contact-detail a {
    color: var(--muted);
    font-size: 0.97rem;
    margin-bottom: 2px;
}

.contact-detail a:hover {
    color: var(--primary);
}

.contact-detail a.strong {
    color: var(--secondary);
    font-weight: 700;
}

/* Service-area map (Leaflet) */
.map-section {
    padding: 0 0 80px;
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

#service-area-map {
    width: 100%;
    height: 480px;
    background: var(--light-bg);
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    margin-top: 15px;
    font-size: 0.92rem;
    color: var(--muted);
}

.map-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.legend-swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(0, 117, 239, 0.25);
    border: 2px solid var(--primary);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 1px var(--secondary);
}

.leaflet-popup-content {
    font-family: inherit;
    color: var(--secondary);
}

/* === SERVICES LIST === */
.services-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.services-list-item {
    background: var(--light-bg);
    padding: 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary);
    border: 1px solid var(--border);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.services-list-item:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.services-list-item i {
    color: var(--primary);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.services-list-item:hover i {
    color: var(--white);
}

/* === CONTACT FORM === */
.contact-form {
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    background: var(--white);
}

.contact-form h2 {
    margin-bottom: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--secondary);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e6ef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* === PAYMENT METHODS === */
.payment-methods {
    margin-top: 18px;
}

.payment-methods .payment-title {
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--white);
}

.payment-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--secondary);
    padding: 7px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.88rem;
}

.payment-badge i {
    color: var(--primary);
    font-size: 1.1rem;
}

.payment-badge svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.contact-info .payment-badge {
    border: 1px solid var(--border);
}

/* === GALLERY (Firebase) === */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 35px;
}

.gallery-filter-btn {
    border: 2px solid var(--primary);
    background: var(--white);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.25s ease, color 0.25s ease;
    font-family: inherit;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    background: var(--primary);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--secondary);
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow);
    cursor: pointer;
    border: none;
    padding: 0;
    display: block;
    width: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item figcaption,
.gallery-item .gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(1, 28, 75, 0.85);
    color: var(--white);
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
}

.gallery-item.is-placeholder {
    cursor: default;
}

.gallery-status {
    text-align: center;
    color: var(--muted);
    padding: 20px;
    font-weight: 600;
}

.gallery-status i {
    color: var(--primary);
    margin-right: 6px;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(1, 28, 75, 0.95);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.gallery-lightbox.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.gallery-lightbox img {
    max-width: 92vw;
    max-height: 82vh;
    border-radius: 8px;
    object-fit: contain;
}

.gallery-lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--white);
    font-weight: 600;
    padding: 0 20px;
}

.gallery-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: var(--white);
    font-size: 1.3rem;
    cursor: pointer;
}

/* === FOOTER === */
footer {
    background-color: var(--secondary);
    color: rgba(255, 255, 255, 0.85);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo a {
    display: inline-block;
    background: var(--white);
    border-radius: 10px;
    padding: 10px 16px;
}

.footer-logo .logo-img {
    height: 92px;
}

.footer-logo .logo-text strong {
    color: var(--white);
}

.footer-logo .logo-text small {
    color: rgba(255, 255, 255, 0.7);
}

footer h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

footer p {
    font-size: 0.95rem;
    line-height: 1.7;
}

footer ul li {
    margin-bottom: 10px;
}

footer ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

footer ul li a::before {
    content: "\203A";
    font-size: 1.2rem;
    color: var(--primary);
}

footer ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.footer-contact p i {
    color: var(--primary);
    margin-top: 5px;
    width: 16px;
    text-align: center;
}

.footer-contact a {
    color: var(--white);
}

.footer-contact a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: var(--primary);
    font-weight: 600;
}

.footer-bottom a:hover {
    color: var(--white);
}

/* === FLOATING CONTACT BAR === */
.floating-social-bar {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: var(--z-floating);
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
}

.floating-btn {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.35rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-btn:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

.floating-phone { background: var(--primary); }
.floating-whatsapp { background: #25D366; font-size: 1.6rem; }
.floating-email { background: var(--secondary); }

.floating-phone::after {
    content: "";
    position: absolute;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: pulseRing 2s ease-out infinite;
    pointer-events: none;
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* === CHATBOT === */
.kb-chatbot {
    position: fixed;
    right: 18px;
    bottom: 210px;
    z-index: var(--z-chatbot);
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
}

.kb-chatbot-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: var(--secondary);
    color: var(--white);
    font-size: 1.35rem;
    box-shadow: 0 14px 30px rgba(1, 28, 75, 0.35);
    transition: background-color 0.25s ease;
}

.kb-chatbot-toggle:hover {
    background: var(--primary);
}

.kb-chatbot-panel {
    display: none;
    width: 320px;
    max-width: calc(100vw - 30px);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
    margin-bottom: 10px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.kb-chatbot.open .kb-chatbot-panel {
    display: block;
}

.kb-chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--secondary);
    color: var(--white);
    padding: 14px 15px;
}

.kb-chatbot-header h3 {
    color: var(--white);
    font-size: 1rem;
    margin: 0;
}

.kb-chatbot-close {
    border: none;
    background: transparent;
    font-size: 1.4rem;
    color: var(--white);
    cursor: pointer;
    line-height: 1;
}

.kb-chat-messages {
    padding: 15px;
    height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
    background: var(--light-bg);
}

.kb-msg {
    padding: 10px 14px;
    border-radius: 8px;
    max-width: 85%;
    line-height: 1.5;
}

.kb-msg.bot {
    background: var(--white);
    color: var(--secondary);
    border: 1px solid var(--border);
    align-self: flex-start;
}

.kb-msg.user {
    background: var(--primary);
    color: var(--white);
    align-self: flex-end;
}

.kb-chat-input-area {
    padding: 10px;
    border-top: 1px solid var(--border);
    background: var(--white);
}

.kb-quick-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.kb-action-pill {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 7px 13px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
}

.kb-action-pill.secondary {
    background: var(--light-bg);
    color: var(--secondary);
    border: 1px solid var(--border);
}

.kb-action-pill:hover {
    background: var(--secondary);
    color: var(--white);
}

.kb-text-row {
    display: flex;
    width: 100%;
    gap: 5px;
}

.kb-text-row input {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
}

.kb-text-row button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
}

/* === PAGE SPECIFIC === */
.page-content {
    padding: 80px 0;
}

.page-content ul.check-list,
.check-list {
    margin: 15px 0;
}

.check-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 8px;
    color: var(--text);
}

.check-list li i {
    color: var(--primary);
    margin-top: 5px;
}

.anchor-offset {
    scroll-margin-top: 110px;
}

/* 404 */
.error-page {
    text-align: center;
    padding: 100px 0;
}

.error-page .error-code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Collapse desktop navigation earlier to avoid overflow */
@media (max-width: 1100px) {
    .header-phone span {
        display: none;
    }

    .header-phone {
        padding: 10px 14px;
    }

    .nav-menu > li > a {
        padding: 10px 11px;
        font-size: 0.85rem;
    }
}

@media (max-width: 992px) {
    .desktop-nav {
        display: none !important;
    }

    .header-right {
        gap: 10px;
    }

    .header-phone {
        padding: 10px 13px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-inner {
        height: 76px;
    }
}

@media (min-width: 993px) {
    .mobile-sidebar,
    .sidebar-overlay {
        display: none;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding: 60px 20px;
    }

    .hero-container {
        flex-direction: column;
        align-items: center;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-features {
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .hero-btns,
    .hero-hours {
        justify-content: center;
    }

    .estimate-box {
        width: 100%;
        max-width: 480px;
    }

    .services-grid,
    .services-grid.cols-4,
    .why-choose-grid,
    .testimonial-grid,
    .gallery-grid,
    .process-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        row-gap: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.2rem; }

    section {
        padding: 55px 0;
    }

    .logo-mark {
        width: 44px;
        height: 44px;
    }

    .logo .logo-img {
        height: 60px;
    }

    .logo-text strong {
        font-size: 1.1rem;
    }

    .logo-text small {
        font-size: 0.62rem;
    }

    .hero {
        padding: 40px 15px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }

    .top-tagline {
        font-size: 0.72rem;
        padding: 6px 14px;
    }

    .btn-quote-large {
        font-size: 0.95rem;
        padding: 14px 24px;
    }

    .estimate-box {
        min-width: unset;
    }

    .trust-bar {
        gap: 14px 22px;
        padding: 15px;
    }

    .trust-item {
        font-size: 0.85rem;
    }

    .about-grid,
    .about-grid.reverse {
        flex-direction: column;
        gap: 30px;
    }

    .about-image {
        flex: none;
        width: 100%;
    }

    .services-grid,
    .services-grid.cols-4,
    .why-choose-grid,
    .testimonial-grid,
    .contact-grid,
    .gallery-grid,
    .process-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .services-list {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info,
    .contact-form {
        padding: 28px 22px;
    }

    #service-area-map {
        height: 380px;
    }

    .top-bar {
        font-size: 0.8rem;
        padding: 8px 0;
    }

    .cta-section {
        padding: 60px 20px;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

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

    .floating-social-bar {
        right: max(12px, env(safe-area-inset-right));
        bottom: max(12px, env(safe-area-inset-bottom));
        gap: 10px;
    }

    .floating-btn,
    .floating-phone::after {
        width: 50px;
        height: 50px;
    }

    .floating-btn {
        font-size: 1.2rem;
    }

    .kb-chatbot {
        right: max(12px, env(safe-area-inset-right));
        bottom: calc(max(12px, env(safe-area-inset-bottom)) + 186px);
    }

    .kb-chatbot-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-quote-large,
    .hero-btns .btn {
        width: 100%;
        justify-content: center;
    }

    .about-features,
    .services-list {
        grid-template-columns: 1fr;
    }

    .btn-group .btn {
        width: 100%;
    }

    .floating-btn,
    .floating-phone::after {
        width: 46px;
        height: 46px;
    }

    .kb-chatbot {
        bottom: calc(max(12px, env(safe-area-inset-bottom)) + 170px);
    }
}
footer {
    position: relative;
    background-color: #011c4b; /* Color base */
    color: #ffffff;
    overflow: hidden;
}

/* Capa de la imagen con opacidad */
footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/src/images/footer.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15; /* Ajusta aquí la intensidad de la imagen (0.10 a 0.25 suele ser ideal) */
    pointer-events: none;
    z-index: 1;
}

/* El contenido siempre por encima */
footer > * {
    position: relative;
    z-index: 2;
}
.page-header {
    position: relative;
    background-color: #011c4b; /* Color azul base */
    color: #ffffff;
    overflow: hidden;
    padding: 80px 0 60px;
}

/* Capa de la imagen de fondo con opacidad */
.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/src/images/cabecera.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.22; /* Ajusta la intensidad de la imagen (ej: 0.18 a 0.30) */
    pointer-events: none;
    z-index: 1;
}

/* Contenedor de texto siempre al frente */
.page-header .container {
    position: relative;
    z-index: 2;
}
/* Contenedor centrado para la imagen circular */
.service-img-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
}

/* Imagen circular con tamaño uniforme y enfoque centrado */
.service-circle-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;          /* Evita que la foto se estire o deforme */
    object-position: center;     /* Centra la acción principal de la maquinaria */
    display: block;
    border: 4px solid #ffffff;  /* Borde blanco limpio */
    box-shadow: 0 8px 20px rgba(1, 28, 75, 0.15); /* Sombra elegante azul oscuro */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto hover suave al pasar el cursor por la tarjeta */
.service-card:hover .service-circle-img {
    transform: scale(1.05);
    box-shadow: 0 12px 26px rgba(0, 117, 239, 0.25);
    border-color: #0075ef;
}

/* Opcional: si tus títulos no están centrados */
.service-card {
    text-align: center;
}

.service-card ul {
    text-align: left; /* Mantiene las viñetas alineadas */
    display: inline-block;
    margin: 15px auto 20px auto;
}
