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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-text-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-text-link-hover);
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.hero-title,
.text-hero {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-brand-navy);
}

h1, .h1 {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--color-brand-navy) 0%, var(--color-brand-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2, .h2 {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--color-brand-navy) 0%, var(--color-brand-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h3, .h3 {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--color-brand-navy) 0%, var(--color-brand-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1, .hero h2, .hero h3,
.page-header h1, .page-header h2, .page-header h3,
.service-area h1, .service-area h2, .service-area h3,
.cta-banner h1, .cta-banner h2, .cta-banner h3,
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4,
.proof-bar h1, .proof-bar h2, .proof-bar h3 {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: var(--color-neutral-0);
  background-clip: unset;
  color: var(--color-neutral-0);
}

h4, .h4 {
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--color-blue-800);
}

h5, .h5 {
  font-family: var(--font-body);
  font-size: var(--text-h5);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--color-blue-700);
}

h6, .h6, .eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-h6);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

p {
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

.body-lg, .lead {
  font-family: var(--font-body);
  font-size: var(--text-body-lg);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--color-text-secondary);
}

small, .small, .text-sm {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--color-text-secondary);
}

.caption, .legal, figcaption {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--color-text-muted);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-center { text-align: center; }
.text-white  { color: var(--color-neutral-0); }

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.container--sm {
  max-width: var(--container-sm);
}

.container--md {
  max-width: var(--container-md);
}

.container--lg {
  max-width: var(--container-lg);
}

section {
  padding: var(--space-20) 0;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-h6);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sage-600);
  margin-bottom: var(--space-3);
}

.section-title {
  margin-bottom: var(--space-4);
}

.section-desc {
  max-width: 720px;
  margin-bottom: var(--space-10);
}

.section-header {
  margin-bottom: var(--space-12);
}

.section-header.text-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.bg-light   { background-color: var(--color-bg-secondary); }
.bg-dark    { background-color: var(--color-bg-dark); }
.bg-accent  { background-color: var(--color-blue-50); }

.gradient-text {
  background: linear-gradient(135deg, var(--color-brand-navy) 0%, var(--color-brand-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text--sage {
  background: linear-gradient(135deg, var(--color-sage-700) 0%, var(--color-sage-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text--light {
  background: linear-gradient(135deg, var(--color-neutral-0) 0%, var(--color-brand-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 768px) {
  section { padding: var(--space-24) 0; }
}
