/* =========================================================
   SP3 DIGITAL — COMPONENTS
   ========================================================= */

/* -------------------- Navigation -------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease), height var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  height: 68px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--secondary);
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 34px; height: 34px;
  flex-shrink: 0;
}

.brand-name b { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding-block: 0.4rem;
  transition: color var(--dur-fast) var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--primary);
  transition: right var(--dur-med) var(--ease-out);
  border-radius: 2px;
}

.nav-links a:hover { color: var(--secondary); }
.nav-links a:hover::after,
.nav-links a.is-active::after { right: 0; }
.nav-links a.is-active { color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: var(--space-sm); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--secondary);
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 68px 0 0 0;
  background: var(--white);
  z-index: 99;
  padding: var(--space-lg) var(--space-md);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease), visibility 0s var(--dur-med);
}
.mobile-menu.is-open {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease), visibility 0s;
}
.mobile-menu a {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--secondary);
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .btn { margin-top: var(--space-lg); width: 100%; }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--secondary);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.28);
}
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }

.btn-lg { padding: 1rem 2rem; font-size: var(--fs-md); }
.btn-sm { padding: 0.6rem 1.2rem; font-size: var(--fs-xs); }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--primary);
}
.text-link svg { width: 15px; height: 15px; transition: transform var(--dur-fast) var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* -------------------- Badges / Pills -------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-lg);
  opacity: 0.85;
}
.trust-strip span {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-transform: uppercase;
}

/* -------------------- Cards -------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, rgba(37,99,235,0.12), rgba(20,184,166,0.12));
  color: var(--primary);
  margin-bottom: var(--space-md);
}
.card-icon svg { width: 26px; height: 26px; }

.card h3 { font-size: var(--fs-lg); margin-bottom: 0.6rem; }
.card p { color: var(--text-light); font-size: var(--fs-sm); }

.card-index {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-faint);
  margin-bottom: var(--space-sm);
}

/* Stat card */
.stat-card {
  padding: var(--space-md) var(--space-lg) var(--space-md) 0;
  border-left: 2px solid var(--border);
}
.stat-num {
  font-family: var(--font-mono);
  font-size: var(--fs-3xl);
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: baseline;
  gap: 0.15em;
}
.stat-num .unit { font-size: 0.5em; color: var(--accent); }
.stat-label {
  font-size: var(--fs-xs);
  color: var(--text-faint);
  margin-top: 0.35rem;
  letter-spacing: 0.03em;
}

/* Industry tile */
.industry-tile {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--secondary);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.industry-tile::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 100% 0%, rgba(37,99,235,0.55), rgba(15,23,42,0.1) 60%);
  z-index: -1;
  transition: opacity var(--dur-med) var(--ease);
}
.industry-tile:hover::before { opacity: 1.3; }
.industry-tile h4 { color: var(--white); font-size: var(--fs-md); margin-bottom: 0.25rem; }
.industry-tile p { font-size: var(--fs-xs); color: #94A3B8; }
.industry-tile .tile-idx {
  position: absolute; top: var(--space-md); right: var(--space-md);
  font-family: var(--font-mono); font-size: var(--fs-xs); color: rgba(255,255,255,0.4);
}

/* Case study card */
.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex; flex-direction: column; gap: var(--space-md);
}
.case-metrics { display: flex; gap: var(--space-lg); }
.case-metric .num { font-family: var(--font-mono); font-size: var(--fs-2xl); color: var(--primary); font-weight: 600; }
.case-metric .lbl { font-size: var(--fs-xs); color: var(--text-light); }
.case-tag { color: var(--text-faint); font-size: var(--fs-xs); font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }

/* Leadership card */
.person-card { text-align: left; }
.person-avatar {
  width: 100%; aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--secondary), var(--primary-deep));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-sm);
  position: relative;
  overflow: hidden;
}
.person-avatar span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-2xl);
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.02em;
}
.person-name { font-family: var(--font-display); font-weight: 600; color: var(--secondary); }
.person-role { color: var(--primary); font-size: var(--fs-sm); font-weight: 500; margin-bottom: 0.5rem; }
.person-bio { color: var(--text-light); font-size: var(--fs-sm); }

/* -------------------- Forms -------------------- */
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.field input, .field select, .field textarea {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--white);
  font-size: var(--fs-sm);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #64748B; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.09);
  outline: none;
}
.field textarea { resize: vertical; min-height: 120px; }

.form-status {
  font-size: var(--fs-sm);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.success { background: rgba(20,184,166,0.14); color: var(--accent); }
.form-status.error { background: rgba(239,68,68,0.14); color: #F87171; }

/* -------------------- Footer -------------------- */
.site-footer { background: var(--secondary); color: #94A3B8; padding-top: var(--space-2xl); }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-dark);
}
.footer-brand p { margin-top: var(--space-sm); font-size: var(--fs-sm); max-width: 320px; }
.footer-col h5 {
  color: var(--white); font-size: var(--fs-sm); font-family: var(--font-body);
  font-weight: 600; margin-bottom: var(--space-sm); letter-spacing: 0.02em;
}
.footer-col a, .footer-col p { display: block; font-size: var(--fs-sm); padding-block: 0.4rem; color: #94A3B8; transition: color var(--dur-fast) var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-social { display: flex; gap: 0.6rem; margin-top: var(--space-sm); }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border-dark);
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.footer-social a svg { width: 16px; height: 16px; }
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: var(--space-md);
  font-size: var(--fs-xs);
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.footer-legal { display: flex; gap: var(--space-md); }

/* Divider dot */
.dot-sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.4; }


