/* Home-only styling: hero + waves + feature overlap */

.hero{
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 40% 20%, rgba(255,255,255,.92), rgba(255,255,255,.55) 58%, rgba(255,255,255,.30) 100%),
    linear-gradient(180deg, rgba(223,231,229,.55), rgba(245,247,246,.85));
}
.hero:before{
  content:"";
  position:absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(245,247,246,.95), rgba(245,247,246,.60) 60%, rgba(245,247,246,.35)),
    url("../assets/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(1px);
  transform: scale(1.02);
  opacity: .75;
  pointer-events:none;
}
.hero:after{
  content:"";
  position:absolute;
  inset: 0;
  background: radial-gradient(800px 500px at 78% 20%, rgba(95,115,109,.12), transparent 55%);
  pointer-events:none;
}
.hero__inner{
  position: relative;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  align-items:center;
  gap: 38px;
  padding: 64px 0 86px;
  z-index: 1;
}
.hero h1{
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.08;
  letter-spacing: .01em;
  margin: 0 0 14px;
  color: rgba(31,42,39,.92);
}
.hero p{
  margin: 0 0 22px;
  color: rgba(31,42,39,.70);
  font-size: 16px;
  max-width: 46ch;
}
.hero__actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items:center;
}
.hero__actions .btn svg{
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: .95;
}
.hero__visual{
  justify-self:end;
  position: relative;
}
.hero__visual .team{
  width: min(520px, 100%);
  aspect-ratio: 5 / 4;
  border-radius: 22px;
  background:
    url("../assets/hero-team.png") center / cover no-repeat,
    radial-gradient(520px 320px at 30% 25%, rgba(255,255,255,.95), rgba(255,255,255,.55));
  box-shadow: var(--shadow);
  border: 1px solid rgba(31,42,39,.10);
}
.hero__visual .glow{
  position:absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(95,115,109,.20), transparent 55%);
  left: -120px;
  top: -70px;
  filter: blur(2px);
  opacity: .65;
  pointer-events:none;
}

.wave{
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height: 130px;
  pointer-events:none;
  z-index: 2;
}
.wave svg{ width:100%; height:100%; display:block; }
.wave path{ fill: rgba(95,115,109,.22); }
.wave .base{ fill: rgba(245,247,246,1); }

/* Feature strip overlaps hero */
.features{
  position: relative;
  margin-top: -42px;
  z-index: 3;
  padding-bottom: 24px;
}
.features__grid{ grid-template-columns: repeat(3, 1fr); }
.feature-card{ min-height: 82px; }

/* Welcome section */
.welcome{
  position: relative;
  overflow:hidden;
  padding: 42px 0 66px;
  background:
    radial-gradient(1000px 520px at 35% 40%, rgba(255,255,255,.92), rgba(255,255,255,.62) 60%, rgba(245,247,246,.96)),
    linear-gradient(180deg, rgba(245,247,246,1), rgba(245,247,246,1));
  border-top: 1px solid rgba(31,42,39,.06);
}
.welcome:before{
  content:"";
  position:absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(245,247,246,.96), rgba(245,247,246,.65) 65%, rgba(245,247,246,.30)),
    url("../assets/welcome-bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: .65;
  pointer-events:none;
}
.welcome__inner{
  position: relative;
  text-align:center;
  padding: 20px 0 30px;
  z-index: 1;
}
.welcome h2{
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(24px, 3vw, 36px);
  margin: 0 0 10px;
  color: rgba(31,42,39,.90);
}
.welcome p{
  margin: 0 auto 18px;
  max-width: 62ch;
  color: rgba(31,42,39,.62);
  font-size: 14px;
}
.welcome__patient{
  position:absolute;
  right: max(18px, calc((100% - var(--container))/2));
  bottom: -26px;
  width: 240px;
  height: 240px;
  border-radius: 22px;
  background:
    url("../assets/patient.png") center / cover no-repeat,
    radial-gradient(260px 220px at 35% 35%, rgba(255,255,255,.92), rgba(255,255,255,.55));
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(31,42,39,.10);
  z-index: 2;
}
.welcome__wave{
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height: 120px;
  pointer-events:none;
  z-index: 1;
}
.welcome__wave svg{ width:100%; height:100%; display:block; }
.welcome__wave path{ fill: rgba(95,115,109,.20); }
.welcome__wave .base{ fill: rgba(245,247,246,1); }

/* Services section on home */
.services{
  position: relative;
  padding: 60px 0 86px;
  background:
    radial-gradient(900px 520px at 50% 0%, rgba(255,255,255,.92), rgba(245,247,246,1) 70%);
  overflow:hidden;
}
.services__grid{ grid-template-columns: repeat(4, 1fr); }
.services__wave{
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height: 120px;
  pointer-events:none;
}
.services__wave svg{ width:100%; height:100%; display:block; }
.services__wave path{ fill: rgba(95,115,109,.22); }
.services__wave .base{ fill: rgba(245,247,246,1); }

@media (max-width: 1000px){
  .hero__inner{ grid-template-columns: 1fr; padding-bottom: 70px; }
  .hero__visual{ justify-self: start; }
  .features__grid{ grid-template-columns: 1fr; }
  .services__grid{ grid-template-columns: repeat(2, 1fr); }
  .welcome__patient{ display:none; }
}
@media (max-width: 520px){
  .services__grid{ grid-template-columns: 1fr; }
  .hero__actions{ flex-direction: column; align-items: stretch; }
  .hero__actions .btn{ width: 100%; }
}
