/*
  Envorox — static site stylesheet
  Theme source: Envorox_Brand_Theme_Guideline.docx ("sea glass & clay")
  No animations, no transitions, no transforms-on-interaction — content is
  intentionally static so nothing moves while a visitor scrolls or hovers.
*/

/* ---------- Design tokens (from the brand guideline) ---------- */
:root {
  --navy: #1e3a3a;       /* primary — deep slate teal */
  --navy-2: #2c4a44;      /* primary tint — cards/badges on dark */
  --sage: #6e9b8f;        /* secondary — rings, dividers */
  --clay: #c98a5b;        /* accent — icons, CTAs, taglines */
  --cream: #f6f4ef;       /* text on dark */
  --mist: #f2f6f4;        /* light backgrounds */
  --ink: #2e3f3e;         /* text on light */
  --muted: #6f7d79;       /* secondary text on light */
  --muted-light: #a9c2bc; /* secondary text on dark */
  --line: #dce8e4;        /* borders/dividers */
  --green: #2f8f72;       /* affirmative signal only */
  --white: #ffffff;

  --font-head: "Bookman Old Style", Georgia, Cambria, "Times New Roman", serif;
  --font-body: Calibri, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --max-width: 72rem;
  --radius: 0.5rem;
}

/* ---------- Reset (minimal, no framework) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

body {
  font-family: var(--font-body);
  background: var(--mist);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1rem;
}

/* Respect users who ask for reduced motion — belt and suspenders,
   since this site ships no animation or transition rules at all. */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.section { padding-block: 3.5rem; }
.section--tight { padding-block: 2.25rem; }
.section--dark { background: var(--navy); color: var(--cream); }
.section--card { background: var(--navy-2); }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--cream); }

h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2.1rem); line-height: 1.2; margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 42rem;
}
.section--dark .lede { color: var(--muted-light); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  display: inline-block;
  margin-bottom: 0.6rem;
}

.tagline {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 700;
  color: var(--clay);
  font-size: 1.2rem;
}

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--navy);
  border-bottom: 1px solid var(--navy-2);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-block: 0.9rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--cream);
  letter-spacing: 0.02em;
}
.brand svg { width: 2rem; height: 2rem; flex: none; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.site-nav a {
  display: inline-block;
  padding: 0.4rem 0.2rem;
  font-size: 0.95rem;
  color: var(--muted-light);
  border-bottom: 2px solid transparent;
}
.site-nav a[aria-current="page"] {
  color: var(--cream);
  border-bottom-color: var(--clay);
  font-weight: 700;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--cream);
}

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.3rem;
  border-radius: 0.3rem;
  border: 1.5px solid var(--clay);
}
.btn--solid {
  background: var(--clay);
  color: var(--navy);
}
.btn--outline {
  background: transparent;
  color: var(--cream);
}
.section:not(.section--dark) .btn--outline {
  color: var(--navy);
  border-color: var(--navy);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--cream);
  padding-block: 4.5rem 4rem;
}
.hero .eyebrow { color: var(--clay); }
.hero h1 { color: var(--cream); max-width: 40rem; }
.hero p.lede { margin-top: 1rem; margin-bottom: 1.75rem; }
.hero .actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 2rem;
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--line);
}
.section--dark .card {
  background: var(--navy-2);
  border-color: var(--navy-2);
}
.card .icon-badge { margin-bottom: 0.9rem; }
.card p { color: var(--muted); font-size: 0.97rem; }
.section--dark .card p { color: var(--muted-light); }

.icon-badge {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.section--dark .icon-badge { background: var(--navy-2); }
.icon-badge svg { width: 1.5rem; height: 1.5rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin-top: 1.5rem; }
.data-table { min-width: 36rem; }
.data-table caption { text-align: left; color: var(--muted); font-size: 0.85rem; padding-bottom: 0.5rem; }
.data-table th, .data-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  vertical-align: top;
}
.data-table thead th {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-head);
  font-weight: 700;
}
/* Explicit background on every row (not just even ones) so table text stays
   readable regardless of whether the surrounding section is light or dark —
   rows must not fall through to inherit the page/section background. */
.data-table tbody tr { background: var(--white); }
.data-table tbody tr:nth-child(even) { background: #f7faf9; }
.data-table tbody th, .data-table tbody td { color: var(--ink); }
.data-table .yes { color: var(--green); font-weight: 700; }
.data-table .no { color: var(--muted); }
.data-table .col-accent { background: #f8eee4; }
.data-table tbody tr:nth-child(even) .col-accent { background: #f5e8da; }

/* ---------- Pull quote ---------- */
.pull-quote {
  border-left: 3px solid var(--clay);
  padding-left: 1.25rem;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--cream);
}
.pull-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--clay);
}

/* ---------- Roadmap ---------- */
.roadmap { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-top: 2rem; }
.roadmap .card .num { font-family: var(--font-head); font-size: 2.2rem; color: var(--sage); font-weight: 700; }
.roadmap .tag {
  display: inline-block;
  background: var(--clay);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  margin: 0.5rem 0 0.75rem;
}

/* ---------- Stat cards ---------- */
.stat-card h3 { font-family: var(--font-head); color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--muted-light);
  padding-block: 2.5rem;
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-footer .brandmark {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cream);
  font-size: 0.95rem;
}
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.site-footer nav a { color: var(--muted-light); }
.site-footer nav a:hover, .site-footer nav a:focus-visible { color: var(--cream); }
.footer-bottom {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 1rem 1.25rem 0;
  margin-top: 1.5rem;
  border-top: 1px solid var(--navy-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted-light);
}
.visitor-count { display: flex; align-items: center; gap: 0.5rem; }
.visitor-count img { height: 1.25rem; width: auto; }

/* ---------- Focus visibility (accessibility, no motion involved) ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

/* ---------- Small screens ---------- */
@media (max-width: 40rem) {
  .section { padding-block: 2.5rem; }
  .hero { padding-block: 3rem 2.5rem; }
  .site-header .container { flex-direction: column; align-items: flex-start; }
}
