:root {
    /* Refined Premium Palette */
    --brand-blue: #2563eb;
    --brand-orange: #f97316;
    --brand-dark: #0f172a;
    --brand-footer: #1e293b;
    --brand-wa: #25d366;
    --primary-gradient: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-orange) 100%);

    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;

    /* Layout */
    --container-width: 1200px;
    --radius-xl: 40px;
    --radius-lg: 24px;
    --font-main: 'Montserrat', sans-serif;
    --base-font-size: 17px;
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.05);
    --shadow-strong: 0 40px 100px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html,
body {
    height: 100%;
}

body {
    font-family: var(--font-main);
    font-size: var(--base-font-size);
    color: var(--text-main);
    background: #ffffff;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 25px;
    width: 100%;
}

/* --- Reveal Utility --- */
.hero-text,
.hero-image,
.service-card,
.pricing-card,
.advantage-card,
.stat-item,
.footer-col,
.faq-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* --- Header & Nav --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    transition: 0.4s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header.scrolled {
    padding: 15px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 26px;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--brand-dark);
    text-decoration: none;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--brand-blue);
}

.btn-header {
    background: var(--brand-wa);
    color: white !important;
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 900;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 15px rgba(37, 211, 102, 0.2);
    text-decoration: none;
}

/* Hamburger Menu Icon */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 28px;
    color: var(--brand-dark);
}

/* --- HERO STANDARDIZATION --- */
.hero {
    padding: 160px 0 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

/* --- Buttons --- */
.btn-wa-green {
    background: var(--brand-wa);
    color: white !important;
    padding: 18px 36px;
    border-radius: 18px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    text-transform: uppercase;
    transition: 0.3s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-wa-green:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
}

/* --- Stats Bar --- */
.stats-bar {
    background: var(--brand-dark);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 56px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    font-weight: 900;
}

.stat-item p {
    color: white;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
}

/* --- Service & Advantage Cards --- */
.card-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    padding: 50px 40px;
    border-radius: var(--radius-xl);
    background: var(--bg-light);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: 0.4s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card.blue {
    background: rgba(37, 99, 235, 0.04);
    border-top: 6px solid rgba(37, 99, 235, 0.2);
}

.service-card.orange {
    background: rgba(249, 115, 22, 0.04);
    border-top: 6px solid rgba(249, 115, 22, 0.2);
}

.service-card.dark {
    background: rgba(15, 23, 42, 0.04);
    border-top: 6px solid rgba(15, 23, 42, 0.2);
}

.service-card:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: var(--shadow-premium);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 30px;
}

/* --- Advantage Cards (Attention-Grabbing & Transparent) --- */
.advantage-card {
    padding: 40px;
    border-radius: var(--radius-xl);
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    overflow: hidden;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.advantage-card.blue {
    background: rgba(37, 99, 235, 0.06);
}

.advantage-card.orange {
    background: rgba(249, 115, 22, 0.06);
}

.advantage-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
    background: white;
}

.advantage-card img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 25px;
    transition: 0.5s;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    border-radius: 15px;
}

.advantage-card:hover img {
    transform: scale(1.1);
}

.advantage-card h3 {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--brand-dark);
}

/* --- Pricing Cards --- */
.pricing-card {
    padding: 50px 40px;
    border-radius: var(--radius-xl);
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: 0.4s;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-premium);
    border-top: 8px solid transparent;
}

.pricing-card.blue {
    border-top-color: var(--brand-blue);
}

.pricing-card.orange {
    border-top-color: var(--brand-orange);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

/* --- Modern Contact Form --- */
.contact-form-card {
    background: white;
    padding: 60px;
    border-radius: var(--radius-xl);
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-strong);
    height: 100%;
}

.form-group-modern {
    margin-bottom: 25px;
}

.form-group-modern label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.form-control-modern {
    width: 100%;
    padding: 16px 20px;
    border-radius: 14px;
    border: 2px solid #f1f5f9;
    font-family: inherit;
    font-weight: 600;
    font-size: 16px;
    transition: 0.3s;
    background: #f8fafc;
}

.form-control-modern:focus {
    border-color: var(--brand-blue);
    background: white;
    outline: none;
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.05);
}

/* --- SSS (FAQ) Cards --- */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.faq-item {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: 0.3s;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.faq-item h4 {
    font-size: 19px;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--brand-blue);
}

.faq-item p {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 500;
}

/* --- Footer --- */
footer {
    background: var(--brand-footer);
    padding: 100px 0 0;
    color: white;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 900;
    color: var(--brand-orange);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
    margin: 0;
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        /* Hidden by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 40px 25px;
        gap: 25px;
        box-shadow: 0 40px 60px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #f1f5f9;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 18px;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 15px;
    }

    .btn-header {
        display: none;
    }

    .hero {
        padding: 140px 0 60px;
    }

    .hero-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 40px;
    }

    .hero-image {
        order: -1;
        /* Image above text on mobile */
        display: block;
        max-width: 80%;
        margin: 0 auto;
    }

    .hero-text h1 {
        font-size: 42px;
        line-height: 1.2;
    }

    .hero-text p {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .container {
        padding: 0 20px;
    }

    .footer-grid,
    .card-grid-3,
    .card-grid-6,
    .contact-wrapper,
    .faq-grid,
    .stats-bar {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .stats-bar {
        padding: 40px 20px;
    }

    .contact-wrapper {
        gap: 40px;
    }

    /* Center all section headers on mobile */
    section div[style*="text-align: center"] h2,
    section div[style*="text-align: center"] p {
        text-align: center !important;
    }

    /* Ensure cards stack nicely */
    .service-card,
    .advantage-card,
    .pricing-card,
    .faq-item {
        padding: 40px 30px;
    }

    /* Fixed footer spacing issue */
    footer {
        padding-top: 80px;
    }
}

@media (max-width: 640px) {
    .hero-text h1 {
        font-size: 36px;
    }

    .stat-item h3 {
        font-size: 44px;
    }
}