/**
 * Locus — corporate water treatment theme
 * Replace colors here to rebrand; media paths reference /assets/images and /assets/videos only.
 */

:root {
    /*
     * Brand palette (derived from locus-logo.png)
     * Primary blues: #0E61A2 / #046FC9 / #052B63
     * Accent green:  #99CD31
     * Aqua highlight: #109FD9
     */
    --color-primary: #0e61a2;
    --color-primary-dark: #052b63;
    --color-primary-2: #046fc9;
    --color-accent: #99cd31;
    --color-accent-dark: #7fb11e;
    --color-aqua: #109fd9;
    --color-bg: #ffffff;
    --color-section: #f6f9fc;
    --color-text: #1f2937;
    --color-muted: #6b7280;
    --font-heading: "Poppins", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
    --radius: 12px;
    --shadow-sm: 0 4px 14px rgba(14, 97, 162, 0.10);
    --shadow-md: 0 12px 40px rgba(5, 43, 99, 0.14);
    --transition: 0.25s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    padding-bottom: 72px;
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-font {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text);
}

.text-muted-custom {
    color: var(--color-muted) !important;
}

.text-justify {
    text-align: justify;
}

/* Brand logo (cropped PNG in /assets/images/locus-logo.png) */
.navbar-brand {
    max-width: min(100%, 320px);
}

.brand-logo {
    height: 52px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
    display: block;
}

@media (max-width: 575.98px) {
    .brand-logo {
        height: 44px;
    }
}

.footer-brand-logo {
    display: inline-block;
    max-width: 100%;
    padding: 10px 14px;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.brand-logo--footer {
    height: auto;
    max-height: 70px;
    width: auto;
    max-width: min(100%, 260px);
    object-fit: contain;
    object-position: left center;
}

/* Nav */
.site-header .navbar {
    border-bottom: 1px solid rgba(14, 97, 162, 0.08);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--color-text);
    padding: 0.5rem 0.85rem !important;
    border-radius: 8px;
    transition: color var(--transition), background var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--color-primary);
    background: rgba(14, 97, 162, 0.08);
}

.navbar-nav .nav-contact-cta.active {
    filter: brightness(1.08);
    box-shadow: 0 0 0 0.2rem rgba(14, 97, 162, 0.25);
}

.btn-primary {
    --bs-btn-bg: var(--color-primary);
    --bs-btn-border-color: var(--color-primary);
    --bs-btn-hover-bg: var(--color-primary-dark);
    --bs-btn-hover-border-color: var(--color-primary-dark);
    font-weight: 600;
}

.btn-outline-primary {
    --bs-btn-color: var(--color-primary);
    --bs-btn-border-color: var(--color-primary);
    --bs-btn-hover-bg: var(--color-primary);
    font-weight: 600;
}

.btn-success {
    --bs-btn-bg: var(--color-accent);
    --bs-btn-border-color: var(--color-accent);
    --bs-btn-hover-bg: var(--color-accent-dark);
    --bs-btn-hover-border-color: var(--color-accent-dark);
}

.text-accent-green {
    color: var(--color-accent) !important;
}

.tracking-wide {
    letter-spacing: 0.06em;
}

/* Hero */
.hero-section {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    /* Do not clip here — clips text/buttons on mobile (AOS, safe-area, flex). */
    background: var(--color-primary-dark);
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(5, 43, 99, 0.92) 0%,
        rgba(14, 97, 162, 0.58) 45%,
        rgba(153, 205, 49, 0.22) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding-top: 4rem;
    padding-bottom: 4rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Keep Bootstrap gutter + extra inset on notched phones (do not replace container padding with a flat value). */
.hero-section .hero-content.container {
    padding-left: calc(var(--bs-gutter-x) * 0.5 + env(safe-area-inset-left, 0px));
    padding-right: calc(var(--bs-gutter-x) * 0.5 + env(safe-area-inset-right, 0px));
}

@media (max-width: 767.98px) {
    .hero-section .hero-content.container {
        --bs-gutter-x: 2rem;
    }

    .hero-content {
        padding-top: 3.25rem;
        padding-bottom: 3.25rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section .hero-content.container {
        --bs-gutter-x: 2.25rem;
    }
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-lead {
    font-size: 1.1rem;
    max-width: 540px;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
    max-width: 100%;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    flex: 0 1 auto;
    max-width: 100%;
    text-align: center;
}

/* Sections */
.section {
    padding: 4.5rem 0;
}

.section-alt {
    background: var(--color-section);
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 0.75rem;
}

.section-sub {
    color: var(--color-muted);
    max-width: 640px;
    margin-bottom: 2.5rem;
}

/* Logo carousel */
.logo-strip-wrap {
    background: #fff;
    border-top: 1px solid rgba(14, 97, 162, 0.10);
    border-bottom: 1px solid rgba(14, 97, 162, 0.10);
    padding: 1.75rem 0;
    overflow: hidden;
}

.logo-strip-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-muted);
    margin-bottom: 1rem;
}

.logo-marquee {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.logo-marquee:hover {
    animation-play-state: paused;
}

.logo-marquee-inner {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding-right: 3rem;
}

.logo-placeholder {
    height: 48px;
    min-width: 120px;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-section);
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-primary);
    opacity: 0.85;
    flex-shrink: 0;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Cards */
.card-elevated {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    background: #fff;
    overflow: hidden;
    height: 100%;
}

.card-elevated:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.card-elevated .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Process timeline */
.process-track {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .process-track {
        grid-template-columns: repeat(5, 1fr);
    }
}

.process-step {
    text-align: center;
    padding: 1.5rem 1rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.process-step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-2));
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* Counters */
.stat-card {
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid rgba(14, 97, 162, 0.10);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    color: var(--color-muted);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* CTA band */
.cta-band {
    background: linear-gradient(120deg, var(--color-primary-dark) 0%, var(--color-primary-2) 55%, var(--color-accent-dark) 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-md);
}

/* Page banner inner pages */
.page-banner {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, var(--color-primary-2) 100%);
    color: #fff;
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.page-banner::after {
    content: "";
    position: absolute;
    right: -10%;
    top: -40%;
    width: 50%;
    height: 180%;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.page-banner h1 {
    color: #fff;
    position: relative;
    z-index: 1;
}

.page-banner p {
    opacity: 0.92;
    position: relative;
    z-index: 1;
}

.breadcrumb-light .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.breadcrumb-light .breadcrumb-item.active {
    color: var(--color-accent);
}

/* Footer */
.site-footer {
    background: linear-gradient(180deg, #062a45 0%, #041e32 100%);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    padding: 0.2rem 0;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--color-accent);
}

/* WhatsApp float */
.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 92px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    z-index: 1040;
    transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.06);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55);
}

@media (min-width: 992px) {
    .whatsapp-float {
        bottom: 28px;
    }
}

/* Mobile CTA */
.mobile-cta-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(14, 97, 162, 0.14);
    padding: 10px 16px;
    display: flex;
    gap: 10px;
}

/* Certificates */
.cert-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    border: 1px solid rgba(14, 97, 162, 0.10);
    transition: transform var(--transition), box-shadow var(--transition);
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.cert-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 12px;
    background: var(--color-section);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
}

/* Gallery masonry */
.gallery-grid {
    column-count: 1;
    column-gap: 1rem;
}

@media (min-width: 576px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (min-width: 992px) {
    .gallery-grid {
        column-count: 3;
    }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    display: block;
    vertical-align: middle;
    height: auto;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(4, 30, 50, 0.92);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lightbox.is-open {
    display: flex;
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-primary);
}

/* Contact form */
.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(14, 97, 162, 0.15);
}

.map-embed {
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 320px;
    box-shadow: var(--shadow-sm);
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
}

/* Founder block */
.founder-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid rgba(14, 97, 162, 0.12);
}

.founder-img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.founder-quote {
    border-left: 4px solid var(--color-accent);
    padding-left: 1.25rem;
    font-style: italic;
    color: var(--color-muted);
}

/* Service detail */
.flow-diagram {
    background: var(--color-section);
    border-radius: var(--radius);
    padding: 1.5rem;
    font-size: 0.95rem;
}

.list-check li {
    padding-left: 0.25rem;
    margin-bottom: 0.5rem;
}

.list-check li::marker {
    color: var(--color-accent);
}
