/* =========================================================
   Kamailio Support — site stylesheet
   Single source of styling for every page. No jQuery / template CSS needed.
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #526073;
  --border: #e3e8ef;
  --navy: #0b1324;
  --navy-2: #111c33;
  --accent: #0ea5e9;
  --accent-strong: #0284c7;
  --accent-soft: #e0f2fe;
  --accent-on-dark: #38bdf8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .18);
  --container: 1140px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
svg { width: 1em; height: 1em; flex: none; } /* safe default; component rules below override */
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-strong); margin-bottom: .75rem;
}
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.25rem; border-radius: 10px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; line-height: 1.2; white-space: nowrap;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -8px rgba(14, 165, 233, .8); }
.btn-primary:hover { background: var(--accent-strong); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--text); }
.btn-outline-light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); color: #fff; }
.btn-lg { padding: 1rem 1.5rem; font-size: 1.05rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 19, 36, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08); color: #fff;
}
.site-header .container { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; font-size: 1.08rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; color: #fff; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), #6366f1); display: grid; place-items: center; }
.brand-mark svg { width: 18px; height: 18px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.nav a { color: rgba(255,255,255,.82); padding: .5rem .8rem; border-radius: 8px; font-weight: 500; font-size: .95rem; display: inline-flex; align-items: center; gap: .3rem; }
.nav a:hover, .nav li.active > a { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.nav .has-sub { position: relative; }
.nav .has-sub > a svg { width: 14px; height: 14px; opacity: .7; transition: transform .15s; }
.nav .has-sub:hover > a svg, .nav .has-sub:focus-within > a svg { transform: rotate(180deg); }
.nav .sub {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 220px; background: #fff; color: var(--text); border-radius: 12px; padding: .5rem;
  box-shadow: 0 20px 40px -12px rgba(15,23,42,.35); border: 1px solid var(--border);
  list-style: none; margin: 0; opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s, visibility .15s;
}
.nav .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav .sub a { color: var(--text); display: block; padding: .5rem .7rem; font-weight: 500; }
.nav .sub a:hover { background: var(--accent-soft); color: var(--accent-strong); }
.nav .sub li.active a { color: var(--accent-strong); font-weight: 600; background: var(--accent-soft); }
.header-cta { margin-left: .5rem; }
.nav .mobile-cta { display: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 8px; padding: .45rem .55rem; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: radial-gradient(1200px 500px at 80% -10%, rgba(14,165,233,.28), transparent 60%),
              radial-gradient(800px 400px at 0% 100%, rgba(99,102,241,.22), transparent 60%),
              linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 90%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 90%);
}
.hero .container { position: relative; padding-top: clamp(3rem, 8vw, 6rem); padding-bottom: clamp(3rem, 8vw, 5.5rem); }
.hero .eyebrow { color: var(--accent-on-dark); }
.hero h1 { max-width: 18ch; }
.hero .lead { color: rgba(255,255,255,.78); font-size: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-actions .btn-lg { padding-inline: 1.4rem; }
.hero.hero-sm .container { padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.hero-split { display: grid; grid-template-columns: 1.3fr .9fr; gap: 3rem; align-items: center; }
.hero-media { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); background: rgba(255,255,255,.04); }
.hero-media img { width: 100%; aspect-ratio: 368 / 256; object-fit: cover; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; }
.stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 1rem 1.2rem; }
.stat strong { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.stat span { color: rgba(255,255,255,.7); font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 62ch; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.prose { max-width: 70ch; }
.prose p, .prose li { color: #2b3648; font-size: 1.04rem; }
.prose li { margin-bottom: .35rem; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15,23,42,.05), 0 18px 34px -16px rgba(15,23,42,.3); border-color: #cfd8e3; }
a.card { color: inherit; }
a.card:hover { text-decoration: none; }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: #e9eef5; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 1.15rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { margin: 0; color: var(--muted); font-size: .96rem; }
.card-link { margin-top: auto; padding-top: .6rem; color: var(--accent-strong); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: .3rem; }
.card-link svg { width: 16px; height: 16px; transition: transform .15s; }
.card:hover .card-link svg { transform: translateX(3px); }
.feature { padding: 1.35rem 1.4rem; }
.feature .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; margin-bottom: .9rem; font-weight: 800; font-size: .95rem; }
.feature h3 { margin-bottom: .3rem; font-size: 1.05rem; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 2.75rem; padding-bottom: 2.75rem; }
.cta-band h2 { margin: 0 0 .25rem; font-size: 1.5rem; }
.cta-band p { margin: 0; color: rgba(255,255,255,.72); }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Urgent / Kamailio support block ---------- */
.urgent-section { padding-top: 0; }
.hero + .urgent-section { margin-top: -1px; padding-top: clamp(3rem, 7vw, 5.5rem); }
.urgent {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.urgent-body { padding: 2.25rem; }
.urgent-body h2 { margin-bottom: .4rem; }
.urgent-body > p { color: var(--muted); margin-bottom: 1.25rem; }
.urgent-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1.25rem; }
.urgent-list li { position: relative; padding-left: 1.5rem; font-size: .97rem; color: #2b3648; }
.urgent-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.urgent-cta {
  background: linear-gradient(160deg, var(--navy), #16213d); color: #fff; padding: 2.25rem;
  display: flex; flex-direction: column; justify-content: center; gap: .7rem;
}
.urgent-label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-on-dark); }
.urgent-phone { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.01em; }
.urgent-phone svg { width: 28px; height: 28px; color: var(--accent-on-dark); }
.urgent-phone:hover { text-decoration: none; color: var(--accent-on-dark); }
.urgent-note { color: rgba(255,255,255,.72); font-size: .92rem; }
.urgent-note a { color: #fff; text-decoration: underline; }
.urgent-cta .btn { align-self: flex-start; margin-top: .5rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; align-items: start; }
.contact-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 2rem; }
.contact-card h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.contact-card > p { color: rgba(255,255,255,.72); }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: var(--accent-on-dark); }
.contact-list .icon svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: rgba(255,255,255,.6); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.contact-list a { color: #fff; font-weight: 600; font-size: 1.1rem; word-break: break-word; }
.contact-list a.phone { font-size: 1.35rem; letter-spacing: .01em; }
.contact-list span.note { color: rgba(255,255,255,.72); font-size: .92rem; display: block; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form-card h3 { margin-bottom: .25rem; }
.form-card > p { color: var(--muted); margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-size: .88rem; font-weight: 600; color: #334155; }
.field input, .field textarea {
  font: inherit; padding: .75rem .9rem; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: var(--text); width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,165,233,.2); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); margin: .75rem 0 0; }
.notice { background: #fff7ed; border: 1px solid #fdba74; color: #7c2d12; border-radius: 10px; padding: .9rem 1rem; margin-bottom: 1.25rem; font-size: .95rem; }
.notice a { color: inherit; font-weight: 700; }
.form-card input:disabled, .form-card textarea:disabled, .form-card button:disabled { opacity: .5; cursor: not-allowed; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; } /* honeypot */

/* ---------- Pricing ---------- */
.price-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table th, .price-table td { text-align: left; padding: .9rem 1.1rem; border-bottom: 1px solid var(--border); }
.price-table th { background: #f1f5f9; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: #475569; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td.price { font-weight: 700; white-space: nowrap; text-align: right; }
.price-block { margin-bottom: 2rem; }
.price-block h3 { margin-bottom: .75rem; }
.table-wrap { overflow-x: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 3.5rem 0 2rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }
.site-footer .brand { margin-bottom: .75rem; }
.site-footer .blurb { font-size: .95rem; max-width: 36ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .88rem; color: rgba(255,255,255,.55); }
.social { display: inline-flex; gap: .5rem; }
.social a { width: 36px; height: 36px; border-radius: 9px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; }
.social a:hover { background: var(--accent); }
.social svg { width: 18px; height: 18px; }

/* ---------- Mobile call bar ---------- */
.call-bar { display: none; }

/* ---------- Page wrapper ---------- */
.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-media { max-width: 460px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .urgent { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px; margin: 0;
    background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.1); padding: .75rem 24px 1.25rem;
    box-shadow: 0 30px 40px -20px rgba(0,0,0,.6);
  }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { display: block; padding: .75rem .5rem; font-size: 1.05rem; }
  .nav .has-sub > a svg { display: none; }
  .nav .has-sub::after { display: none; }
  .nav .sub { position: static; transform: none; opacity: 1; visibility: visible; background: transparent; border: 0; box-shadow: none; padding: 0 0 .5rem .9rem; }
  .nav .sub a { color: rgba(255,255,255,.75); font-size: .98rem; padding: .5rem .5rem; }
  .nav .sub a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .nav .sub li.active a { color: var(--accent-on-dark); background: transparent; }
  .nav .mobile-cta { display: block; margin-top: .75rem; }
  .nav .mobile-cta a { display: inline-flex; justify-content: center; width: 100%; }
  .call-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; gap: .6rem;
    padding: .6rem 12px calc(.6rem + env(safe-area-inset-bottom)); background: rgba(11,19,36,.95); backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .call-bar .btn { flex: 1; justify-content: center; }
  body { padding-bottom: 68px; }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-card, .form-card { padding: 1.4rem; }
  .urgent-body, .urgent-cta { padding: 1.4rem; }
  .urgent-list { grid-template-columns: 1fr; }
  .cta-band .actions { width: 100%; }
  .cta-band .actions .btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .card-img img { transition: none; }
}
