/* Hero — den-tora "Hero": full-bleed photo that slowly breathes (zoom in/out),
   label + headline + two buttons and a glass Dr. Doaa
   popup card (the reference widget, styled like the "Smile Checkup" card the user
   sent) that links to her profile. The card pops in from 50%. */
.hero {
  position: relative;
  min-height: max(100svh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: var(--cream);
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero__bg img,
.hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 20, 46, .78) 0%, rgba(6, 20, 46, .45) 38%, rgba(6, 20, 46, .05) 65%),
    linear-gradient(0deg, rgba(6, 20, 46, .7) 0%, rgba(6, 20, 46, 0) 32%),
    linear-gradient(180deg, rgba(6, 20, 46, .45) 0%, rgba(6, 20, 46, 0) 22%);
}

.hero__main {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 160px var(--gutter) 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: start;
}
.hero__copy { max-width: 720px; display: flex; flex-direction: column; gap: 24px; }
.hero__eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(206, 158, 69, .25);
}
.hero__title {
  margin: 0;
  font-size: clamp(42px, 5.4vw, 80px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hero__title em { font-style: normal; color: var(--gold); }
.hero__lead {
  margin: 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(253, 247, 235, .82);
}
.hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* glass cards */
.glass-card {
  border: 1px solid rgba(253, 247, 235, .28);
  background: rgba(253, 247, 235, .1);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
          backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45);
}

.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 12px; height: 12px; fill: currentColor; }

/* Dr. Doaa card — the hero grid's second column, its foot level with the buttons
   (client round, 2026-10-26: it used to float at the bottom right and fell below the fold
   on short laptop screens, with her square photo cut to a thin strip) */
.hero__doctor {
  position: relative;
  width: 272px;
  color: inherit;
  text-decoration: none;
  transition: border-color .25s ease, background-color .25s ease;
  padding: 12px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: hero-float 7s ease-in-out 1.6s infinite;
}
@keyframes hero-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}
.hero__doctor-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px; }
.hero__doctor-icon {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(253, 247, 235, .9);
}
.hero__doctor-icon img { width: 22px; height: 18px; object-fit: contain; }
.hero__doctor-head strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; }
.hero__doctor-head small { display: block; font-size: 12px; line-height: 1.3; color: rgba(253, 247, 235, .78); }
.hero__doctor-photo {
  position: relative;
  aspect-ratio: 1 / 1;      /* the portrait is square: show her whole, not a band */
  border-radius: 10px;
  overflow: hidden;
}
.hero__doctor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: scale .6s cubic-bezier(.22, 1, .36, 1); }
@media (hover: hover) {
  .hero__doctor:hover { border-color: rgba(253, 247, 235, .5); background-color: rgba(253, 247, 235, .16); }
  .hero__doctor:hover .hero__doctor-photo img { scale: 1.04; }
}
.hero__doctor:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.hero__doctor-tags {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: flex;
  gap: 4px;
}
.hero__doctor-tags span {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(11, 41, 93, .65);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  font-size: 10px;
  letter-spacing: .06em;
}


@media (max-width: 1199.98px) {
  .hero__doctor { width: 232px; }
}
@media (max-width: 809.98px) {
  .hero__main { padding-top: 120px; }
  .hero__title { letter-spacing: -0.03em; }
  .hero__doctor { animation: none; }
  .hero__shade {
    background:
      linear-gradient(0deg, rgba(6, 20, 46, .85) 0%, rgba(6, 20, 46, .2) 55%),
      linear-gradient(180deg, rgba(6, 20, 46, .6) 0%, rgba(6, 20, 46, 0) 40%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__doctor { animation: none; }
}
