/* =========================================================
   Analytics Division: styles
   EDIT ME: change colors, fonts, and sizing here.
   Everything below uses these variables.
   ========================================================= */
:root {
  --bg: #fbfaf7;          /* page background */
  --surface: #ffffff;     /* card background */
  --text: #15171c;        /* main text */
  --muted: #5b616e;       /* secondary text */
  --line: #e6e3dc;        /* borders */
  --accent: #1f4fd1;      /* buttons, links, highlights */
  --accent-dark: #173c9f; /* button hover */
  --accent-soft: #eef2fd; /* tinted background for the featured section */
  --accent-line: #d5dffa; /* border for the featured section */

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1100px;
  --radius: 12px;
  --gutter: clamp(16px, 5vw, 40px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 7vw, 4.25rem); font-weight: 800; max-width: 14ch; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 650; }
p  { margin: 0 0 1em; }

a { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 750;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
}

.header-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.header-link:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 10vw, 7rem) clamp(2.5rem, 7vw, 5rem); }

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  max-width: 38rem;
  margin-bottom: 2rem;
}

/* ---------- Button ---------- */
.button {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color 0.15s ease;
}
.button:hover { background: var(--accent-dark); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--line); }

/* Service cards: auto-fit grid, no breakpoints needed */
.cards, .steps, .social { list-style: none; margin: 0; padding: 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card p { color: var(--muted); margin: 0; font-size: 1rem; }

/* Content creation: highlighted feature block */
.feature {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.feature-text p:not(.eyebrow) { color: var(--muted); }
.feature-text p:last-child { margin-bottom: 0; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.checklist li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
}
.checklist li::before {           /* checkmark drawn with CSS borders */
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 50%;
  width: 0.45rem;
  height: 0.8rem;
  border: solid var(--accent);
  border-width: 0 2.5px 2.5px 0;
  transform: translateY(-60%) rotate(45deg);
}

/* About / bio: photo beside text on wide screens, stacked on phones */
.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center;
}
.about-photo {
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;          /* crops any photo to a square without stretching */
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.about-role { color: var(--muted); font-weight: 600; margin-top: -0.25rem; }
.about p:not(.eyebrow):not(.about-role) { color: var(--muted); max-width: 36rem; }

/* How we work: numbered steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: "0" counter(step);
  display: block;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.steps p { color: var(--muted); margin: 0; font-size: 1rem; }

/* Social links */
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.social a:hover { border-color: var(--accent); color: var(--accent); }
.social svg { width: 1.1rem; height: 1.1rem; fill: currentColor; flex-shrink: 0; }

/* ---------- Closing call-to-action ---------- */
.cta {
  text-align: center;
  padding-block: clamp(3rem, 8vw, 5rem);
  border-top: 1px solid var(--line);
}
.cta h2 { max-width: 22ch; margin-inline: auto; }
.cta p { color: var(--muted); max-width: 34rem; margin: 0 auto 1.75rem; }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer p { margin: 0; }

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
