/* ============================================================
   HEADWHEEL SYSTEMS & SERVICES PVT LTD
   Main Stylesheet - Blue/Teal Corporate Water Theme
   ============================================================ */

:root {
    --primary:    #0b5394;
    --primary-dk: #073763;
    --accent:     #00acc1;
    --accent-lt:  #e0f7fa;
    --green:      #2e7d32;
    --warning:    #f59e0b;
    --text-dark:  #1a2332;
    --text-muted: #6c757d;
    --bg-light:   #f0f7ff;
    --white:      #ffffff;
    --shadow:     0 4px 20px rgba(11,83,148,0.12);
    --radius:     10px;
    --whatsapp:   #25d366;
}

/* ---- Base ---- */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background: #fafcff;
    overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6,.brand-text { font-family: 'Poppins', sans-serif; }

a { color: var(--primary); text-decoration: none; transition: .2s; }
a:hover { color: var(--accent); }

/* ---- Top Bar ---- */
.old-topbar { background: var(--primary-dk); color: #cfe2ff; font-size: .82rem; }
.old-topbar a { color: #cfe2ff; }
.old-topbar a:hover { color: #fff; }

/* ---- Navbar ---- */
/* Navbar rules scoped to legacy classes only — hw-navbar uses navbar.css */
.brand-text { line-height: 1.1; font-size: .78rem; letter-spacing: .5px; color: #fff; }
.brand-text strong { font-size: 1rem; letter-spacing: 1px; }

.dropdown-menu { border: none; box-shadow: var(--shadow); border-radius: var(--radius); border-top: 3px solid var(--primary); }
.dropdown-menu-wide { min-width: 340px; }
.dropdown-item { font-size: .85rem; padding: 7px 20px; }
.dropdown-item:hover { background: var(--bg-light); color: var(--primary); }
.dropdown-header { font-size: .75rem; font-weight: 700; color: var(--primary); padding: 10px 20px 4px; }

/* WhatsApp buttons */
.btn-whatsapp { background: var(--whatsapp); color: #fff; border: none; border-radius: 20px; font-size: .83rem; font-weight: 600; }
.btn-whatsapp:hover { background: #1db954; color: #fff; }
.nav-whatsapp { padding: 6px 16px !important; }

/* ---- Hero / Carousel ---- */
.hero-carousel { position: relative; }
.hero-slide { position: relative; min-height: 520px; display: flex; align-items: center; overflow: hidden; }
.hero-slide::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(120deg, rgba(7,55,99,.92) 45%, rgba(0,172,193,.6) 100%);
    z-index: 1;
}
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: relative; z-index: 2; color: #fff; }
.hero-badge { display: inline-block; background: var(--warning); color: #000; font-size: .72rem; font-weight: 700; padding: 3px 12px; border-radius: 20px; letter-spacing: 1px; margin-bottom: 12px; text-transform: uppercase; }
.hero-content h1 { font-size: 2.4rem; font-weight: 800; line-height: 1.2; }
.hero-content h1 span { color: var(--accent); }
.hero-content p { font-size: 1.05rem; opacity: .9; }
.hero-tagline { font-size: 2.2rem; font-weight: 800; color: var(--warning); text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.carousel-control-prev-icon, .carousel-control-next-icon { background-color: rgba(11,83,148,.6); border-radius: 50%; padding: 14px; }

/* ---- Stats Bar ---- */
.stats-bar { background: var(--primary); color: #fff; padding: 20px 0; }
.stat-item { text-align: center; border-right: 1px solid rgba(255,255,255,.2); }
.stat-item:last-child { border-right: none; }
.stat-item .stat-num { font-size: 1.8rem; font-weight: 800; color: var(--warning); font-family: 'Poppins', sans-serif; }
.stat-item .stat-label { font-size: .78rem; opacity: .85; }

/* ---- Section Styles ---- */
section { padding: 70px 0; }
.section-heading { margin-bottom: 45px; }
.section-heading .badge-label { display: inline-block; background: var(--accent-lt); color: var(--accent); font-size: .72rem; font-weight: 700; padding: 4px 14px; border-radius: 20px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.section-heading h2 { font-size: 2rem; font-weight: 700; color: var(--text-dark); }
.section-heading h2 span { color: var(--primary); }
.section-heading .divider { width: 50px; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 2px; margin: 12px auto; }
.bg-section { background: var(--bg-light); }

/* ---- Product Cards ---- */
.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 35px rgba(11,83,148,.18); }
.product-card .card-img-wrap { position: relative; overflow: hidden; height: 210px; background: var(--bg-light); }
.product-card .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .card-img-wrap img { transform: scale(1.06); }
.product-card .card-category { position: absolute; top: 10px; left: 10px; background: var(--primary); color: #fff; font-size: .68rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.product-card .card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-card h5 { font-size: .95rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.product-card p { font-size: .82rem; color: var(--text-muted); flex: 1; }
.product-card .card-footer-btns { display: flex; gap: 8px; margin-top: 12px; }
.product-card .card-footer-btns .btn { font-size: .78rem; padding: 5px 14px; border-radius: 20px; flex: 1; text-align: center; }
.warranty-badge { display: inline-block; background: #e8f5e9; color: var(--green); font-size: .7rem; font-weight: 600; padding: 2px 10px; border-radius: 12px; margin-bottom: 8px; }

/* ---- Services ---- */
.service-card { background: #fff; border-radius: var(--radius); padding: 30px 25px; box-shadow: var(--shadow); text-align: center; transition: .3s; height: 100%; }
.service-card:hover { transform: translateY(-5px); background: var(--primary); color: #fff; }
.service-card:hover .service-icon { background: rgba(255,255,255,.2); }
.service-card:hover p, .service-card:hover h5 { color: #fff; }
.service-icon { width: 70px; height: 70px; background: var(--bg-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 1.6rem; color: var(--primary); transition: .3s; }
.service-card:hover .service-icon { color: var(--warning); }

/* ---- Process Flow ---- */
.process-step { text-align: center; position: relative; }
.process-step .step-num { width: 55px; height: 55px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 800; margin: 0 auto 14px; font-family: 'Poppins', sans-serif; }
.process-step .step-label { font-size: .82rem; font-weight: 600; color: var(--text-dark); }
.process-arrow { font-size: 1.5rem; color: var(--accent); display: flex; align-items: center; justify-content: center; }

/* ---- Why Choose Us ---- */
.why-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.why-icon { width: 50px; height: 50px; background: var(--bg-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.2rem; flex-shrink: 0; }
.why-text h6 { font-weight: 700; margin-bottom: 4px; }
.why-text p { font-size: .83rem; color: var(--text-muted); margin: 0; }

/* ---- Warranty Highlights ---- */
.warranty-row { background: linear-gradient(135deg, var(--primary-dk), var(--primary)); border-radius: var(--radius); padding: 30px; color: #fff; }
.warranty-item { text-align: center; padding: 12px; }
.warranty-item .w-num { font-size: 2rem; font-weight: 800; color: var(--warning); font-family: 'Poppins', sans-serif; }
.warranty-item .w-label { font-size: .78rem; opacity: .85; }

/* ---- Clients / Projects ---- */
.client-logo-wrap { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; height: 110px; }
.client-logo-wrap img { max-height: 70px; max-width: 100%; object-fit: contain; filter: grayscale(60%); transition: .3s; }
.client-logo-wrap:hover img { filter: grayscale(0%); }

.project-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; height: 240px; cursor: pointer; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.project-card:hover img { transform: scale(1.08); }
.project-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(7,55,99,.88)); padding: 20px 16px 16px; color: #fff; }
.project-overlay h6 { font-size: .85rem; font-weight: 700; margin: 0; }
.project-overlay small { opacity: .8; font-size: .73rem; }
.project-status { position: absolute; top: 10px; right: 10px; font-size: .68rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.status-ongoing { background: var(--warning); color: #000; }
.status-completed { background: var(--green); color: #fff; }

/* ---- Blog Cards ---- */
.blog-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .3s; height: 100%; }
.blog-card:hover { transform: translateY(-5px); }
.blog-card img { height: 190px; width: 100%; object-fit: cover; }
.blog-card .blog-meta { font-size: .75rem; color: var(--text-muted); margin-bottom: 6px; }
.blog-card .blog-cat { background: var(--bg-light); color: var(--primary); font-size: .7rem; font-weight: 700; padding: 2px 10px; border-radius: 12px; }
.blog-card h5 { font-size: .92rem; font-weight: 700; line-height: 1.4; }

/* ---- Contact ---- */
.contact-info-card { background: var(--primary); color: #fff; border-radius: var(--radius); padding: 32px; height: 100%; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info-item .ci-icon { width: 42px; height: 42px; background: rgba(255,255,255,.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.contact-info-item .ci-text h6 { font-size: .85rem; opacity: .8; margin-bottom: 3px; }
.contact-info-item .ci-text p { margin: 0; font-size: .9rem; }
.contact-form-card { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-control, .form-select { border-radius: 8px; font-size: .88rem; border: 1.5px solid #dee2e6; padding: 10px 14px; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,83,148,.1); }

/* ---- Enquiry CTA Banner ---- */
.cta-banner { background: linear-gradient(135deg, var(--primary-dk), var(--accent)); padding: 55px 0; color: #fff; text-align: center; }
.cta-banner h2 { font-size: 2rem; font-weight: 800; }
.cta-banner p { font-size: 1.05rem; opacity: .9; }

/* ---- About Page ---- */
.strength-item { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); text-align: center; }
.strength-item .s-icon { font-size: 2rem; color: var(--primary); margin-bottom: 10px; }

/* ---- Product Detail Page ---- */
.product-detail-hero { background: linear-gradient(135deg, var(--primary-dk), var(--primary)); padding: 55px 0; color: #fff; }
.spec-table th { background: var(--bg-light); font-size: .82rem; font-weight: 700; }
.spec-table td { font-size: .82rem; }
.product-sidebar-card { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); position: sticky; top: 80px; }

/* ---- Certifications ---- */
.cert-img-wrap { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); text-align: center; }
.cert-img-wrap img { max-height: 180px; object-fit: contain; }

/* ---- Breadcrumb ---- */
.page-hero { background: linear-gradient(135deg, var(--primary-dk), var(--primary)); padding: 40px 0; color: #fff; }
.page-hero h1 { font-size: 1.9rem; font-weight: 800; }
.breadcrumb-item, .breadcrumb-item a { color: rgba(255,255,255,.75); font-size: .85rem; }
.breadcrumb-item.active { color: #fff; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ---- Footer ---- */
.footer-main { background: #0d1b2e; }
.footer-top { padding: 55px 0 30px; }
.footer-heading { color: var(--accent); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 8px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .83rem; transition: .2s; }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }
.footer-bottom { background: rgba(0,0,0,.3); padding: 14px 0; }
.footer-bottom p, .footer-bottom a { color: rgba(255,255,255,.55); font-size: .78rem; }
.footer-bottom a:hover { color: var(--accent); }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: rgba(255,255,255,.1); border-radius: 50%; color: #fff; margin-right: 8px; transition: .2s; font-size: .85rem; }
.social-link:hover { background: var(--primary); color: #fff; }
.whatsapp-link:hover { background: var(--whatsapp) !important; }
.cert-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.cert-badge { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); font-size: .7rem; padding: 3px 10px; border-radius: 20px; }
.cert-thumb { height: 40px; object-fit: contain; filter: brightness(0.85); border-radius: 4px; }

/* ---- WhatsApp Float ---- */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 24px;
    width: 58px;
    height: 58px;
    background: var(--whatsapp);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 4px 16px rgba(37,211,102,.5);
    z-index: 999;
    transition: .3s;
    animation: pulse-whatsapp 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.12); color: #fff; }
.whatsapp-tooltip {
    position: absolute;
    right: 68px;
    background: #333;
    color: #fff;
    white-space: nowrap;
    font-size: .75rem;
    padding: 4px 12px;
    border-radius: 20px;
    opacity: 0;
    transition: .3s;
    pointer-events: none;
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }
@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,.6); }
    70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---- Utility ---- */
.btn-primary { background: var(--primary); border-color: var(--primary); border-radius: 8px; }
.btn-primary:hover { background: var(--primary-dk); border-color: var(--primary-dk); }
.btn-outline-primary { border-color: var(--primary); color: var(--primary); border-radius: 8px; }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.text-primary { color: var(--primary) !important; }
.bg-primary { background: var(--primary) !important; }
.section-divider { width: 60px; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 2px; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 1.6rem; }
    .hero-tagline { font-size: 1.4rem; }
    section { padding: 45px 0; }
    .whatsapp-float { width: 50px; height: 50px; font-size: 1.4rem; bottom: 20px; right: 16px; }
}

/* ══ FOOTER ═══════════════════════════════════════════════════ */
.site-footer { background: #0d1b2e; color: #cdd6e3; }
.site-footer .footer-heading { color: #fff; font-size: .9rem; }
.site-footer .footer-links li { margin-bottom: .35rem; }
.site-footer .footer-links a { color: #90a4b8; text-decoration: none; font-size: .83rem; transition: color .2s; }
.site-footer .footer-links a:hover { color: #00acc1; }
.site-footer .footer-link-group { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #55799a; font-weight: 600; margin-top: .3rem; }
.site-footer hr { border-color: rgba(255,255,255,.08); }
