:root {
  --bg: #f8faf8;
  --surface: #ffffff;
  --text: #1f2a24;
  --muted: #53635a;
  --primary: #0c8f6d;
  --primary-dark: #096f55;
  --line: #d7e4dc;
  --shadow: 0 10px 30px rgba(31, 42, 36, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at top right, #e3f3ec 0%, var(--bg) 40%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: color-mix(in oklab, var(--bg) 86%, white);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.brand-logo {
  display: block;
  height: 68px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 1rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

.main-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}

.btn {
  display: inline-block;
  padding: 0.68rem 1rem;
  border-radius: 0.6rem;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  color: var(--primary-dark);
  border-color: var(--primary-dark);
  background: transparent;
}

.hero {
  padding: 0;
}

#home,
#services,
#about,
#team,
#contact {
  scroll-margin-top: 90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
}

.hero-cover-wrap {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
  min-height: clamp(220px, 38vh, 360px);
  overflow: hidden;
}

.hero-cover {
  width: 100%;
  height: 100%;
  min-height: clamp(220px, 38vh, 360px);
  display: block;
  object-fit: cover;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(0.9rem, 2.5vw, 2rem);
  color: #fff;
  background:
    linear-gradient(to top, rgba(8, 16, 12, 0.7) 0%, rgba(8, 16, 12, 0.45) 38%, rgba(8, 16, 12, 0.18) 62%, rgba(8, 16, 12, 0.05) 100%);
}

.hero-overlay > * {
  max-width: 64ch;
}

.hero-overlay .eyebrow {
  color: #d7fff0;
}

.hero-overlay h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  margin-bottom: 0.6rem;
}

.hero-overlay .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
}

.hero-overlay .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.eyebrow {
  color: var(--primary-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  margin-bottom: 0.8rem;
}

.cta-row {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.section {
  padding: 3rem 0;
}

.intro {
  color: var(--muted);
  max-width: 70ch;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.card-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.highlight-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1.15rem;
  box-shadow: var(--shadow);
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.team-photo {
  width: 220px;
  height: 220px;
  display: block;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 3px solid #bfd0c6;
}

.team-position {
  color: var(--muted);
  font-weight: 500;
}

form {
  display: grid;
  gap: 0.55rem;
}

input,
textarea {
  font: inherit;
  padding: 0.62rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #bfd0c6;
}

.form-note {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.map-card {
  margin-top: 1rem;
}

.map-embed {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 0.75rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 1.2rem 0 1.8rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .card-grid,
  .card-grid.two-col,
  .about-grid,
  .contact-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }

  .hero-overlay {
    justify-content: flex-end;
  }
}

@media (max-width: 560px) {
  .brand-logo {
    height: 54px;
  }

  .hero-cover-wrap,
  .hero-cover {
    min-height: 520px;
  }

  .hero-overlay {
    justify-content: flex-start;
    padding: 1rem;
  }

  .hero-overlay h1 {
    font-size: clamp(1.4rem, 8vw, 1.9rem);
    margin-bottom: 0.5rem;
  }

  .hero-overlay p {
    margin: 0 0 0.6rem;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
  }

  .schedule-btn {
    width: 100%;
    text-align: center;
  }
}
