@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import './tokens.css';

/* ── Font overrides (extend tokens) ── */
:root {
  --font-display: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --nav-height: 80px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--color-primary-dark);
  background-color: var(--color-primary-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, textarea, select, button { font: inherit; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

section { padding-block: var(--space-20); }

/* ── Typography ── */
h1, h2, h3 { font-family: var(--font-display); }

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 24ch;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

p { max-width: 60ch; line-height: 1.7; }

em.accent {
  color: var(--color-accent-green);
  font-style: normal;
}

/* ── Eyebrow ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-green);
  margin-bottom: var(--space-4);
}

.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background-color: currentColor;
}

/* ── Utilities ── */
.text-center { text-align: center; }
.text-center p { margin-inline: auto; }
.text-center h2 { margin-inline: auto; }
.text-center .eyebrow { justify-content: center; }
.text-center .eyebrow::before { display: none; }

.bg-dark {
  background:
    radial-gradient(ellipse 60% 80% at 85% 40%, rgba(143, 186, 85, 0.08) 0%, transparent 100%),
    var(--color-primary-dark);
  color: var(--color-primary-light);
}

.bg-light { background-color: var(--color-primary-light); }
.bg-tint  { background-color: var(--color-soft-green-tint); }

/* ── Grid helpers ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

/* ── Section header ── */
.section-header { margin-bottom: var(--space-12); }
.section-header h2 { margin-top: var(--space-2); }
.section-header p { margin-top: var(--space-5); color: var(--color-mid-grey); font-size: 1.05rem; }
.bg-dark .section-header p { color: rgba(245,245,245,0.6); }

/* ── Divider ── */
hr.divider { border: none; border-top: 1px solid var(--color-light-grey); margin-block: var(--space-8); }

/* ── Page offset ── */
.page-offset { padding-top: var(--nav-height); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding-block: var(--space-16); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}
