/* =====================================================================
 *  GOLWEL SECURITY SERVICES  -  Layout Stylesheet
 *  Header, navigation, footer, hero, floating elements
 * =================================================================== */

/* ----------  TOP BAR  ---------------------------------------------- */
.topbar {
    background: var(--green-900);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.84rem;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
}
.topbar a { color: rgba(255, 255, 255, 0.85); }
.topbar a:hover { color: var(--gold); }
.topbar-info { display: flex; gap: 24px; align-items: center; }
.topbar-info span { display: flex; align-items: center; gap: 7px; }
.topbar-social { display: flex; gap: 14px; }

/* ----------  HEADER  ----------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: #fff;
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.18rem;
    color: var(--green);
}
.brand-tag {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-700);
    font-weight: 700;
}

/* ----------  PRIMARY NAV  ------------------------------------------ */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > li > a {
    display: block;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.93rem;
    color: var(--ink);
    border-radius: var(--radius-sm);
}
.main-nav > li > a:hover,
.main-nav > li > a.active {
    color: var(--green);
    background: var(--green-050);
}

/* dropdown */
.has-dropdown { position: relative; }
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .2s ease;
}
.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--slate);
    font-size: 0.9rem;
    font-weight: 600;
}
.dropdown a:hover { background: var(--green-050); color: var(--green); }

.header-cta { display: flex; align-items: center; gap: 12px; }

/* mobile toggle */
.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    width: 44px; height: 44px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    height: 2.5px;
    width: 24px;
    background: var(--green);
    border-radius: 2px;
    transition: all .25s ease;
}

/* ----------  HERO  ------------------------------------------------- */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h) - 40px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--green-900);
}
.hero-media,
.hero-media video,
.hero-media iframe,
.hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-media iframe { pointer-events: none; }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.40) 50%,
        rgba(0, 0, 0, 0.15) 100%);
}
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 680px;
    padding: 60px 0;
}
.hero-content .eyebrow { color: var(--gold-300); }
.hero-content .eyebrow::before { background: var(--gold-300); }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em {
    font-style: italic;
    color: var(--gold);
}
.hero-sub {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 32px;
    max-width: 560px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-trust {
    display: flex;
    gap: 32px;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.hero-trust .num {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold);
    font-weight: 600;
}
.hero-trust .lbl {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* hero slider dots */
.hero-dots {
    position: absolute;
    bottom: 28px; left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 10px;
}
.hero-dots button {
    width: 32px; height: 4px;
    border: 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background .2s ease;
}
.hero-dots button.active { background: var(--gold); }

/* ----------  PAGE BANNER (inner pages)  ---------------------------- */
.page-banner {
    position: relative;
    background: var(--green);
    color: #fff;
    padding: 70px 0;
    overflow: hidden;
}
.page-banner::after {
    content: "";
    position: absolute;
    right: -80px; top: -80px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(236,164,52,0.22), transparent 70%);
}
.page-banner h1 { color: #fff; position: relative; }
.breadcrumb-nav {
    display: flex;
    gap: 8px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
}
.breadcrumb-nav a { color: var(--gold-300); }
.breadcrumb-nav span { color: rgba(255, 255, 255, 0.5); }

/* ----------  CLIENTS MARQUEE  -------------------------------------- */
.marquee {
    overflow: hidden;
    padding: 18px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent,
        #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent,
        #000 8%, #000 92%, transparent);
}
.marquee-track {
    display: flex;
    gap: 56px;
    width: max-content;
    animation: scroll-x 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-x {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.marquee-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    min-width: 150px;
}
.marquee-item img {
    max-height: 56px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter .25s ease, opacity .25s ease;
}
.marquee-item:hover img { filter: grayscale(0); opacity: 1; }
.marquee-item .logo-fallback {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--green-300);
    font-size: 1.05rem;
    white-space: nowrap;
}

/* ----------  FOOTER  ----------------------------------------------- */
.site-footer {
    background: var(--green-900);
    color: rgba(255, 255, 255, 0.72);
    padding-top: 72px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 40px;
    padding-bottom: 52px;
}
.footer-brand .brand-name { color: #fff; }
.footer-about { font-size: 0.92rem; margin: 18px 0; line-height: 1.7; }
.footer h4 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 20px;
}
.footer-col h4 {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.08rem;
    margin-bottom: 20px;
}
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }

.footer-contact li {
    display: flex;
    gap: 11px;
    margin-bottom: 14px;
    font-size: 0.92rem;
}
.footer-contact i { color: var(--gold); margin-top: 3px; }

.footer-hotline {
    background: rgba(236, 164, 52, 0.12);
    border: 1px solid rgba(236, 164, 52, 0.3);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 18px;
}
.footer-hotline .lbl {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-300);
}
.footer-hotline .num {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: #fff;
    font-weight: 600;
}

.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
}
.footer-social a:hover { background: var(--gold); color: var(--green-900); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.84rem;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.72); }

/* ----------  FLOATING WHATSAPP  ------------------------------------ */
.wa-float {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 300;
    display: flex;
    align-items: center;
    gap: 0;
}
.wa-float a {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: #fff;
    padding: 14px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    transition: transform .2s ease;
}
.wa-float a:hover { transform: scale(1.05); color: #fff; }
.wa-float i { font-size: 1.4rem; }

/* ----------  RESPONSIVE  ------------------------------------------- */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 900px) {
    .topbar-info span.hide-mobile { display: none; }
    .nav-toggle { display: flex; }
    .header-cta .btn { display: none; }
    .main-nav {
        position: fixed;
        top: var(--header-h); left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 2px;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        transform: translateY(-120%);
        transition: transform .3s ease;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }
    .main-nav.open { transform: translateY(0); }
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        padding: 0 0 0 16px;
        display: none;
    }
    .has-dropdown.open .dropdown { display: block; }
}
@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .hero-trust { gap: 20px; flex-wrap: wrap; justify-content: center; }
    .wa-float a span { display: none; }
    .wa-float a { padding: 14px; }

    /* Hero content centered on mobile */
    .hero-content {
        text-align: center;
    }
    .hero-sub {
        max-width: 100%;
    }

    /* Hero buttons centered and natural width on mobile */
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .hero-actions .btn {
        width: auto;
        align-self: center;
    }

    /* Neutral dark overlay on mobile — no green tint */
    .hero-overlay {
        background: linear-gradient(
            105deg,
            rgba(0, 0, 0, 0.65) 0%,
            rgba(0, 0, 0, 0.40) 50%,
            rgba(0, 0, 0, 0.15) 100%);
    }
}

/* End of layout.css */