/* =====================================================
   TrackPro — Global Stylesheet (style.css)
   Theme: White base · Blue primary · Red accent
   ===================================================== */

/* ---------- CSS Variables ---------- */
:root {
    --blue:        #1d4ed8;
    --blue-dark:   #1e3a8a;
    --blue-light:  #eff6ff;
    --blue-soft:   #dbeafe;
    --red:         #ef4444;
    --red-dark:    #dc2626;
    --red-light:   #fef2f2;
    --ink:         #0f172a;
    --ink-2:       #334155;
    --muted:       #64748b;
    --line:        #e2e8f0;
    --bg:          #ffffff;
    --bg-soft:     #f8fafc;

    --grad: linear-gradient(135deg, var(--blue) 0%, #3b82f6 100%);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
    --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, .15);
    --shadow-lg: 0 25px 60px -20px rgba(29, 78, 216, .25);

    /* Latin/English = Poppins · Bangla = Hind Siliguri (per-glyph fallback covers mixed runs) */
    --font-en: 'Poppins', 'Hind Siliguri', system-ui, -apple-system, sans-serif;
    --font-bn: 'Hind Siliguri', 'Poppins', sans-serif;

    --radius: 14px;
    --radius-lg: 20px;
    --header-h: 78px;
    --container: 1200px;
}

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

/* overflow-x lives on <html> as `clip` only. Adding overflow-x:hidden to <body>
   here would make body its own scroll container, which silently breaks
   position:sticky on .header. scroll-padding keeps anchor targets clear of the
   sticky navbar. */
html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: calc(var(--header-h) + 16px); }

/* Fallback for engines without overflow:clip (older Safari). Clipping on <html>
   is safe for the sticky header; clipping on <body> is not. */
@supports not (overflow: clip) {
    html { overflow-x: hidden; }
}

body {
    font-family: var(--font-en);
    color: var(--ink-2);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-en); color: var(--ink); line-height: 1.25; }

/* Bangla copy: Hind Siliguri, with looser leading on running text for its taller ascenders.
   Apply with lang="bn" on the element. */
[lang="bn"] { font-family: var(--font-bn); }
[lang="bn"] p, [lang="bn"] li, [lang="bn"] blockquote, [lang="bn"] figcaption { line-height: 1.75; }
[lang="bn"] h1, [lang="bn"] h2, [lang="bn"] h3, [lang="bn"] h4 { line-height: 1.4; }

/* This file loads after the Font Awesome CDN, so lang="bn" would otherwise hand the
   icon glyphs to Hind Siliguri. Pin the icon families back inside Bangla blocks. */
[lang="bn"] .fa-solid, [lang="bn"] .fas,
[lang="bn"] .fa-regular, [lang="bn"] .far,
[lang="bn"] .fa-light, [lang="bn"] .fal { font-family: "Font Awesome 6 Free"; }
[lang="bn"] .fa-brands, [lang="bn"] .fab { font-family: "Font Awesome 6 Brands"; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color .2s ease; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

/* Visually hidden but available to screen readers */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.text-gradient {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 26px; border-radius: 12px; border: 2px solid transparent;
    font-weight: 600; font-size: .95rem; cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn i { font-size: .9em; transition: transform .2s ease; }
.btn:hover i.fa-arrow-right { transform: translateX(4px); }

.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(29, 78, 216, .6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(29, 78, 216, .65); }

.btn--danger { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); color: #fff !important; border: none; box-shadow: 0 6px 18px -4px rgba(239, 68, 68, 0.45); }
.btn--danger:hover { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); box-shadow: 0 10px 24px -4px rgba(239, 68, 68, 0.65); transform: translateY(-2px); color: #fff !important; }

.btn--outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }

.btn--ghost { color: var(--ink-2); padding: 10px 16px; }
.btn--ghost:hover { color: var(--blue); }

.btn--white { background: #fff; color: var(--blue-dark); }
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--sm { padding: 9px 18px; font-size: .88rem; border-radius: 10px; }
.btn--block { width: 100%; }

/* ---------- Section scaffolding ---------- */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin: 14px 0 16px; }
.section-head p { color: var(--muted); }
.section-tag {
    display: inline-block; padding: 7px 16px; border-radius: 999px;
    background: var(--blue-light); color: var(--blue);
    font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}

/* =====================================================
   HEADER / NAVBAR
   ===================================================== */
.header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow .25s ease;
}
/* No border or hairline: once stuck, a soft shadow alone lifts the bar off the page */
.header.is-stuck { box-shadow: 0 10px 30px -12px rgba(15, 23, 42, .22); }

.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__logo { height: 52px; width: auto; display: block; }
.brand__mark {
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--grad); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem;
    box-shadow: 0 8px 18px -8px rgba(29, 78, 216, .8);
}
.brand__text { font-family: var(--font-en); font-size: 1.35rem; font-weight: 500; color: var(--ink); }
.brand__text strong { font-weight: 800; color: var(--blue); }
.brand--light .brand__text { color: #fff; }

.nav__list { display: flex; align-items: center; gap: 2px; }

.nav-link {
    position: relative;
    display: inline-flex; align-items: center;
    padding: 10px 16px; border-radius: 12px;
    font-weight: 500; font-size: .95rem; color: var(--ink-2);
    letter-spacing: .01em;
    transition: color .25s ease, background .25s ease, box-shadow .25s ease;
}
/* Gradient underline wipes in from the left */
.nav-link::before {
    content: ""; position: absolute; left: 16px; right: 16px; bottom: 5px;
    height: 2.5px; border-radius: 3px;
    background: linear-gradient(90deg, var(--red), var(--red-dark));
    transform: scaleX(0); transform-origin: left center;
    transition: transform .3s cubic-bezier(.22, .8, .3, 1);
}
/* Hover and current page are deliberately identical: red text, tinted pill,
   red glow and the full gradient underline. Grouped so the two never drift. */
.nav-link:hover,
.nav-link.is-active {
    color: var(--red);
    box-shadow: 0 10px 20px -14px rgba(239, 68, 68, .7);
}
.nav-link:hover::before,
.nav-link.is-active::before { transform: scaleX(1); }

/* Parent trigger inherits the active state when a dropdown child is the current page */
.has-dropdown:has(.nav-dropdown__link.is-active) > .nav-link--drop {
    color: var(--red);
    background: var(--red-light);
    box-shadow: 0 10px 20px -14px rgba(239, 68, 68, .7);
}
.has-dropdown:has(.nav-dropdown__link.is-active) > .nav-link--drop::before { transform: scaleX(1); }

.nav-link:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 12px; }

/* Dropdown trigger (button variant of .nav-link) */
.nav-item { position: relative; }
.nav-link--drop {
    display: inline-flex; align-items: center; gap: 7px;
    border: 0; background: transparent; cursor: pointer;
    font-family: inherit; font-weight: 500;
}
.nav-link--drop .fa-chevron-down {
    font-size: .68rem;
    transition: transform .25s ease;
}
.has-dropdown.is-open > .nav-link--drop .fa-chevron-down { transform: rotate(180deg); }

/* Dropdown panel (desktop) */
.nav-dropdown {
    position: absolute; top: calc(100% + 14px); left: 50%;
    min-width: 248px; margin: 0; padding: 10px;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--line); border-radius: 18px;
    box-shadow: 0 32px 64px -28px rgba(15, 23, 42, .32);
    list-style: none;
    opacity: 0; visibility: hidden;
    transform: translate(-50%, 14px) scale(.97);
    transform-origin: top center;
    transition: opacity .25s ease, transform .28s cubic-bezier(.22, .8, .3, 1), visibility .25s;
    z-index: 60;
}
/* Connector beam from the trigger down to the panel */
.nav-dropdown::before {
    content: ""; position: absolute; top: -14px; left: 50%;
    width: 64px; height: 2px; transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    opacity: 0; transition: opacity .25s ease;
}
/* Last item's panel hugs the right edge instead of overflowing */
.nav__list > .nav-item:last-child .nav-dropdown { left: auto; right: 0; transform: translate(0, 14px) scale(.97); transform-origin: top right; }
.nav__list > .nav-item:last-child .nav-dropdown::before { left: auto; right: 28px; transform: none; }

.has-dropdown:hover > .nav-dropdown,
.has-dropdown:focus-within > .nav-dropdown,
.has-dropdown.is-open > .nav-dropdown {
    opacity: 1; visibility: visible;
    transform: translate(-50%, 0) scale(1);
}
.has-dropdown:hover > .nav-dropdown::before,
.has-dropdown:focus-within > .nav-dropdown::before,
.has-dropdown.is-open > .nav-dropdown::before { opacity: 1; }
.nav__list > .nav-item:last-child.has-dropdown:hover > .nav-dropdown,
.nav__list > .nav-item:last-child.has-dropdown:focus-within > .nav-dropdown,
.nav__list > .nav-item:last-child.has-dropdown.is-open > .nav-dropdown { transform: translate(0, 0) scale(1); }

.nav-dropdown__link {
    position: relative;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 11px 14px; border-radius: 12px;
    font-size: .92rem; font-weight: 500; color: var(--ink-2);
    transition: color .22s ease, background .22s ease, transform .22s ease;
}
/* Left accent bar */
.nav-dropdown__link::before {
    content: ""; position: absolute; left: 0; top: 50%;
    width: 3px; height: 0; border-radius: 3px; background: var(--red);
    transform: translateY(-50%);
    transition: height .22s ease;
}
/* Chevron built from borders so it needs no icon font */
.nav-dropdown__link::after {
    content: ""; flex-shrink: 0;
    width: 7px; height: 7px;
    border-right: 2px solid #cbd5e1; border-top: 2px solid #cbd5e1;
    transform: rotate(45deg) translateX(-5px);
    opacity: .5;
    transition: transform .22s ease, opacity .22s ease, border-color .22s ease;
}
/* Active dropdown child matches its hover treatment exactly */
.nav-dropdown__link:hover,
.nav-dropdown__link.is-active {
    color: var(--red);
    background: var(--red-light);
    transform: translateX(3px);
}
.nav-dropdown__link:hover::before,
.nav-dropdown__link.is-active::before { height: 62%; }
.nav-dropdown__link:hover::after,
.nav-dropdown__link.is-active::after { opacity: 1; border-color: var(--red); transform: rotate(45deg) translateX(0); }

/* Staggered item entrance — uses `translate` so it never blocks the :hover transform above */
@keyframes dropIn {
    from { opacity: 0; translate: 0 -7px; }
    to   { opacity: 1; translate: 0 0; }
}
.has-dropdown:hover > .nav-dropdown .nav-dropdown__link,
.has-dropdown:focus-within > .nav-dropdown .nav-dropdown__link { animation: dropIn .28s ease both; }
.has-dropdown:hover > .nav-dropdown .nav-dropdown__link:nth-child(1),
.has-dropdown:focus-within > .nav-dropdown .nav-dropdown__link:nth-child(1) { animation-delay: .05s; }
.has-dropdown:hover > .nav-dropdown .nav-dropdown__link:nth-child(2),
.has-dropdown:focus-within > .nav-dropdown .nav-dropdown__link:nth-child(2) { animation-delay: .1s; }
.has-dropdown:hover > .nav-dropdown .nav-dropdown__link:nth-child(3),
.has-dropdown:focus-within > .nav-dropdown .nav-dropdown__link:nth-child(3) { animation-delay: .15s; }

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

/* Hamburger */
.hamburger {
    display: none; flex-direction: column; justify-content: center; align-items: flex-start; gap: 5px;
    width: 44px; height: 44px; padding: 10px;
    background: var(--red-light); border: 0; border-radius: 11px; cursor: pointer;
    transition: background .25s ease, transform .25s ease;
}
.hamburger:hover { background: var(--red); }
.hamburger:hover .hamburger__bar { background: #fff; }
.hamburger__bar {
    display: block; height: 2.5px; border-radius: 2px; background: var(--red);
    transition: transform .25s ease, opacity .2s ease, background .25s ease, width .25s ease;
}
/* Staggered bars — each span a different length */
.hamburger__bar:nth-child(1) { width: 24px; }
.hamburger__bar:nth-child(2) { width: 15px; }
.hamburger__bar:nth-child(3) { width: 20px; }
/* All bars match again on open so the X is symmetrical */
.hamburger.is-open .hamburger__bar { width: 24px; }
.hamburger.is-open .hamburger__bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.is-open .hamburger__bar:nth-child(2) { opacity: 0; }
.hamburger.is-open .hamburger__bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-drawer-header { display: none; }

/* Mobile drawer overlay */
.nav-overlay {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 9998;
    background: rgba(15, 23, 42, .6);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    opacity: 0; transition: opacity .25s ease;
}
.nav-overlay.is-visible { opacity: 1; }

/* 7 top-level items get tight on mid-size screens */
@media (max-width: 1200px) {
    .nav-link { padding: 10px 11px; font-size: .9rem; }
    .nav-link::before { left: 11px; right: 11px; }
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer { margin-top: 40px; }

.footer-cta { background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%); padding: 60px 0; position: relative; overflow: hidden; }
.footer-cta::before {
    content: ""; position: absolute; right: -80px; top: -80px;
    width: 320px; height: 320px; border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}
.footer-cta::after {
    content: ""; position: absolute; left: 12%; bottom: -110px;
    width: 240px; height: 240px; border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}
.footer-cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-cta__text h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; }
.footer-cta__text p { color: #fef2f2; margin-top: 6px; font-size: 1.02rem; }
.footer-cta__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-cta__phone { color: #fff; font-weight: 700; display: inline-flex; gap: 9px; align-items: center; font-size: 1.05rem; text-decoration: none; }
.footer-cta__phone:hover { color: #fecdd3; text-decoration: underline; }

.footer-main { background: #0b1220; color: #94a3b8; padding: 70px 0 50px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 44px; }
/* Grid items default to min-width:auto, which lets unbreakable content (the email
   address, the newsletter input) force the track wider than the viewport */
.footer-grid > * { min-width: 0; }

.footer-col h4 { color: #fff; font-size: 1.02rem; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: #ef4444; }

.footer-about { font-size: .92rem; margin: 18px 0 22px; line-height: 1.65; }
.footer-social { display: flex; gap: 9px; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .07); color: #cbd5e1;
    transition: all 0.3s ease;
}
.footer-social a:hover { background: #ef4444; color: #fff; transform: translateY(-3px); }

.footer-links li { margin-bottom: 11px; }
.footer-links a { font-size: .93rem; color: #94a3b8; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; transition: all 0.25s ease; }
.footer-links a::before { content: "›"; color: #ef4444; font-weight: 700; font-size: 1.1em; }
.footer-links a:hover { color: #fff; padding-left: 4px; }

.footer-news-text { font-size: .9rem; margin-bottom: 16px; }
.newsletter { display: flex; gap: 8px; margin-bottom: 22px; min-width: 0; width: 100%; }
.newsletter input {
    flex: 1 1 auto; min-width: 0; width: 100%; padding: 11px 15px;
    border: 1px solid #334155; border-radius: 10px;
    background: rgba(255, 255, 255, .06); color: #fff; outline: none;
    font-size: 16px; /* keeps iOS Safari from auto-zooming the viewport on focus */
    transition: border-color 0.25s ease;
}
.newsletter input::placeholder { color: #64748b; }
.newsletter input:focus { border-color: #ef4444; }
/* The submit button must keep its icon box instead of being crushed by the input */
.newsletter button { flex: 0 0 auto; padding: 11px 16px; }

.footer-contact li { display: flex; gap: 12px; font-size: .9rem; margin-bottom: 12px; align-items: flex-start; line-height: 1.5; }
.footer-contact i { color: #ef4444; margin-top: 5px; flex-shrink: 0; }
/* Long unbroken strings (emails, phone numbers) must be allowed to break */
.footer-contact li > span,
.footer-contact li > a { min-width: 0; overflow-wrap: anywhere; }
.footer-contact a { color: #94a3b8; text-decoration: none; transition: color 0.25s ease; }
.footer-contact a:hover { color: #fff; }

.footer-bottom { border-top: 1px solid #1e293b; margin-top: 48px; padding-top: 24px; padding-bottom: 0; font-size: .86rem; }
.footer-bottom__inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-legal { display: flex; gap: 22px; list-style: none; padding: 0; margin: 0; }
.footer-legal a { color: #94a3b8; text-decoration: none; transition: color 0.25s ease; }
.footer-legal a:hover { color: #fff; }

/* =====================================================
   MOBILE BOTTOM NAV (PREMIUM FLOATING GLASS DOCK)
   ===================================================== */
.mnav {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 12px;
    z-index: 995;
    display: none;
    align-items: center;
    justify-content: space-around;
    gap: 4px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1.5px solid rgba(239, 68, 68, 0.18);
    border-radius: 26px;
    box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.16), 
                0 0 0 1px rgba(255, 255, 255, 0.9) inset;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mnav__item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 2px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 16px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.mnav__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(241, 245, 249, 0.85);
    color: #64748b;
    font-size: 0.98rem;
    position: relative;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mnav__icon--wa {
    color: #25d366;
    background: rgba(37, 211, 102, 0.1);
}

.mnav__online-dot {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    border: 1.5px solid #ffffff;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
    animation: waPulse 2s infinite;
}

@keyframes waPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.8; }
}

.mnav__label {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    transition: color 0.25s ease;
}

.mnav__item:active {
    transform: scale(0.92);
}

.mnav__item:focus-visible {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
    border-radius: 14px;
}

.mnav__item.is-active {
    color: #ef4444;
    font-weight: 700;
}

.mnav__item.is-active .mnav__icon {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 4px 12px -2px rgba(239, 68, 68, 0.25);
}

/* Home / Center Action Button */
.mnav__item--home {
    flex: 0 0 auto;
    padding: 0 6px;
}

.mnav__home {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-top: -24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-size: 1.25rem;
    border: 3.5px solid #ffffff;
    box-shadow: 0 10px 24px -4px rgba(239, 68, 68, 0.65),
                0 0 0 1px rgba(239, 68, 68, 0.2);
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mnav__home-pulse {
    position: absolute;
    inset: -3.5px;
    border-radius: 50%;
    border: 2px solid rgba(239, 68, 68, 0.4);
    animation: homePulse 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
    pointer-events: none;
}

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

.mnav__item--home:active .mnav__home {
    transform: scale(0.92);
}

.mnav__item--home.is-active .mnav__home {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.22),
                0 14px 28px -6px rgba(239, 68, 68, 0.8);
}

/* Lock body scroll while the drawer is open */
body.nav-open {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
    touch-action: none;
    overscroll-behavior: none;
}
body.nav-open .mnav { display: none !important; }

/* Floating Animated Pulse WhatsApp Button */
.float-wa {
    position: fixed; right: 26px; bottom: 26px; z-index: 905;
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff;
    display: grid; place-items: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.5);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.float-wa::before,
.float-wa::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.6);
    z-index: -1;
    animation: waPulse 2s infinite ease-out;
}

.float-wa::after {
    animation-delay: 0.6s;
}

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

.float-wa:hover {
    transform: translateY(-3px) scale(1.05);
    color: #ffffff;
    box-shadow: 0 14px 30px -5px rgba(37, 211, 102, 0.7);
}

/* Back to top (Positioned fixed ABOVE WhatsApp button) */
.to-top {
    position: fixed; right: 26px; bottom: 90px; z-index: 900;
    width: 52px; height: 52px; border-radius: 50%; border: 0; padding: 0;
    display: grid; place-items: center;
    background: #fff; color: var(--red);
    box-shadow: 0 12px 26px -10px rgba(15, 23, 42, .45);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: all .3s ease;
    cursor: pointer;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); background: var(--red); color: #fff; }
.to-top:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* Circular scroll-progress ring */
.to-top__ring {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    transform: rotate(-90deg); /* start the sweep at 12 o'clock */
}
.to-top__track { fill: none; stroke: var(--line); stroke-width: 3; }
.to-top__bar {
    fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round;
    stroke-dasharray: 100; stroke-dashoffset: 100; /* pathLength="100" normalises the maths */
    transition: stroke-dashoffset .12s linear;
}

/* =====================================================
   REVEAL ANIMATION (shared)
   ===================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =====================================================
   RESPONSIVE — GLOBAL
   ===================================================== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 991px) {
    :root { --header-h: 70px; }

    .hamburger { display: flex; }
    .hide-sm { display: none; }

    /* Offcanvas Side Drawer: covers full height (top: 0 to bottom: 0) */
    .nav {
        position: fixed; top: 0; left: 0; bottom: 0; z-index: 9999;
        width: 86%; max-width: 320px; height: 100vh; height: 100dvh;
        background: #ffffff;
        display: flex; flex-direction: column;
        padding: 0; overflow: hidden;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
    }
    .nav.is-open {
        display: flex;
        transform: translateX(0);
    }

    /* Fixed Top Header inside Drawer */
    .nav-drawer-header {
        display: flex; align-items: center; justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid #f1f5f9;
        background: #ffffff;
        flex-shrink: 0;
    }
    .nav-drawer-header .brand__logo { height: 38px; width: auto; }
    .nav-drawer-close {
        width: 36px; height: 36px; border-radius: 50%;
        border: none; background: #fef2f2; color: #dc2626;
        font-size: 1.1rem; cursor: pointer;
        display: grid; place-items: center;
        transition: background 0.2s ease, color 0.2s ease;
    }
    .nav-drawer-close:hover { background: #dc2626; color: #ffffff; }

    /* Scrollable Drawer Body */
    .nav-drawer-body {
        flex: 1; overflow-y: auto; overscroll-behavior: contain;
        padding: 20px 16px 36px;
        -webkit-overflow-scrolling: touch;
    }

    .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
    .nav-link { display: flex; padding: 13px 16px; font-size: 1.02rem; }
    .nav-link::before { display: none; }
    .nav-link:hover, .nav-link.is-active { box-shadow: none; }
    .nav-link.is-active { background: var(--red-light); color: var(--red); }

    /* Dropdown becomes inline collapsible in the drawer */
    .nav-link--drop { width: 100%; justify-content: space-between; }
    .has-dropdown.is-open .nav-link--drop .fa-chevron-down { transform: rotate(180deg); }
    .nav-dropdown {
        position: static; min-width: 0;
        margin: 0 0 6px 14px; padding: 4px 0 4px 10px;
        border: 0; border-left: 3px solid rgba(239, 68, 68, .32); border-radius: 0;
        box-shadow: none; background: transparent;
        backdrop-filter: none; -webkit-backdrop-filter: none;
        display: none; opacity: 1; visibility: visible; transform: none;
    }
    .nav-dropdown::before, .nav-dropdown__link::after { content: none; }
    /* Kill the desktop panel transform so the static drawer panel never shifts sideways */
    .has-dropdown:hover > .nav-dropdown,
    .has-dropdown:focus-within > .nav-dropdown,
    .has-dropdown.is-open > .nav-dropdown,
    .nav__list > .nav-item:last-child.has-dropdown:hover > .nav-dropdown { transform: none; opacity: 1; visibility: visible; }
    .has-dropdown.is-open > .nav-dropdown { display: block; }
    .nav-dropdown__link { font-size: .98rem; padding: 10px 12px; }
    .nav-dropdown__link:hover, .nav-dropdown__link.is-active { transform: none; }
    .nav-dropdown__link::before { display: none; }
}

@media (max-width: 767px) {
    .section { padding: 68px 0; }
    .footer-cta__inner { flex-direction: column; text-align: center; }
    .footer-cta__actions { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 34px; }
    .footer-bottom__inner { flex-direction: column; text-align: center; }
    /* Bottom nav: show it, and keep the page clear of it */
    .mnav { display: flex; }
    body { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
    .float-wa { display: none !important; }
    .to-top { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); right: 18px; width: 46px; height: 46px; }
}

@media (max-width: 400px) {
    .btn--sm { padding: 8px 12px; font-size: .8rem; }
    /* Too narrow for input + button side by side: give the field the full width */
    .newsletter { flex-direction: column; }
    .newsletter button { width: 100%; padding: 12px 16px; }
}
