/*====================================
  SMARTWAY FINCORP
  Finance & Loan Website
=====================================*/

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/*====================================
    VARIABLES
=====================================*/

:root{
    --primary:#0B5ED7;
    --secondary:#0A3D62;
    --accent:#F4B400;
    --light:#F8F9FA;
    --dark:#222;
    --text:#555;
    --white:#ffffff;
    --border:#e8e8e8;
    --shadow:0 10px 35px rgba(0,0,0,.08);
    --radius:12px;
    --transition:.35s ease;
}

/*====================================
    RESET
=====================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#fff;
    color:var(--dark);
    line-height:1.7;
    overflow-x:hidden;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}


/*====================================
    BUTTONS
=====================================*/

.btn{
    display:inline-block;
    padding:14px 28px;
    border-radius:50px;
    transition:var(--transition);
    font-weight:600;
    cursor:pointer;
}

.btn-primary{
    background:var(--primary);
    color:#fff;
}

.btn-primary:hover{
    background:var(--secondary);
}

.btn-outline{
    border:2px solid var(--primary);
    color:var(--primary);
}

.btn-outline:hover{
    background:var(--primary);
    color:#fff;
}

.btn-light{
    background:#fff;
    color:var(--primary);
}

.btn-light:hover{
    background:var(--accent);
    color:#fff;
}

/*====================================
    SECTION TITLE
=====================================*/

.section-title{

    text-align:center;
    margin-bottom:60px;

}

.section-title span{

    color:var(--primary);
    font-weight:600;
    letter-spacing:1px;

}

.section-title h2{

    font-size:40px;
    margin-top:10px;

}

/*====================================
    HEADER
=====================================*/

header{

    position:fixed;
    top:0;
    left:0;
    width:100%;
    background:#fff;
    z-index:999;
    box-shadow:0 3px 20px rgba(0,0,0,.05);

}

header .container{

    display:flex;
    justify-content:space-between;
    align-items:center;
    height:85px;

}

.logo{

    font-size:26px;
    font-weight:700;
    color:var(--secondary);

}

.logo i{

    color:var(--accent);

}

.navbar ul li a{
    color:#222;
    font-weight:500;
    transition:var(--transition);
}

.navbar ul li a:hover,
.navbar ul li a.active{
    color:var(--primary);
}
@media (min-width: 992px) {
  .navbar .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* Smooths out the cursor transition gap */
  }
}

/*====================================
    DROPDOWN
=====================================*/

.submenu{

    position:absolute;
    top:45px;
    left:0;

    width:260px;

    background:#fff;

    box-shadow:var(--shadow);

    opacity:0;
    visibility:hidden;

    transition:.3s;

    border-radius:8px;

    overflow:hidden;

}

.dropdown:hover .submenu{

    opacity:1;
    visibility:visible;

}

.submenu li{

    width:100%;

}

.submenu li a{

    display:block;
    padding:14px 20px;

}

.submenu li a:hover{

    background:var(--light);

}

/*====================================
    HEADER BUTTONS
=====================================*/

.header-btns{

    display:flex;
    gap:12px;

}

.menu-toggle{

    display:none;
    font-size:30px;
    cursor:pointer;

}

/* ================= HERO SLIDER ================= */

.hero-slider{

    position:relative;
    margin-top:85px;
    height:90vh;
    overflow:hidden;

}

.slide{

    position:absolute;
    width:100%;
    height:100%;
    opacity:0;
    transition:opacity .8s ease;

}

.slide.active{

    opacity:1;
    z-index:2;

}

.slide img{

    width:100%;
    height:100%;
    object-fit:cover;

}

.overlay{

    position:absolute;
    inset:0;
    background:rgba(0,0,0,.55);

}

.slide-content{

    position:absolute;
    top:50%;
    transform:translateY(-50%);
    color:#fff;
    max-width:650px;
    z-index:10;

}

.slide-content h1{

    font-size:60px;
    margin:20px 0;
    line-height: 60px;

}

.slide-content p{

    font-size:18px;
    margin-bottom:35px;

}

.prev,
.next{

    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:55px;
    height:55px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.2);
    color:#fff;
    cursor:pointer;
    font-size:22px;
    z-index:20;

}

.prev{

    left:30px;

}

.next{

    right:30px;

}

.prev:hover,
.next:hover{

    background:var(--primary);

}

.slider-dots{

    position:absolute;
    bottom:35px;
    width:100%;
    text-align:center;
    z-index:20;

}

.dot{

    display:inline-block;
    width:14px;
    height:14px;
    margin:0 6px;
    background:#ccc;
    border-radius:50%;
    cursor:pointer;

}

.dot.active{

    background:var(--accent);

}

@media(max-width:768px){

.hero-slider{

    height:70vh;

}

.slide-content{

    left:20px;
    right:20px;

}

.slide-content h1{

    font-size:36px;

}

.slide-content p{

    font-size:16px;

}

.prev,
.next{

    display:none;

}

}

/*====================================
    SERVICES
=====================================*/

.services{

    padding:100px 0;

}

.service-grid{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;

}

.service-card{

    background:#fff;
    border:1px solid var(--border);
    border-radius:var(--radius);
    padding:35px;
    text-align:center;

    transition:.35s;

}

.service-card:hover{

    transform:translateY(-10px);
    box-shadow:var(--shadow);

}

.service-card i{

    width:80px;
    height:80px;
    line-height:80px;

    border-radius:50%;

    background:#eef5ff;

    color:var(--primary);

    font-size:34px;

    margin-bottom:25px;

}

.service-card h3{

    margin-bottom:15px;

}

.service-card p{

    color:var(--text);
    margin-bottom:20px;

}

.service-card a{

    color:var(--primary);
    font-weight:600;

}

/*====================================
    ABOUT SECTION
=====================================*/

.about-home{
    padding:100px 0;
    background:var(--light);
}

.about-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:center;
}

.about-home img{
    width:100%;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
}

.about-home h2{
    font-size:42px;
    margin:15px 0 20px;
}

.about-home p{
    color:var(--text);
    margin-bottom:25px;
}

.about-list{
    margin-bottom:35px;
}

.about-list li{
    padding:10px 0;
    color:var(--dark);
    font-weight:500;
}

/*====================================
    WHY CHOOSE US
=====================================*/

.why{
    padding:100px 0;
}

.why-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

.why-grid div{

    background:#fff;
    border-radius:var(--radius);
    border:1px solid var(--border);
    text-align:center;
    padding:40px 30px;
    transition:var(--transition);

}

.why-grid div:hover{

    transform:translateY(-10px);
    box-shadow:var(--shadow);

}

.why-grid i{

    width:85px;
    height:85px;
    line-height:85px;
    border-radius:50%;
    background:rgba(11,94,215,.1);
    color:var(--primary);
    font-size:34px;
    margin-bottom:25px;

}

.why-grid h3{

    margin-bottom:15px;
    font-size:22px;

}

.why-grid p{

    color:var(--text);

}

/*====================================
    LOAN PROCESS
=====================================*/

.process{

    padding:100px 0;
    background:linear-gradient(135deg,#0B5ED7,#0A3D62);
    color:#fff;

}

.process .section-title span,
.process .section-title h2{

    color:#fff;

}

.process-grid{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:30px;

}

.process-grid div{

    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.12);
    border-radius:var(--radius);
    padding:40px 25px;
    text-align:center;
    transition:var(--transition);

}

.process-grid div:hover{

    transform:translateY(-10px);
    background:rgba(255,255,255,.12);

}

.process-grid span{

    width:70px;
    height:70px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:var(--accent);
    color:#fff;
    font-size:24px;
    font-weight:700;
    margin-bottom:20px;

}

.process-grid h3{

    font-size:22px;
    font-weight:600;

}

/*====================================
    COUNTER
=====================================*/

.counter{

    padding:90px 0;
    background:#fff;

}

.counter-grid{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:30px;

}

.counter-grid div{

    background:#fff;
    border-radius:var(--radius);
    border:1px solid var(--border);
    padding:40px 20px;
    text-align:center;
    transition:var(--transition);

}

.counter-grid div:hover{

    box-shadow:var(--shadow);
    transform:translateY(-8px);

}

.counter-grid h2{

    color:var(--primary);
    font-size:52px;
    font-weight:700;
    margin-bottom:10px;

}

.counter-grid p{

    color:var(--text);
    font-weight:500;

}

/*====================================
    TESTIMONIALS
=====================================*/

.testimonials{

    padding:100px 0;
    background:var(--light);

}

.testimonial-grid{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;

}

.testimonial{

    background:#fff;
    border-radius:var(--radius);
    padding:35px;
    box-shadow:var(--shadow);
    position:relative;
    transition:var(--transition);

}

.testimonial:hover{

    transform:translateY(-10px);

}

.testimonial::before{

    content:"\f10d";
    font-family:"Font Awesome 6 Free";
    font-weight:900;
    position:absolute;
    top:25px;
    right:25px;
    font-size:40px;
    color:rgba(11,94,215,.08);

}

.testimonial p{

    color:var(--text);
    font-style:italic;
    margin-bottom:25px;

}

.testimonial h4{

    color:var(--secondary);

}

/*====================================
    CALL TO ACTION
=====================================*/

.cta{

    padding:90px 0;
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    color:#fff;
    text-align:center;

}

.cta h2{

    font-size:44px;
    margin-bottom:20px;

}

.cta p{

    max-width:700px;
    margin:0 auto 35px;
    font-size:18px;
    opacity:.95;

}

.cta .btn{

    font-size:17px;
    padding:16px 34px;
    box-shadow:0 10px 25px rgba(0,0,0,.15);

}

.cta .btn:hover{

    transform:translateY(-3px);

}

/*====================================
    FOOTER
=====================================*/

footer{
    background:var(--secondary);
    color:#fff;
    padding:70px 0 0;
}

.footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:50px;
}

footer h3{
    font-size:28px;
    margin-bottom:20px;
}

footer h4{
    margin-bottom:20px;
    font-size:20px;
}

footer p{
    color:rgba(255,255,255,.85);
    margin-bottom:12px;
}

footer ul li{
    margin-bottom:12px;
}

footer ul li a{
    color:rgba(255,255,255,.85);
    transition:var(--transition);
}

footer ul li a:hover{
    color:var(--accent);
    padding-left:6px;
}

footer i{
    color:var(--accent);
    margin-right:8px;
}

.copyright{
    margin-top:50px;
    text-align:center;
    padding:20px 0;
    border-top:1px solid rgba(255,255,255,.15);
    color:rgba(255,255,255,.7);
    font-size:14px;
}


/* Contact Form */

.contact-form input,
.contact-form select,
.contact-form textarea{

    width:100%;
    padding:15px 18px;
    border:1px solid #ddd;
    border-radius:8px;
    font-family:'Poppins',sans-serif;
    font-size:15px;
    margin-bottom:20px;
    transition:.3s;

}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{

    border-color:var(--primary);
    outline:none;
    box-shadow:0 0 0 3px rgba(11,94,215,.12);

}

.contact-form textarea{

    resize:vertical;
    min-height:140px;

}


/*====================================
    WHATSAPP BUTTON
=====================================*/

.whatsapp{

    position:fixed;
    right:25px;
    bottom:25px;

    width:60px;
    height:60px;

    background:#25D366;
    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,.2);

    z-index:999;

    transition:var(--transition);

}

.whatsapp:hover{

    transform:translateY(-6px) scale(1.05);

}

/*====================================
    STICKY HEADER
=====================================*/

header.sticky{

    box-shadow:0 8px 25px rgba(0,0,0,.08);

}

/*====================================
    SIMPLE FADE ANIMATION
=====================================*/

.fade-up{

    opacity:0;
    transform:translateY(40px);
    transition:.8s ease;

}

.fade-up.show{

    opacity:1;
    transform:translateY(0);

}

/*====================================
    RESPONSIVE
=====================================*/

/* Laptop */

@media(max-width:1200px){

.hero h1{

    font-size:48px;

}

.section-title h2{

    font-size:36px;

}

.about-home h2{

    font-size:36px;

}

}

/* Tablet */

@media(max-width:992px){

.hero-grid,
.about-grid{

    grid-template-columns:1fr;

}

.hero{

    text-align:center;

}

.hero-buttons{

    justify-content:center;

}

.hero-image{

    margin-top:30px;

}

.footer-grid{

    grid-template-columns:1fr 1fr;

}

.header-btns{

    display:none;

}

}

/* Mobile Menu */

@media(max-width:768px){

.menu-toggle{

    display:block;

}

#navbar{

    position:absolute;

    top:85px;
    left:0;

    width:100%;

    background:#fff;

    display:none;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

}

#navbar.active{

    display:block;

}

#navbar ul{

    flex-direction:column;

    align-items:flex-start;

    gap:0;

}

#navbar ul li{

    width:100%;

}

#navbar ul li a{

    display:block;

    width:100%;

    padding:16px 25px;

}

.submenu{

    position:relative;

    width:100%;

    top:0;

    left:0;

    opacity:1;

    visibility:visible;

    display:none;

    box-shadow:none;

    border-radius:0;

    background:#f7f7f7;

}

.dropdown.open .submenu{

    display:block;

}

.hero{

    padding:140px 0 80px;

}

.hero h1{

    font-size:38px;

}

.section-title h2{

    font-size:30px;

}

.about-home h2{

    font-size:30px;

}

.cta h2{

    font-size:34px;

}

.counter-grid{

    grid-template-columns:repeat(2,1fr);

}

.process-grid{

    grid-template-columns:repeat(2,1fr);

}

.footer-grid{

    grid-template-columns:1fr;

}

}

/* Small Mobile */

@media(max-width:576px){

.container{

    width:92%;

}

.hero h1{

    font-size:32px;

}

.hero-buttons{

    flex-direction:column;

    align-items:center;

}

.hero-buttons .btn{

    width:100%;
    text-align:center;

}

.section-title h2{

    font-size:28px;

}

.about-home h2{

    font-size:28px;

}

.service-card,
.testimonial,
.counter-grid div,
.why-grid div,
.process-grid div{

    padding:25px;

}

.counter-grid,
.process-grid{

    grid-template-columns:1fr;

}

.cta h2{

    font-size:28px;

}

.whatsapp{

    width:55px;
    height:55px;
    font-size:24px;
    right:18px;
    bottom:18px;

}

}

/*====================================
    UTILITIES
=====================================*/

.text-center{
    text-align:center;
}

.mt-20{
    margin-top:20px;
}

.mt-30{
    margin-top:30px;
}

.mt-40{
    margin-top:40px;
}

.mb-20{
    margin-bottom:20px;
}

.mb-30{
    margin-bottom:30px;
}

.mb-40{
    margin-bottom:40px;
}

.shadow{
    box-shadow:var(--shadow);
}

.rounded{
    border-radius:var(--radius);
}

.bg-primary{
    background:var(--primary);
    color:#fff;
}

.bg-light{
    background:var(--light);
}

/*====================================
    CUSTOM SCROLLBAR
=====================================*/

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#eee;
}

::-webkit-scrollbar-thumb{
    background:var(--primary);
    border-radius:10px;
}

::-webkit-scrollbar-thumb:hover{
    background:var(--secondary);
}