/* =============================================================
   Softphonic Technologies — Global Stylesheet
   Static site (HTML + CSS + vanilla JS only)
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  --ink: #0b1524;
  --ink-soft: #1d2c40;
  --muted: #51617a;
  --muted-2: #6b7a91;

  --brand: #0a5fd6;
  --brand-bright: #0a6cf0;
  --brand-dark: #043d8d;
  --cyan: #14c4d9;
  --violet: #6d5efc;

  --surface: #ffffff;
  --soft: #f4f8fd;
  --soft-2: #eef4fb;
  --line: #e2eaf3;
  --line-strong: #d2deec;

  --ring: rgba(10, 95, 214, 0.35);
  --shadow-sm: 0 2px 10px rgba(13, 27, 42, 0.06);
  --shadow-md: 0 14px 36px rgba(13, 27, 42, 0.10);
  --shadow-lg: 0 28px 64px rgba(13, 27, 42, 0.16);

  --grad-brand: linear-gradient(135deg, var(--brand-bright), var(--cyan));
  --grad-ai: linear-gradient(135deg, var(--violet), var(--brand-bright));
  --grad-ink: linear-gradient(135deg, #08203f 0%, #0a3a7d 55%, #0a5fd6 100%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --container: 1180px;
  --space-section: clamp(64px, 9vw, 120px);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --header-h: 76px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

ul { list-style: none; }

address { font-style: normal; }

button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.3; }

p { color: var(--muted); }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--muted); }

/* ---------- Layout ---------- */
.container {
  width: min(var(--container), calc(100% - 44px));
  margin-inline: auto;
}

.container-narrow {
  width: min(820px, calc(100% - 44px));
  margin-inline: auto;
}

section { padding: var(--space-section) 0; }

.section-tight { padding: clamp(48px, 6vw, 80px) 0; }

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}

.section-head.left { margin-inline: 0; text-align: left; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--soft-2);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker.on-dark { background: rgba(255, 255, 255, 0.12); color: #cfe3ff; }
.kicker.ai { background: rgba(109, 94, 252, 0.12); color: var(--violet); }

.section-head h2 { margin-top: 18px; }
.section-head p { margin-top: 16px; font-size: 1.1rem; }

.bg-soft { background: var(--soft); }
.bg-soft-2 { background: var(--soft-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
  font-weight: 650;
  font-size: 0.98rem;
  line-height: 1;
  text-align: center;
  box-shadow: 0 12px 26px rgba(10, 95, 214, 0.26);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover { transform: translateY(-2px); background: var(--brand-dark); color: #fff; box-shadow: 0 18px 34px rgba(10, 95, 214, 0.32); }
.btn:active { transform: translateY(0); }

.btn svg { width: 18px; height: 18px; fill: currentColor; }

.btn-ghost {
  background: #fff;
  color: var(--brand);
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--soft); color: var(--brand-dark); border-color: var(--brand); transform: translateY(-2px); }

.btn-light {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}
.btn-light:hover { background: #f1f6ff; color: var(--brand-dark); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }

.btn-block { width: 100%; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; color: #fff; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }

.brand-mark {
  width: auto;
  height: 50px;
  border-radius: 8px;
  object-fit: contain;
}

/* Logo already contains the wordmark, so the adjacent text is hidden */
.brand-text { display: none; }
.brand-name { font-family: var(--font-display); font-size: 1.04rem; font-weight: 700; letter-spacing: -0.01em; }
.brand-line { font-size: 0.72rem; font-weight: 600; color: var(--muted-2); letter-spacing: 0.14em; text-transform: uppercase; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-weight: 550;
  font-size: 0.96rem;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-link:hover { color: var(--brand); background: var(--soft); }
.nav-link[aria-current="page"] { color: var(--brand); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { min-height: 44px; padding: 11px 22px; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(120% 120% at 88% 0%, rgba(20, 196, 217, 0.16), transparent 42%),
    radial-gradient(90% 90% at 0% 10%, rgba(109, 94, 252, 0.10), transparent 40%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.hero-eyebrow { margin-bottom: 22px; }

.hero h1 { max-width: 16ch; }
.hero .gradient-text {
  background: linear-gradient(120deg, var(--brand-bright), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-copy { margin-top: 22px; max-width: 54ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-trust {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--muted);
  font-size: 0.92rem;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; fill: var(--brand); flex: none; }

/* Hero visual panel */
.hero-visual { position: relative; }

.hero-panel {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
}

.hero-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.hero-panel-head .brand-mark { width: 40px; height: 40px; }
.hero-panel-head strong { font-family: var(--font-display); font-size: 0.98rem; }
.hero-panel-head span { display: block; font-size: 0.78rem; color: var(--muted-2); font-weight: 600; }

.cap-list { display: grid; gap: 12px; }
.cap {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--soft);
  border: 1px solid var(--line);
}
.cap h3 { font-size: 1rem; }
.cap p { margin-top: 2px; font-size: 0.9rem; }

.icon-tile {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--grad-brand);
  color: #fff;
}
.icon-tile svg { width: 24px; height: 24px; fill: #fff; }
.icon-tile.ai { background: var(--grad-ai); }

.hero-badge {
  position: absolute;
  right: -8px;
  bottom: -18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-weight: 650;
  font-size: 0.88rem;
}
.hero-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--grad-ai); }

/* ---------- Marquee / trust strip ---------- */
.trust-strip {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.trust-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; }
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: var(--soft);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.trust-pill svg { width: 17px; height: 17px; fill: var(--brand); }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }

.card .icon-tile { margin-bottom: 18px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.97rem; }

.card-list { margin-top: 14px; display: grid; gap: 8px; }
.card-list li { position: relative; padding-left: 26px; font-size: 0.92rem; color: var(--ink-soft); }
.card-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--soft-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230a5fd6'%3E%3Cpath d='M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--brand);
}
.card-link svg { width: 16px; height: 16px; fill: currentColor; transition: transform 0.18s ease; }
.card:hover .card-link svg { transform: translateX(4px); }

.card.feature-ai { border-color: rgba(109, 94, 252, 0.28); }
.card.feature-ai:hover { border-color: rgba(109, 94, 252, 0.5); }

/* ---------- Process / steps ---------- */
.steps { counter-reset: step; }
.step {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--soft-2);
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: 0.95rem; }

/* ---------- Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.split .media {
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--grad-ink);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.split .media h3 { color: #fff; }

.checklist { display: grid; gap: 14px; margin-top: 22px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; color: var(--ink-soft); }
.checklist li svg { width: 22px; height: 22px; fill: var(--brand); margin-top: 2px; }
.checklist.on-dark li { color: rgba(255,255,255,0.88); }
.checklist.on-dark li svg { fill: var(--cyan); }
.checklist strong { display: block; color: var(--ink); font-weight: 650; }
.checklist.on-dark strong { color: #fff; }

/* ---------- Technologies ---------- */
.tech-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 34px;
}
.tech-tab {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.18s ease;
}
.tech-tab:hover { border-color: var(--brand); color: var(--brand); }
.tech-tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 10px 22px rgba(10,95,214,0.22); }

.tech-panel { display: none; }
.tech-panel.is-active { display: block; animation: fade-in 0.4s ease; }

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 920px;
  margin-inline: auto;
}
.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 14px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.tech-chip:hover { transform: translateY(-3px); border-color: var(--brand); }
.tech-chip .badge {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--soft-2);
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  flex: none;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  background: var(--grad-ink);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 120% at 85% 0%, rgba(20,196,217,0.35), transparent 55%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: rgba(255,255,255,0.86); margin-top: 14px; max-width: 56ch; }
.cta-band .hero-actions { margin-top: 30px; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  padding: clamp(56px, 8vw, 92px) 0 clamp(40px, 5vw, 64px);
  background:
    radial-gradient(90% 120% at 90% 0%, rgba(20, 196, 217, 0.14), transparent 45%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  text-align: center;
}
.page-hero .container { max-width: 820px; }
.page-hero h1 { margin: 18px auto 0; }
.page-hero p { margin: 18px auto 0; max-width: 60ch; }

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted-2);
  margin-top: 24px;
}
.breadcrumb a { color: var(--muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span[aria-hidden] { opacity: 0.5; }

/* ---------- Stats (qualitative) ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.value strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.value span { display: block; margin-top: 6px; color: var(--muted); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; max-width: 820px; margin-inline: auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: #fff;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.02rem;
  color: var(--ink);
}
.faq-q .chev { width: 20px; height: 20px; fill: var(--brand); flex: none; transition: transform 0.25s ease; }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a-inner { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Forms ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.form-card {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); }
.field .req { color: #d23f3f; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--soft);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.97rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px var(--ring);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }

.field .error-msg {
  display: none;
  font-size: 0.82rem;
  color: #d23f3f;
  font-weight: 600;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #d23f3f; background: #fff5f5; }
.field.has-error .error-msg { display: block; }

.form-note { margin-top: 16px; font-size: 0.85rem; color: var(--muted-2); }

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
}
.form-status.show { display: block; }
.form-status.success { background: #eafaf1; color: #1d7a47; border: 1px solid #b9e8cd; }

/* Contact info side panel */
.contact-info { display: grid; gap: 16px; }
.info-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.info-card .icon-tile { width: 48px; height: 48px; flex: none; }
/* Allow the text column to shrink so long values wrap instead of overflowing the card */
.info-card > div { min-width: 0; }
.info-card .label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); font-weight: 700; }
.info-card .value { display: block; margin-top: 2px; font-family: var(--font-display); font-weight: 650; color: var(--ink); font-size: 1.02rem; line-height: 1.35; overflow-wrap: anywhere; }
.info-card a.value:hover { color: var(--brand); }

/* ---------- Legal / prose ---------- */
.legal-content { max-width: 820px; margin-inline: auto; }
.legal-content > p,
.legal-content > ul { margin-top: 14px; }
.legal-content h2 { margin-top: 40px; font-size: clamp(1.4rem, 2.2vw, 1.7rem); }
.legal-content h3 { margin-top: 24px; }
.legal-content ul { list-style: disc; padding-left: 22px; }
.legal-content ul li { margin-top: 8px; color: var(--muted); }
.legal-content a { font-weight: 600; }
.legal-meta { color: var(--muted-2); font-size: 0.9rem; margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #06101f;
  color: #aab8cc;
  padding: clamp(48px, 6vw, 72px) 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-line { color: #7d8da3; }
/* Logo has a light background, so present it on a white badge over the dark footer */
.footer-brand .brand-mark {
  height: 64px;
  padding: 8px 12px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}
.footer-about { margin-top: 18px; max-width: 34ch; font-size: 0.95rem; color: #93a2b8; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: #cdd9e8;
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}
.footer-social a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }

.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; letter-spacing: 0.02em; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: #aab8cc; font-size: 0.94rem; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.88rem;
  color: #7d8da3;
}
.footer-bottom a { color: #aab8cc; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Floating actions ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  color: #fff;
  background: #25d366;
  box-shadow: 0 16px 34px rgba(13, 27, 42, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.whatsapp-float:hover { background: #1fb85a; color: #fff; transform: translateY(-3px) scale(1.04); }
.whatsapp-float svg { width: 30px; height: 30px; fill: currentColor; }

.to-top {
  position: fixed;
  right: 24px;
  bottom: 90px;
  z-index: 85;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--brand);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Helpers ---------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- Reveal animations ---------- */
.reveal {
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
/* Only hide pre-animation when JS is available, so no-JS users still see content */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .nav-menu,
  .nav-cta {
    display: none;
    flex-basis: 100%;
    width: 100%;
  }
  .nav.is-open .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 0 6px;
    border-top: 1px solid var(--line);
    margin-top: 8px;
  }
  .nav.is-open .nav-cta {
    display: flex;
    padding: 4px 0 14px;
  }
  .nav-link { padding: 12px 14px; border-radius: 10px; }
  .nav-link[aria-current="page"]::after { display: none; }
  .nav-link[aria-current="page"] { background: var(--soft); }
  .nav-cta .btn { width: 100%; }
  /* Freeze background scroll while the mobile menu is open */
  body.nav-open { overflow: hidden; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin-inline: auto; }
  /* Badge flows below the panel instead of overlapping the last card */
  .hero-badge {
    position: static;
    transform: none;
    display: flex;
    width: fit-content;
    margin: 16px auto 0;
  }
  .split { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4, .value-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { width: 100%; }
  .brand-line { display: none; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal,
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .whatsapp-float, .to-top, .nav-toggle, .cta-band, .hero-visual { display: none !important; }
  body { color: #000; }
}
