/* ==========================================================================
   Simard Tech — styles
   Brand tokens live in :root. Change them here to restyle the whole site.
   ========================================================================== */

:root {
  --navy: #0B2545;
  --blue: #13315C;
  --teal: #14B8A6;        /* accent: icons, dots, decoration */
  --teal-dark: #0F766E;   /* accent for text and buttons (AA contrast on white) */
  --teal-tint: #E6F7F5;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #334155;
  --text-strong: #0B2545;
  --muted: #64748B;
  --border: #E2E8F0;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(11 37 69 / 0.06), 0 8px 24px rgb(11 37 69 / 0.06);
  --shadow-hover: 0 2px 4px rgb(11 37 69 / 0.08), 0 16px 40px rgb(11 37 69 / 0.10);
  --container: 1120px;
  --gutter: 1rem;
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

h1, h2, h3 {
  color: var(--text-strong);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 6vw + 0.5rem, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3vw + 0.75rem, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

a { color: var(--teal-dark); text-underline-offset: 3px; }

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

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

.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;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font: inherit; font-weight: 600;
  color: #fff;
  background: var(--teal-dark);
  border: 2px solid var(--teal-dark);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--navy); border-color: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }


/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(248 250 252 / 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 1px 12px rgb(11 37 69 / 0.05); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--navy);
}
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-name { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-accent { color: var(--teal-dark); margin-left: 0.3em; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(4rem, 9vw, 7rem);
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgb(20 184 166 / 0.10), transparent 60%),
    radial-gradient(50rem 30rem at 0% 100%, rgb(19 49 92 / 0.07), transparent 60%),
    var(--bg);
}
.hero-network {
  position: absolute; right: -8%; top: 50%; transform: translateY(-50%);
  width: min(720px, 110%); height: auto;
  color: var(--teal); opacity: 0.18;
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-inner h1 { max-width: 14em; }
.hero h1 { margin-bottom: 0.4em; }
.lead { font-size: clamp(1.1rem, 1vw + 0.9rem, 1.3rem); color: var(--text); max-width: 38em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ---------- Sections ---------- */
main { flex: 1; }
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-lead { font-size: 1.1rem; color: var(--muted); margin: 0; }

/* Services cards */
.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: rgb(20 184 166 / 0.4); }
.card-icon {
  width: 52px; height: 52px; margin-bottom: 1.25rem;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--teal-tint); color: var(--teal-dark);
}
.card-icon svg { width: 28px; height: 28px; }
.card > p { color: var(--muted); }

.checklist { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.checklist li { position: relative; padding-left: 1.75rem; color: var(--text); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.3em;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--teal-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230F766E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.5l2.2 2.2 4.8-5'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #CBD5E1; padding: 2.5rem 0; }
.footer-inner { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.brand-footer { color: #fff; }
.brand-footer .brand-accent { color: var(--teal); }
.footer-meta { margin: 0; font-size: 0.95rem; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  :root { --gutter: 1.5rem; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 1024px) {
  :root { --gutter: 2rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card { padding: 2rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
