:root {
  color-scheme: light;
  --bg: #f7faf8;
  --surface: #ffffff;
  --surface-2: #eef5f1;
  --ink: #101817;
  --muted: #52605d;
  --line: #dce7e2;
  --green: #073f2d;
  --green-2: #0d6a4b;
  --teal: #0b4e58;
  --mint: #cbe4d5;
  --silver: #cdd6d5;
  --shadow: 0 22px 70px rgba(5, 34, 29, 0.13);
  --radius: 22px;
  --max: 1160px;
  --space: 8px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; overflow-x: hidden; }
body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  padding-top: 136px;
  font-family: var(--font);
  color: var(--ink);
  background: radial-gradient(circle at 10% 0%, rgba(203, 228, 213, .62), transparent 34rem), var(--bg);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-2); text-underline-offset: .18em; }
a:hover { color: var(--teal); }
button, input, select, textarea { font: inherit; }

/* Keep every block on the same centered page grid; align content left inside that grid. */
.container { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; text-align: left; }
.narrow { max-width: var(--max); }
.narrow > h1, .narrow > h2, .narrow > h3, .narrow > p, .narrow > ul { max-width: 850px; }
.section, .statement, .info-card, .team-card, .contact-details, .contact-form { text-align: left; }
/* Remark 4: white space between blocks reduced ~50% */
.section { padding: clamp(36px, 5vw, 64px) 0; }
/* Remark 6: more distinctive background-color contrast between blocks */
.alt { background: linear-gradient(180deg, #d9ebe1, #c8e0d2 60%, #b9d6c5); }
.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(247, 250, 248, .92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220, 231, 226, .92);
}
.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
/* Remark 1: logo in header doubled */
.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(260px, 26vw, 390px);
  border-radius: 0;
}
.brand:focus-visible, .site-nav a:focus-visible, .button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .nav-toggle:focus-visible {
  outline: 3px solid rgba(13, 106, 75, .45);
  outline-offset: 4px;
}
.brand img { width: 100%; border-radius: 0; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.95rem;
}
.site-nav a:hover { background: var(--surface-2); color: var(--green); }
.site-nav .nav-cta { background: var(--green); color: #fff; padding-inline: 18px; }
.site-nav .nav-cta:hover { background: var(--green-2); color: #fff; }
.nav-toggle { display: none; }

/* Remark 4: hero top spacing also reduced ~50% */
.hero { padding-top: clamp(24px, 3.5vw, 44px); }
.hero-grid, .split, .contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.hero-copy { max-width: 690px; }
/* Remark 2: green titles (eyebrows) +4px */
.eyebrow {
  margin: 0 0 14px;
  color: var(--green-2);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 1.02rem; /* was .77rem (~12.3px) -> ~16.3px */
}
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.035em; color: var(--ink); }
/* Remark 3: hero H1 -8px smaller */
h1 { font-size: clamp(2.05rem, 4.9vw, 4.9rem); max-width: 760px; }
/* Remark 5: section H2 titles -4px smaller */
h2 { font-size: clamp(1.75rem, 3.2vw, 3.05rem); max-width: 780px; }
h3 { font-size: clamp(1.16rem, 1.6vw, 1.45rem); }
p { margin: 18px 0 0; color: var(--muted); }
.lead { font-size: clamp(1.15rem, 2vw, 1.38rem); color: #2a3835; max-width: 720px; }
.strong-line { color: var(--green); font-weight: 800; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--green); color: #fff; }
.button.primary:hover { background: var(--green-2); color: #fff; }
.button.secondary { background: #fff; color: var(--green); border-color: var(--line); }
.button.secondary:hover { border-color: var(--green-2); }
.hero-media, .split-media {
  border-radius: calc(var(--radius) + 10px);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid rgba(220, 231, 226, .9);
}
.hero-media img, .split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-media img { object-fit: contain; background: #fff; padding: 12px; }

/* Remark 4: tighter gaps and top margins */
.card-grid { display: grid; gap: 14px; margin-top: 22px; }
.six-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Remark 6: stronger contrast for info-cards on .alt sections */
.info-card {
  min-height: 100%;
  padding: clamp(22px, 3vw, 32px);
  background: rgba(255, 255, 255, .88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(5, 34, 29, .06);
}
.alt .info-card { background: #ffffff; border-color: #b9d6c5; }
.info-card h3 { color: var(--green); }
.info-card p { margin-top: 12px; }
.compact .info-card p { font-size: .97rem; }
.statement {
  margin-top: 22px;
  padding: clamp(24px, 4vw, 40px);
  background: linear-gradient(135deg, var(--green), #0d513f);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
}
.statement p { color: rgba(255, 255, 255, .88); max-width: 900px; }
.statement strong { color: #fff; }
.statement .button { margin-top: 24px; background: #fff; color: var(--green); }
.statement .button:hover { color: var(--green); background: var(--mint); }
.section-subtitle { margin-top: 8px; color: var(--green); }
.section-intro { margin-top: 10px; }
.reverse .split-copy { order: 2; }
.reverse .split-media { order: 1; }
.split-copy { max-width: 650px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}
.team-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  align-items: start;
  padding: clamp(22px, 3vw, 34px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: 0 16px 48px rgba(5, 34, 29, .08);
}
.portrait {
  width: 150px;
  aspect-ratio: 1;
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 28px rgba(5, 34, 29, .08);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.white-backdrop { background: #fff; padding: 8px; }
.white-backdrop img { border-radius: 18px; object-position: center top; }
.role { margin-top: 6px; color: var(--green-2); font-weight: 800; }

.contact-section { background: linear-gradient(135deg, #eef5f1, #ffffff 55%, #e7f3ee); }
.contact-grid { align-items: start; }
.contact-details {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
}
.contact-details h3, .contact-details h2 { color: var(--green); }
.contact-details a { font-weight: 700; }
.contact-form {
  padding: clamp(24px, 4vw, 40px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 10px);
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
label { display: block; font-weight: 800; margin-bottom: 8px; color: var(--ink); }
input, select, textarea {
  width: 100%;
  border: 1px solid #cbd8d2;
  border-radius: 14px;
  padding: 13px 14px;
  background: #fbfdfc;
  color: var(--ink);
}
textarea { resize: vertical; min-height: 150px; }
.hidden-field {
  position: absolute;
  inset: auto auto auto 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  clip-path: inset(50%);
}
.form-status { min-height: 28px; margin-top: 16px; font-weight: 700; color: var(--green); }
.form-status.error { color: #9d2525; }

.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { font-weight: 700; color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--green); text-decoration: underline; }
.simple-page { min-height: 100vh; display: flex; flex-direction: column; }
.page-main { flex: 1; padding-top: 80px; }
.page-main h1 { max-width: 12ch; font-size: clamp(2.2rem, 5vw, 4.4rem); }
.legal-copy h1 { max-width: 15ch; }
.legal-copy h2 { max-width: none; font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-top: 28px; }
.legal-copy ul { color: var(--muted); padding-left: 20px; margin-top: 12px; }
.legal-copy ul li { margin: 6px 0; }
.standalone { margin-top: 34px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-grid;
    gap: 5px;
    width: 46px;
    height: 46px;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
  }
  .nav-toggle span:not(.sr-only) { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 999px; }
  .site-nav:not(.always-visible) {
    position: fixed;
    inset: 96px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
  }
  body.nav-open .site-nav:not(.always-visible) { display: flex; }
  .site-nav:not(.always-visible) a { padding: 14px 16px; }
  .always-visible { display: none; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .reverse .split-copy, .reverse .split-media { order: initial; }
  h1, h2 { max-width: 100%; }
  .six-cards, .four-cards, .three-cards, .team-grid { grid-template-columns: 1fr; }
  .team-card { grid-template-columns: 120px 1fr; }
  .portrait { width: 120px; }
}

@media (max-width: 640px) {
  body { padding-top: 88px; }
  .container { width: min(var(--max), calc(100% - 24px)); }
  /* Remark 4: tighter section spacing on mobile too */
  .section { padding: 32px 0; }
  .header-inner { min-height: 88px; }
  .site-nav:not(.always-visible) { inset-top: 88px; }
  /* Remark 1: keep doubled logo on mobile */
  .brand { width: min(240px, calc(100vw - 104px)); }
  h1 { font-size: clamp(2rem, 11vw, 3.25rem); }
  h2 { font-size: clamp(1.65rem, 8.5vw, 2.45rem); }
  .hero-actions, .footer-inner { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .team-card { grid-template-columns: 1fr; }
  .portrait { width: 142px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
