/* ========== CSS RESET (minimal) ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

/* ========== THEME TOKENS ========== */
/* Base variables (light theme defaults) */
:root {
  --color-bg: #f5f6f7;
  --color-surface: #ffffff;
  --color-soft: #e7f1ea;

  --color-green: #2a8c47;
  --color-green-light: #70c15c;
  --color-green-dark: #164225;

  --color-text: #132026;
  --color-text-soft: #42525a;
  --color-border: #d0d7dd;

  --color-accent: #2a8c47;

  --radius-sm: 0.4rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;

  --shadow-soft: 0 14px 35px rgba(15, 27, 23, 0.12);

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Dark theme overrides */
html[data-theme="dark"] {
  --color-bg: #020617;           /* near-black slate */
  --color-surface: #0b1720;
  --color-soft: #07131b;

  --color-green: #70c15c;
  --color-green-light: #9be774;
  --color-green-dark: #1e8342;

  --color-text: #e5edf3;
  --color-text-soft: #9fb2be;
  --color-border: #1f2933;

  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.65);
}

/* ========== GLOBAL ========== */

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at top left, #eaf4ed 0, var(--color-bg) 55%);
  color: var(--color-text);
  min-height: 100vh;
}

html[data-theme="dark"] body {
  background: radial-gradient(circle at top left, #0b1f15 0, var(--color-bg) 55%);
}

.shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover,
a:focus {
  text-decoration: underline;
}

/* ========== HEADER ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background-color: color-mix(in srgb, var(--color-bg) 85%, transparent);
  border-bottom: 1px solid var(--color-border);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.6rem;
}

/* Brand container */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

/* Wordmark images */
.brand-logo {
  display: block;
  height: 120px;   /* desktop size that looked best */
  width: auto;
}

/* Scale down on medium screens */
@media (max-width: 768px) {
  .brand-logo {
    height: 80px;
  }
}

/* Slightly smaller logo on very small screens */
@media (max-width: 480px) {
  .brand-logo {
    height: 56px;
  }
}

/* Default: show light logo, hide dark */
.brand-logo--light { display: block; }
.brand-logo--dark { display: none; }

/* In dark mode: swap logos */
html[data-theme="dark"] .brand-logo--light { display: none; }
html[data-theme="dark"] .brand-logo--dark { display: block; }

/* Theme toggle */
.theme-toggle {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  background: var(--color-surface);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}
.theme-toggle:hover {
  box-shadow: var(--shadow-soft);
}
.theme-icon {
  display: inline-block;
}

/* ========== HERO ========== */

.hero {
  position: relative;
  padding: 2.5rem 0 2rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr);
    align-items: stretch;
  }
}

.hero-text h1 {
  font-size: clamp(2rem, 3vw + 1rem, 2.8rem);
  margin: 0.4rem 0 0.65rem;
  letter-spacing: 0.01em;
}
.hero .lede {
  margin: 0 0 1.25rem;
  color: var(--color-text-soft);
  max-width: 40rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-green-dark);
}
html[data-theme="dark"] .eyebrow {
  color: var(--color-green-light);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-dark) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}
.btn.primary:hover {
  filter: brightness(1.05);
}

.btn.ghost {
  background: transparent;
  color: var(--color-green-dark);
  border-color: var(--color-border);
}
html[data-theme="dark"] .btn.ghost {
  color: var(--color-green-light);
}
.btn.ghost:hover {
  background: color-mix(in srgb, var(--color-soft) 70%, transparent);
}

.fine-print {
  font-size: 0.8rem;
  color: var(--color-text-soft);
}

.hero-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
}
.hero-card h2 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1.1rem;
}
.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero-card li {
  font-size: 0.9rem;
  padding: 0.25rem 0;
}

/* Decorative emblem in the hero background */
.hero-emblem {
  position: absolute;
  left: -12%;
  bottom: -25%;
  width: 60vw;
  max-width: 420px;
  opacity: 0.14;
  pointer-events: none;
}

/* Swap to dark emblem in dark mode */
html[data-theme="dark"] .hero-emblem {
  content: url('../img/logo-emblem-dark.png');
  opacity: 0.20;
}

/* On small screens, shrink / soften the emblem */
@media (max-width: 640px) {
  .hero-emblem {
    width: 70vw;
    max-width: 320px;
    left: -20%;
    bottom: -20%;
    opacity: 0.12;
  }
}

/* ========== SECTIONS ========== */

.section {
  padding: 2.75rem 0;
}
.section-soft {
  background: var(--color-soft);
}
html[data-theme="dark"] .section-soft {
  background: #020e0a;
}

.section-header {
  margin-bottom: 1.5rem;
}
.section-header h2 {
  margin: 0.2rem 0 0;
  font-size: 1.6rem;
}
.max-60 {
  max-width: 60ch;
}

/* Cards grid */

.cards-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}
.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}
.card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.92rem;
}

/* Two-column layout */

.cols-2 {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 768px) {
  .cols-2 {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
    align-items: start;
  }
}

.bullet-list {
  margin: 0;
  padding-left: 1.1rem;
}
.bullet-list li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Callout */

.callout {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}
.callout-text {
  margin: 0 0 0.5rem;
}
.callout-author {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

/* Contact layout */

.contact-layout {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
  }
}

.contact-details ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}
.contact-details li {
  margin-bottom: 0.35rem;
}

/* Form */

.contact-form {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem 1.35rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.field {
  margin-bottom: 0.9rem;
}
.field label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}
.field input,
.field textarea {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  padding: 0.5rem 0.6rem;
  font: inherit;
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-surface) 85%, var(--color-soft) 15%);
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--color-green);
  outline-offset: 1px;
  border-color: transparent;
}

.hidden {
  display: none;
}

/* ========== FOOTER ========== */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.25rem 0 1.8rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--color-text-soft);
}

/* ========== SMALL SCREENS ========== */

@media (max-width: 480px) {
  .site-header .shell {
    padding-inline: 1rem;
  }
  .hero {
    padding-top: 2rem;
  }
}