/* ===== GLOBAL FLAT MINIMALISM ===== */

:root {
    --flat-blue: #0099cc;
    --flat-blue-dark: #0077aa;
    --flat-ink: #003344;
    --flat-muted: #5a7a8a;
    --flat-line: #e6eef2;
    --flat-bg: #f5f9fb;
    --flat-nav-dark: rgba(0, 28, 42, 0.82);
}

body {
    font-family: 'Montserrat', sans-serif !important;
}

h1, h2, h3, h4, h5, h6,
.section-title,
.category-title,
.page-title,
.footer-title,
.loading-text,
.brand-text .brand-name,
.product-price,
.service-number {
    font-family: 'Montserrat', sans-serif !important;
    text-transform: none !important;
}

/* Kill wow leftovers */
.wow-cursor,
.wow-cursor-dot,
.wow-intro,
.wow-dive-veil,
#ripple-canvas,
.hero-sparkles,
.hero-caustics,
.custom-hero-section::after,
.custom-hero-overlay,
.wow-copy::before,
.custom-hero-panel::before {
    display: none !important;
    animation: none !important;
}

.page-home,
.page-home a,
.page-home button {
    cursor: auto !important;
}

/* ===== NAVBAR: dark before scroll, light after ===== */
.navbar {
    background: var(--flat-nav-dark) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
}

.navbar .nav-link {
    color: #ffffff !important;
    font-weight: 600;
    text-transform: none;
    text-shadow: none;
    font-family: 'Montserrat', sans-serif;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #ffffff !important;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.navbar .nav-toggle span {
    background: #ffffff !important;
}

.navbar .logo-img--light {
    display: block !important;
}

.navbar .logo-img--dark {
    display: none !important;
}

.navbar .phone-link {
    background: var(--flat-blue) !important;
    box-shadow: none !important;
    border-radius: 6px !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.navbar .phone-link:hover {
    background: var(--flat-blue-dark) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Scrolled = light flat bar */
.navbar.scrolled {
    background: #ffffff !important;
    backdrop-filter: none !important;
    border-bottom: 1px solid var(--flat-line) !important;
    box-shadow: none !important;
}

.navbar.scrolled .nav-link {
    color: var(--flat-muted) !important;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--flat-blue) !important;
}

.navbar.scrolled .nav-toggle span {
    background: var(--flat-ink) !important;
}

.navbar.scrolled .logo-img--light {
    display: none !important;
}

.navbar.scrolled .logo-img--dark {
    display: block !important;
}

/* Mobile menu */
@media (max-width: 768px) {
    .nav-menu {
        background: #001c2a !important;
        backdrop-filter: none !important;
    }

    .nav-menu .nav-link {
        color: #fff !important;
        font-size: 1.05rem;
        padding: 0.75rem 0;
    }

    .navbar.scrolled .nav-menu {
        background: #ffffff !important;
    }

    .navbar.scrolled .nav-menu .nav-link {
        color: var(--flat-ink) !important;
    }

    .logo-img {
        width: 148px !important;
        height: 74px !important;
    }

    .nav-container {
        height: 72px;
    }

    .nav-phone .phone-link span {
        display: none;
    }

    .phone-link {
        padding: 0.55rem 0.75rem !important;
    }
}

/* ===== HERO — flat ===== */
.custom-hero-section,
.custom-hero-section.wow-hero {
    height: 100vh;
    height: 100dvh;
    min-height: 520px;
}

.custom-bg-video {
    transform: none !important;
    filter: none !important;
    animation: none !important;
    object-fit: cover;
}

.custom-hero-video-container {
    transform: none !important;
}

.custom-hero-panel,
.wow-copy {
    display: inline-block;
    max-width: min(780px, 92vw);
    margin: 0 auto;
    padding: 2rem 2.25rem;
    background: rgba(0, 40, 55, 0.45);
    border: none;
    border-radius: 8px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: none;
    opacity: 1 !important;
    transform: none !important;
    overflow: visible;
}

.custom-hero-title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: clamp(1.5rem, 3.6vw, 2.4rem) !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: none !important;
    text-shadow: none !important;
    margin-bottom: 0.9rem !important;
    text-transform: none !important;
}

.custom-hero-title .line,
.custom-hero-title .line > span,
.custom-hero-title .accent {
    display: inline !important;
    transform: none !important;
    background: none !important;
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
    animation: none !important;
}

.custom-hero-subtitle {
    font-family: 'Montserrat', sans-serif !important;
    font-size: clamp(1rem, 2vw, 1.25rem) !important;
    font-weight: 600 !important;
    color: #fff !important;
    margin: 0 0 1.35rem !important;
    opacity: 1 !important;
    transform: none !important;
    text-shadow: none !important;
    letter-spacing: 0 !important;
}

.custom-btn,
.custom-btn-primary,
.wow-cta {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.6rem !important;
    border-radius: 6px !important;
    border: none !important;
    background: var(--flat-blue) !important;
    background-image: none !important;
    color: #fff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    box-shadow: none !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: background-color 0.2s ease !important;
}

.custom-btn::before,
.custom-btn::after,
.wow-cta::before,
.wow-cta::after {
    display: none !important;
}

.custom-btn:hover,
.custom-btn-primary:hover,
.wow-cta:hover {
    background: var(--flat-blue-dark) !important;
    transform: none !important;
    box-shadow: none !important;
    color: #fff !important;
}

.custom-scroll-indicator {
    opacity: 0.8 !important;
}

.custom-scroll-arrow {
    width: auto !important;
    height: auto !important;
    border: none !important;
    background: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    color: #fff;
}

.page-home .main-content {
    border-radius: 0 !important;
    margin-top: 0 !important;
    box-shadow: none !important;
    padding-top: 80px;
    background: #fff;
}

/* ===== PAGE HEADERS — flat ===== */
.page-header {
    background: var(--flat-blue) !important;
    background-image: none !important;
    padding: 7rem 0 3rem !important;
}

.page-header::before {
    display: none !important;
}

.page-title {
    color: #fff !important;
    font-weight: 700 !important;
    font-size: clamp(1.75rem, 4vw, 2.75rem) !important;
    text-transform: none !important;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
    text-transform: none !important;
}

.breadcrumbs a,
.breadcrumbs .current,
.breadcrumbs .separator {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ===== SECTIONS / CARDS — flat ===== */
.section-title {
    color: var(--flat-ink) !important;
    font-weight: 700 !important;
}

.section-subtitle {
    color: var(--flat-muted) !important;
}

.services-section {
    background: var(--flat-blue) !important;
    background-image: none !important;
}

.services-section .section-title,
.services-section .section-subtitle {
    color: #fff !important;
}

.categories-section,
.promo-banners-section {
    background: var(--flat-bg) !important;
    background-image: none !important;
}

.category-card,
.service-card,
.product-card,
.card,
.promo-banner,
.portfolio-item {
    border-radius: 8px !important;
    box-shadow: none !important;
    border: 1px solid var(--flat-line) !important;
    transform: none !important;
}

.category-card:hover,
.service-card:hover,
.product-card:hover,
.card:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: var(--flat-blue) !important;
}

.category-card::before {
    background: var(--flat-blue) !important;
    height: 2px !important;
}

.category-count {
    display: none !important;
}

.category-link,
.btn,
.btn-primary,
.btn-secondary,
.banner-link {
    border-radius: 6px !important;
    box-shadow: none !important;
    font-family: 'Montserrat', sans-serif !important;
    text-transform: none !important;
}

.category-link:hover,
.btn:hover {
    transform: none !important;
    box-shadow: none !important;
}

.btn-primary,
.phone-link {
    background: var(--flat-blue) !important;
    background-image: none !important;
}

.primary-gradient,
[style*="primary-gradient"] {
    background-image: none;
}

.footer {
    background: var(--flat-ink) !important;
}

.section-header.text-center .section-title::after {
    display: none !important;
}

/* Forms / filters flat */
.filter-input,
.filters-form input,
.filters-form select,
textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
    border-radius: 6px !important;
    box-shadow: none !important;
}

/* Mobile content */
@media (max-width: 768px) {
    .custom-hero-panel,
    .wow-copy {
        padding: 1.35rem 1.15rem;
        border-radius: 6px;
    }

    .custom-hero-title {
        font-size: clamp(1.3rem, 6vw, 1.7rem) !important;
    }

    .custom-hero-subtitle {
        font-size: 1rem !important;
    }

    .custom-btn,
    .custom-btn-primary {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }

    .page-header {
        padding: 6rem 0 2.25rem !important;
    }

    .page-title {
        font-size: 1.65rem !important;
    }

    .section-title {
        font-size: 1.6rem !important;
    }

    .categories-grid,
    .services-grid,
    .products-grid {
        gap: 1rem !important;
    }

    .category-card,
    .service-card {
        padding: 1.25rem !important;
    }

    .footer-container {
        text-align: left !important;
    }

    .page-home .main-content {
        padding-top: 72px;
    }
}

@media (max-width: 480px) {
    .custom-hero-section {
        min-height: 100svh;
    }

    .hide-mobile {
        display: none !important;
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
