/* Shared responsive and polish layer.
   Keep this file after each page's inline CSS so it can normalize repeated UI details. */

html,
body {
  -webkit-text-size-adjust: 100%;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

nav {
  border-bottom: 1px solid oklch(0.90 0.01 250 / 0.9);
  box-shadow: 0 10px 30px oklch(0.35 0.10 250 / 0.055);
}

.nav-name {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nav-mobile {
  max-height: calc(100svh - 64px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-mobile .btn-wa,
.nav-ig-mob {
  line-height: 1;
}

.nav-mobile .btn-wa svg,
.nav-ig-mob svg {
  display: block;
  flex: 0 0 auto;
}

.nav-mobile .nav-mobile-actions .btn-wa,
.nav-mobile .nav-mobile-actions .nav-ig-mob {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  min-width: 0;
  padding: 0.75rem 1rem;
  line-height: 1;
}

.nav-links a,
.btn-wa,
.btn-gold-solid,
.btn-submit,
.btn-hero-gold,
.btn-hero-ghost,
.spill {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.btn-wa:hover,
.btn-gold-solid:hover,
.btn-submit:hover,
.btn-hero-gold:hover,
.btn-hero-ghost:hover {
  transform: translateY(-1px);
}

.btn-gold-solid,
.btn-submit {
  box-shadow: 0 10px 24px oklch(0.35 0.10 250 / 0.10);
}

.scard {
  box-shadow: 0 1px 0 oklch(0.35 0.10 250 / 0.025);
}

.scard:hover {
  box-shadow: 0 16px 44px oklch(0.35 0.10 250 / 0.11);
}

.field input,
.field textarea,
.field select {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  background: #fff;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px oklch(0.48 0.14 245 / 0.10);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid oklch(0.55 0.11 85);
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .nav-burger span {
    width: 24px;
    height: 2px;
  }

  .split-grid,
  .detail-cards {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .split-grid > * {
    order: initial !important;
  }

  .feature-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    padding: 2rem !important;
  }

  .feature-grid > div {
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
  }

  .feature-grid > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .client-type-grid,
  .testimonial-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }
}

@media (max-width: 600px) {
  .pgrid {
    grid-template-columns: 1fr !important;
    border: none !important;
  }

  .pstep {
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 1.4rem 1rem !important;
  }

  .pstep:last-child {
    border-bottom: none !important;
  }

  .quote-card {
    padding: 1.8rem 1.2rem;
  }

  .mob-grid-3 {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .nav-mobile {
    padding: 1.1rem 1rem;
  }

  .nav-mobile-actions {
    flex-direction: column;
  }

  .nav-mobile .btn-wa,
  .nav-ig-mob {
    width: 100%;
    justify-content: center;
  }

  .hero-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hstat {
    min-width: 0;
  }

  .hstat-label {
    text-align: left;
  }

  .scard {
    padding: 1.5rem !important;
  }

  .split-grid {
    margin-bottom: 3rem !important;
  }

  .split-grid > div[style*="min-height"] {
    min-height: 180px !important;
    padding: 2rem !important;
  }

  .s-eyebrow {
    letter-spacing: 2px;
  }

  .wa-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .wa-float-tooltip {
    display: none;
  }
}
