/* =====================================================
   FixMateHub 2.0 - Updated Styles
   File: css/style.css
===================================================== */

:root{
    --primary:#1E3A8A;
    --primary-dark:#16306e;
    --secondary:#F97316;
    --secondary-dark:#e66100;
    --whatsapp:#25D366; /* Added official WhatsApp Color */
    --whatsapp-dark:#128C7E;
    --light:#f8fafc;
    --white:#ffffff;
    --text:#1f2937;
    --gray:#6b7280;
    --border:#e5e7eb;
    --shadow:0 10px 30px rgba(0,0,0,.08);
    --radius:14px;
    --container:1200px;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family: 'Plus Jakarta Sans', Arial, Helvetica, sans-serif; /* Modernized Typography */
    background:var(--light);
    color:var(--text);
    line-height:1.7;
}

.container{
    width:92%;
    max-width:var(--container);
    margin:auto;
}

/* -------------------------- */
/* Navigation & Header */
/* -------------------------- */

header{
    background:#fff;
    box-shadow:0 3px 15px rgba(0,0,0,.05);
    position:sticky;
    top:0;
    z-index:999;
}

nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:16px 0;
}

.logo{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration: none;
}

.logo img{
    width:50px;
    height: auto;
}

.logo h2{
    color:var(--primary);
    font-size:24px;
    font-weight: 800;
}

nav ul{
    display:flex;
    list-style:none;
    gap:20px;
    align-items: center;
}

nav ul li a{
    text-decoration:none;
    color:var(--text);
    font-weight:600;
    font-size: 15px;
    transition:.3s;
}

nav ul li a:hover, 
nav ul li a.active{
    color:var(--secondary);
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* -------------------------- */
/* Buttons */
/* -------------------------- */

.btn{
    display:inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding:14px 28px;
    border-radius:10px;
    text-decoration:none;
    font-weight:bold;
    transition:.3s;
}

.btn-primary{
    background:var(--secondary);
    color:#fff;
}

.btn-primary:hover{
    background:var(--secondary-dark);
    transform:translateY(-2px);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
}

.btn-whatsapp:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-2px);
}

/* -------------------------- */
/* Hero Section */
/* -------------------------- */

.hero{
    background:linear-gradient(rgba(30,58,138,.85), rgba(30,58,138,.85)), url("../images/hero.jpg");
    background-size:cover;
    background-position:center;
    color:#fff;
    text-align:center;
    padding:140px 20px;
}

.hero h1{
    font-size:48px;
    font-weight: 800;
    margin-bottom:20px;
    line-height: 1.2;
}

.hero p{
    max-width:820px;
    margin:auto;
    font-size:20px;
    margin-bottom:40px;
    opacity: 0.95;
}

.hero-buttons{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:15px;
}

/* -------------------------- */
/* How It Works Section */
/* -------------------------- */

.how-it-works {
    padding: 80px 0;
    background: #fff;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    text-align: center;
    padding: 30px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 10px rgba(30,58,138,0.2);
}

.step-card h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 20px;
}

.step-card p {
    color: var(--gray);
    font-size: 15px;
}

/* -------------------------- */
/* Services Section */
/* -------------------------- */

.services-section {
    padding: 80px 0;
}

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:25px;
}

.card{
    background:#fff;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    overflow:hidden;
    transition:.35s;
}

.card:hover{
    transform:translateY(-8px);
}

.card-body{
    padding:30px;
}

.service-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.card h3{
    color:var(--primary);
    margin-bottom:12px;
    font-size: 22px;
}

.card p{
    color:var(--gray);
    margin-bottom:20px;
    font-size: 15px;
}

.card-link{
    text-decoration:none;
    color:var(--secondary);
    font-weight:bold;
    display: inline-block;
    transition: 0.2s;
}

.card-link:hover {
    gap: 5px;
    color: var(--secondary-dark);
}

/* -------------------------- */
/* Call Banner Section */
/* -------------------------- */

.call-banner{
    background:linear-gradient(135deg,var(--primary),#3157cf);
    color:#fff;
    padding:80px 20px;
    text-align:center;
}

.call-banner h2{
    font-size:36px;
    font-weight: 700;
    margin-bottom:20px;
}

.call-banner p{
    max-width:750px;
    margin:auto;
    font-size: 18px;
    margin-bottom:35px;
    opacity: 0.9;
}

/* -------------------------- */
/* Footer Structure */
/* -------------------------- */

footer{
    background:#102553;
    color:#fff;
    padding:70px 20px 30px 20px;
}

.footer-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:40px;
}

.footer-brand p {
    color: #cbd5e1;
    margin-top: 12px;
    font-size: 15px;
}

footer h3{
    margin-bottom:20px;
    font-size: 18px;
    color: #fff;
}

footer ul{
    list-style:none;
}

footer li{
    margin-bottom:12px;
}

footer a{
    color:#cbd5e1;
    text-decoration:none;
    transition: 0.2s;
}

footer a:hover {
    color: var(--secondary);
}

.copyright{
    border-top:1px solid rgba(255,255,255,.1);
    margin-top:50px;
    padding-top:25px;
    text-align:center;
    font-size: 14px;
    color: #94a3b8;
}

/* -------------------------- */
/* Responsive Queries (Updated Mobile Menu Engine) */
/* -------------------------- */

@media(max-width:992px){
    .menu-toggle {
        display: flex; /* Shows the hamburger bar */
    }

    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        gap: 0;
        max-height: 0; /* Keeps hidden smoothly */
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }

    nav ul.show {
        max-height: 450px; /* Opens smoothly */
        padding: 20px;
        border-top: 1px solid var(--border);
    }

    nav ul li {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid #f1f5f9;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    .hero h1{ font-size:36px; }
    .hero p{ font-size:18px; }
}

@media(max-width:600px){
    .hero{ padding:100px 15px; }
    .hero-buttons{ flex-direction:column; }
    .btn{ width:100%; }
}