:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --surface: #ffffff;
  --ink: #12161f;
  --muted: #5b6472;
  --line: #d9d4c9;
  --accent: #0f766e;
  --accent-dark: #0b4f4a;
  --gold: #c28a1d;
  --navy: #18283b;
  --shadow: 0 18px 48px rgba(18, 22, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(247, 244, 238, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 18px clamp(20px, 5vw, 72px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand,
.nav-links {
  align-items: center;
  display: flex;
  gap: 12px;
}

.brand {
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--navy);
  border-radius: 7px;
  color: #fff;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.nav-links {
  gap: clamp(14px, 3vw, 32px);
}

.nav-links a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent-dark);
}

.hero {
  align-items: stretch;
  background:
    linear-gradient(90deg, rgba(247, 244, 238, 0.98) 0%, rgba(247, 244, 238, 0.92) 38%, rgba(247, 244, 238, 0.58) 67%, rgba(247, 244, 238, 0.25) 100%),
    url("assets/beyondmind-hero.jpg");
  background-position: center;
  background-size: cover;
  display: grid;
  gap: clamp(24px, 5vw, 56px);
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  min-height: calc(88vh - 75px);
  padding: clamp(64px, 10vw, 124px) clamp(20px, 5vw, 72px) clamp(48px, 8vw, 88px);
}

.hero-content {
  align-self: center;
  max-width: 880px;
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.45rem, 7vw, 5.9rem);
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 26px;
  max-width: 980px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: 0;
  line-height: 1.06;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.18rem;
  line-height: 1.25;
  margin-bottom: 12px;
}

.hero-copy {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  align-items: center;
  border-radius: 7px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none;
}

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

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--accent-dark);
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--navy);
}

.hero-panel {
  align-self: center;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.96), rgba(24, 40, 59, 0.96)),
    radial-gradient(circle at 80% 20%, rgba(194, 138, 29, 0.55), transparent 34%);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: #fff;
  display: grid;
  gap: 20px;
  min-height: 360px;
  padding: clamp(24px, 4vw, 40px);
}

.hero-panel > div {
  align-content: end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  display: grid;
  min-height: 135px;
}

.hero-panel > div:last-child {
  border-bottom: 0;
}

.metric {
  display: block;
  font-size: clamp(3rem, 6vw, 5.4rem);
  font-weight: 900;
  line-height: 1;
}

.metric-label {
  color: rgba(255, 255, 255, 0.82);
  display: block;
  font-weight: 700;
  max-width: 260px;
}

.section {
  background: var(--surface);
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.1rem;
}

.service-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 38px;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 260px;
  padding: 26px;
}

.service-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.service-number {
  color: var(--gold);
  display: inline-block;
  font-weight: 900;
  margin-bottom: 42px;
}

.approach {
  display: grid;
  gap: clamp(28px, 6vw, 70px);
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.approach-list {
  border-top: 1px solid var(--line);
}

.approach-list > div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: 150px 1fr;
  padding: 24px 0;
}

.approach-list h3,
.approach-list p {
  margin: 0;
}

.approach-list p {
  color: var(--muted);
}

.footer {
  align-items: center;
  background: var(--navy);
  color: #fff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: clamp(42px, 7vw, 72px) clamp(20px, 5vw, 72px);
}

.footer .eyebrow {
  color: #65d8cd;
}

.footer h2 {
  margin-bottom: 0;
}

.footer-copy {
  display: grid;
  gap: 20px;
}

.copyright {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
  margin: 0;
}

.contact-link {
  background: #fff;
  border-radius: 7px;
  color: var(--navy);
  font-weight: 900;
  min-width: max-content;
  padding: 14px 18px;
  text-decoration: none;
}

@media (max-width: 900px) {
  .hero,
  .approach {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    gap: 14px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .service-grid,
  .approach-list > div {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .service-number {
    margin-bottom: 24px;
  }

  .contact-link {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
