/*
 PRACTIC DENTAL — HERO (first screen)
 Single source of truth for the hero copy + the two cards.
 Desktop values come from the 1920px Figma frame, mobile values from the
 430px iPhone frame. Mobile = max-width 991px (same breakpoint the hero
 parallax in animations.js uses: parallax only on min-width 992px).
 Background video, GSAP parallax, [data-hero-motion] and [data-form-toggle]
 are not touched here.
*/

.hero-section-holder {
  --pdc-card-green: #243430;
  --pdc-card-grey: rgba(58, 65, 63, .92);
  --pdc-cream: #fff9ef;
  --pdc-ink: #13322b;
}

.hero-section-holder .pdc-hero-motion-group {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}

/* ---------- Copy ---------- */

.hero-section-holder .pdc-hero-copy {
  width: 100%;
  align-items: center;
  text-align: center;
}

.hero-section-holder .pdc-hero-eyebrow {
  margin: 0;
  color: var(--pdc-cream);
  text-align: center;
  white-space: nowrap;
  font-family: "Notoserif Variablefont Wdth Wght", "Noto Serif", Georgia, serif;
  font-weight: 500;
  font-variation-settings: "wght" 500, "wdth" 62.5;
  letter-spacing: -.025em;
  line-height: 1;
}

.hero-section-holder .heading-1-hero-main {
  margin: 0;
  color: var(--pdc-cream);
  text-align: center;
  text-transform: uppercase;
  font-family: "Notoserif Variablefont Wdth Wght", "Noto Serif", Georgia, serif;
  font-weight: 500;
  font-variation-settings: "wght" 500, "wdth" 62.5;
  letter-spacing: -.05em;
  line-height: .9;
}

.hero-section-holder .heading-1-hero-main em {
  font-family: inherit;
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "wght" 500, "wdth" 62.5;
  text-transform: none;
}

/* ---------- Cards (shared) ---------- */

.hero-section-holder .pdc-editable-contact-holder {
  display: block;
  flex: none;
  margin: 0;
}

.hero-section-holder .pdc-editable-contact-stack {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.hero-section-holder .pdc-contact-card {
  box-sizing: border-box;
  display: grid;
  align-items: center;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  color: var(--pdc-cream);
  font-family: Manrope, sans-serif;
  text-align: left;
}

.hero-section-holder .pdc-contact-card--visit { background: var(--pdc-card-green); }

.hero-section-holder .pdc-contact-card--map {
  background: var(--pdc-card-grey);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hero-section-holder .pdc-contact-card__visual {
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section-holder .pdc-contact-card__visual,
.hero-section-holder .pdc-contact-card__visual img {
  background: transparent;
}

.hero-section-holder .pdc-contact-card__visual img {
  /* lighten: any darker backdrop inside the artwork becomes invisible, so the
     card stays one flat colour; outlines/glow/logo are kept (no opacity). */
  mix-blend-mode: lighten;
  display: block;
  max-width: none;
  height: auto;
}

.hero-section-holder .pdc-contact-card__copy {
  color: var(--pdc-cream);
  font-weight: 600;
  letter-spacing: -.04em;
}

.hero-section-holder .pdc-contact-card__button,
.hero-section-holder .pdc-contact-route {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 45px;
  margin: 0;
  border: 0;
  border-radius: 100px;
  font-family: Manrope, sans-serif;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.04em;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .28s cubic-bezier(.65, .01, .05, .99);
  transform-origin: center;
}

.hero-section-holder .pdc-contact-card__button {
  width: 159px;
  padding: 0;
  background: var(--pdc-cream);
  color: var(--pdc-ink);
  font-size: 14px;
}

.hero-section-holder .pdc-contact-route {
  background: rgba(255, 249, 239, .1);
  color: var(--pdc-cream);
  font-size: 14px;
}

@media (hover: hover) and (pointer: fine) {
  .hero-section-holder .pdc-contact-card__button:hover,
  .hero-section-holder .pdc-contact-route:hover {
    transform: scale(.97) rotateZ(2deg);
  }
}

.hero-section-holder .pdc-contact-rating {
  display: flex;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
}

.hero-section-holder .pdc-google-pin,
.hero-section-holder .pdc-google-pin svg {
  display: block;
  flex: none;
  width: 16px;
  height: 20px;
}

.hero-section-holder .pdc-contact-rating strong {
  color: var(--pdc-cream);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -.04em;
}

.hero-section-holder .pdc-contact-rating small {
  color: rgba(255, 249, 239, .6);
  font-size: 12px;
  line-height: 1;
  letter-spacing: -.02em;
}

.hero-section-holder .pdc-stars {
  display: flex;
  align-items: center;
  color: var(--pdc-cream);
  line-height: 1;
}

.hero-section-holder .pdc-stars i {
  font-style: normal;
  font-size: 13px;
  letter-spacing: -.5px;
}

.hero-section-holder .pdc-stars i:nth-child(1) { opacity: .15; font-size: 9px; }
.hero-section-holder .pdc-stars i:nth-child(2) { opacity: .25; font-size: 10px; }
.hero-section-holder .pdc-stars i:nth-child(3) { opacity: .4;  font-size: 11px; }
.hero-section-holder .pdc-stars i:nth-child(4) { opacity: .6;  font-size: 13px; }
.hero-section-holder .pdc-stars i:nth-child(5) { opacity: .85; font-size: 14px; }

.hero-section-holder .pdc-stars--end i:nth-child(1) { opacity: .85; font-size: 14px; }
.hero-section-holder .pdc-stars--end i:nth-child(2) { opacity: .6;  font-size: 13px; }
.hero-section-holder .pdc-stars--end i:nth-child(3) { opacity: .4;  font-size: 11px; }
.hero-section-holder .pdc-stars--end i:nth-child(4) { opacity: .25; font-size: 10px; }
.hero-section-holder .pdc-stars--end i:nth-child(5) { opacity: .15; font-size: 9px; }

.hero-section-holder .pdc-contact-address {
  min-width: 0;
  color: rgba(255, 249, 239, .55);
  font-weight: 600;
  letter-spacing: -.04em;
}

/* ================= DESKTOP (Figma 1920 x 1010) ================= */

@media screen and (min-width: 992px) {

  .hero-section-holder .hero-section-content-wrapper {
    gap: 0;
    justify-content: flex-end;
    justify-content: safe flex-end;
    align-items: center;
    /* top padding = clear space under the fixed header (menu bottom is ~100px) */
    padding: 120px 3% 4.5vh;
  }

  /*
   Height-aware layout: the title shrinks and the title->cards gap compresses
   on short screens so the eyebrow never goes under the fixed header
   (header bottom ~110px). 76px / 138px are the Figma values at 1010px height.
   445px = 120 safe top + 52 eyebrow block + 201 cards + 72 scroll hint.
  */
  .hero-section-holder {
    --pdc-fs: clamp(40px, min(3.96vw, 7.5vh), 76px);
  }

  .hero-section-holder .pdc-hero-motion-group {
    gap: clamp(20px, calc(95.5vh - 445px - 2.7 * var(--pdc-fs)), 13.7vh);
  }

  .hero-section-holder .pdc-hero-copy { gap: 20px; }

  .hero-section-holder .pdc-hero-eyebrow {
    width: auto;
    max-width: none;
    font-size: clamp(22px, 1.69vw, 32.4px);
  }

  .hero-section-holder .heading-1-hero-main {
    width: auto;
    max-width: 8.2em;
    font-size: var(--pdc-fs);
  }

  .hero-section-holder .pdc-editable-contact-holder {
    width: min(653px, 100%);
    max-width: 653px;
  }

  .hero-section-holder .pdc-editable-contact-stack { gap: 4px; }

  .hero-section-holder .pdc-contact-card {
    grid-template-columns: 247px minmax(0, 1fr) auto;
    padding-right: 20px;
    border-radius: 24px;
  }

  .hero-section-holder .pdc-contact-card--visit { height: 112px; }
  .hero-section-holder .pdc-contact-card--map { height: 85px; }

  .hero-section-holder .pdc-contact-card__visual img {
    width: 228px;
    height: 112px;
  }

  .hero-section-holder .pdc-contact-card__copy {
    max-width: 9.5em;
    font-size: 16px;
    line-height: 1.2;
  }

  .hero-section-holder .pdc-contact-rating {
    gap: 6px;
    padding-left: 18px;
  }

  /* Figma: scroll hint sits ~40px under the cards */
  .hero-section-holder .pdc-scroll-down {
    margin-top: 37px !important;
    font-size: 16px;
  }

  .hero-section-holder .pdc-contact-rating small { margin: 0 5px 0 3px; }

  .hero-section-holder .pdc-contact-address {
    font-size: 16px;
    line-height: 1.2;
  }

  .hero-section-holder .pdc-contact-route { width: 103px; }
}

/* ================= MOBILE (Figma 430 x 934) ================= */

@media screen and (max-width: 991px) {

  .hero-section-holder .hero-section-content-wrapper {
    gap: 0;
    justify-content: flex-end;
    justify-content: safe flex-end;
    align-items: center;
    /* mobile header bottom is ~60px */
    padding: 84px 20px clamp(24px, 5.3vh, 50px);
  }

  /* No parallax on mobile: wrapper does not generate a box of its own. */
  .hero-section-holder .pdc-hero-motion-group {
    display: contents;
  }

  /* The mobile frame has no eyebrow line. */
  .hero-section-holder .pdc-hero-eyebrow { display: none; }

  .hero-section-holder .pdc-hero-copy {
    width: 100%;
    margin-bottom: clamp(24px, 5.2vh, 48px);
  }

  .hero-section-holder .heading-1-hero-main {
    width: 100%;
    max-width: 8em;
    font-size: min(49px, 11.4vw);
  }

  .hero-section-holder .pdc-editable-contact-holder {
    width: 100%;
    max-width: 390px;
  }

  .hero-section-holder .pdc-editable-contact-stack { gap: 10px; }

  .hero-section-holder .pdc-contact-card { border-radius: 24px; }

  .hero-section-holder .pdc-contact-card--visit {
    grid-template-columns: minmax(0, 1fr) auto;
    height: 121px;
    padding-right: 18px;
  }

  .hero-section-holder .pdc-contact-card__visual img {
    width: 215px;
    height: 106px;
    max-width: 100%;
  }

  .hero-section-holder .pdc-contact-card__copy { display: none; }

  /* Rating + route share one 45px pill on the right. */
  .hero-section-holder .pdc-contact-card--map {
    grid-template-columns: minmax(0, 1fr) auto auto;
    height: 80px;
    padding: 0 18px 0 20px;
  }

  /* DOM order is rating, address, route: place them explicitly. */
  .hero-section-holder .pdc-contact-address { grid-column: 1; grid-row: 1; }
  .hero-section-holder .pdc-contact-rating { grid-column: 2; grid-row: 1; }
  .hero-section-holder .pdc-contact-route { grid-column: 3; grid-row: 1; }

  .hero-section-holder .pdc-scroll-down { margin-top: clamp(20px, 4.3vh, 40px) !important; }

  .hero-section-holder .pdc-contact-address {
    padding-right: 10px;
    font-size: 13px;
    line-height: 1.2;
  }

  .hero-section-holder .pdc-stars { display: none; }

  .hero-section-holder .pdc-contact-rating,
  .hero-section-holder .pdc-contact-route {
    height: 45px;
    background: rgba(255, 249, 239, .1);
  }

  .hero-section-holder .pdc-contact-rating {
    gap: 4px;
    padding-left: 16px;
    border-radius: 100px 0 0 100px;
  }

  .hero-section-holder .pdc-google-pin,
  .hero-section-holder .pdc-google-pin svg { width: 13px; height: 16px; }

  .hero-section-holder .pdc-contact-rating strong { font-size: 13.5px; }
  .hero-section-holder .pdc-contact-rating small { margin-right: 4px; font-size: 11px; }

  .hero-section-holder .pdc-contact-route {
    width: auto;
    padding: 0 16px 0 0;
    border-radius: 0 100px 100px 0;
    background: rgba(255, 249, 239, .1);
    transform: none !important;
  }
}

@media screen and (max-width: 380px) {
  .hero-section-holder .hero-section-content-wrapper { padding-left: 12px; padding-right: 12px; }
  .hero-section-holder .pdc-contact-address { font-size: 12px; }
  .hero-section-holder .pdc-contact-rating { padding-left: 12px; }
  .hero-section-holder .pdc-contact-route { padding-right: 12px; }
  .hero-section-holder .pdc-contact-card__button { width: 140px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-section-holder .pdc-contact-card__button,
  .hero-section-holder .pdc-contact-route { transition: none; }
}

/* ---------- Header: calendar icon in the white "Запланувати візит" button ---------- */

.set-btn-btn._2 .pdc-btn-cal {
  flex: none;
  width: 22px;
  height: 22px;
  color: #13322b;
}

.set-btn-btn._2 .pdc-btn-cal svg {
  display: block;
  width: 100%;
  height: 100%;
}

.set-btn-btn._2 .text-block-2 { line-height: 1; }

@media screen and (max-width: 479px) {
  .set-btn-btn._2 .pdc-btn-cal,
  .set-btn-btn._2 .pdc-btn-cal svg { width: 18px; height: 18px; }
}

/* ------------------------- Hero contact cards: whole card is clickable -------------------------
   The button / "Маршрут" link inside each card is stretched over the whole card with ::after,
   so a click anywhere on the card = a click on that button/link (form opens / Google Maps opens).
   No markup changes needed. */
.hero-section-holder .pdc-contact-card {
  position: relative;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2, .7, .3, 1);
}

.hero-section-holder .pdc-contact-card__button::after,
.hero-section-holder .pdc-contact-route::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .hero-section-holder .pdc-contact-card:hover {
    transform: scale(.98);
  }
  /* The inner buttons must not transform: a transformed button would shrink the ::after overlay. */
  .hero-section-holder .pdc-contact-card__button:hover,
  .hero-section-holder .pdc-contact-route:hover {
    transform: none;
  }
}

.hero-section-holder .pdc-contact-card:active {
  transform: scale(.96);
}

/* Keyboard focus: outline the whole card instead of the small button */
.hero-section-holder .pdc-contact-card:has(:focus-visible) {
  outline: 2px solid rgba(255, 249, 239, .6);
  outline-offset: 2px;
}
.hero-section-holder .pdc-contact-card__button:focus-visible,
.hero-section-holder .pdc-contact-route:focus-visible {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-section-holder .pdc-contact-card { transition: none; }
}
