/* Modern Minimalist CleanPro Design */
:root {
    /* Color Palette */
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8F9FA;
    --color-text: #1A1A1A;
    --color-text-light: #6B7280;
    --color-primary: #111827;
    /* Very dark blue/black */
    --color-accent: #3B82F6;
    /* Subtle blue accent */
    --color-border: #E5E7EB;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 112px;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --transition: all 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    letter-spacing: -0.02em;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    display: flex;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.header.scrolled {
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    box-shadow: 0 8px 30px rgba(17, 24, 39, 0.06);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 100px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-list {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.nav-list a {
    font-weight: 500;
    color: var(--color-text-light);
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-list a:hover {
    color: var(--color-primary);
    background-color: rgba(17, 24, 39, 0.05);
}

.cta-btn {
    padding: 0.75rem 1.35rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(37, 99, 235, 0.95));
    color: white;
    border: none;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.22);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(59, 130, 246, 0.32);
    opacity: 0.98;
}

/* Dropdown Menu */
.dropdown-wrapper {
    position: relative;
    padding: 0.5rem 0;
    /* Add padding to bridge gap */
}

.dropdown-trigger {
    cursor: pointer;
    font-weight: 500;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.dropdown-trigger:hover {
    color: var(--color-primary);
    background-color: var(--color-bg-alt);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 0.5rem;
    min-width: 220px;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 1002;
    margin-top: 0.5rem;
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background-color: white;
    border-left: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border);
    transform: rotate(45deg);
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-wrapper:hover .dropdown-menu,
.dropdown-wrapper:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 0.95rem;
    transition: background-color 0.2s;
}

.dropdown-menu li a:hover {
    background-color: var(--color-bg-alt);
    color: var(--color-accent);
    /* Use blue accent on hover */
    padding-left: 1.25rem;
    /* Subtle slide effect */
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transform: scale(1.05);
    filter: saturate(1.1) contrast(1.05);
    animation: heroKenBurns 16s ease-in-out infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(800px 400px at 50% 40%, rgba(59, 130, 246, 0.35), transparent 60%),
        linear-gradient(120deg, rgba(17, 24, 39, 0.35), rgba(17, 24, 39, 0.75));
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: white;
    width: 100%;
    padding: 0 var(--spacing-lg);
}

.hero-inner {
    max-width: 820px;
    margin: 0 auto;
    animation: heroReveal 900ms ease both;
}

.hero-title {
    font-size: 3.25rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 640px;
    margin: 0 auto 1.75rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.4rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.95);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 14px 40px rgba(59, 130, 246, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 50px rgba(59, 130, 246, 0.45);
}

.arrow-down {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: arrowBounce 1.3s ease-in-out infinite;
}

.arrow-down svg {
    opacity: 0.9;
}

@keyframes heroKenBurns {
    from { transform: scale(1.05); }
    to { transform: scale(1.14); }
}

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

@keyframes arrowBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* Page Hero (for subpages) */
.category-hero,
.service-hero {
    position: relative;
    padding: calc(var(--header-height) + 4rem) 0 4rem;
    background-color: var(--color-bg-alt);
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.category-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 480px at 50% 35%, rgba(59, 130, 246, 0.32), transparent 62%),
        linear-gradient(120deg, rgba(17, 24, 39, 0.55), rgba(17, 24, 39, 0.82));
    z-index: 0;
}

.category-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.08);
    z-index: 0;
}

.category-hero .container {
    position: relative;
    z-index: 1;
}

.category-hero-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 2rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.category-hero .page-title,
.category-hero .page-description {
    color: rgba(255, 255, 255, 0.95);
}

.category-hero .page-description {
    color: rgba(255, 255, 255, 0.86);
}

.service-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 480px at 50% 35%, rgba(59, 130, 246, 0.28), transparent 62%),
        linear-gradient(120deg, rgba(17, 24, 39, 0.55), rgba(17, 24, 39, 0.82));
    z-index: 0;
}

.service-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.08);
    z-index: 0;
}

.service-hero .container {
    position: relative;
    z-index: 1;
}

.service-hero .page-title {
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 16px 60px rgba(0, 0, 0, 0.45);
}

.service-hero .page-description {
    color: rgba(255, 255, 255, 0.86);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.service-hero .service-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.service-hero .btn-primary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(37, 99, 235, 0.95));
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 50px rgba(59, 130, 246, 0.28);
}

.service-hero .btn-primary:hover {
    opacity: 0.98;
    transform: translateY(-2px);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.36);
}

.service-hero .btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.service-hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.14);
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.page-description {
    color: var(--color-text-light);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Categories Grid */
.categories,
.services {
    padding: var(--spacing-xl) 0;
}

.categories-grid,
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.category-card,
.service-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: white;
    border: 1px solid var(--color-border);
    transition: var(--transition);
    display: block;
}

.category-card:hover,
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-image,
.service-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.category-content,
.service-content {
    padding: 1.5rem;
}

.category-title,
.service-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.category-description,
.service-description {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.service-price {
    font-weight: 600;
    color: var(--color-primary);
}

/* Footer */
.footer {
    background-color: #1a365d;
    /* Classic Blue */

    color: #f8fafc;
    /* Very light gray/white */
    padding: var(--spacing-xl) 0 2rem;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #93c5fd;
    /* Light blue accent */
}

.footer-list li {
    margin-bottom: 0.75rem;
}

.footer-list a {
    color: #cbd5e1;
    /* Light gray */
    transition: var(--transition);
}

.footer-list a:hover {
    color: white;
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-text {
    color: #cbd5e1;
}

/* Service Details Specifics */
.breadcrumb {
    padding: calc(var(--header-height) + 1rem) 0 1rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.breadcrumb a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Service Details layout */
.service-details {
    padding: 2.5rem 0;
}

.service-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--color-bg-alt);
}

.accordion-item {
    border-bottom: 1px solid var(--color-border);
}

.accordion-header {
    width: 100%;
    padding: 1.5rem 0;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content.active {
    max-height: 2000px;
    /* Arbitrary large number */
    padding-bottom: 1.5rem;
}

/* Zone list (Service detail) */
.zone-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.zone-item {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.zone-item h4 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.zone-item ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--color-text);
}

.zone-item li {
    margin: 0.35rem 0;
    line-height: 1.45;
}

/* Chemicals / products (Service detail) */
.product-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.product-item {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.product-img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
    flex: 0 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.product-body h4 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.product-body p {
    margin: 0;
    color: var(--color-text-light);
    line-height: 1.45;
}

/* FAQ (Service detail) */
.faq-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.faq-item h4 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.faq-item p {
    margin: 0;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* Pricing Info */
.price-large {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --header-height: 96px;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    .nav-list {
        gap: 1rem;
        flex-wrap: nowrap;
    }

    .nav-list a {
        font-size: 0.9rem;
    }

    .dropdown-trigger {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .zone-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .product-item {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        padding: 0.65rem 1.1rem;
        font-size: 0.9rem;
    }

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

@media (max-width: 768px) {
    :root {
        --header-height: 84px;
    }

    .zone-list {
        grid-template-columns: 1fr !important;
    }

    .breadcrumb .container {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem 0.5rem;
        align-items: center;
    }

    .breadcrumb span {
        line-height: 1.4;
    }

    .service-hero {
        padding: calc(var(--header-height) + 3rem) 0 3rem;
    }

    .service-hero .service-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .service-hero .btn {
        width: 100%;
        justify-content: center;
    }

    .accordion-header {
        padding: 1.1rem 0;
        font-size: 1.05rem;
    }

    .accordion-content.active {
        padding-bottom: 1.1rem;
    }

    .service-details {
        padding: 2rem 0;
    }

    .product-item {
        padding: 0.9rem;
        gap: 0.75rem;
    }

    .product-img {
        width: 56px;
        height: 56px;
        border-radius: 12px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav {
        order: 1;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--color-border);
    }

    .nav-list.active {
        display: flex;
    }

    .dropdown-wrapper {
        width: 100%;
        padding: 0;
    }

    .dropdown-trigger {
        display: none;
    }

    .dropdown-menu {
        position: static;
        min-width: 0;
        width: 100%;
        margin-top: 0;
        padding: 0;
        border: none;
        box-shadow: none;
        background: transparent;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        gap: 0;
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown-menu li a {
        padding: 0.65rem 0;
        border-radius: 0;
        color: var(--color-text-light);
    }

    .dropdown-menu li a:hover {
        padding-left: 0;
        color: var(--color-primary);
        background: transparent;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2.25rem;
    }
}