/* ==========================================================================
   KAB-BOA — Design tokens
   Palette kept from the original brief. Typeface switched to Plus Jakarta
   Sans (matches the reference screenshot: bold geometric display, tight
   tracking, one family carried through every weight).
   ========================================================================== */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #0ea5e9;
  --accent-orange: #f97316;
  --accent-green: #10b981;

  --dark-900: #0f172a;
  --dark-800: #1e293b;
  --dark-700: #334155;

  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-600: #475569;

  --whatsapp: #25d366;
  --text: #1e293b;
  --text-light: #64748b;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 28px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.16);

  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4, h5 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--dark-900);
}

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   Eyebrow / section heads
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--primary);
  display: inline-block;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
}

.section-sub {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 560px;
}

.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.section.bg-tint { background: var(--gray-100); }
.section.bg-dark { background: var(--dark-900); color: var(--gray-300); }
.section.bg-dark h2, .section.bg-dark h3 { color: #fff; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(99, 102, 241, 0.32); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(99, 102, 241, 0.4); }

.btn-ghost-light { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--dark-900); transform: translateY(-2px); }

.btn-secondary { background: var(--secondary); color: #fff; box-shadow: 0 8px 20px rgba(14,165,233,0.32); }
.btn-secondary:hover { background: #0284c7; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(14,165,233,0.4); }

.btn-tertiary { background: var(--accent-orange); color: #fff; box-shadow: 0 8px 20px rgba(249,115,22,0.32); }
.btn-tertiary:hover { background: #ea580c; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(249,115,22,0.4); }

.btn-outline { background: transparent; border-color: var(--gray-300); color: var(--dark-800); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn-block { width: 100%; justify-content: center; }

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.scrolled { box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06); }

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--dark-900);
  letter-spacing: -0.02em;
}

.brand img {
  height: 42px; width: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--dark-700);
  border-radius: 8px;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-links a:hover { color: var(--primary); background: rgba(99,102,241,0.06); }
.nav-links a.active { color: var(--primary); }

.nav-more {
  position: relative;
}

.nav-more > span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--dark-700);
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-more:hover > span, .nav-more:focus-within > span { color: var(--primary); background: rgba(99,102,241,0.06); }

.caret { font-size: 11px; transition: transform 0.2s ease; }
.nav-more:hover .caret, .nav-more:focus-within .caret { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 250px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s ease;
}

.nav-more:hover .nav-dropdown, .nav-more:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.nav-dropdown a {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
}

.nav-dropdown .dd-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  margin-top: 1px;
}

.nav-dropdown .dd-text { display: flex; flex-direction: column; }
.nav-dropdown a strong { display: block; font-size: 14.5px; color: var(--dark-900); font-weight: 700; }
.nav-dropdown a span.desc { display: block; font-size: 12.5px; color: var(--text-light); font-weight: 400; margin-top: 2px; }
.nav-dropdown a:hover { background: var(--gray-100); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1.5px solid var(--gray-200);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--dark-800);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover { border-color: var(--primary); color: var(--primary); }

.nav-toggle .fa-xmark { display: none; }
.nav-toggle.open .fa-bars { display: none; }
.nav-toggle.open .fa-xmark { display: inline-block; }

.nav-panel {
  display: none;
}

@media (max-width: 960px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }

  .nav-panel {
    position: fixed;
    top: 80px; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--gray-200);
    padding: 20px 24px 28px;
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 999;
  }

  .nav-panel.open { display: block; }
  .nav-panel a { display: block; padding: 14px 4px; font-weight: 600; color: var(--dark-800); border-bottom: 1px solid var(--gray-100); }
  .nav-panel .nav-panel-group { padding: 10px 4px 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-light); }
  .nav-panel .btn { margin-top: 18px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  padding-top: 80px;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,23,42,0.55) 0%, rgba(15,23,42,0.72) 60%, rgba(15,23,42,0.92) 100%),
    linear-gradient(115deg, rgba(99,102,241,0.35), rgba(15,23,42,0) 55%);
  z-index: -1;
}

.hero-inner { padding: 80px 0 72px; max-width: 780px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 26px;
}

.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-green); }

.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  margin-bottom: 22px;
}

.hero p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.page-hero {
  min-height: 52vh;
  align-items: center;
}
.page-hero .hero-inner { padding: 100px 0 56px; max-width: 640px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }

/* ==========================================================================
   Stat strip (signature element)
   ========================================================================== */

.stat-strip {
  background: var(--dark-900);
  color: #fff;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 40px 28px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.09);
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  display: block;
}
.stat-num span.accent { color: var(--primary-light); }

.stat-label {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 6px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,0.09); }
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card-grid { display: grid; gap: 24px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.tile {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
}

.tile::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--bar, var(--primary));
}

.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }

.tile .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--bar, var(--primary));
  margin-bottom: 14px;
}

.tile h3 { font-size: 18.5px; margin-bottom: 10px; }
.tile p { color: var(--text-light); font-size: 14.5px; margin-bottom: 0; }

.tile.c-indigo { --bar: var(--primary); }
.tile.c-blue { --bar: var(--secondary); }
.tile.c-orange { --bar: var(--accent-orange); }
.tile.c-green { --bar: var(--accent-green); }

/* Feature list (checklist replacement, icon-light) */

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
}
.feature-list li:last-child { border-bottom: none; }

.feature-list .mark {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  margin-top: 2px;
}

.feature-list strong { display: block; font-size: 15px; color: var(--dark-900); }
.feature-list span { font-size: 13.5px; color: var(--text-light); }

/* ==========================================================================
   About-style split section
   ========================================================================== */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.split img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  width: 100%;
  height: 520px;
}

.pill-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0; }
.pill { padding: 8px 16px; border-radius: 100px; background: var(--gray-100); font-size: 13px; font-weight: 700; color: var(--dark-700); }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-line {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--gray-200);
}
.contact-line:first-child { padding-top: 0; }

.contact-line .num {
  font-weight: 800;
  font-size: 13px;
  color: var(--primary);
  width: 30px;
  flex-shrink: 0;
  padding-top: 3px;
}

.contact-line h5 { font-size: 15.5px; margin-bottom: 4px; }
.contact-line p { font-size: 14.5px; color: var(--text-light); margin: 0; }

.form-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-md);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--dark-700);
  margin-bottom: 8px;
}

.field input, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--gray-300);
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
}

.map-frame {
  border: none;
  border-radius: var(--radius-md);
  width: 100%;
  height: 220px;
  margin-top: 24px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--dark-900);
  color: var(--gray-400);
  padding: 76px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 19px; color: #fff;
  margin-bottom: 16px;
}
.footer-brand img { height: 38px; width: 38px; border-radius: 9px; }

.footer h5 { color: #fff; font-size: 14.5px; letter-spacing: 0.02em; margin-bottom: 20px; }

.footer ul li { margin-bottom: 12px; }
.footer ul a { color: var(--gray-400); font-size: 14.5px; transition: color 0.18s ease; }
.footer ul a:hover { color: var(--primary-light); }

.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  font-size: 15px;
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover { background: var(--primary); transform: translateY(-3px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
}

/* ==========================================================================
   WhatsApp FAB
   ========================================================================== */

.wa-fab {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--whatsapp);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  box-shadow: 0 10px 26px rgba(37,211,102,0.42);
  z-index: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.wa-fab:hover { transform: translateY(-4px) scale(1.06); box-shadow: 0 14px 32px rgba(37,211,102,0.5); }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split img { height: 380px; }
  .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero { min-height: 88vh; }
  .hero-inner { padding: 60px 0 48px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .wa-fab { width: 50px; height: 50px; right: 16px; bottom: 16px; }
  .tile { padding: 24px 20px; }
  .stat-item { padding: 28px 16px; }
}