*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#f5f7fb;
    color:#222;
    overflow-x:hidden;
}

:root{
    --primary:#e60023;
    --primary-dark:#c7001f;
    --dark:#111827;
    --light:#6b7280;
    --white:#fff;

    --shadow:
    0 10px 30px rgba(0,0,0,0.08);

    --transition:0.3s ease;
}

.navbar-container,
.hero-container,
.stats-container,
.services-container,
.contact-container,
.footer-container{
    width:100%;
    max-width:1200px;
    margin:auto;
    padding:0 20px;
}

/* ================= NAVBAR ================= */

.navbar{
    position:sticky;
    top:0;
    z-index:999;

    background:
    linear-gradient(
    135deg,
    #7B1113 0%,
    #A4161A 50%,
    #C1121F 100%);

    border-bottom:none;

    transition:
        transform 0.4s ease,
        box-shadow 0.3s ease;
}

.navbar.hidden{
    transform:translateY(-100%);
}

.navbar.scrolled{
    box-shadow:0 4px 18px rgba(0,0,0,0.18);
}

.navbar-container{
    height:80px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

/* LOGO */

.logo{
    display:flex;
    align-items:center;
    gap:10px;
    flex-shrink:0;
    text-decoration:none;
    height:80px;
    padding:0;
}

.logo-icon-img{
    height:58px;
    width:auto;
    object-fit:contain;
    display:block;
    transition:0.3s ease;
}

.logo-brand-img{
    height:80px;
    width:auto;
    max-width:220px;
    object-fit:fill;
    display:block;
    transition:0.3s ease;
}

/* NAVIGATION */

.nav-menu{
    flex:1;
    display:flex;
    justify-content:center;
}

.nav-list{
    display:flex;
    list-style:none;
    gap:3rem;
}

.nav-item{
    position:relative;
}

.nav-link{
    color:#ffffff;
    font-weight:500;
    position:relative;
    display:inline-block;
    text-decoration:none;
}

.nav-link::after{
    content:'';
    position:absolute;
    bottom:-5px;
    left:0;
    width:0;
    height:2px;
    background-color:#ffffff;
    transition:width 0.3s ease;
}

.nav-link:hover::after{
    width:100%;
}

.nav-right{
    display:flex;
    align-items:center;
    gap:1.5rem;
    flex-shrink:0;
}

/* BUTTONS */

.btn{
    display:inline-block;
    padding:0.75rem 1.5rem;
    font-weight:600;
    border-radius:14px;
    cursor:pointer;
    border:none;
    transition:var(--transition);
    font-size:1rem;
    text-decoration:none;
}

.btn-primary{
    background:
    linear-gradient(
    135deg,
    #ff1744,
    #e60023);

    color:white;

    padding:15px 34px;

    border-radius:16px;

    font-size:1rem;
    font-weight:600;

    box-shadow:
    0 10px 25px rgba(230,0,35,0.2);

    text-decoration:none;
}

.btn-primary:hover{
    background:linear-gradient(
    135deg,
    #ff3355,
    #c7001f);

    transform:translateY(-3px);
}

.btn-large{
    padding:1rem 2.5rem;
    font-size:1.05rem;
}

.btn-full{
    width:100%;
}

/* HAMBURGER */

.hamburger{
    display:none;
    flex-direction:column;
    background:none;
    border:none;
    cursor:pointer;
    gap:6px;
}

.hamburger span{
    width:25px;
    height:3px;
    background-color:#ffffff;
    border-radius:2px;
    transition:var(--transition);
}

.hamburger.active span:nth-child(1){
    transform:rotate(45deg) translate(10px,10px);
}

.hamburger.active span:nth-child(2){
    opacity:0;
}

.hamburger.active span:nth-child(3){
    transform:rotate(-45deg) translate(7px,-7px);
}

/* HERO */

.hero{
    padding:110px 0 80px;
    background:
    linear-gradient(
    135deg,
    #ffffff 0%,
    #f8fbff 40%,
    #eef2ff 100%);
}

.hero-container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:60px;
}

.hero-content{
    flex:1;
}

.hero-badge{
    display:inline-block;
    background:#ffe5ea;
    color:var(--primary);
    padding:10px 18px;
    border-radius:50px;
    margin-bottom:20px;
    font-weight:600;
    font-size:0.9rem;
}

.hero-title{
    font-size:4rem;
    line-height:1.1;
    margin-bottom:25px;
    font-weight:800;
    color:var(--dark);
}

.hero-subtitle{
    font-size:1.1rem;
    line-height:1.9;
    color:var(--light);
    margin-bottom:35px;
    max-width:580px;
}

.hero-buttons{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

.hero-image{
    flex:1;
    text-align:center;
}

.hero-image img{
    width:100%;
    max-width:650px;

    border-radius:30px;

    opacity:0.92;

    animation:float 4s ease-in-out infinite;

    box-shadow:
    0 18px 40px rgba(0,0,0,0.12);

    transition:0.3s ease;
}

@keyframes float{
    0%{
        transform:translateY(0px);
    }
    50%{
        transform:translateY(-12px);
    }
    100%{
        transform:translateY(0px);
    }
}

/* STATS */

.stats{
    padding:40px 0;
}

.stats-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
}

.stat-card{
    background:white;
    padding:35px 25px;
    border-radius:20px;
    text-align:center;
    box-shadow:var(--shadow);
}

.stat-card h2{
    color:var(--primary);
    font-size:2.5rem;
    margin-bottom:10px;
}

.stat-card p{
    color:var(--light);
}

/* ================= SERVICES ================= */

.services{
    padding:90px 0;

    background:#f5f7fb;
}

.section-header{
    text-align:center;

    margin-bottom:60px;
}

.section-title{
    font-size:2.8rem;

    margin-bottom:12px;

    font-weight:800;

    color:#111827;
}

.section-subtitle{
    color:#6b7280;
}

/* ===== OUTER WRAPPER ===== */

.services-wrapper{
    background:#e9edf5;

    border-radius:30px;

    padding:28px;
}

/* ===== GRID ===== */

.services-grid{
    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(250px,1fr));

    gap:24px;
}

/* ===== CARD ===== */

.service-card{
    background:#ffffff;

    border-radius:22px;

    overflow:hidden;

    min-height:320px;

    display:flex;
    flex-direction:column;

    cursor:pointer;

    border:1px solid rgba(0,0,0,0.04);

    transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;

    box-shadow:
    0 6px 18px rgba(0,0,0,0.06);
}

.service-card:hover{
    transform:translateY(-10px);

    box-shadow:
    0 18px 40px rgba(0,0,0,0.12);
}

/* ===== IMAGE ===== */

.service-image{
    height:165px;

    padding:16px;

    overflow:hidden;

    background:#ffffff;

    display:flex;
    align-items:center;
    justify-content:center;
}

.service-image img{
    width:auto;

    max-width:100%;

    max-height:125px;

    object-fit:contain;

    transition:transform 0.4s ease;
}

.service-card:hover .service-image img{
    transform:scale(1.05);
}

/* ===== CONTENT ===== */

.service-content{
    padding:18px 18px 22px;

    display:flex;
    flex-direction:column;

    flex:1;
}

.service-tag{
    font-size:0.82rem;

    color:#6b7280;

    font-weight:500;

    margin-bottom:10px;
}

.service-content h3{
    font-size:1.25rem;

    font-weight:700;

    line-height:1.4;

    color:#111827;

    margin-bottom:12px;
}

.service-content p{
    font-size:0.92rem;

    line-height:1.7;

    color:#6b7280;
}

/* ===== FOOTER ===== */

.service-footer{
    margin-top:auto;

    padding-top:18px;

    display:flex;
    align-items:center;

    gap:6px;

    font-size:0.9rem;

    color:#111827;

    font-weight:600;
}

/* HOW IT WORKS */

.how-it-works{
    padding:90px 0 120px;
    background:#f8fbff;
}

.how-it-works-container{
    width:100%;
    max-width:1200px;
    margin:auto;
    padding:0 20px;
}

.steps-container{
    display:flex;
    justify-content:flex-start;
    align-items:center;
    gap:20px;
    flex-wrap:nowrap;
    overflow-x:visible;
    padding-bottom:10px;
    padding-right:80px;
}

.step{
    background:white;
    padding:30px 20px;
    border-radius:20px;
    text-align:center;
    box-shadow:var(--shadow);
    transition:0.3s;
    flex:0 0 calc((100% - 140px) / 5);
    width:calc((100% - 140px) / 5);
    min-width:0;
}

.step:hover{
    transform:translateY(-5px);
    box-shadow:0 15px 35px rgba(0,0,0,0.1);
}

.step-number{
    width:50px;
    height:50px;
    border-radius:50%;
    background:linear-gradient(135deg, var(--primary), var(--primary-dark));
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.2rem;
    font-weight:700;
    margin:0 auto 15px;
}

.step h3{
    font-size:1.1rem;
    margin-bottom:10px;
    font-weight:600;
}

.step p{
    color:var(--light);
    font-size:0.9rem;
    line-height:1.5;
}

.step-arrow{
    font-size:2rem;
    color:var(--primary);
    font-weight:300;
}

.documentation{
    padding:120px 0 90px;
    background:#f4f7fb;
}

.documentation-container{
    width:100%;
    max-width:1200px;
    margin:auto;
    padding:0 20px;
}

.doc-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(320px,1fr));
    gap:30px;
}

.doc-card{
    position:relative;
    background:#ffffff;
    border-radius:28px;
    border:1px solid rgba(196,55,70,0.12);
    padding:32px;
    box-shadow:0 24px 50px rgba(17,24,39,0.08);
    transition:transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.4s ease, background-color 0.4s ease;
    will-change:transform, box-shadow, border-color, background-color;
}

.doc-card::before{
    content:'';
    position:absolute;
    top:30px;
    left:30px;
    width:58px;
    height:5px;
    border-radius:999px;
    background:linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.doc-card:hover{
    transform:translateY(-8px);
    box-shadow:0 28px 65px rgba(17,24,39,0.14);
    border-color:rgba(196,55,70,0.18);
}

.doc-card-header h3{
    font-size:1.55rem;
    margin-bottom:10px;
    color:#111827;
}

.doc-card-header p{
    color:#475569;
    line-height:1.9;
    margin-bottom:24px;
}

.doc-list{
    list-style:none;
    padding:0;
    margin:0 0 26px 0;
}

.doc-list li{
    position:relative;
    padding-left:34px;
    margin-bottom:14px;
    color:#334155;
    line-height:1.8;
}

.doc-list li::before{
    content:'\2022';
    position:absolute;
    left:0;
    top:0;
    color:var(--primary);
    font-size:1.3rem;
    line-height:1;
}

.doc-block{
    margin-top:28px;
}

.doc-block h4{
    font-size:1rem;
    margin-bottom:14px;
    color:#111827;
}

.doc-columns{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:22px;
}

.doc-sublist li{
    padding-left:28px;
}

@media(max-width:992px){
    .doc-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:768px){
    .doc-columns{
        grid-template-columns:1fr;
    }
}

/* CONTACT */

.contact{
    padding:90px 0;
    background:white;
}

.contact-container{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
}

.section-tag{
    display:inline-block;
    background:#ffe5ea;
    color:var(--primary);
    padding:10px 18px;
    border-radius:50px;
    margin-bottom:20px;
    font-weight:600;
}

.contact-info h2{
    font-size:2.8rem;
    margin-bottom:20px;
}

.contact-text{
    color:var(--light);
    line-height:1.9;
    margin-bottom:35px;
}

.contact-item{
    display:flex;
    gap:18px;
    margin-bottom:28px;
}

.contact-icon{
    font-size:1.8rem;
}

.contact-item p{
    color:var(--light);
}

/* FORM */

.contact-form{
    background:#fff;
    padding:35px;
    border-radius:24px;
    box-shadow:var(--shadow);
}

.form-group{
    margin-bottom:20px;
}

.form-group input,
.form-group textarea,
.form-group select{
    width:100%;
    padding:15px 18px;
    border-radius:14px;
    border:1px solid #ddd;
    outline:none;
    font-size:1rem;
    transition:0.3s;
    font-family:'Poppins',sans-serif;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 4px rgba(230,0,35,0.08);
}

textarea{
    resize:none;
}

/* FOOTER */

.footer{
    background:#111827;
    color:white;
    text-align:center;
    padding:30px 0;
}

/* WHATSAPP */

.whatsapp-btn{
    position:fixed;
    right:20px;
    bottom:20px;
    width:60px;
    height:60px;
    border-radius:50%;
    background:linear-gradient(135deg, #0f172a, #111827);
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-size:1.7rem;
    box-shadow:0 10px 25px rgba(0,0,0,0.2);
    z-index:999;
}

/* ANIMATION */

.fade-in-left{
    animation:fadeLeft 1s ease forwards;
}

.fade-in-right{
    animation:fadeRight 1s ease forwards;
}

.fade-in{
    animation:fadeUp 1s ease forwards;
}

@keyframes fadeLeft{
    from{
        opacity:0;
        transform:translateX(-40px);
    }
    to{
        opacity:1;
        transform:translateX(0);
    }
}

@keyframes fadeRight{
    from{
        opacity:0;
        transform:translateX(40px);
    }
    to{
        opacity:1;
        transform:translateX(0);
    }
}

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(30px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes slideUp{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes cardPulse{
    0%, 100%{
        box-shadow:var(--shadow);
    }
    50%{
        box-shadow:0 15px 35px rgba(123,17,19,0.12);
    }
}

/* TABLET */

@media(max-width:992px){

    .hero-container{
        flex-direction:column;
        text-align:center;
    }

    .hero-subtitle{
        margin:auto auto 35px;
    }

    .hero-buttons{
        justify-content:center;
    }

    .contact-container{
        grid-template-columns:1fr;
    }

    .hero-title{
        font-size:3rem;
    }
}

/* MOBILE */

@media(max-width:768px){

    .navbar-container{
        height:70px;
    }

    .logo{
        height:70px;
        padding:0;
        gap:8px;
    }

    .logo-icon-img{
        height:46px;
    }

    .logo-brand-img{
        height:70px;
        max-width:160px;
    }

    .hamburger{
        display:flex;
    }

    .nav-menu{
        position:absolute;
        top:70px;
        left:0;
        width:100%;
        background:#7B1113;
        display:none;
        flex-direction:column;
        padding:30px 0;
        box-shadow:0 10px 25px rgba(0,0,0,0.15);
    }

    .nav-menu.active{
        display:flex;
    }

    .nav-list{
        flex-direction:column;
        align-items:center;
        gap:25px;
    }

    .nav-right .btn{
        display:none;
    }

    .hero{
        padding:80px 0 50px;
    }

    .hero-title{
        font-size:2.3rem;
    }

    .hero-subtitle{
        font-size:0.95rem;
    }

    .section-title{
        font-size:2rem;
    }

    .contact-info h2{
        font-size:2rem;
    }

    .steps-container{
        justify-content:flex-start;
        gap:20px;
        overflow-x:auto;
    }

    .step-arrow{
        display:inline-block;
    }

    .step{
        width:220px;
        flex:0 0 220px;
    }
}

/* SMALL MOBILE */

@media(max-width:480px){

    .hero-title{
        font-size:1.9rem;
    }

    .hero-buttons{
        flex-direction:column;
    }

    .btn{
        width:100%;
        text-align:center;
    }

    .contact-form{
        padding:25px;
    }

    .service-content{
        padding:20px;
    }

    .logo-icon-img{
        height:38px;
    }

    .logo-brand-img{
        height:60px;
        max-width:130px;
    }

    .whatsapp-btn{
        width:55px;
        height:55px;
    }
}
/* ================= SERVICES DROPDOWN ================= */

.nav-item.has-dropdown{
    position:relative;
}

.dropdown-arrow{
    font-size:0.65rem;
    margin-left:4px;
    display:inline-block;
    transition:transform 0.3s ease;
}

.nav-item.has-dropdown:hover .dropdown-arrow{
    transform:rotate(180deg);
}

.dropdown-menu{
    display:none;
    position:absolute;
    top:calc(100% + 14px);
    left:50%;
    transform:translateX(-50%);
    background:#ffffff;
    border-radius:16px;
    box-shadow:0 20px 50px rgba(0,0,0,0.15);
    list-style:none;
    padding:10px 0;
    min-width:260px;
    z-index:1000;
    border:1px solid rgba(0,0,0,0.06);
    animation:dropdownFade 0.2s ease forwards;
}

@keyframes dropdownFade{
    from{opacity:0;transform:translateX(-50%) translateY(-8px);}
    to{opacity:1;transform:translateX(-50%) translateY(0);}
}

.nav-item.has-dropdown:hover .dropdown-menu{
    display:block;
}

.dropdown-menu::before{
    content:'';
    position:absolute;
    top:-7px;
    left:50%;
    transform:translateX(-50%);
    border-left:7px solid transparent;
    border-right:7px solid transparent;
    border-bottom:7px solid #ffffff;
}

.dropdown-link{
    display:block;
    padding:11px 22px;
    color:#111827;
    text-decoration:none;
    font-size:0.9rem;
    font-weight:500;
    transition:background 0.2s ease, color 0.2s ease;
    white-space:nowrap;
}

.dropdown-link:hover{
    background:#fff0f2;
    color:var(--primary);
}

/* ================= HERO FORM ================= */

.hero-form{
    flex:1;
    display:flex;
    justify-content:center;
}

.hero-form-inner{
    background:#ffffff;
    border-radius:24px;
    padding:36px 32px;
    box-shadow:0 20px 50px rgba(0,0,0,0.10);
    width:100%;
    max-width:480px;
}

.hero-form-title{
    font-size:1.5rem;
    font-weight:700;
    color:#111827;
    margin-bottom:6px;
}

.hero-form-sub{
    font-size:0.9rem;
    color:#6b7280;
    margin-bottom:22px;
    line-height:1.6;
}

/* ================= CONTACT — INFO ONLY ================= */

.contact-info-only{
    grid-template-columns:1fr !important;
    max-width:680px;
    margin-left:10%;
    margin-right:auto;
    text-align:left;
}

/* Mobile adjustments for hero form */
@media(max-width:992px){
    .hero-form{
        width:100%;
    }
    .hero-form-inner{
        max-width:100%;
    }
}

@media(max-width:768px){
    /* Dropdown in mobile menu */
    .nav-item.has-dropdown{
        width:100%;
        text-align:center;
    }
    .dropdown-menu{
        position:static;
        transform:none;
        box-shadow:none;
        border:none;
        border-radius:12px;
        background:rgba(255,255,255,0.08);
        padding:6px 0;
        display:none;
        animation:none;
        min-width:100%;
    }
    .nav-item.has-dropdown.mobile-open .dropdown-menu{
        display:block;
    }
    .dropdown-menu::before{
        display:none;
    }
    .dropdown-link{
        color:#ffffff;
        text-align:center;
        padding:9px 16px;
        font-size:0.88rem;
    }
    .dropdown-link:hover{
        background:rgba(255,255,255,0.12);
        color:#ffffff;
    }
    .dropdown-arrow{
        transition:transform 0.3s ease;
    }
    .nav-item.has-dropdown.mobile-open .dropdown-arrow{
        transform:rotate(180deg);
    }
    .hero-form-inner{
        padding:28px 20px;
    }
    .contact-info-only{
        margin-left:auto;
    }
}
