/* ==========================================================
   HandBlu — shared styles
   Palette: navy → cobalt → mid → sky → ice, one warm accent
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Blues */
  --navy:    #0A1628;
  --navy-2:  #0F1F38;
  --cobalt:  #1B4DFF;
  --cobalt-2:#0035E0;
  --midblue: #2E6DA4;
  --sky:     #4A90D9;
  --sky-2:   #7EBCEC;
  --ice:     #E8F1FF;
  --ice-2:   #F4F7FF;
  --white:   #FFFFFF;

  /* Ink */
  --ink:     #0A1628;
  --ink-2:   #1B2A44;
  --muted:   #5A6B8C;
  --muted-2: #8794AE;
  --line:    rgba(10, 22, 40, 0.10);
  --line-2:  rgba(10, 22, 40, 0.18);

  /* Touch of warm — used sparingly */
  --sun:     #FFC857;
  --peach:   #FFB4A2;

  /* Functional */
  --wa:      #25D366;
  --wa-2:    #1EBE58;

  /* Type */
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body:    'DM Sans', system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* Shadow */
  --sh-1: 0 1px 2px rgba(10,22,40,0.04), 0 2px 8px rgba(10,22,40,0.04);
  --sh-2: 0 4px 12px rgba(10,22,40,0.06), 0 12px 32px rgba(10,22,40,0.08);
  --sh-blue: 0 12px 32px rgba(27, 77, 255, 0.20);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--ice-2);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ===== Container ===== */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-sm { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ===== Typography ===== */
.eyebrow {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.eyebrow.on-dark { color: var(--sky-2); }

.h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--ink);
}
.h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--ink);
}
.h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
.h1.on-dark, .h2.on-dark, .h3.on-dark { color: var(--white); }

.lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.55;
}
.lede.on-dark { color: rgba(255,255,255,0.72); }

.gradient-text {
  background: linear-gradient(90deg, var(--cobalt), var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-full);
  font-family: var(--display);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  border: 1.5px solid transparent;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
  cursor: pointer;
}
.btn:active { transform: scale(0.98); }

.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: var(--wa-2); }

.btn-primary { background: var(--cobalt); color: var(--white); }
.btn-primary:hover { background: var(--cobalt-2); }

.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-2); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.btn-ghost.on-dark { color: var(--white); border-color: rgba(255,255,255,0.25); }
.btn-ghost.on-dark:hover { background: var(--white); color: var(--ink); }

.btn .wa-icon { width: 18px; height: 18px; fill: currentColor; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244, 247, 255, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cobalt), var(--midblue));
  color: var(--white);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 14px;
  letter-spacing: -0.02em;
  box-shadow: var(--sh-blue);
}
.brand-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.brand-text span { color: var(--cobalt); }

.site-nav {
  display: flex; align-items: center; gap: 2px;
  margin-left: auto;
}
.site-nav a {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: var(--r-full);
  transition: background 0.15s, color 0.15s;
}
.site-nav a:hover { background: var(--ice); color: var(--cobalt); }
.site-nav a.active { background: var(--ink); color: var(--white); }

.header-cta {
  background: var(--wa); color: var(--white);
  font-family: var(--display); font-weight: 600;
  font-size: 13.5px;
  padding: 9px 16px;
  border-radius: var(--r-full);
  display: inline-flex; align-items: center; gap: 8px;
}
.header-cta .wa-icon { width: 16px; height: 16px; fill: currentColor; }

.menu-btn {
  display: none;
  background: var(--ink); color: var(--white);
  width: 36px; height: 36px;
  border-radius: 10px;
  border: none;
  align-items: center; justify-content: center;
}
.menu-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

@media (max-width: 880px) {
  .site-nav {
    position: fixed; inset: 56px 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 12px 16px;
    gap: 4px;
    transform: translateY(-110%);
    transition: transform 0.25s;
    box-shadow: var(--sh-2);
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav a { padding: 12px 16px; border-radius: 10px; width: 100%; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .header-cta { display: none; }
  .site-header-inner { padding: 10px 16px; }
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
  margin-top: 80px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.foot-brand .brand-text { color: var(--white); }
.foot-brand .brand-text span { color: var(--sky-2); }
.foot-tag {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sky-2);
  margin-top: 16px;
}
.foot-blurb {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-top: 14px;
  max-width: 30ch;
  line-height: 1.55;
}
.foot-col h5 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  font-weight: 500;
}
.foot-col a {
  display: block;
  padding: 5px 0;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  transition: color 0.2s;
}
.foot-col a:hover { color: var(--sky-2); }

.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap; gap: 12px;
}

@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-brand { grid-column: 1 / -1; }
}

/* ===== Sections ===== */
section { position: relative; }
.section { padding: 80px 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-ice { background: var(--ice); }
.section-cobalt { background: var(--cobalt); color: var(--white); }
.section-cobalt .h1, .section-cobalt .h2, .section-cobalt .h3 { color: var(--white); }

.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; max-width: 720px; }

/* ===== Sticky WhatsApp ===== */
.float-wa {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--wa);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  z-index: 90;
  transition: transform 0.15s;
}
.float-wa:hover { transform: scale(1.06); }
.float-wa svg { width: 26px; height: 26px; fill: var(--white); }
.float-wa::before {
  content: ""; position: absolute; inset: -3px;
  border-radius: 50%; border: 2px solid var(--wa);
  opacity: 0.4;
  animation: waring 2.4s ease infinite;
}
@keyframes waring {
  0% { transform: scale(0.95); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ===== Trust badge row ===== */
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.trust-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color 0.2s, transform 0.2s;
}
.trust-card:hover { border-color: var(--cobalt); transform: translateY(-2px); }
.trust-card .badge-dot {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--ice);
  color: var(--cobalt);
  display: grid; place-items: center;
  margin-bottom: 8px;
}
.trust-card .badge-dot svg { width: 18px; height: 18px; }
.trust-card h4 {
  font-family: var(--display); font-weight: 600;
  font-size: 15px; color: var(--ink); letter-spacing: -0.01em;
}
.trust-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }

.trust-row.on-dark .trust-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
}
.trust-row.on-dark .trust-card:hover { border-color: var(--sky); }
.trust-row.on-dark .trust-card h4 { color: var(--white); }
.trust-row.on-dark .trust-card p { color: rgba(255,255,255,0.6); }
.trust-row.on-dark .trust-card .badge-dot { background: rgba(74,144,217,0.12); color: var(--sky-2); }

@media (max-width: 880px) {
  .trust-row { grid-template-columns: 1fr 1fr; }
}

/* ===== CTA Band ===== */
.cta-band {
  background: var(--cobalt);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(255,255,255,0.10), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(126,188,236,0.18), transparent);
  pointer-events: none;
}
.cta-band-inner {
  position: relative; z-index: 1;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.cta-band h2 { color: var(--white); font-size: clamp(2rem, 5vw, 3.4rem); }
.cta-band p { color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 50ch; }
.cta-band .btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.cta-band .btn-ghost.on-dark { border-color: rgba(255,255,255,0.4); }
.cta-band .micro { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); margin-top: 10px; }

/* ===== Common cards ===== */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
}
.card-dark {
  background: var(--navy-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  padding: 22px;
  color: var(--white);
}

/* ===== Forms ===== */
.input, .textarea, .select {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color 0.15s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(27,77,255,0.12);
}
.textarea { min-height: 110px; resize: vertical; }
.label {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
}

/* ===== Tags / Pills ===== */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  background: var(--ice);
  color: var(--cobalt);
  font-family: var(--display);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.02em;
}
.pill.warm { background: rgba(255,200,87,0.18); color: #8B5A00; }
.pill.dark { background: var(--ink); color: var(--white); }
.pill.outline { background: transparent; border: 1.5px solid var(--line-2); color: var(--ink-2); }

/* ===== Utility ===== */
.hide-mobile { display: revert; }
.show-mobile { display: none; }
@media (max-width: 760px) {
  .hide-mobile { display: none; }
  .show-mobile { display: revert; }
}

/* WhatsApp icon source */
.wa-svg-source { display: none; }
