/* ============================================================
   Shree Advertising & Marketing — Custom Theme
   ============================================================ */

:root {
    --navy: #0f1729;
    --navy-2: #16203a;
    --primary: #ff5b2e;
    --primary-2: #ff9e2c;
    --grad: linear-gradient(135deg, #ff5b2e 0%, #ff9e2c 100%);
    --grad-soft: linear-gradient(135deg, rgba(255,91,46,.12), rgba(255,158,44,.12));
    --ink: #1c2536;
    --muted: #6b7280;
    --line: #e9ecf3;
    --light: #f6f7fb;
    --shadow: 0 18px 50px rgba(15, 23, 41, .10);
    --shadow-sm: 0 8px 24px rgba(15, 23, 41, .08);
    --radius: 18px;
}

* { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--ink);
    background: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -.02em;
}

p { color: var(--muted); line-height: 1.75; }

a { text-decoration: none; }

.section { padding: 100px 0; }
.bg-soft { background: var(--light); }
.text-grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- Section heading ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--grad-soft);
    border: 1px solid rgba(255,91,46,.25);
    padding: 7px 16px;
    border-radius: 30px;
    margin-bottom: 18px;
}
.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.15; }
.section-sub { max-width: 620px; margin: 14px auto 0; }

/* ---------- Buttons ---------- */
.btn-grad {
    background: var(--grad);
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 12px 26px rgba(255,91,46,.35);
    transition: .35s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-grad:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 18px 34px rgba(255,91,46,.45); }

.btn-ghost {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--line);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: .35s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost.light { color: #fff; border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.14); backdrop-filter: blur(4px); }
.btn-ghost.light:hover { background: #fff; border-color: #fff; color: var(--navy); }

/* ---------- Top bar ---------- */
.topbar {
    background: var(--navy);
    color: #aeb7c8;
    font-size: 13.5px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar a { color: #aeb7c8; transition: .3s; }
.topbar a:hover { color: var(--primary-2); }
.topbar span, .topbar a { display: inline-flex; align-items: center; }
.topbar i { color: var(--primary-2); margin-right: 7px; }
.topbar .tb-sep { width: 1px; height: 14px; background: rgba(255,255,255,.16); margin: 0 10px; }
.topbar .tb-right { gap: 20px; }
.topbar .tb-social { gap: 8px; }
.topbar .tb-social a { width: 27px; height: 27px; border-radius: 50%; background: rgba(255,255,255,.09); justify-content: center; }
.topbar .tb-social a i { margin: 0; color: #fff; font-size: 12px; }
.topbar .tb-social a:hover { background: var(--grad); }
.topbar .tb-social a:hover i { color: #fff; }

/* ---------- Navbar ---------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transition: .35s;
}
.site-nav.scrolled { box-shadow: var(--shadow-sm); background: #fff; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-logo { height: 64px; width: auto; max-width: 320px; object-fit: contain; display: block; transition: transform .3s ease; mix-blend-mode: multiply; }
.brand:hover .brand-logo { transform: scale(1.03); }
@media (max-width: 575px){ .brand-logo { height: 48px; max-width: 230px; } }

/* keep sticky-nav from hiding anchor targets */
section[id], header[id] { scroll-margin-top: 92px; }
.brand-txt { font-family: 'Poppins', sans-serif; font-weight: 700; line-height: 1; color: var(--navy); }
.brand-txt span { display: block; font-size: 20px; }
.brand-txt small { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--primary); font-weight: 600; }
.navbar-nav .nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: var(--navy) !important;
    padding: 8px 16px !important;
    position: relative;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 16px; bottom: 2px;
    width: 0; height: 2px;
    background: var(--grad);
    transition: .3s;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { width: calc(100% - 32px); }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--primary) !important; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 94vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #0b111f; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroKen 30s infinite;
    will-change: opacity, transform;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
.hero-slide:nth-child(4) { animation-delay: 18s; }
.hero-slide:nth-child(5) { animation-delay: 24s; }
@keyframes heroKen {
    0%   { opacity: 0; transform: scale(1.06); }
    3%   { opacity: 1; }
    18%  { opacity: 1; transform: scale(1.14); }
    21%  { opacity: 0; transform: scale(1.15); }
    100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-slide { animation: heroFadeOnly 30s infinite; }
    @keyframes heroFadeOnly { 0%{opacity:0;} 3%{opacity:1;} 18%{opacity:1;} 21%{opacity:0;} 100%{opacity:0;} }
}
.hero-media::after {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(11,17,31,.64) 0%, rgba(11,17,31,.68) 55%, rgba(11,17,31,.76) 100%),
        radial-gradient(135% 130% at 50% 42%, rgba(11,17,31,.20), rgba(11,17,31,.70) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 940px; }
.hero-title { font-size: clamp(2.5rem, 5.8vw, 4.6rem); line-height: 1.04; color: #fff; letter-spacing: -.02em; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.16rem; max-width: 640px; color: #e2e7f1; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-tags span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); padding: 7px 16px; border-radius: 30px; font-size: 13px; font-weight: 600; color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.hero-tags i { color: var(--primary-2); }
.hero-scroll { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2; color: #fff; opacity: .75; font-size: 20px; animation: floaty 2s ease-in-out infinite; }
.hero-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px; margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); }
.ht-item { display: inline-flex; align-items: center; gap: 10px; color: #eef1f7; font-weight: 500; font-size: 14.5px; }
.ht-item i { color: var(--primary-2); font-size: 18px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28);
    backdrop-filter: blur(6px);
    padding: 8px 18px; border-radius: 50px;
    font-weight: 600; font-size: 14px; color: #fff;
    margin-bottom: 22px;
}
.hero-badge i { color: var(--primary); }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; border-radius: 26px; }
.hero-blob {
    position: absolute; inset: -6% -6% -6% -6%;
    background: var(--grad); border-radius: 40% 60% 55% 45% / 55% 45% 60% 40%;
    filter: blur(2px); opacity: .16; z-index: 0;
    animation: morph 9s ease-in-out infinite;
}
@keyframes morph {
    0%,100% { border-radius: 40% 60% 55% 45% / 55% 45% 60% 40%; }
    50% { border-radius: 60% 40% 45% 55% / 45% 60% 40% 55%; }
}
.hero-float {
    position: absolute; background: #fff; border-radius: 16px;
    box-shadow: var(--shadow); padding: 14px 18px; z-index: 3;
    display: flex; align-items: center; gap: 12px;
}
.hero-float i { font-size: 22px; color: var(--primary); }
.hero-float strong { font-family: 'Poppins'; font-size: 18px; color: var(--navy); display: block; line-height: 1; }
.hero-float small { color: var(--muted); font-size: 12px; }
.hero-float.f1 { top: 12%; left: -18px; animation: floaty 4s ease-in-out infinite; }
.hero-float.f2 { bottom: 12%; right: -14px; animation: floaty 4s ease-in-out infinite 1.5s; }
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-12px);} }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 36px; }
.hero-stats .num { font-family: 'Poppins'; font-weight: 700; font-size: 2.1rem; color: #fff; }
.hero-stats .lbl { font-size: 13px; color: #aeb7c8; }

/* ---------- Marquee (trusted by) ---------- */
.marquee-wrap { background: var(--navy); padding: 26px 0; overflow: hidden; }
.marquee-title { color: #7c88a1; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; text-align: center; margin-bottom: 18px; }
.marquee { display: flex; gap: 60px; width: max-content; animation: scroll-x 28s linear infinite; }
.marquee span { color: #e7ecf5; font-family: 'Poppins'; font-weight: 600; font-size: 19px; opacity: .8; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.marquee span i { color: var(--primary-2); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Specialization ---------- */
.spec-card {
    position: relative; overflow: hidden;
    border-radius: var(--radius);
    padding: 40px; height: 100%;
    color: #fff; box-shadow: var(--shadow);
    transition: .4s;
}
.spec-card::before { content:''; position:absolute; inset:0; background: rgba(15,23,41,.72); z-index:1; }
.spec-card > * { position: relative; z-index: 2; }
.spec-card:hover { transform: translateY(-8px); }
.spec-card .ic { width: 66px; height: 66px; display:flex; align-items:center; justify-content:center; border-radius: 16px; background: var(--grad); font-size: 28px; color:#fff; margin-bottom: 22px; }
.spec-card h3 { color: #fff; }
.spec-card p { color: #d6dce8; }
.spec-auto { background: url(../img/PVC-Banners.jpg) center/cover; }
.spec-school { background: url(../img/certi.jpg) center/cover; }

/* ---------- Services ---------- */
.svc-tabs { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin-bottom: 46px; }
.svc-tab {
    border: 1px solid var(--line); background:#fff; color: var(--navy);
    font-family:'Poppins'; font-weight:600; font-size:15px;
    padding: 13px 26px; border-radius: 50px; cursor:pointer; transition:.3s;
    display:inline-flex; align-items:center; gap:9px;
}
.svc-tab i { color: var(--primary); transition:.3s; }
.svc-tab:hover { border-color: var(--primary); }
.svc-tab.active { background: var(--grad); color:#fff; border-color:transparent; box-shadow: 0 12px 24px rgba(255,91,46,.3); }
.svc-tab.active i { color:#fff; }

.svc-panel { display:none; }
.svc-panel.active { display:block; animation: fadeUp .5s ease; }
@keyframes fadeUp { from{opacity:0; transform:translateY(14px);} to{opacity:1; transform:translateY(0);} }

.svc-card {
    background:#fff; border:1px solid var(--line); border-radius:16px;
    overflow:hidden; height:100%; transition:.35s; text-align:center;
}
.svc-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: transparent; }
.svc-card .thumb { height: 130px; overflow:hidden; background:#f5f5f5; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.svc-card .thumb img { width:100%; height:100%; object-fit:contain; padding:10px; transition:.5s; }
.svc-card:hover .thumb img { transform: scale(1.06); }
/* Two-image (auto-changing) product cards */
.svc-card .thumb.multi { position: relative; }
.svc-card .thumb.multi img { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.svc-card .thumb.multi img.on { opacity: 1; }
.svc-card .ic-wrap { height:130px; display:flex; align-items:center; justify-content:center; background: var(--grad-soft); }
.svc-card .ic-wrap i { font-size:42px; color: var(--primary); }
.svc-card .body { padding: 16px 12px; }
.svc-card h6 { margin:0; font-size:15px; font-weight:600; }
.svc-card small { color: var(--muted); font-size:12px; }

/* ---------- Feature / why us ---------- */
.feature {
    background:#fff; border:1px solid var(--line); border-radius:var(--radius);
    padding: 30px; height:100%; transition:.35s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature .ic { width:58px; height:58px; border-radius:14px; background: var(--grad-soft); color: var(--primary); font-size:24px; display:flex; align-items:center; justify-content:center; margin-bottom:18px; }
.feature h5 { font-size:18px; margin-bottom:10px; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--grad); }
.stat-item { text-align:center; color:#fff; padding: 10px; }
.stat-item .n { font-family:'Poppins'; font-weight:700; font-size: clamp(2.2rem,5vw,3.2rem); line-height:1; }
.stat-item .t { font-weight:500; opacity:.95; margin-top:6px; }

/* ---------- Gallery ---------- */
.gal { position:relative; border-radius:16px; overflow:hidden; height:240px; box-shadow: var(--shadow-sm); background:#f5f5f5; }
.gal img { width:100%; height:100%; object-fit:contain; padding:8px; transition:.5s; }
.gal:hover img { transform: scale(1.05); }
.gal .cap {
    position:absolute; inset:0; display:flex; flex-direction:column; justify-content:flex-end;
    padding: 20px; color:#fff;
    background: linear-gradient(to top, rgba(15,23,41,.85), transparent 60%);
    opacity:0; transition:.4s;
}
.gal:hover .cap { opacity:1; }
.gal .cap h5 { color:#fff; margin:0; }
.gal .cap .plus { position:absolute; top:16px; right:16px; width:44px; height:44px; border-radius:50%; background: var(--grad); display:flex; align-items:center; justify-content:center; color:#fff; }

/* ---------- Process ---------- */
.step { text-align:center; position:relative; }
.step .circle {
    width: 86px; height:86px; border-radius:50%; margin:0 auto 20px;
    background:#fff; border:2px dashed var(--primary); color:var(--primary);
    display:flex; align-items:center; justify-content:center; font-size:30px;
    position:relative; transition:.4s;
}
.step:hover .circle { background: var(--grad); color:#fff; border-style:solid; }
.step .n { position:absolute; top:-6px; right:-6px; width:28px; height:28px; border-radius:50%; background: var(--navy); color:#fff; font-size:13px; display:flex; align-items:center; justify-content:center; font-family:'Poppins'; font-weight:600; }

/* ---------- Testimonials ---------- */
.tcard { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding: 30px; height:100%; transition:.35s; }
.tcard:hover { box-shadow: var(--shadow); transform: translateY(-6px); }
.tcard .stars i { color: #ffb400; font-size:14px; }
.tcard .quote { font-size:15.5px; color: var(--ink); margin: 16px 0 22px; }
.tcard .who { display:flex; align-items:center; gap:14px; }
.tcard .who img { width:52px; height:52px; border-radius:50%; object-fit:cover; }
.tcard .who h6 { margin:0; font-size:15px; }
.tcard .who small { color: var(--muted); }

/* ---------- Clients ---------- */
.client-head { display:inline-flex; align-items:center; gap:12px; margin-bottom: 8px; }
.client-head .ic { width:52px;height:52px;border-radius:14px;background:var(--grad);color:#fff;display:flex;align-items:center;justify-content:center;font-size:22px; }
.cchip {
    background:#fff; border:1px solid var(--line); border-radius:14px;
    padding: 18px 14px; text-align:center; height:100%; transition:.3s;
    display:flex; flex-direction:column; align-items:center; gap:8px;
}
.cchip:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); border-color: var(--primary); }
.cchip i { font-size:26px; color: var(--primary); }
.cchip span { font-family:'Poppins'; font-weight:500; font-size:14px; color:var(--navy); }

/* ---------- CTA band ---------- */
.cta-band {
    position:relative; border-radius: 28px; overflow:hidden;
    background: var(--grad); padding: 60px; color:#fff;
}
.cta-band::after { content:''; position:absolute; right:-40px; top:-40px; width:220px; height:220px; border-radius:50%; background: rgba(255,255,255,.12); }
.cta-band h2 { color:#fff; }

/* ---------- Contact ---------- */
.contact-card { background:#fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; }
.form-control, .form-select { border:1px solid var(--line); border-radius: 12px; padding: 13px 16px; font-size:15px; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(255,91,46,.12); }
.contact-info-item { display:flex; gap:16px; margin-bottom: 26px; }
.contact-info-item .ic { flex-shrink:0; width:52px; height:52px; border-radius:14px; background: var(--grad-soft); color:var(--primary); display:flex; align-items:center; justify-content:center; font-size:20px; }
.contact-info-item h6 { margin:0 0 3px; }
.map-frame { border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); line-height:0; }
.map-facade {
    width: 100%; height: 340px; border: 0; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    color: #fff; text-align: center; line-height: 1.4;
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    transition: .3s;
}
.map-facade .mf-pin { width: 64px; height: 64px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 27px; margin-bottom: 8px; transition: .3s; }
.map-facade .mf-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 18px; }
.map-facade .mf-addr { color: #aeb7c8; font-size: 14px; }
.map-facade .mf-btn { margin-top: 12px; background: var(--grad); padding: 10px 24px; border-radius: 50px; font-weight: 600; font-family: 'Poppins', sans-serif; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.map-facade:hover .mf-pin { transform: scale(1.08); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color:#aab3c5; padding: 70px 0 0; }
.footer h5 { color:#fff; margin-bottom: 22px; font-size:17px; }
.footer a { color:#aab3c5; transition:.3s; }
.footer a:hover { color: var(--primary-2); }
.footer .fbrand { display:flex; align-items:center; gap:12px; margin-bottom:18px; }
.footer .footer-logo { height:64px; width:auto; max-width:280px; background:#fff; padding:10px 16px; border-radius:12px; }
.footer ul { list-style:none; padding:0; margin:0; }
.footer ul li { margin-bottom: 12px; }
.footer .soc { display:flex; gap:10px; margin-top:18px; }
.footer .soc a { width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;color:#fff; }
.footer .soc a:hover { background: var(--grad); }
.footer-bottom { border-top:1px solid rgba(255,255,255,.08); margin-top:50px; padding: 22px 0; font-size:14px; }

/* ---------- Floating buttons ---------- */
.wa-float { position:fixed; right:22px; bottom:22px; z-index:999; width:58px; height:58px; border-radius:50%; background:#25d366; color:#fff; display:flex; align-items:center; justify-content:center; font-size:28px; box-shadow: 0 10px 26px rgba(37,211,102,.5); animation: floaty 3s ease-in-out infinite; }
.wa-float:hover { color:#fff; transform: scale(1.08); }
.to-top { position:fixed; right:22px; bottom:90px; z-index:999; width:46px; height:46px; border-radius:50%; background: var(--navy); color:#fff; display:flex; align-items:center; justify-content:center; opacity:0; visibility:hidden; transition:.4s; border:none; }
.to-top.show { opacity:1; visibility:visible; }
.to-top:hover { background: var(--primary); }

/* ---------- Spinner ---------- */
#preloader { position:fixed; inset:0; background:#fff; z-index:99999; display:flex; align-items:center; justify-content:center; transition:opacity .5s; }
#preloader .ldr { width:52px; height:52px; border:5px solid var(--line); border-top-color: var(--primary); border-radius:50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 991px){
    .section { padding: 70px 0; }
    .hero { min-height: auto; padding: 80px 0 70px; }
    .hero-float { display:none; }
    .cta-band { padding: 40px 26px; }
    .contact-card { padding: 26px; }
}
@media (max-width: 575px){
    .section { padding: 56px 0; }
    .section-title { font-size: 1.75rem; }
    .svc-tab { font-size: 13px; padding: 10px 15px; }
    .svc-tabs { gap: 8px; }
    .cchip span { font-size: 13px; }
    .eyebrow { font-size: 12px; }
    .cta-band h2 { font-size: 1.4rem; }
    /* Hero scales down cleanly on phones (375–428px) */
    .hero { padding: 56px 0 60px; }
    .hero-title { font-size: 1.95rem; line-height: 1.15; }
    .hero .lead { font-size: 1rem; }
    .hero-badge { font-size: 12px; padding: 7px 14px; }
    .hero-trust { gap: 10px 18px; margin-top: 22px; padding-top: 20px; }
    .ht-item { font-size: 12.5px; }
    .ht-item i { font-size: 15px; }
    /* Floating buttons: clear of edges/scrollbar */
    .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; font-size: 24px; }
    .to-top { right: 16px; bottom: 76px; width: 42px; height: 42px; }
}
@media (max-width: 400px){
    .hero-title { font-size: 1.7rem; }
}
/* Consistent card image height across service grid */
.svc-card .thumb, .svc-card .ic-wrap { height: 180px; }
.gal { height: 250px; }

/* Work gallery: auto-changing (paired) cards */
.gal.multi img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px; opacity: 0; transition: opacity .8s ease; }
.gal.multi img.on { opacity: 1; }
.gal.multi:hover img.on { transform: scale(1.05); }

/* Work gallery: video cards */
.gal-video { cursor: pointer; }
.gal-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Full-screen video popup */
.vlb { position: fixed; inset: 0; z-index: 99999; background: rgba(9,13,25,.95); display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s ease; }
.vlb.open { display: flex; opacity: 1; }
.vlb-stage { max-width: 92vw; max-height: 86vh; line-height: 0; }
.vlb video { max-width: 92vw; max-height: 86vh; border-radius: 10px; background: #000; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.gal-badge { position: absolute; top: 14px; left: 14px; z-index: 3; background: var(--grad); color: #fff; padding: 5px 13px; border-radius: 30px; font-size: 12px; font-weight: 600; font-family: 'Poppins', sans-serif; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 6px 16px rgba(255,91,46,.4); }
.gal-video .cap { opacity: 1; background: linear-gradient(to top, rgba(15,23,41,.8), transparent 55%); }

/* ---------- Service Lightbox ---------- */
.slb { position: fixed; inset: 0; z-index: 99999; background: rgba(9,13,25,.93); display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s ease; }
.slb.open { display: flex; opacity: 1; }
.slb-stage { position: relative; max-width: 92vw; text-align: center; }
.slb-img { max-width: 92vw; max-height: 76vh; object-fit: contain; border-radius: 10px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: slbIn .3s ease; }
@keyframes slbIn { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.slb-cap { color: #fff; font-family: 'Poppins', sans-serif; font-weight: 600; margin-top: 16px; font-size: 18px; }
.slb-count { color: #aeb7c8; font-size: 13px; margin-top: 4px; }
.slb-close { position: fixed; top: 20px; right: 24px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; border: none; font-size: 24px; line-height: 1; cursor: pointer; transition: .3s; z-index: 2; }
.slb-close:hover { background: var(--grad); transform: rotate(90deg); }
.slb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; border: none; font-size: 30px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: .3s; z-index: 2; }
.slb-prev { left: 24px; }
.slb-next { right: 24px; }
.slb-nav:hover { background: var(--grad); }
@media (max-width: 575px){
    .slb-nav { width: 42px; height: 42px; font-size: 24px; left: 10px; }
    .slb-next { right: 10px; }
    .slb-close { top: 12px; right: 12px; width: 40px; height: 40px; }
    .slb-img { max-height: 68vh; }
    .slb-cap { font-size: 16px; }
}

/* ---------- Color utility overrides ---------- */
.text-primary { color: var(--primary) !important; }
.text-primary-2 { color: var(--primary-2) !important; }
.rounded-4 { border-radius: var(--radius) !important; }


/* ============================================================
   MOBILE CUSTOMIZATIONS (desktop ≥992px unchanged)
   ============================================================ */
@media (max-width: 991.98px) {
    /* Mobile nav menu as a clean white card */
    .site-nav .navbar-collapse {
        background: #fff;
        margin-top: 12px;
        border-radius: 14px;
        padding: 10px 16px 16px;
        box-shadow: var(--shadow);
        border: 1px solid var(--line);
    }
    .site-nav .navbar-nav { margin: 0 !important; }
    .site-nav .navbar-nav .nav-link {
        padding: 13px 6px !important;
        font-size: 16px;
        border-bottom: 1px solid var(--line);
    }
    .site-nav .navbar-nav .nav-item:last-child .nav-link { border-bottom: 0; }
    .site-nav .navbar-nav .nav-link::after { display: none; }
    .site-nav .btn-grad { width: 100%; justify-content: center; margin: 14px 0 4px !important; padding: 13px; }
    .navbar-toggler { padding: 6px 10px; }
    .navbar-toggler:focus { box-shadow: none; }
    /* Ensure the hamburger icon is clearly visible (brand orange) */
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ff5b2e' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
}

@media (max-width: 575.98px) {
    /* A touch more side breathing room */
    .container, .container-fluid { padding-left: 18px; padding-right: 18px; }

    /* Hero: full-width, easy-to-tap buttons */
    .hero-inner .btn-grad,
    .hero-inner .btn-ghost { width: 100%; justify-content: center; }
    .hero-trust { justify-content: center; }

    /* Services: tighter image height + swipeable category tabs */
    .svc-card .thumb, .svc-card .ic-wrap { height: 140px; }
    .svc-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 8px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .svc-tabs::-webkit-scrollbar { display: none; }
    .svc-tab { flex: 0 0 auto; white-space: nowrap; }

    /* Work gallery slightly shorter on phones */
    .gal { height: 210px; }

    /* Cards & forms: comfortable padding */
    .feature { padding: 22px; }
    .contact-card { padding: 20px; }
    .spec-card { padding: 28px 22px; }

    /* Footer: center the brand block for tidy stacking */
    .footer .fbrand { justify-content: center; }
    .footer .soc { justify-content: center; }
    .footer-bottom .container { justify-content: center; text-align: center; }
}
