:root {
  --ai-blue: #d1e8f4;
  --ai-blue-deep: #a8d4ea;
  --ai-text: #2d3436;
  --ai-text-muted: #636e72;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ai-text);
}

.navbar-brand {
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Comfortable tap targets on small screens (nav + primary actions) */
@media (max-width: 991.98px) {
  .nav-link-touch {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }
}

.bg-ai-blue {
  background-color: var(--ai-blue) !important;
}

.text-muted-custom {
  color: var(--ai-text-muted) !important;
}

.hero-section {
  background: linear-gradient(135deg, var(--ai-blue) 0%, #e8f4fa 50%, #fff 100%);
}

/* Fluid headline: readable on phones, strong on desktop */
.hero-title {
  font-size: clamp(1.35rem, 4.2vw + 0.6rem, 2.5rem);
  line-height: 1.2;
}

.hero-lead {
  font-size: clamp(1rem, 1.5vw + 0.75rem, 1.25rem);
}

footer.bg-ai-blue a {
  color: var(--ai-text);
}

.footer-safe {
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
}

.btn-primary {
  --bs-btn-bg: #2d3436;
  --bs-btn-border-color: #2d3436;
  --bs-btn-hover-bg: #1e2224;
  --bs-btn-hover-border-color: #1e2224;
}

.card {
  border: 1px solid rgba(45, 52, 54, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    box-shadow: 0 0.5rem 1.25rem rgba(45, 52, 54, 0.08);
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }
}

.service-icon {
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ai-blue);
  border-radius: 0.75rem;
  font-size: 1.5rem;
}

/* Avoid iOS zooming focused inputs (needs ≥16px) */
.form-control,
.form-select,
textarea.form-control {
  font-size: 1rem;
}

/* Page headers: scale down slightly on narrow viewports */
.page-header h1 {
  font-size: clamp(1.35rem, 3vw + 0.75rem, 1.75rem);
}
