/* =========================================================================
   Sonic Kommerce LLP — dark, premium, electric-blue theme
   Brand: blue lightning emblem. Colours tuned to the logo.
   ========================================================================= */

:root {
  --blue:        #2E7BE4;
  --blue-bright: #4A9EFF;
  --blue-deep:   #1E5BD6;
  --bg:          #0A0E14;
  --bg-2:        #070A10;
  --surface:     #121823;
  --surface-2:   #1A2230;
  --border:      #243044;
  --text:        #F5F8FF;
  --muted:       #9FB0C8;
  --radius:      14px;
  --maxw:        1140px;
  --shadow:      0 16px 40px rgba(0,0,0,.45);
  --glow:        0 0 28px rgba(74,158,255,.45);
  --font:        'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
section { position: relative; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  cursor: pointer; border: 1px solid transparent; transition: .2s ease; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep));
  color: #fff; box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(74,158,255,.65); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--blue-bright); color: var(--blue-bright); }
.btn-wa { background: #25D366; color: #04210f; }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 0 26px rgba(37,211,102,.5); }

/* ── Header / nav ──────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,14,20,.78); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo {
  height: 42px; width: auto;
  /* fallback so a black-background logo reads cleanly on the dark header */
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 10px rgba(74,158,255,.4));
}
.brand .logo-fallback {
  height: 42px; width: 42px; border-radius: 10px; display: grid; place-items: center;
  background: radial-gradient(circle at 40% 35%, var(--blue-bright), var(--blue-deep));
  box-shadow: var(--glow); font-size: 1.4rem;
}
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: .3px; }
.brand-name small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: 2px; color: var(--blue-bright); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-weight: 500; transition: .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; font-size: 1.6rem; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  padding: 92px 0 84px; text-align: center; overflow: hidden;
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(46,123,228,.28), transparent 70%),
    radial-gradient(500px 300px at 85% 20%, rgba(74,158,255,.14), transparent 70%),
    var(--bg);
}
.hero .eyebrow {
  display: inline-block; padding: 6px 16px; border: 1px solid var(--border);
  border-radius: 999px; font-size: .78rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--blue-bright); margin-bottom: 22px; background: rgba(74,158,255,.06);
}
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); line-height: 1.08; font-weight: 800; letter-spacing: -.5px; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--blue-bright), #9ecbff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub { max-width: 640px; margin: 20px auto 32px; color: var(--muted); font-size: 1.12rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Generic section heads ─────────────────────────────────────────────── */
.section-pad { padding: 78px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -.4px; }
.section-head p { color: var(--muted); margin-top: 12px; }

/* ── Category / feature cards ──────────────────────────────────────────── */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px;
  transition: .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(74,158,255,.5); box-shadow: var(--shadow); }
.card .ic {
  width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(74,158,255,.12); color: var(--blue-bright); margin-bottom: 18px; font-size: 1.6rem;
}
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; }

/* ── Stats / trust strip ───────────────────────────────────────────────── */
.strip {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.stat .num { font-size: 2.2rem; font-weight: 800; color: var(--blue-bright); }
.stat .lbl { color: var(--muted); font-size: .92rem; }

/* ── CTA band ──────────────────────────────────────────────────────────── */
.cta-band {
  text-align: center; padding: 70px 0;
  background: radial-gradient(700px 280px at 50% 50%, rgba(46,123,228,.25), transparent 70%), var(--bg);
}
.cta-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }
.cta-band p { color: var(--muted); margin: 12px auto 26px; max-width: 520px; }

/* ── Contact page ──────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: start; }
.contact-rail { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; gap: 15px; align-items: flex-start; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.contact-item .ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: rgba(74,158,255,.12); color: var(--blue-bright); font-size: 1.3rem; }
.contact-item h4 { font-size: 1rem; margin-bottom: 3px; }
.contact-item a, .contact-item span { color: var(--muted); font-size: .95rem; word-break: break-word; }
.contact-item a:hover { color: var(--blue-bright); }

.map-embed { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 10px; }
.map-embed iframe { width: 100%; height: 240px; border: 0; display: block; filter: invert(.92) hue-rotate(180deg); }

/* ── Form ──────────────────────────────────────────────────────────────── */
.form-card { background: linear-gradient(180deg, var(--surface), var(--surface-2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-family: inherit; font-size: .98rem; transition: .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(74,158,255,.15); }
.field textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }  /* honeypot */
.form-msg { margin-top: 14px; padding: 12px 16px; border-radius: 10px; font-size: .95rem; display: none; }
.form-msg.ok  { display: block; background: rgba(37,211,102,.12); border: 1px solid rgba(37,211,102,.4); color: #7ef0a8; }
.form-msg.err { display: block; background: rgba(255,77,79,.12); border: 1px solid rgba(255,77,79,.4); color: #ff9b9c; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 54px 0 26px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 36px; }
.site-footer h5 { font-size: .82rem; text-transform: uppercase; letter-spacing: 1.4px; color: var(--blue-bright); margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a { color: var(--muted); font-size: .95rem; }
.site-footer a:hover { color: var(--text); }
.footer-about p { color: var(--muted); font-size: .95rem; max-width: 320px; margin-top: 12px; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 36px; padding-top: 22px; text-align: center; color: var(--muted); font-size: .88rem; }

/* ── Page hero (about/contact) ─────────────────────────────────────────── */
.page-hero { padding: 70px 0 40px; text-align: center; background: radial-gradient(700px 300px at 50% -10%, rgba(46,123,228,.22), transparent 70%), var(--bg); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; }
.page-hero p { color: var(--muted); max-width: 600px; margin: 14px auto 0; }

/* ── Prose (about) ─────────────────────────────────────────────────────── */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { color: var(--muted); margin-bottom: 18px; font-size: 1.05rem; }
.prose h3 { margin: 30px 0 12px; font-size: 1.4rem; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 70px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 0;
  }
  .nav.open .nav-links a { padding: 13px 22px; width: 100%; }
  .grid-3, .grid-4, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .nav-actions .btn-ghost { display: none; }
}
