:root {
  --bg: #faf6f0;
  --bg-alt: #f0e9dd;
  --surface: #ffffff;
  --text: #3a352f;
  --text-dim: #6b6459;
  --accent: #6b8f71;
  --accent-dark: #4f6b54;
  --clay: #c17f59;
  --border: rgba(58, 53, 47, 0.14);
  --max-width: 1160px;
  --space-section: clamp(3.5rem, 2.8rem + 3.5vw, 7rem);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  color: var(--accent-dark);
}

.logo-mark {
  width: 34px;
  height: 30px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.main-nav a {
  padding: 0.55rem 1rem;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 999px;
  color: var(--text-dim);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent-dark);
  background: var(--bg-alt);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: center;
  background: linear-gradient(100deg, rgba(250, 246, 240, 0.95) 0%, rgba(250, 246, 240, 0.72) 45%, rgba(250, 246, 240, 0.28) 78%),
    url("assets/hero.jpg") center 30% / cover no-repeat;
}

.hero .container {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem);
  max-width: 720px;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero p {
  max-width: 560px;
  color: var(--text-dim);
  font-size: 1.08rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.85rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  transition: background 150ms ease, transform 150ms ease;
}

.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  color: var(--accent-dark);
  font-weight: 600;
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* Section shell */
section {
  padding: var(--space-section) 0;
}

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

.section-heading {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.3rem);
  margin-bottom: 1rem;
}

.section-lede {
  color: var(--text-dim);
  max-width: 640px;
  margin-bottom: 2.75rem;
}

.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.founder-photos {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.founder-photos figure {
  text-align: center;
}

.founder-photos img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--surface);
  box-shadow: 0 8px 24px rgba(58, 53, 47, 0.12);
  margin-bottom: 0.75rem;
}

.founder-photos figcaption {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-dark);
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.service-card {
  border-radius: 16px;
  padding: 2.25rem 1.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(58, 53, 47, 0.05);
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.service-card p {
  color: var(--text-dim);
  font-size: 0.96rem;
}

.condition-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.5rem;
}

.condition-list span {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  display: block;
  transition: box-shadow 150ms ease, transform 150ms ease;
}

a.team-card:hover {
  box-shadow: 0 10px 26px rgba(58, 53, 47, 0.1);
  transform: translateY(-2px);
}

.team-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--clay));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.team-card .role {
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.team-card .credentials {
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* Individual profile page */
.profile-header {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.profile-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--clay));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 2.2rem;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-body {
  max-width: 720px;
}

.profile-body h2 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.75rem;
}

.profile-body p,
.profile-body li {
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}

.profile-body ul {
  padding-left: 1.2rem;
}

.profile-contact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  max-width: 720px;
}

.profile-contact dt {
  color: var(--text-dim);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.9rem;
}

.profile-contact dt:first-child {
  margin-top: 0;
}

.profile-contact dd {
  font-size: 1rem;
  margin-top: 0.2rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Affiliations */
.affiliations {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  justify-content: center;
  align-items: center;
}

.affiliations a {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
}

.affiliations a:hover {
  color: var(--accent-dark);
  border-color: var(--accent);
}

/* CTA band */
.cta-band {
  text-align: center;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #fff;
}

.cta-band h2 {
  color: #fff;
  font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  margin-bottom: 1.5rem;
}

.cta-band .btn {
  background: #fff;
  color: var(--accent-dark);
}

.cta-band .btn:hover {
  background: var(--bg-alt);
}

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-details dt {
  color: var(--text-dim);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 1.5rem;
}

.contact-details dd {
  font-size: 1.02rem;
  margin-top: 0.3rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 0.75rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form button {
  justify-self: start;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  border: none;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  background: var(--bg-alt);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--accent-dark);
}

/* Responsive */
@media (max-width: 820px) {
  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Growing wisteria vine overlay */
.sapling-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 60;
  pointer-events: none;
}

.sapling-sprite {
  position: absolute;
  width: 230px;
  transform-origin: center;
  filter: drop-shadow(0 4px 8px rgba(30, 25, 15, 0.25));
  will-change: transform, opacity;
}

@media (max-width: 640px) {
  .sapling-sprite {
    width: 140px;
  }
}
