/* === Tokens === */
:root {
  --color-primary: #059669;
  --color-secondary: #10B981;
  --color-accent: #FBBF24;
  --color-neutral-dark: #064E3B;
  --color-neutral-light: #ECFDF5;
  --color-text: #0f2b23;
  --color-muted: #4b6b62;
  --color-border: rgba(6, 78, 59, 0.14);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 10px;
  --shadow: 0 20px 45px -25px rgba(6, 78, 59, 0.35);
}

/* === Base === */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: #ffffff;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); font-weight: 600; line-height: 1.2; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 1.25rem; }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-neutral-dark); }
.btn-accent { background: var(--color-accent); color: var(--color-neutral-dark); }
.btn-accent:hover { background: #f5a623; }

/* === Header === */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: #ffffff;
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 0.75rem;
  gap: 1rem;
}
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle {
  background: transparent; border: 1px solid var(--color-border);
  border-radius: 8px; padding: 0.4rem 0.5rem; cursor: pointer;
  color: var(--color-neutral-dark);
}
.primary-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff;
  padding: 1rem 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}
.primary-nav.is-open { display: flex; }
.primary-nav a {
  color: var(--color-neutral-dark);
  padding: 0.6rem 0;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}
.primary-nav a[aria-current="page"] { color: var(--color-primary); }

@media (min-width: 768px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex;
    flex-direction: row;
    position: static;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
    gap: 2rem;
  }
  .primary-nav a { padding: 0; border: none; }
  .primary-nav a:hover { color: var(--color-primary); text-decoration: none; }
}

/* === Hero (stacked) === */
.hero-stacked {
  max-width: 780px;
  margin-inline: auto;
  padding-block: 3rem 2rem;
  text-align: left;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero-stacked h1 { margin-bottom: 2rem; }
.hero-figure {
  margin: 0 0 2rem;
}
.hero-figure img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 60ch;
  margin-bottom: 1.5rem;
}
.hero-cta { margin-block: 1rem 0; }

@media (min-width: 768px) {
  .hero-stacked { padding-block: 5rem 3rem; }
  .hero-figure img { aspect-ratio: 21/9; }
}

/* === Intro sections === */
.intro {
  max-width: 780px;
  margin-inline: auto;
  padding-block: 2.5rem;
}
.intro p { font-size: 1.05rem; color: var(--color-text); }
.intro.with-image .section-figure {
  margin: 0 0 1.5rem;
}
.intro.with-image .section-figure img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
}

/* === Highlights grid === */
.highlights { padding-block: 3rem; }
.section-head { max-width: 640px; margin-inline: auto; text-align: center; margin-bottom: 2.5rem; }
.section-head p { color: var(--color-muted); }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--color-neutral-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card-icon { color: var(--color-primary); margin-bottom: 0.75rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { margin: 0; color: var(--color-muted); font-size: 0.98rem; }
.card-link { display: block; color: inherit; }
.card-link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.card-link h3 { color: var(--color-neutral-dark); }

/* === Testimonial === */
.testimonial {
  max-width: 780px;
  margin-inline: auto;
  padding-block: 3rem;
  text-align: center;
}
.testimonial h2 { margin-bottom: 2rem; }
.testimonial blockquote {
  margin: 0;
  padding: 2rem;
  background: var(--color-neutral-light);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  text-align: left;
}
.testimonial blockquote p {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-neutral-dark);
  line-height: 1.5;
}
.testimonial cite { display: block; margin-top: 1rem; font-style: normal; color: var(--color-muted); font-size: 0.95rem; }

/* === CTA band === */
.cta-band {
  background: var(--color-primary);
  color: #fff;
  padding-block: 3rem;
  text-align: center;
  margin-block: 2rem 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 55ch; margin-inline: auto; }

/* === Contact card === */
.contact-card {
  max-width: 780px;
  margin-inline: auto;
  padding-block: 3rem;
}
.contact-card .lede { color: var(--color-muted); font-size: 1.05rem; }

/* === Article detail === */
.article-detail {
  max-width: 65ch;
  margin-inline: auto;
  padding: 3rem 1.25rem 2rem;
}
.article-detail header { margin-bottom: 1.5rem; }
.article-detail h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.article-sub { font-size: 1.2rem; color: var(--color-muted); }
.article-hero { margin: 0 0 2rem; }
.article-hero img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
}
.article-detail p {
  font-size: 1.1rem;
  line-height: 1.75;
  margin-block: 1.25rem;
}
.article-footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.back-link { color: var(--color-primary); font-weight: 500; }

/* === Contact form === */
.contact-form-section { padding-block: 3rem; max-width: 720px; margin-inline: auto; }
.contact-form {
  display: grid;
  gap: 1.1rem;
  background: var(--color-neutral-light);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}
.form-row { display: flex; flex-direction: column; gap: 0.35rem; }
.form-row label { font-weight: 500; font-size: 0.95rem; color: var(--color-neutral-dark); }
.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}
.form-consent {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--color-muted);
  flex-wrap: wrap;
}
.form-consent input { margin-top: 0.25rem; }
.contact-form button[type="submit"] { justify-self: start; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: #d9ece4;
  padding-block: 3rem 1.5rem;
  margin-top: 3rem;
}
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.75rem; }
.site-footer a { color: #d9ece4; }
.site-footer a:hover { color: var(--color-accent); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.3fr; } }
.logo-footer img { height: 64px; background: var(--color-neutral-light); padding: 0.5rem 0.75rem; border-radius: 6px; }
.tagline { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin-top: 0.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.site-footer address { font-style: normal; line-height: 1.7; font-size: 0.95rem; margin-bottom: 0.75rem; }
.legal-links { margin-top: 0.75rem; font-size: 0.9rem; }
.copyright { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.25rem; margin-top: 2rem; font-size: 0.85rem; color: rgba(255,255,255,0.65); }

/* === Cookie banner === */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem;
  display: none; z-index: 9999;
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 640px;
  margin-inline: auto;
  font-size: 0.95rem;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; color: var(--color-neutral-light); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions button {
  font: inherit;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: var(--color-neutral-light);
  cursor: pointer;
}
.cookie-banner__actions button[data-cookie-accept] {
  background: var(--color-accent);
  color: var(--color-neutral-dark);
  border-color: var(--color-accent);
  font-weight: 600;
}
.cookie-banner__actions button:hover { background: rgba(255,255,255,0.08); }
.cookie-banner__actions button[data-cookie-accept]:hover { background: #f5a623; }
.cookie-banner__prefs { display: grid; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; }
.cookie-banner__prefs button {
  justify-self: start;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}
