:root {
  --ems-ink: #162524;
  --ems-muted: #5e6f6d;
  --ems-primary: #1cafad;
  --ems-primary-dark: #0c5752;
  --ems-accent: #d96f4a;
  --ems-soft: #eef7f5;
  --ems-line: #dce9e6;
}

body {
  color: var(--ems-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f8fbfa;
}

a {
  color: var(--ems-primary-dark);
}

.btn {
  border-radius: 8px;
  font-weight: 650;
}

.btn-primary {
  --bs-btn-bg: var(--ems-primary);
  --bs-btn-border-color: var(--ems-primary);
  --bs-btn-hover-bg: var(--ems-primary-dark);
  --bs-btn-hover-border-color: var(--ems-primary-dark);
}

.navbar {
  min-height: 76px;
  padding-top: 0;
  padding-bottom: 0;
}

.navbar-brand {
  color: var(--ems-ink);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

.brand-logo {
  width: auto;
  height: 100px;
  max-width: 300px;
  object-fit: contain;
}

.nav-link {
  color: var(--ems-muted);
  font-weight: 600;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--ems-primary-dark);
}

.hero-section {
  position: relative;
  min-height: 760px;
  background-image: url("https://images.unsplash.com/photo-1631815588090-d4bfec5b1ccb?auto=format&fit=crop&w=1800&q=85");
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 38, 36, .9), rgba(13, 38, 36, .52), rgba(13, 38, 36, .12));
}

.hero-content {
  position: relative;
  z-index: 1;
}

.text-white-75 {
  color: rgba(255, 255, 255, .82);
}

.launch-note {
  color: rgba(255, 255, 255, .78);
  max-width: 680px;
}

.eyebrow,
.section-kicker {
  color: var(--ems-accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12rem;
  text-transform: uppercase;
}

.hero-panel {
  padding: 1.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .18);
}

.metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .9rem 0;
  border-top: 1px solid var(--ems-line);
}

.metric span {
  color: var(--ems-muted);
}

.quick-actions {
  position: relative;
  z-index: 3;
}

.action-item {
  padding: 2rem;
  border-right: 1px solid var(--ems-line);
}

.action-item:last-child {
  border-right: 0;
}

.action-icon {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--ems-primary);
  font-weight: 800;
}

.action-item p,
.service-card p,
.team-card p,
.section-copy,
.check-row p,
.form-note,
.footer {
  color: var(--ems-muted);
}

.section-pad {
  padding: 6rem 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  font-weight: 700;
  color: var(--ems-ink);
}

.service-card,
.team-card,
.appointment-form,
.info-box {
  border: 1px solid var(--ems-line);
  border-radius: 8px;
  background: #fff;
}

.service-card {
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(21, 58, 56, .1);
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.care-band {
  background: var(--ems-soft);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.check-row span {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: .25rem;
  border-radius: 50%;
  background: var(--ems-primary);
  box-shadow: inset 0 0 0 5px #cfeeea;
}

.team-card {
  height: 100%;
  overflow: hidden;
}

.team-card img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.team-card div {
  padding: 1.4rem;
}

.team-card-horizontal {
  display: grid;
  grid-template-columns: 180px 1fr;
}

.team-card-horizontal img {
  height: 100%;
  aspect-ratio: auto;
}

.appointment-section {
  background: #fbf4f0;
}

.appointment-form {
  padding: 2rem;
  box-shadow: 0 18px 50px rgba(98, 47, 31, .08);
}

.form-control,
.form-select {
  border-color: #cfe0dd;
  border-radius: 8px;
  min-height: 48px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--ems-primary);
  box-shadow: 0 0 0 .2rem rgba(20, 124, 116, .16);
}

.contact-strip {
  display: grid;
  gap: .2rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(22, 37, 36, .14);
}

.contact-strip span {
  color: var(--ems-muted);
}

.contact-strip a {
  font-weight: 700;
  text-decoration: none;
}

.info-box {
  min-height: 150px;
  padding: 1.4rem;
}

.info-box span {
  display: block;
  margin-bottom: .8rem;
  color: var(--ems-muted);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.info-box strong {
  overflow-wrap: anywhere;
}

.footer {
  padding: 2rem 0;
  background: #102221;
}

.footer a,
.footer p {
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
  }

  .hero-overlay {
    background: rgba(13, 38, 36, .76);
  }

  .section-pad {
    padding: 4rem 0;
  }
}

@media (max-width: 767.98px) {
  .navbar-brand {
    font-size: 1rem;
  }

  .brand-logo {
    height: 64px;
    max-width: 190px;
  }

  .action-item {
    border-right: 0;
    border-bottom: 1px solid var(--ems-line);
  }

  .action-item:last-child {
    border-bottom: 0;
  }

  .appointment-form {
    padding: 1.25rem;
  }

  .team-card-horizontal {
    grid-template-columns: 1fr;
  }

  .team-card-horizontal img {
    height: auto;
    aspect-ratio: 5 / 4;
  }
}
