/* ============================================
   VARIABLES
   ============================================ */
:root {
    --navy: #0F172A;
    --navy-800: #1E293B;
    --navy-700: #334155;
    --orange: #F97316;
    --orange-dk: #EA580C;
    --orange-bg: rgba(249, 115, 22, 0.07);
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-700: #334155;

    --font: 'Inter', 'Poppins', system-ui, sans-serif;

    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.2s ease;
    --py: 5rem;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font);
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    font-family: var(--font);
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1 {
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--navy);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
}

p {
    color: var(--gray-500);
}

.label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 0.6rem;
}

.section-head {
    margin-bottom: 2.75rem;
}

.section-head h2 {
    margin-bottom: 0.5rem;
}

.section-head p {
    max-width: 540px;
    font-size: 1.02rem;
}

.section-head.center {
    text-align: center;
}

.section-head.center p {
    margin: 0 auto;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: var(--py) 0;
}

.bg-gray {
    background: var(--gray-50);
}

.bg-navy {
    background: var(--navy);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    transition: background var(--transition), transform var(--transition), border-color var(--transition), color var(--transition);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
}

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

.btn-orange:hover {
    background: var(--orange-dk);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--gray-200);
}

.btn-outline:hover {
    border-color: var(--navy);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-white:hover {
    border-color: rgba(255, 255, 255, 0.75);
    color: var(--white);
}

/* ============================================
   HEADER & NAV
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    transition: box-shadow var(--transition);
}

.header.scrolled {
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 1rem;
}

/* Logo */
.logo {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
    line-height: 1;
}

.logo-sub {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--gray-400);
    margin-top: 2px;
}

/* Desktop nav */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    flex: 1;
    justify-content: center;
}

.nav-desktop a {
    padding: 0.4rem 0.9rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: var(--navy);
    background: var(--gray-50);
}

.nav-desktop a.active {
    font-weight: 600;
}

.header-cta {
    flex-shrink: 0;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.28s, opacity 0.28s;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Backdrop ── */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-backdrop.open {
    opacity: 1;
    pointer-events: all;
}

/* ── Left-side drawer ── */
.nav-mobile {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 280px;
    background: var(--white);
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 0;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.nav-mobile.open {
    transform: translateX(0);
}

/* Drawer header */
.nav-mobile .drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    flex-shrink: 0;
}

.nav-mobile .drawer-brand {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.nav-mobile .drawer-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--gray-400);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    background: none;
    border: none;
}

.nav-mobile .drawer-close:hover {
    background: var(--gray-50);
    color: var(--navy);
}

/* Drawer nav links */
.drawer-links {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0.75rem;
    gap: 0.15rem;
    flex: 1;
}

.nav-mobile a:not(.btn) {
    padding: 0.7rem 0.85rem;
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
    display: block;
}

.nav-mobile a:not(.btn):hover {
    background: var(--gray-50);
    color: var(--navy);
}

/* CTA at bottom of drawer */
.drawer-foot {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--gray-100);
    flex-shrink: 0;
}

.nav-mobile .btn {
    width: 100%;
    justify-content: center;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding: 5.5rem 0 4.5rem;
}

.hero-inner {
    max-width: 660px;
    margin: 0 auto;
    text-align: center;
}

.hero-inner h1 {
    margin-bottom: 1rem;
}

.hero-sub {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.trust-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--gray-400);
}

.trust-stars {
    color: #F59E0B;
    letter-spacing: 1px;
}

.hero-divider {
    border: none;
    border-top: 1px solid var(--gray-100);
    margin: 0;
}

/* ============================================
   SERVICE SECTIONS (shared)
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.svc-item {
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: border-color var(--transition), background var(--transition);
}

.svc-item:hover {
    border-color: var(--orange);
    background: var(--orange-bg);
}

.svc-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 0.85rem;
}

.svc-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--orange);
    stroke-width: 1.6;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.svc-item h3 {
    font-size: 0.93rem;
    margin-bottom: 0.3rem;
}

.svc-item p {
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ============================================
   STATS
   ============================================ */
.stats-band {
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
    padding: 3.5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 1.5rem;
}

.stat-val {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
    font-weight: 900;
    color: var(--navy);
    letter-spacing: -0.04em;
    line-height: 1;
}

.stat-val span {
    color: var(--orange);
}

.stat-lbl {
    font-size: 0.8rem;
    color: var(--gray-400);
    font-weight: 500;
    margin-top: 0.35rem;
}

.stats-grid .stat-col+.stat-col {
    border-left: 1px solid var(--gray-100);
}

/* ============================================
   EMERGENCY
   ============================================ */
.emg-block {
    background: var(--gray-50);
    border-left: 4px solid var(--orange);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: 2.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.emg-copy h2 {
    margin-bottom: 0.4rem;
}

.emg-copy p {
    margin: 0;
    max-width: 440px;
}

.emg-cta {
    flex-shrink: 0;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.reviews-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.rev-item {}

.rev-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 0.75rem;
}

.rev-stars svg {
    width: 15px;
    height: 15px;
    fill: #F59E0B;
}

.rev-text {
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-style: italic;
}

.rev-author {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.rev-av {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rev-name {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--navy);
}

.rev-loc {
    font-size: 0.72rem;
    color: var(--gray-400);
}

.reviews-row .rev-item+.rev-item {
    border-left: 1px solid var(--gray-200);
    padding-left: 1.75rem;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 0.6rem;
}

.contact-info>p {
    margin-bottom: 2rem;
    font-size: 1.02rem;
}

.phone-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.phone-icon {
    width: 46px;
    height: 46px;
    background: var(--orange-bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.phone-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--orange);
}

.phone-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.contact-detail {
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-bottom: 0.3rem;
}

/* Form */
.contact-form-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.form-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.25rem;
}

.form-group {
    margin-bottom: 0.875rem;
}

label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.35rem;
}

input,
textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-size: 0.93rem;
    font-family: var(--font);
    color: var(--navy);
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    outline: none;
    transition: border-color var(--transition), background var(--transition);
    appearance: none;
}

input:focus,
textarea:focus {
    border-color: var(--orange);
    background: var(--white);
}

input::placeholder,
textarea::placeholder {
    color: var(--gray-400);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.form-btn {
    width: 100%;
    margin-top: 0.25rem;
}

.form-note {
    font-size: 0.74rem;
    color: var(--gray-400);
    text-align: center;
    margin-top: 0.6rem;
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
    text-align: center;
    padding: var(--py) 0;
}

.final-cta h2 {
    color: var(--white);
    margin-bottom: 0.6rem;
}

.final-cta p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
    font-size: 1.02rem;
}

.final-cta-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    /* default: scroll-down — slide from below */
    transition:
        opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

/* Scroll-up direction: slide from above */
.reveal.from-above {
    transform: translateY(-30px);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger siblings inside grids */
.reveal:nth-child(2) {
    transition-delay: 0.08s;
}

.reveal:nth-child(3) {
    transition-delay: 0.16s;
}

.reveal:nth-child(4) {
    transition-delay: 0.24s;
}

.reveal:nth-child(5) {
    transition-delay: 0.08s;
}

.reveal:nth-child(6) {
    transition-delay: 0.16s;
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--orange);
    z-index: 1100;
    transition: width 0.12s linear;
    pointer-events: none;
}

/* ============================================
   SECTION NAV DOTS (desktop only)
   ============================================ */
.section-dots {
    position: fixed;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 700;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.section-dots .s-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gray-200);
    border: 1.5px solid var(--gray-400);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), border-color var(--transition);
    padding: 0;
    display: block;
    position: relative;
}

.section-dots .s-dot:hover {
    background: var(--gray-400);
    border-color: var(--gray-400);
    transform: scale(1.3);
}

.section-dots .s-dot.active {
    background: var(--orange);
    border-color: var(--orange);
    transform: scale(1.45);
}

.section-dots .s-dot::after {
    content: attr(data-label);
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--navy);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.section-dots .s-dot:hover::after {
    opacity: 1;
}

@media (max-width: 900px) {
    .section-dots {
        display: none;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--navy-800);
    color: rgba(255, 255, 255, 0.45);
    padding: 1.5rem 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.78rem;
}

.footer-inner a {
    color: rgba(255, 255, 255, 0.55);
}

.footer-inner a:hover {
    color: var(--white);
}

/* ============================================
   FLOATING WHATSAPP (desktop only)
   ============================================ */
.wa-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 800;
}

.wa-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.4);
    transition: transform var(--transition), box-shadow var(--transition);
}

.wa-float a:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5);
}

.wa-float svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* ============================================
   MOBILE STICKY BOTTOM BAR
   ============================================ */
.mobile-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
    padding: 0.7rem 1rem;
    gap: 0.6rem;
    z-index: 850;
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.05);
}

.mobile-bar a {
    flex: 1;
    text-align: center;
    font-size: 0.88rem;
    padding: 0.7rem 0.5rem;
}

/* ============================================
   RESPONSIVE — TABLET ≤900px
   ============================================ */
@media (max-width: 900px) {
    :root {
        --py: 4rem;
    }

    .nav-desktop {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .header-cta {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid .stat-col+.stat-col {
        border-left: none;
    }

    .stats-grid .stat-col:nth-child(even) {
        border-left: 1px solid var(--gray-100);
    }

    .reviews-row {
        grid-template-columns: 1fr;
    }

    .reviews-row .rev-item+.rev-item {
        border-left: none;
        border-top: 1px solid var(--gray-200);
        padding-left: 0;
        padding-top: 1.5rem;
    }

    .emg-block {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.75rem;
    }

    .emg-cta {
        width: 100%;
    }

    .emg-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ============================================
   RESPONSIVE — MOBILE ≤640px
   ============================================ */
@media (max-width: 640px) {
    :root {
        --py: 3rem;
    }

    body {
        padding-bottom: 70px;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-inner h1 {
        font-size: 2.6rem;
        letter-spacing: -0.035em;
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

    .stats-grid .stat-col:nth-child(even) {
        border-left: 1px solid var(--gray-100);
    }

    .phone-num {
        font-size: 1.2rem;
    }

    .final-cta-btns .btn {
        width: 100%;
    }

    .mobile-bar {
        display: flex;
    }

    .wa-float {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}