/* Stanrell — shared styles */

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

:root {
  --navy:   #1e3a5f;
  --blue:   #2563eb;
  --blue-h: #1d4ed8;
  --text:   #1f2937;
  --muted:  #6b7280;
  --bg:     #ffffff;
  --surf:   #f8fafc;
  --border: #e2e8f0;
  --radius: 8px;
  --max-w:  860px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Nav ─────────────────────────────────────────────── */
.site-nav {
  background: var(--navy);
  padding: 0 1.25rem;
}
.site-nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 52px;
}
.site-nav__brand {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
}
.site-nav__link {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: .9rem;
}
.site-nav__link:hover { color: #ffffff; }

/* ── Layout ──────────────────────────────────────────── */
main { flex: 1; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  background: var(--surf);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 1.25rem 3rem;
  text-align: center;
}
.hero__eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .75rem;
}
.hero__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.hero__sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 1.75rem;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .6rem 1.4rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s;
}
.btn-primary {
  background: var(--blue);
  color: #ffffff;
}
.btn-primary:hover { background: var(--blue-h); }
.btn-outline {
  border: 1.5px solid var(--blue);
  color: var(--blue);
  background: transparent;
}
.btn-outline:hover { background: #eff6ff; }

/* ── Sections ────────────────────────────────────────── */
.section { padding: 3rem 1.25rem; }
.section--alt { background: var(--surf); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.section__lead {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* ── Cards ───────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.card__title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .4rem;
}
.card__body { font-size: .9rem; color: var(--muted); }

/* ── Steps ───────────────────────────────────────────── */
.steps { list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  margin-top: .1rem;
}
.steps li p { margin-top: .25rem; font-size: .9rem; color: var(--muted); }

/* ── Notice ──────────────────────────────────────────── */
.notice {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: .9rem;
  color: #1e40af;
  margin: 1.5rem 0;
}

/* ── Prose (legal pages) ─────────────────────────────── */
.prose h2 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin: 2rem 0 .5rem; }
.prose h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin: 1.25rem 0 .35rem; }
.prose p  { margin-bottom: .85rem; font-size: .95rem; }
.prose ul { margin: .5rem 0 .85rem 1.4rem; }
.prose ul li { font-size: .95rem; margin-bottom: .3rem; }
.prose a  { color: var(--blue); }

/* ── CWS notice ──────────────────────────────────────── */
.cws-badge {
  display: inline-block;
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .35rem 1rem;
  font-size: .85rem;
  color: var(--muted);
}

/* ── Product card on home ────────────────────────────── */
.product-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-decoration: none;
  transition: box-shadow .15s, border-color .15s;
  max-width: 440px;
}
.product-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  border-color: var(--blue);
}
.product-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .4rem;
}
.product-card__desc { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.product-card__cta { font-size: .88rem; color: var(--blue); font-weight: 600; }

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--surf);
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem;
  font-size: .82rem;
  color: var(--muted);
}
.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: .75rem; }
.site-footer__links a { color: var(--muted); text-decoration: none; }
.site-footer__links a:hover { color: var(--text); }
.site-footer__trademark { color: var(--muted); font-size: .78rem; line-height: 1.5; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 600px) {
  .hero__title { font-size: 1.5rem; }
  .card-grid { grid-template-columns: 1fr; }
}
