/* JBB Smart Sales & Services — public site */
:root {
  --ink: #0f1b33;
  --ink-soft: #47546e;
  --bg: #ffffff;
  --bg-alt: #f2f6fc;
  --line: #e3e9f2;
  --brand: #0e4bd8;
  --brand-2: #0aa8a0;
  --accent: #ff7a1a;
  --accent-2: #ffb020;
  --grad: linear-gradient(92deg, #0e4bd8, #0aa8a0);
  --grad-warm: linear-gradient(92deg, #ff7a1a, #ffb020);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 27, 51, .10);
  --shadow-lg: 0 24px 60px rgba(15, 27, 51, .16);
  --cat: #0e4bd8;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.65; }
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; line-height: 1.22; }
img { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.muted { color: var(--ink-soft); font-size: .92rem; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn { display: inline-block; padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 2px solid transparent; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; }
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 14px 30px; font-size: 1.02rem; }
.btn-sm { padding: 7px 16px; font-size: .85rem; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-cta { background: var(--grad-warm); color: #fff; box-shadow: 0 8px 24px rgba(255, 122, 26, .35); }
.btn-cta:hover { box-shadow: 0 12px 30px rgba(255, 122, 26, .45); }
.btn-solid { background: var(--cat, var(--brand)); color: #fff; }
.btn-outline { border-color: var(--cat, var(--brand)); color: var(--cat, var(--brand)); background: #fff; }
.btn-outline:hover { background: var(--cat, var(--brand)); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(4px); }
.btn-white { background: #fff; color: var(--brand); }
.btn-ghost-w { border-color: rgba(255,255,255,.6); color: #fff; }

/* Topbar */
.topbar { background: var(--ink); color: #cfe0ff; font-size: .82rem; padding: 7px 0; }
.topbar-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; margin-left: 16px; }
.topbar-msg { opacity: .95; }

/* Header */
.header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { font-size: 30px; filter: drop-shadow(0 4px 8px rgba(14,75,216,.3)); }
.brand-logo { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: 'Poppins'; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand-name.light { color: #fff; }
.brand-tag { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brand-2); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--ink); font-weight: 500; font-size: .95rem; position: relative; }
.nav a:not(.btn)::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 3px; border-radius: 3px; background: var(--grad); transition: width .22s; }
.nav a:not(.btn):hover::after, .nav a.active::after { width: 100%; }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 3px; transition: .2s; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 75% -10%, #123a8f 0%, #0f1b33 55%), #0f1b33; color: #fff; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: float 9s ease-in-out infinite; }
.g1 { width: 380px; height: 380px; background: #0aa8a0; top: -120px; left: -100px; }
.g2 { width: 320px; height: 320px; background: #ff7a1a; bottom: -140px; right: 8%; animation-delay: -3s; }
.g3 { width: 260px; height: 260px; background: #2f6bff; top: 30%; right: -80px; animation-delay: -6s; }
@keyframes float { 50% { transform: translateY(-28px); } }
.hero-in { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; padding: 72px 20px 80px; }
.hero-badge { display: inline-block; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); padding: 7px 16px; border-radius: 999px; font-size: .85rem; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; margin-bottom: 18px; }
.hero-sub { color: #b9c7e4; font-size: 1.05rem; max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: 'Poppins'; font-size: 1.5rem; color: #ffb020; }
.hero-stats span { font-size: .8rem; color: #93a5cc; }
.hero-cards { display: flex; flex-direction: column; gap: 12px; }
.hero-card { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-left: 4px solid var(--cat); border-radius: 14px; padding: 14px 18px; color: #fff; font-weight: 600; transition: .2s; }
.hero-card:hover { background: rgba(255,255,255,.14); transform: translateX(6px); }
.hero-card-icon { font-size: 26px; }
.hero-card-name { flex: 1; }
.hero-card-arrow { color: var(--cat); font-weight: 800; }

/* Sections */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.section-head h2, .why-grid h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; margin: 8px 0 12px; }
.section-head p { color: var(--ink-soft); }
.kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-2); background: rgba(10,168,160,.1); padding: 5px 14px; border-radius: 999px; }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; transition: .22s; position: relative; overflow: hidden; }
.cat-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: var(--cat); }
.cat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cat-icon { width: 62px; height: 62px; display: grid; place-items: center; font-size: 30px; border-radius: 16px; background: color-mix(in srgb, var(--cat) 12%, #fff); margin-bottom: 16px; }
.cat-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.cat-card p { font-size: .88rem; color: var(--ink-soft); margin-bottom: 18px; }
.cat-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Product cards */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; margin-bottom: 34px; }
.prod-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); transition: .22s; display: flex; flex-direction: column; }
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.prod-img { position: relative; aspect-ratio: 4/3; background: linear-gradient(135deg, color-mix(in srgb, var(--cat) 14%, #fff), color-mix(in srgb, var(--cat) 4%, #fff)); display: grid; place-items: center; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-ph { font-family: 'Poppins'; font-size: 52px; color: color-mix(in srgb, var(--cat) 55%, #fff); font-weight: 800; }
.prod-badge { position: absolute; top: 12px; left: 12px; background: var(--grad-warm); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .08em; padding: 4px 12px; border-radius: 999px; box-shadow: 0 4px 12px rgba(255,122,26,.4); }
.prod-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-cat { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cat); }
.prod-body h3 { font-size: 1rem; }
.prod-price { margin-top: auto; font-family: 'Poppins'; font-weight: 700; color: var(--ink); font-size: 1.05rem; }

/* Why */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.check-list { list-style: none; }
.check-list li { padding: 9px 0 9px 34px; position: relative; color: var(--ink-soft); }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 7px; width: 24px; height: 24px; border-radius: 8px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.why-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: .2s; }
.why-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.why-card span { font-size: 28px; }
.why-card h4 { margin: 10px 0 6px; font-size: .98rem; }
.why-card p { font-size: .84rem; color: var(--ink-soft); }

/* Chips / areas */
.area-chips, .filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.filter-bar { margin-bottom: 34px; }
.chip { background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 18px; font-size: .88rem; font-weight: 500; color: var(--ink); transition: .18s; }
.chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.chip-on { background: var(--grad); color: #fff; border-color: transparent; }

/* CTA band */
.cta-band { background: var(--grad); color: #fff; padding: 54px 0; }
.cta-band-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 6px; }
.cta-band p { opacity: .92; }
.cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Page hero */
.page-hero { background: radial-gradient(900px 400px at 70% -20%, #16418f 0%, #0f1b33 60%), #0f1b33; color: #fff; text-align: center; padding: 64px 0; }
.page-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: #b9c7e4; max-width: 640px; margin: 0 auto; }
.page-hero-icon { font-size: 46px; display: block; margin-bottom: 10px; }

/* Services page */
.svc-row { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; padding: 40px 0; border-bottom: 1px solid var(--line); }
.svc-row.flip { grid-template-columns: 1fr 300px; }
.svc-row.flip .svc-visual { order: 2; }
.svc-visual { aspect-ratio: 1; border-radius: 24px; background: linear-gradient(135deg, color-mix(in srgb, var(--cat) 18%, #fff), color-mix(in srgb, var(--cat) 5%, #fff)); display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--cat) 25%, #fff); }
.svc-visual span { font-size: 92px; filter: drop-shadow(0 10px 20px color-mix(in srgb, var(--cat) 40%, transparent)); }
.svc-copy h2 { font-size: 1.5rem; margin-bottom: 8px; }
.svc-short { color: var(--cat); font-weight: 600; margin-bottom: 10px; }
.svc-copy p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 16px; }
.svc-detail .lead { font-size: 1.05rem; color: var(--ink-soft); max-width: 840px; }

/* Product detail */
.crumbs { font-size: .85rem; color: var(--ink-soft); margin-bottom: 26px; }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--brand); }
.pd-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 46px; align-items: start; }
.pd-media { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(135deg, color-mix(in srgb, var(--cat) 14%, #fff), #fff); }
.pd-media img { width: 100%; display: block; }
.pd-ph { aspect-ratio: 4/3; display: grid; place-items: center; font-family: 'Poppins'; font-weight: 800; font-size: 1.4rem; color: color-mix(in srgb, var(--cat) 60%, #fff); }
.pd-media .prod-badge { top: 16px; left: 16px; }
.pd-info h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 6px 0 12px; }
.pd-price { font-family: 'Poppins'; font-size: 1.5rem; font-weight: 800; color: var(--cat); margin-bottom: 16px; }
.pd-desc { color: var(--ink-soft); margin-bottom: 18px; }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0; }
.pd-actions .btn-ghost { border-color: var(--line); color: var(--ink); }
.pd-trust { font-size: .85rem; color: var(--ink-soft); background: var(--bg-alt); border-radius: 12px; padding: 12px 16px; }

/* Forms */
.booking-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 34px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 16px; }
.form input, .form select, .form textarea { width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: .95rem; background: #fbfcfe; transition: border .18s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .8rem; color: var(--ink-soft); margin-top: 12px; text-align: center; }
.alert { border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; font-size: .95rem; }
.alert-ok { background: #e8f9ef; border: 1px solid #9fe2b8; color: #14683a; }
.alert-err { background: #fdeeee; border: 1px solid #f3b3b3; color: #a02323; }
.booking-side { display: flex; flex-direction: column; gap: 18px; }
.side-card { background: var(--bg-alt); border-radius: 18px; padding: 24px; }
.side-card h3 { margin-bottom: 12px; }
.side-card .muted { margin-top: 8px; text-align: center; }
.side-card .btn { margin-bottom: 10px; }
.steps { padding-left: 18px; }
.steps li { padding: 6px 0; color: var(--ink-soft); }
.map-card iframe { width: 100%; border: 0; border-radius: 12px; min-height: 220px; }
.footer-contact.dark li, .footer-contact.dark a { color: var(--ink-soft); }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 16px 20px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin-top: 10px; color: var(--ink-soft); font-size: .93rem; }

/* CMS content */
.cms-content { max-width: 800px; }
.cms-content h2 { margin: 26px 0 12px; }
.cms-content h3 { margin: 20px 0 10px; }
.cms-content p { margin-bottom: 14px; color: var(--ink-soft); }
.cms-content ul, .cms-content ol { margin: 0 0 14px 22px; color: var(--ink-soft); }
.cms-content li { margin-bottom: 6px; }

/* Footer */
.footer { background: #0f1b33; color: #93a5cc; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 36px; padding: 56px 20px 36px; }
.footer h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 9px; font-size: .9rem; }
.footer a { color: #93a5cc; transition: color .15s; }
.footer a:hover { color: #ffb020; }
.footer-about { font-size: .88rem; margin-bottom: 16px; }
.socials { display: flex; gap: 14px; }
.socials a { font-size: .85rem; border: 1px solid #2a3a5c; padding: 6px 14px; border-radius: 999px; }
.footer-areas { border-top: 1px solid #223252; padding-top: 20px; padding-bottom: 20px; font-size: .82rem; }
.footer-areas strong { color: #cdd9f2; }
.footer-bottom { border-top: 1px solid #223252; padding: 18px 0; font-size: .82rem; text-align: center; }

/* Floating buttons */
.float-btn { position: fixed; right: 20px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; z-index: 80; box-shadow: 0 10px 26px rgba(0,0,0,.28); transition: transform .18s; }
.float-btn:hover { transform: scale(1.1); }
.float-wa { bottom: 88px; background: #25d366; }
.float-call { bottom: 22px; background: var(--grad-warm); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,122,26,.5); } 60% { box-shadow: 0 0 0 16px rgba(255,122,26,0); } }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 52px; }
  .why-grid, .pd-grid, .booking-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .svc-row, .svc-row.flip { grid-template-columns: 1fr; }
  .svc-row.flip .svc-visual { order: 0; }
  .svc-visual { max-width: 260px; }
}
@media (max-width: 760px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw); background: #fff; flex-direction: column; align-items: flex-start; padding: 90px 28px; gap: 20px; transform: translateX(100%); transition: transform .28s; box-shadow: -20px 0 60px rgba(0,0,0,.15); z-index: 70; }
  .nav.open { transform: none; }
  .nav-toggle { display: block; position: relative; z-index: 80; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hide-sm { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .section { padding: 54px 0; }
}

/* Service hero image + floating feature chips */
.svc-hero { position: relative; color: #fff; min-height: 420px; display: flex; align-items: center; overflow: hidden; }
.svc-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,27,51,.55), rgba(15,27,51,.82)); }
.svc-hero-content { position: relative; text-align: center; padding: 80px 20px 120px; width: 100%; }
.svc-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); font-weight: 800; margin-bottom: 12px; }
.svc-hero p { color: #d7e1f7; max-width: 640px; margin: 0 auto; }
.float-chips { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; z-index: 2; }
.float-chips.static { position: static; margin-top: 26px; }
.float-chip { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(10px); color: #fff; padding: 9px 18px; border-radius: 999px; font-size: .88rem; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.25); animation: chipfloat 3.6s ease-in-out infinite; }
@keyframes chipfloat { 50% { transform: translateY(-8px); } }
@media (max-width: 760px) { .svc-hero-content { padding-bottom: 150px; } }

/* Footer credit */
.footer-bottom-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.credit { color: #7f92bd; font-size: .82rem; letter-spacing: .02em; transition: color .2s; }
.credit strong { color: #cdd9f2; font-weight: 600; transition: color .2s; }
.credit-star { color: #ffb020; display: inline-block; transition: transform .35s; }
.credit:hover { color: #cdd9f2; }
.credit:hover strong { color: #ffb020; }
.credit:hover .credit-star { transform: rotate(180deg) scale(1.2); }
@media (max-width: 760px) { .footer-bottom-in { justify-content: center; text-align: center; } }
