/* Astrid Hochart – Nutrition
   Static rebuild. Tokens mirror the raft block theme as overridden in
   wp_global_styles (green palette + Source Serif Pro site-wide). */

@font-face {
  font-family: "Source Serif Pro";
  src: url("../fonts/SourceSerif4-Roman.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
/* The matching italic face is unused by the current content. If italic text is
   added later, copy SourceSerif4Variable-Italic.ttf.woff2 from the raft theme
   (assets/fonts/source-serif-pro/) and declare it here. */

:root {
  --bg: #f5f4f1;
  --fg: #292e29;
  --accent: #4d6e50;
  --accent-secondary: #3f5a41;
  --bg-inv: #171a17;
  --bg-alt: rgba(255, 255, 255, 0.9);
  --fg-alt: #ffffff;

  --space-20: clamp(0.4rem, 2vw, 0.5rem);
  --space-30: clamp(0.6rem, 2.5vw, 1rem);
  --space-40: clamp(1rem, 3vw, 1.5rem);
  --space-50: clamp(1.5rem, 4vw, 2rem);
  --space-60: clamp(2rem, 5vw, 3rem);
  --space-70: clamp(3rem, 6vw, 4rem);
  --space-80: clamp(3rem, 7vw, 5rem);

  --text-small: 14px;
  --text-normal: 18px;
  --text-medium: 24px;
  --text-large: 28px;
  --text-xlarge: 32px;
  --text-huge: 56px;

  --content: 740px;
  --wide: 960px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Source Serif Pro", Georgia, "Times New Roman", serif;
  font-size: var(--text-normal);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; }

h1, h2, h3 {
  line-height: 1.2;
  margin: 0;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 5vw, var(--text-huge)); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, var(--text-medium)); }

p { margin: 0; }

/* ---------- layout helpers ---------- */

.section {
  padding: var(--space-80) var(--space-40);
}

.constrained {
  max-width: var(--content);
  margin-inline: auto;
}

.wide {
  max-width: var(--wide);
  margin-inline: auto;
}

.stack > * + * { margin-top: var(--space-40); }
.stack-sm > * + * { margin-top: var(--space-30); }
.stack-lg > * + * { margin-top: var(--space-50); }

.center { text-align: center; }

/* ---------- header ---------- */

.site-header {
  padding: var(--space-50) var(--space-40) var(--space-30);
  text-align: center;
}

.site-header h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
}

/* ---------- hero ---------- */

.hero {
  background: var(--bg-inv);
  color: var(--fg-alt);
}

.hero a { color: var(--fg-alt); }

.hero-grid {
  max-width: var(--wide);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--space-50);
}

.hero-text {
  flex: 1 1 0;
  padding: var(--space-40);
}

.hero-media {
  flex: 0 0 30%;
  display: flex;
  justify-content: center;
}

.hero-media img {
  width: 329px;
  max-width: 100%;
}

/* ---------- services ---------- */

.services-title {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--space-40);
}

.services-grid {
  max-width: var(--wide);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-50);
}

.service img {
  margin-inline: auto;
  max-height: 170px;
  width: auto;
}

.service h3 {
  text-align: center;
  margin-top: var(--space-40);
}

.service p { margin-top: var(--space-40); }

/* ---------- buttons ---------- */

.buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-30);
  padding: 0 var(--space-40);
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--fg-alt);
  text-decoration: none;
  padding: 0.7em 1.6em;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.15s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-secondary);
}

/* ---------- testimonial ---------- */

.panel-alt { background: var(--bg-alt); }

.quote { font-size: var(--text-medium); }

.stars {
  color: var(--accent);
  font-size: var(--text-medium);
}

.attribution {
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ---------- book ---------- */

.book-grid {
  max-width: var(--wide);
  margin-inline: auto;
  display: flex;
  gap: var(--space-50);
  align-items: center;
}

.book-grid > * { flex: 1 1 0; }

/* ---------- call to action ---------- */

.cta {
  background: var(--accent);
  color: var(--fg-alt);
  text-align: center;
}

.cta a { color: var(--fg-alt); }

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--text-medium);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 0.1em;
}

.email-link:hover { opacity: 0.85; }

.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex: none;
}

.social {
  display: flex;
  gap: var(--space-30);
  list-style: none;
  margin: 0;
  padding: 0;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  background: currentColor;
  text-decoration: none;
}

.social svg {
  width: 1.1em;
  height: 1.1em;
  fill: var(--bg-inv);
}

/* ---------- footer ---------- */

.site-footer {
  padding: var(--space-50) var(--space-40);
  text-align: center;
  font-size: var(--text-small);
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; }

  .hero-grid,
  .book-grid {
    flex-direction: column;
  }

  .hero-media { flex-basis: auto; order: -1; }

  .book-grid > * { width: 100%; }
}
