/* =========================================================
   Ashok & Company — Public site theme
   ========================================================= */
:root {
    --brand: #123a63;
    --brand-dark: #0d2b4a;
    --brand-light: #1d5490;
    --accent: #f5a623;
    --accent-dark: #d98e12;
    --ink: #1f2733;
    --muted: #6b7688;
    --line: #e6eaf0;
    --bg-soft: #f5f8fc;
    --radius: 14px;
    --shadow-sm: 0 2px 10px rgba(18, 58, 99, .06);
    --shadow: 0 12px 34px rgba(18, 58, 99, .12);
    --shadow-lg: 0 24px 60px rgba(18, 58, 99, .18);
}

* { scroll-behavior: smooth; }

/* Prevent stray horizontal scroll (e.g. Bootstrap row negative margins on mobile).
   `clip` clips overflow without creating a scroll container, so the sticky navbar
   keeps working — unlike `overflow-x: hidden`. */
html, body { overflow-x: clip; max-width: 100%; }

body {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.65;
}

h1, h2, h3, h4, h5, .display-title {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    color: var(--brand);
    line-height: 1.25;
}

a { text-decoration: none; }

.text-accent { color: var(--accent) !important; }
.text-brand { color: var(--brand) !important; }
.bg-brand { background: var(--brand) !important; }
.bg-soft { background: var(--bg-soft) !important; }

.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }

.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: .6rem;
}

.section-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin-bottom: .8rem;
}

.section-lead { color: var(--muted); font-size: 1.05rem; max-width: 640px; }

/* Buttons */
.btn { font-weight: 600; border-radius: 10px; padding: .68rem 1.4rem; transition: .2s ease; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; transform: translateY(-2px); }
.btn-outline-brand { border: 1.5px solid var(--brand); color: var(--brand); }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--brand); }

/* ================= Top bar ================= */
.topbar { background: var(--brand-dark); color: #cdd9e6; font-size: .86rem; }
.topbar a { color: #cdd9e6; }
.topbar a:hover { color: #fff; }
.topbar .divider { color: rgba(255,255,255,.25); }

/* ================= Navbar ================= */
.site-nav { background: #fff; box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 1030; }
.navbar-brand { display: flex; align-items: center; gap: .6rem; }
.navbar-brand .logo-mark {
    width: 44px; height: 44px; border-radius: 11px;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: #fff; display: grid; place-items: center; font-weight: 800; font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
}
.navbar-brand .logo-mark-img { width: 48px; height: 48px; flex: 0 0 auto; }
.site-footer .logo-mark-img { width: 46px; height: 46px; }
.navbar-brand .brand-text { line-height: 1.1; }
.navbar-brand .brand-text strong { color: var(--brand); font-family: 'Poppins', sans-serif; font-size: 1.15rem; display: block; }
.navbar-brand .brand-text span { font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.site-nav .nav-link { font-weight: 600; color: var(--ink); padding: .5rem 1rem !important; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--brand); }
.dropdown-menu { border: none; box-shadow: var(--shadow); border-radius: 12px; padding: .5rem; }
.dropdown-item { border-radius: 8px; font-weight: 500; padding: .55rem .8rem; }
.dropdown-item:hover { background: var(--bg-soft); color: var(--brand); }

/* Open dropdowns on hover (desktop only) with a soft fade */
@media (min-width: 992px) {
    .site-nav .nav-item.dropdown { position: relative; }
    .site-nav .nav-item.dropdown > .dropdown-menu {
        display: block;
        top: 100%;
        left: 0;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: opacity .18s ease, transform .18s ease, visibility .18s;
        pointer-events: none;
    }
    /* Bridge the gap between the toggle and the menu so hover doesn't drop */
    .site-nav .nav-item.dropdown > .dropdown-menu::before {
        content: "";
        position: absolute;
        left: 0; right: 0;
        top: -12px;
        height: 12px;
    }
    .site-nav .nav-item.dropdown:hover > .dropdown-menu,
    .site-nav .nav-item.dropdown:focus-within > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    .site-nav .nav-item.dropdown:hover > .dropdown-toggle { color: var(--brand); }
}

/* ================= Hero slider ================= */
.hero { position: relative; }
.hero-slide {
    min-height: 620px; display: flex; align-items: center;
    background-size: cover; background-position: center; position: relative;
}
.hero-slide::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(9,28,48,.92) 0%, rgba(13,43,74,.78) 45%, rgba(13,43,74,.35) 100%);
}
.hero-slide.no-image { background: linear-gradient(120deg, var(--brand-dark), var(--brand-light)); }
.hero-content { position: relative; z-index: 2; color: #fff; padding: 60px 0; max-width: 660px; }
.hero-content .eyebrow { color: var(--accent); }
.hero-content h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.3rem); margin-bottom: 1.1rem; }
.hero-content p { color: #dce6f1; font-size: 1.14rem; margin-bottom: 1.8rem; }
.carousel-indicators [data-bs-target] { width: 12px; height: 12px; border-radius: 50%; }
.carousel-control-prev, .carousel-control-next { width: 6%; opacity: .8; }

/* Hero enquiry card */
.hero-form-card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 30px; position: relative; z-index: 3;
}
.hero-form-card h3 { font-size: 1.3rem; }

/* ================= Trust / stats bar ================= */
.stats-bar { background: var(--brand); color: #fff; }
.stat-item { padding: 30px 10px; text-align: center; }
.stat-item .num { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 2.3rem; color: var(--accent); }
.stat-item .lbl { color: #cdd9e6; font-size: .95rem; letter-spacing: .02em; }

/* ================= Cards ================= */
.card-clean { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: .25s ease; height: 100%; }
.card-clean:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }

.service-card { padding: 30px 26px; }
.service-card .svc-icon {
    width: 62px; height: 62px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(18,58,99,.10), rgba(29,84,144,.16)); color: var(--brand);
    font-size: 1.7rem; margin-bottom: 18px; transition: .25s ease;
}
.service-card:hover .svc-icon { background: var(--brand); color: #fff; }
.service-card h4 { font-size: 1.18rem; margin-bottom: .5rem; }
.service-card p { color: var(--muted); font-size: .96rem; margin-bottom: 1rem; }
.service-card .price { font-weight: 700; color: var(--accent-dark); font-size: .95rem; }
.service-card .arrow { color: var(--brand); font-weight: 600; font-size: .92rem; }

/* Category chips */
.cat-chip { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 30px; padding: .5rem 1.2rem; font-weight: 600; font-size: .92rem; transition: .2s; }
.cat-chip:hover, .cat-chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Why choose us */
.feature-row { display: flex; gap: 16px; align-items: flex-start; }
.feature-row .ico {
    flex: 0 0 auto; width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(245,166,35,.14); color: var(--accent-dark); font-size: 1.4rem;
}
.feature-row h5 { font-size: 1.08rem; margin-bottom: .25rem; }
.feature-row p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Process steps */
.step-card { text-align: center; padding: 26px 18px; }
.step-card .step-num {
    width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px;
    background: var(--brand); color: #fff; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.4rem;
    position: relative;
}

/* Testimonials */
.testimonial-card { padding: 30px; height: 100%; }
.testimonial-card .stars { color: var(--accent); margin-bottom: 12px; }
.testimonial-card .quote { color: var(--ink); font-size: 1rem; margin-bottom: 20px; }
.testimonial-card .who { display: flex; align-items: center; gap: 12px; }
.testimonial-card .who .avatar {
    width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
    background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700;
}
.testimonial-card .who strong { display: block; color: var(--brand); }
.testimonial-card .who small { color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--brand-dark), var(--brand-light)); color: #fff; border-radius: 20px; padding: 50px; }
.cta-band h2 { color: #fff; }

/* FAQ */
.accordion-button { font-weight: 600; color: var(--brand); background: #fff; }
.accordion-button:not(.collapsed) { color: var(--brand); background: var(--bg-soft); box-shadow: none; }
.accordion-button:focus { box-shadow: none; }
.accordion-item { border: 1px solid var(--line); border-radius: 12px !important; margin-bottom: 12px; overflow: hidden; }

/* Page hero */
.page-hero { background: linear-gradient(120deg, var(--brand-dark), var(--brand-light)); color: #fff; padding: 70px 0; }
.page-hero h1 { color: #fff; }
.page-hero .breadcrumb a { color: #cdd9e6; }
.page-hero .breadcrumb .active { color: #fff; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* Team */
.team-card { text-align: center; padding: 26px; }
.team-card .avatar {
    width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--brand), var(--brand-light)); color: #fff;
    display: grid; place-items: center; font-size: 2rem; font-weight: 700; font-family: 'Poppins', sans-serif;
}
.team-card h5 { margin-bottom: .2rem; }
.team-card .role { color: var(--accent-dark); font-weight: 600; font-size: .9rem; }

/* Service detail */
.svc-detail-content { font-size: 1.02rem; color: #3a4657; }
.svc-detail-content h3, .svc-detail-content h4 { margin-top: 1.5rem; color: var(--brand); }
.svc-detail-content ul { padding-left: 1.1rem; }
.svc-detail-content li { margin-bottom: .4rem; }
.svc-feature-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: .7rem; }
.svc-feature-list li i { color: #22a06b; margin-top: 3px; }
.sticky-side { position: sticky; top: 100px; }

/* Prose (CMS pages) */
.prose { font-size: 1.03rem; color: #3a4657; }
.prose h2, .prose h3, .prose h4 { color: var(--brand); margin-top: 1.6rem; margin-bottom: .7rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose p { margin-bottom: 1rem; }

/* ================= Footer ================= */
.site-footer { background: var(--brand-dark); color: #b9c6d6; padding-top: 66px; }
.site-footer h5 { color: #fff; font-size: 1.05rem; margin-bottom: 1.1rem; }
.site-footer a { color: #b9c6d6; transition: .2s; }
.site-footer a:hover { color: var(--accent); padding-left: 4px; }
.site-footer .footer-links li { margin-bottom: .55rem; }
.site-footer .contact-line { display: flex; gap: 10px; margin-bottom: .8rem; }
.site-footer .contact-line i { color: var(--accent); margin-top: 3px; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 9px; display: inline-grid; place-items: center;
    background: rgba(255,255,255,.08); color: #fff; margin-right: 8px;
}
.footer-social a:hover { background: var(--accent); padding-left: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding: 22px 0; font-size: .88rem; }

/* Floating buttons */
.float-wa {
    position: fixed; right: 22px; bottom: 22px; z-index: 1040;
    width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
    display: grid; place-items: center; font-size: 1.7rem; box-shadow: var(--shadow);
    animation: pulse 2.2s infinite;
}
.float-wa:hover { color: #fff; transform: scale(1.05); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5);} 70%{ box-shadow: 0 0 0 16px rgba(37,211,102,0);} 100%{ box-shadow: 0 0 0 0 rgba(37,211,102,0);} }

/* Alerts */
.alert { border: none; border-radius: 12px; }

/* Forms */
.form-control, .form-select { border-radius: 10px; padding: .7rem .9rem; border-color: var(--line); }
.form-control:focus, .form-select:focus { border-color: var(--brand-light); box-shadow: 0 0 0 .2rem rgba(29,84,144,.12); }
.form-label { font-weight: 600; font-size: .92rem; color: var(--ink); }

@media (max-width: 991px) {
    .hero-slide { min-height: 520px; }
    .section { padding: 60px 0; }
    .site-nav .nav-link { padding: .5rem .4rem !important; }
}

/* =========================================================
   Page loader (branded)
   ========================================================= */
#page-loader {
    position: fixed; inset: 0; z-index: 3000;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    display: grid; place-items: center;
    transition: opacity .5s ease, visibility .5s ease;
    animation: loaderFailsafe 0s linear 6s forwards; /* hide even if JS load never fires */
}
#page-loader.is-hidden { opacity: 0; visibility: hidden; }
@keyframes loaderFailsafe { to { opacity: 0; visibility: hidden; } }
.loader-inner { text-align: center; }
.loader-badge {
    width: 90px; height: 90px; border-radius: 22px; margin: 0 auto 22px;
    background: linear-gradient(135deg, #143f6e, #1f5c9e);
    box-shadow: 0 22px 55px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.12);
    display: flex; align-items: flex-end; justify-content: center; gap: 8px; padding: 22px 20px;
}
.loader-badge .bar {
    width: 12px; border-radius: 3px; transform-origin: bottom;
    background: linear-gradient(#f8bf49, #e08e0b);
    animation: barPulse 1.05s ease-in-out infinite;
}
.loader-badge .bar:nth-child(1) { height: 34%; animation-delay: 0s; }
.loader-badge .bar:nth-child(2) { height: 66%; animation-delay: .14s; }
.loader-badge .bar:nth-child(3) { height: 100%; animation-delay: .28s; }
@keyframes barPulse { 0%,100% { transform: scaleY(.45); opacity: .55; } 50% { transform: scaleY(1); opacity: 1; } }
.loader-title { color: #fff; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.25rem; }
.loader-title span { color: #f5b641; }
.loader-sub { color: #9fb4cc; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; margin-top: 5px; }
.loader-bar { width: 170px; height: 3px; background: rgba(255,255,255,.15); border-radius: 3px; margin: 20px auto 0; overflow: hidden; }
.loader-bar::after { content: ""; display: block; height: 100%; width: 40%; border-radius: 3px; background: var(--accent); animation: loadSlide 1.2s ease-in-out infinite; }
@keyframes loadSlide { 0% { transform: translateX(-130%); } 100% { transform: translateX(330%); } }

/* =========================================================
   Scroll-reveal animations
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.65,.2,1), transform .7s cubic-bezier(.2,.65,.2,1); will-change: opacity, transform; }
.reveal.reveal-left { transform: translateX(-34px); }
.reveal.reveal-right { transform: translateX(34px); }
.reveal.reveal-zoom { transform: scale(.94); }
.reveal.in-view { opacity: 1; transform: none; }

/* Hero content entrance on load */
.hero-content > * { opacity: 0; animation: heroUp .8s cubic-bezier(.2,.65,.2,1) both; }
.hero-content > *:nth-child(1) { animation-delay: .15s; }
.hero-content > *:nth-child(2) { animation-delay: .28s; }
.hero-content > *:nth-child(3) { animation-delay: .41s; }
.hero-content > *:nth-child(4) { animation-delay: .54s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Draggable hero slider */
.hero { cursor: grab; }
.hero.is-dragging { cursor: grabbing; user-select: none; }
.hero.is-dragging .hero-slide { pointer-events: none; }
.hero img, .hero .hero-slide { -webkit-user-drag: none; user-drag: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal, .hero-content > * { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
    .loader-badge .bar, .loader-bar::after { animation: none !important; }
}

/* =========================================================
   Mobile / tablet off-canvas sidebar menu
   ========================================================= */
.nav-backdrop {
    position: fixed; inset: 0; background: rgba(9, 20, 34, .55); z-index: 1044;
    opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
.navbar-toggler { border: none; box-shadow: none !important; }

@media (min-width: 992px) {
    .nav-backdrop { display: none; }
    .mobile-drawer-head { display: none; }
}

@media (max-width: 991.98px) {
    #mainNav {
        position: fixed; top: 0; left: 0; bottom: 0;
        width: 300px; max-width: 84vw;
        background: var(--brand-dark);
        z-index: 1045;
        display: block !important;
        transform: translateX(-100%);
        transition: transform .32s cubic-bezier(.4, 0, .2, 1);
        overflow-y: auto;
        box-shadow: 6px 0 34px rgba(0, 0, 0, .32);
        padding: 0 0 1.5rem;
    }
    #mainNav.is-open { transform: translateX(0); }

    .mobile-drawer-head {
        display: flex; align-items: center; justify-content: space-between;
        padding: 1rem 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .12);
    }
    .drawer-brand { display: flex; align-items: center; gap: .55rem; }
    .drawer-brand strong { color: #fff; font-family: 'Poppins', sans-serif; font-size: 1.02rem; }
    .drawer-close {
        width: 38px; height: 38px; border-radius: 50%; border: none; flex: 0 0 auto;
        background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; font-size: 1rem;
    }
    .drawer-close:hover { background: rgba(255, 255, 255, .22); }

    #mainNav .navbar-nav { padding: .5rem .85rem 0; }
    #mainNav .nav-item { width: 100%; }
    #mainNav .nav-link {
        color: #dbe4ee !important; font-weight: 600; padding: .9rem .55rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        display: flex; align-items: center; justify-content: space-between;
    }
    #mainNav .nav-link:hover, #mainNav .nav-link.active { color: var(--accent) !important; }
    #mainNav .nav-item.ms-lg-3 { margin-top: 1.1rem; padding: 0 .55rem; }
    #mainNav .nav-item.ms-lg-3 .btn { width: 100%; }

    /* Services submenu → inline stacked list inside the drawer, expandable */
    #mainNav .dropdown-menu {
        display: none;
        position: static !important; float: none; width: 100%;
        transform: none !important; inset: auto !important;
        background: rgba(255, 255, 255, .05); box-shadow: none; border: none; border-radius: 9px;
        margin: .1rem 0 .6rem; padding: .35rem .4rem;
    }
    #mainNav .nav-item.submenu-open > .dropdown-menu { display: block; }
    #mainNav .dropdown-item { color: #b9c6d6; padding: .6rem .7rem; border-radius: 7px; white-space: normal; }
    #mainNav .dropdown-item:hover { background: rgba(255, 255, 255, .09); color: #fff; }
    #mainNav .dropdown-divider { border-color: rgba(255, 255, 255, .14); }
    #mainNav .dropdown-toggle::after {
        margin-left: auto; transition: transform .25s ease; font-size: 1.1em;
    }
    #mainNav .nav-item.submenu-open > .dropdown-toggle::after { transform: rotate(180deg); }

    body.nav-open { overflow: hidden; }
    body.nav-open .float-wa { opacity: 0; visibility: hidden; }
}

/* =========================================================
   Touch devices: kill movement-based :hover effects.
   On touch, the first tap only triggers a moving/lifting :hover state and the
   link needs a second tap to activate ("double-tap" bug). Disabling the movement
   makes every link/button/card respond on the first tap.
   ========================================================= */
@media (hover: none) {
    .btn:hover, .btn-accent:hover, .btn-brand:hover,
    .btn-outline-brand:hover, .btn-outline-light:hover,
    .card-clean:hover, .service-card:hover, .float-wa:hover {
        transform: none !important;
    }
    .card-clean:hover { border-color: var(--line); }
    .site-footer a:hover { padding-left: 0; }
    .site-nav .nav-link:hover { color: var(--ink); }
    #mainNav .nav-link:hover { color: #dbe4ee !important; }
}
