/* =========================================
   RESET + BASE
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #f7fafc;
    color: #0f172a;
    line-height: 1.6;
    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================
   DESIGN TOKENS
========================================= */

:root {
    --primary: #0f172a;
    --accent: #14b8a6;
    --accent-soft: #e6fffb;

    --bg: #f7fafc;
    --card: #ffffff;

    --text: #334155;
    --muted: #64748b;

    --border: #e2e8f0;

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;

    --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 12px 35px rgba(15, 23, 42, 0.08);

    --container: 1200px;
}

/* =========================================
   GLOBAL LAYOUT
========================================= */

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* FIX: DO NOT FORCE ALL SECTION CHILDREN */
section {
    padding: 30px 0;
}

/* only apply centering when explicitly needed */
.section-center {
    max-width: var(--container);
    margin: 0 auto;
}

/* =========================================
   ELEMENTS
========================================= */

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    border-radius: 10px;
    display: block;
}

/* =========================================
   BUTTON SYSTEM
========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 14px 22px;
    border-radius: var(--radius-md);

    font-weight: 600;
    font-size: 0.95rem;

    transition: 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.btn.btn-outline {
    background: #fff;
    border: 2px solid var(--accent);
    color: var(--primary);
}

.btn.btn-outline:hover {
    background: var(--accent-soft);
}

/* =========================================
   HEADER (FIXED + SVG SAFE + STABLE)
========================================= */

header {
    position: sticky;
    top: 0;
    z-index: 999;

    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

/* NAV WRAPPER */
.navbar {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    font-family: "Inter", sans-serif;

    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================
   LOGO (SVG SAFE FIX)
========================= */

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;

    /* IMPORTANT: prevents disappearing in flex layouts */
    min-width: max-content;
}

/* SVG / IMAGE LOGO */
.logo img,
.logo svg {
    height: 60px;
    width: auto;
    display: block;

    flex-shrink: 0;
}

/* if you ever use text logo fallback */
.logo {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -1px;
    line-height: 1;
    color: var(--primary);
}

/* optional accent word in logo */
.logo span {
    color: var(--accent);
}

/* =========================
   NAV LINKS (STABLE VERSION)
========================= */

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    line-height: 1;

    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

/* =========================
   MOBILE MENU TOGGLE
========================= */

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 26px;
    height: 2px;
    background: var(--primary);
}

/* =========================================
   HERO (STABLE GLOBAL SYSTEM)
========================================= */

.hero {
    padding: 70px 0 50px;
    text-align: left; /* IMPORTANT: prevents random centering */
}

/* MAIN GRID */
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;

    justify-items: start; /* CRITICAL FIX: stops centered grid children */
}

/* LEFT COLUMN */
.hero-text {
    text-align: left;
}

/*BADGE*/

.badge {
    display: inline-block;
    background: var(--accent-soft);
    color: #0f766e;

    padding: 6px 12px;
    border-radius: 999px;

    font-size: 0.85rem;
    font-weight: 600;

    margin-bottom: 16px;
}

/* TITLE */
.hero h1 {
    font-size: 2.8rem;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 18px;
}

/* PARAGRAPH */
.hero p {
    color: var(--text);
    font-size: 1.2rem !important;
    max-width: 520px;
    margin-bottom: 28px;
}

/* =========================================
   HERO ACTION BUTTONS (GLOBAL FIXED SYSTEM)
========================================= */

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;

    flex-wrap: wrap;
    margin-top: 10px;
}

/* normalize buttons */
.hero-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    white-space: nowrap;
    margin: 0;
}

/* prevents header-specific button styles from breaking layout */
.hero-actions .header-cta {
    margin: 0;
    flex: 0 0 auto;
}


/* =========================================
   GLOBAL DEFAULT (DESKTOP)
========================================= */

.mobile-menu-btn {
    display: none;
}

/* =========================================
   RESPONSIVE TABLET + MOBILE
========================================= */

@media (max-width: 960px) {

    /* =========================================
       GLOBAL
    ========================================= */

    .container {
        padding: 0 20px;
    }

    section {
        padding: 60px 0;
    }

    /* =========================================
       HEADER
    ========================================= */

    header {
        position: sticky;
        top: 0;
        z-index: 9999;
    }

    .navbar {
        height: 74px;
        padding: 0 4px;
        position: relative;
    }

    /* =========================================
       LOGO
    ========================================= */

    .logo img,
    .logo svg {
        height: 52px;
    }

    /* =========================================
       HEADER CTA (SAFE FIX - ROBUST)
    ========================================= */

    header .navbar .btn-primary {
        display: none;
    }

    /* =========================================
       MOBILE MENU CTA (GLOBAL SAFE)
    ========================================= */

    .mobile-menu-btn {
        display: none;
    }

    @media (max-width: 960px) {
        .mobile-menu-btn {
            display: inline-flex !important;
            align-items: center;
            justify-content: center;

            margin-top: 14px;

            background: var(--primary);
            color: #fff !important;

            padding: 14px 26px;
            border-radius: 14px;

            font-weight: 600;
            text-decoration: none;

            box-shadow: 0 10px 25px rgba(15,23,42,0.12);
        }

        .mobile-menu-btn:hover {
            background: var(--accent);
        }
    }

    /* =========================================
       BURGER BUTTON
    ========================================= */

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;

        width: 44px;
        height: 44px;

        cursor: pointer;

        position: relative;
        z-index: 3001;
    }

    .menu-toggle span {
        width: 26px;
        height: 2px;

        background: var(--primary);
        border-radius: 20px;

        transition: 0.3s ease;
    }

    /* =========================================
       ANIMATED X
    ========================================= */

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* =========================================
       FULLSCREEN MOBILE MENU
    ========================================= */

    .nav-links {
        position: fixed;
        inset: 0;

        width: 100%;
        height: 100vh;

        background: linear-gradient(
            180deg,
            rgba(255,255,255,0.98),
            rgba(247,250,252,0.98)
        );

        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);

        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: center;

        gap: 26px;

        z-index: 3000;

        opacity: 0;
        visibility: hidden;

        transform: translateY(-20px);

        transition: 0.3s ease;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* =========================================
       MOBILE MENU LOGO
    ========================================= */

    .mobile-menu-top {
        margin-bottom: 12px;
    }

    .mobile-menu-top img {
        width: 180px;
        height: auto;
    }

    /* =========================================
       MENU LINKS
    ========================================= */

    .nav-links a {
        font-size: 1.15rem;
        font-weight: 600;
        color: var(--primary);
        transition: 0.25s ease;
    }

    .nav-links a:hover {
        color: var(--accent);
        transform: translateY(-2px);
    }

    /* =========================================
       HERO
    ========================================= */

    .hero {
        padding: 55px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 42px;
        justify-items: stretch;
    }

    .hero-text {
        text-align: center;
    }

    .hero h1 {
        font-size: 2.3rem;
        line-height: 1.1;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 1.05rem !important;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    /* =========================================
       TRUST GRID
    ========================================= */

    .trust-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

/* =========================================
   MOBILE SMALL DEVICES
========================================= */

@media (max-width: 600px) {

    .container {
        padding: 0 18px;
    }

    section {
        padding: 50px 0;
    }

    .navbar {
        height: 70px;
    }

    .logo img,
    .logo svg {
        height: 48px;
    }

    .hero {
        padding: 45px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem !important;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .nav-links a {
        font-size: 1.05rem;
    }

    .mobile-menu-top img {
        width: 150px;
    }
}

/* =========================================
   WHATSAPP BUTTON
========================================= */

.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;

    width: 58px;
    height: 58px;

    background: #14b8a6;
    color: #fff;

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.15);

    z-index: 9999;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    
    
}

/* =========================================
   HIDE RECAPTCHA
========================================= */
.grecaptcha-badge {
    visibility: hidden !important;
}

.recaptcha-notice {
    font-size: 11px;
    color: #777;
    margin-top: 10px;
    line-height: 1.4;
    text-align: center;
}

.recaptcha-notice a {
    color: inherit;
    text-decoration: underline;
}