/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--navy);
}
h1 { font-size: clamp(2.25rem, 5vw, var(--text-5xl)); }
h2 { font-size: clamp(1.75rem, 3.5vw, var(--text-4xl)); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
em { font-style: italic; color: var(--teal-600); }
p { color: var(--slate-dark); line-height: var(--leading-loose); }
strong { font-weight: 700; }

/* ── Container ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--text-base);
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-primary {
  background: var(--teal-600);
  color: var(--white);
  border-color: var(--teal-600);
}
.btn-primary:hover {
  background: var(--teal-700);
  border-color: var(--teal-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-300);
}
.btn-outline:hover {
  border-color: var(--teal-500);
  color: var(--teal-700);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-dark:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 41, 59, 0.25);
}

.btn-sm {
  padding: 10px 20px;
  font-size: var(--text-sm);
}
.btn-sm svg { width: 16px; height: 16px; }

/* ── Icon Box ── */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.icon-box svg { width: 22px; height: 22px; }

.icon-box.sm { width: 36px; height: 36px; border-radius: 8px; }
.icon-box.sm svg { width: 18px; height: 18px; }

.icon-box.lg { width: 56px; height: 56px; border-radius: var(--radius-lg); }
.icon-box.lg svg { width: 28px; height: 28px; }

/* Icon-box color variants */
.icon-box.teal  { background: var(--teal-100); color: var(--teal-700); }
.icon-box.coral  { background: var(--coral-light); color: var(--coral-dark); }
.icon-box.amber  { background: var(--amber-light); color: var(--amber-dark); }
.icon-box.green  { background: var(--green-light); color: var(--green-dark); }
.icon-box.navy  { background: var(--gray-100); color: var(--navy); }
.icon-box.white { background: rgba(255,255,255,0.15); color: var(--white); }

/* ── Section Header ── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-16);
}
.section-header h2 { margin-bottom: var(--space-4); }
.section-header p {
  font-size: var(--text-lg);
  color: var(--slate);
}

/* ── Section Tag ── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--teal-100);
  color: var(--teal-700);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-6);
}
.section-tag svg { width: 16px; height: 16px; }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Selection ── */
::selection {
  background: var(--teal-200);
  color: var(--teal-900);
}

/* ── Scrollbar (WebKit) ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--slate-light); }

/* ── Focus visible ── */
:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 2px;
}

/* ── Responsive helpers ── */
@media (max-width: 768px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
