/* AGGROLOGIX site — one stylesheet, no dependencies.
   Brand tokens live in :root so the logo/colors can drop in later. */

:root {
  --bg: #fbfbf9;
  --panel: #ffffff;
  --fg: #16181d;
  --muted: #5b6270;
  --line: #e3e5e8;
  --accent: #1f5f8b;
  --accent-fg: #ffffff;
  --radius: 12px;
  --measure: 62ch;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101216;
    --panel: #181b21;
    --fg: #eceef2;
    --muted: #9aa3b2;
    --line: #2a2f38;
    --accent: #6fb3e6;
    --accent-fg: #0d1117;
  }
}

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

html { color-scheme: light dark; }

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

/* Layout — phone first, then purposely re-laid out at tablet and desktop */

.site-header, main, .site-footer {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

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

.wordmark {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--fg);
  font-size: 1.05rem;
}

.site-nav { display: none; gap: 1.5rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--fg); }

.hero { padding: 3rem 0 2.5rem; max-width: var(--measure); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1rem;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }

.button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { filter: brightness(1.08); text-decoration: none; }

.section { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.section > p { max-width: var(--measure); }

.cards { display: grid; gap: 1rem; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.card p { margin: 0; color: var(--muted); }

.contact p { max-width: var(--measure); }

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 1.25rem; }
.site-footer a { color: var(--muted); }

/* Legal pages */
.legal { max-width: var(--measure); padding: 2rem 0 3rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal .updated { color: var(--muted); font-size: 0.95rem; }

/* Tablet: nav appears, hero breathes */
@media (min-width: 40rem) {
  .site-nav { display: flex; }
  .hero { padding: 4.5rem 0 3.5rem; }
}

/* Desktop: three-up cards, wider rhythm, footer on one line */
@media (min-width: 60rem) {
  body { font-size: 1.125rem; }
  .hero { padding: 6rem 0 4.5rem; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .card { padding: 1.75rem; }
  .section { padding: 3.5rem 0; }
  .site-footer { flex-direction: row; justify-content: space-between; align-items: center; }
}
