/* ================================================================
   HERO SECTION — Viewport-Scaled Landing
   Mobile: 375 × 815  |  Desktop: 1440 × 760

   Yatay (sw) → font-size, width, px, border-radius, gap (yatay)
   Dikey (sh) → height, py, margin-top/bottom, line-height
   ================================================================ */

/* ─── Scale Variables ─── */
.hero-section {
  --sw: calc(100vw / 375);
  --sh: calc(100vh / 815);
}

@media (min-width: 768px) {
  .hero-section {
    --sw: calc(100vw / 1440);
    --sh: calc(100vh / 760);
  }
}

/* ─── Reset inherited pseudo-elements ─── */
.hero-section::before,
.hero-section::after {
  content: none !important;
  display: none !important;
}

/* ─── Section Container ─── */
.hero-section {
  width: 100%;
  height: calc(100vh - 90px);
  height: calc(100dvh - 90px - env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  font-family: 'Mulish', sans-serif;
  padding-top: calc(8 * var(--sh));
  padding-bottom: calc(8 * var(--sh));
  padding-left: calc(8 * var(--sw));
  padding-right: calc(8 * var(--sw));
  box-sizing: border-box;
  background: #F8F9FA;
}

@media (min-width: 768px) {
  .hero-section {
    padding-top: calc(8 * var(--sh));
    padding-bottom: calc(80 * var(--sh));
    padding-left: calc(24 * var(--sw));
    padding-right: calc(24 * var(--sw));
  }
}

.hero-section *,
.hero-section *::before,
.hero-section *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── Content Wrapper ─── */
.hero-content {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .hero-content {
    width: calc(628 * var(--sw));
    align-items: center;
  }
}

/* ============================================
   DOCTOR CARD
   ============================================ */
.hero-doctor-wrap {
  width: 100%;
  padding: calc(8 * var(--sw));
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .hero-doctor-wrap {
    padding: 0;
  }
}

.hero-doctor-card {
  position: relative;
  width: 100%;
  height: calc(339 * var(--sh));
  border-radius: calc(16 * var(--sw));
  overflow: hidden;
  background: #fff;
}

@media (min-width: 768px) {
  .hero-doctor-card {
    height: calc(272 * var(--sh));
  }
}

.hero-doctor-card__bg {
  position: absolute;
  inset: 0;
  background: url('/assets/images/hero/doctor-bg.png') center / cover no-repeat;
}

.hero-doctor-card__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 100% 100%, rgba(85, 101, 163, 0.3) 0%, rgba(39, 56, 127, 0.9) 80%);
}

.hero-doctor-card__person {
  position: absolute;
  right: 0;
  top: 23.32%;
  bottom: 0;
  aspect-ratio: 177 / 263;
  z-index: 2;
  overflow: hidden;
}

.hero-doctor-card__person img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

@media (min-width: 768px) {
  .hero-doctor-card__person {
    right: calc(18 * var(--sw));
    top: 23.5%;
    bottom: -27.59%;
    aspect-ratio: 200 / 289;
  }
}

/* Card inner layout */
.hero-doctor-card__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  z-index: 3;
}

/* ─── Top: Badges ─── */
.hero-doctor-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  flex-shrink: 0;
}

.hero-badge-left {
  padding-top: calc(16 * var(--sh));
  padding-bottom: calc(16 * var(--sh));
}

@media (min-width: 768px) {
  .hero-badge-left {
    padding-top: calc(24 * var(--sh));
    padding-bottom: calc(16 * var(--sh));
  }
}

.hero-badge-priority {
  background: #E02020;
  color: #fff;
  font-weight: 700;
  font-size: calc(16 * var(--sw));
  line-height: calc(24 * var(--sh));
  padding: calc(6 * var(--sh)) calc(16 * var(--sw));
  border-radius: 0 calc(8 * var(--sw)) calc(8 * var(--sw)) 0;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .hero-badge-priority {
    font-size: calc(20 * var(--sw));
    line-height: calc(28 * var(--sh));
  }
}

.hero-badge-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: calc(16 * var(--sh));
  padding-bottom: calc(4 * var(--sh));
}

@media (min-width: 768px) {
  .hero-badge-right {
    padding-top: calc(24 * var(--sh));
  }
}

.hero-badge-popular {
  display: flex;
  align-items: center;
  gap: calc(4 * var(--sw));
  padding: calc(4 * var(--sh)) calc(6 * var(--sw));
  border-radius: 999px 0 0 999px;
  background: linear-gradient(102deg, #C59C6D 0%, #AA875D 100%);
  white-space: nowrap;
}

.hero-badge-popular img {
  width: calc(16 * var(--sw));
  height: calc(16 * var(--sw));
}

@media (min-width: 768px) {
  .hero-badge-popular img {
    width: calc(20 * var(--sw));
    height: calc(20 * var(--sw));
  }
}

.hero-badge-popular span {
  color: #fff;
  font-weight: 700;
  font-size: calc(12 * var(--sw));
  line-height: calc(16 * var(--sh));
}

@media (min-width: 768px) {
  .hero-badge-popular span {
    font-size: calc(14 * var(--sw));
    line-height: calc(20 * var(--sh));
  }
}

.hero-badge-price {
  background: #1F2C63;
  color: #fff;
  font-weight: 700;
  font-size: calc(16 * var(--sw));
  line-height: calc(24 * var(--sh));
  padding: calc(4 * var(--sh)) calc(16 * var(--sw));
  border-radius: 0 0 0 calc(8 * var(--sw));
  white-space: nowrap;
}

@media (min-width: 768px) {
  .hero-badge-price {
    font-size: calc(24 * var(--sw));
    line-height: calc(32 * var(--sh));
  }
}

/* ─── Body: Title + Description ─── */
.hero-doctor-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: calc(16 * var(--sh));
  padding: calc(8 * var(--sh)) calc(16 * var(--sw)) 0;
  color: #fff;
}

@media (min-width: 768px) {
  .hero-doctor-card__body {
    padding: calc(8 * var(--sh)) calc(24 * var(--sw)) 0;
  }
}

.hero-doctor-card__title {
  font-size: calc(32 * var(--sw));
  font-weight: 700;
  line-height: calc(40 * var(--sh));
  white-space: nowrap;
}

@media (min-width: 768px) {
  .hero-doctor-card__title {
    font-size: calc(48 * var(--sw));
    line-height: calc(56 * var(--sh));
    letter-spacing: -0.96px;
  }
}

.hero-doctor-card__desc {
  font-size: calc(14 * var(--sw));
  font-weight: 500;
  line-height: calc(20 * var(--sh));
  max-width: calc(179 * var(--sw));
}

@media (min-width: 768px) {
  .hero-doctor-card__desc {
    font-size: calc(16 * var(--sw));
    line-height: calc(24 * var(--sh));
    max-width: 320px;
  }
}

/* ─── CTA Button ─── */
.hero-cta--mobile {
  padding: calc(16 * var(--sw));
  flex-shrink: 0;
}

.hero-cta--desktop {
  display: none;
}

@media (min-width: 768px) {
  .hero-cta--mobile {
    display: none;
  }

  .hero-cta--desktop {
    display: flex;
    justify-content: center;
    padding-top: calc(24 * var(--sh));
    padding-left: calc(24 * var(--sw));
    padding-right: calc(24 * var(--sw));
    width: 100%;
  }
}

.hero-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(16 * var(--sw));
  background: #2B3E8C;
  color: #fff;
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
  font-size: calc(16 * var(--sw));
  line-height: calc(24 * var(--sh));
  height: calc(56 * var(--sh));
  padding: calc(12 * var(--sh)) calc(16 * var(--sw));
  border-radius: calc(10 * var(--sw));
  text-decoration: none;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  width: max-content;
  transition: opacity 0.2s;
}

.hero-cta-btn:hover {
  opacity: 0.9;
}

.hero-cta-btn:visited {
  color: #fff;
}

.hero-cta-btn .elra-icon-arrow-outward {
  width: 24px;
  height: 24px;
}

/* ============================================
   DIVIDER
   ============================================ */
.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: calc(8 * var(--sh)) calc(8 * var(--sw));
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .hero-divider {
    padding: calc(24 * var(--sh)) 0;
  }
}

.hero-divider__line {
  flex: 1;
  height: 1px;
  background: #DEE2E6;
}

.hero-divider__text {
  padding: calc(6 * var(--sh)) calc(12 * var(--sw));
  font-size: calc(14 * var(--sw));
  font-weight: 400;
  line-height: calc(20 * var(--sh));
  color: #6C757D;
  white-space: nowrap;
  background: #F8F9FA;
  border: 1px solid #DEE2E6;
  border-radius: 9999px;
}

/* ============================================
   SERVICE CARDS (Psikolog & Diyetisyen)
   ============================================ */
.hero-services {
  display: flex;
  align-items: stretch;
  width: 100%;
  padding: 0 calc(4 * var(--sw));
  flex: 1;
  min-height: 0;
}

@media (min-width: 768px) {
  .hero-services {
    gap: calc(24 * var(--sw));
    padding: 0;
    flex: 0 0 auto;
    align-items: center;
  }
}

.hero-service-card {
  flex: 1;
  min-width: 0;
  padding: calc(4 * var(--sw));
}

@media (min-width: 768px) {
  .hero-service-card {
    padding: 0;
    height: calc(215 * var(--sh));
    flex: 1;
  }
}

.hero-service-card__inner {
  width: 100%;
  height: 100%;
  border-radius: calc(16 * var(--sw));
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-service-card--psikolog .hero-service-card__inner {
  border: 1px solid #FBEFE6;
}

.hero-service-card--diyetisyen .hero-service-card__inner {
  border: 1px solid #E8F3F1;
}

/* Card top section */
.hero-service-card__top {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-service-card--psikolog .hero-service-card__top {
  background: #FFFAF6;
}

.hero-service-card--diyetisyen .hero-service-card__top {
  background: #F8FBFA;
}

.hero-service-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-service-card--psikolog .hero-service-card__bg {
  background-image: url('/assets/images/hero/psikolog-bg.jpg');
}

.hero-service-card--diyetisyen .hero-service-card__bg {
  background-image: url('/assets/images/hero/diyetisyen-bg.jpg');
}

.hero-service-card__gradient {
  position: absolute;
  inset: 0;
}

/* Figma: radial gradient from bottom-left corner, transparent→solid */
.hero-service-card--psikolog .hero-service-card__gradient {
  background: radial-gradient(ellipse at 0% 100%, rgba(252, 247, 245, 0.5) 0%, rgba(255, 250, 246, 1) 90%);
}

.hero-service-card--diyetisyen .hero-service-card__gradient {
  background: radial-gradient(ellipse at 0% 100%, rgba(242, 247, 246, 0.5) 0%, rgba(248, 251, 250, 1) 90%);
}

/* Header: title + price */
.hero-service-card__header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: calc(12 * var(--sw));
  padding-top: calc(16 * var(--sh));
}

@media (min-width: 768px) {
  .hero-service-card__header {
    padding-left: calc(16 * var(--sw));
  }
}

.hero-service-card__title {
  font-weight: 700;
  font-size: calc(14 * var(--sw));
  line-height: calc(20 * var(--sh));
  white-space: nowrap;
}

@media (min-width: 768px) {
  .hero-service-card__title {
    font-size: calc(18 * var(--sw));
    line-height: calc(28 * var(--sh));
  }
}

.hero-service-card--psikolog .hero-service-card__title {
  color: #D98E6A;
}

.hero-service-card--diyetisyen .hero-service-card__title {
  color: #6FA29A;
}

.hero-service-card__price-tag {
  font-weight: 700;
  font-size: calc(14 * var(--sw));
  line-height: calc(20 * var(--sh));
  padding: calc(4 * var(--sh)) calc(12 * var(--sw)) calc(4 * var(--sh)) calc(8 * var(--sw));
  border-radius: calc(6 * var(--sw)) 0 0 calc(6 * var(--sw));
  white-space: nowrap;
}

@media (min-width: 768px) {
  .hero-service-card__price-tag {
    font-size: calc(18 * var(--sw));
    line-height: calc(28 * var(--sh));
    padding: calc(4 * var(--sh)) calc(16 * var(--sw));
    border-radius: calc(8 * var(--sw)) 0 0 calc(8 * var(--sw));
  }
}

.hero-service-card--psikolog .hero-service-card__price-tag {
  background: #FBEFE6;
  color: #D98E6A;
}

.hero-service-card--diyetisyen .hero-service-card__price-tag {
  background: #E8F3F1;
  color: #6FA29A;
}

/* Person image area */
.hero-service-card__person-area {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Figma: aspect-[327/219] container, top:0 bottom:0 left:0 */
.hero-service-card__person-wrap {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  aspect-ratio: 327 / 219;
  overflow: hidden;
}

.hero-service-card--psikolog .hero-service-card__person-wrap {
  transform: scaleX(-1);
}

.hero-service-card__person-img {
  position: absolute;
  max-width: none;
}

/* Psikolog: h-[118.15%] left-[35.06%] top-[-15.36%] w-[59.51%] */
.hero-service-card--psikolog .hero-service-card__person-img {
  height: 118.15%;
  left: 35.06%;
  top: -15.36%;
  width: 59.51%;
}

/* Diyetisyen: h-[136.21%] left-[2.47%] top-[-22.01%] w-[68.42%] */
.hero-service-card--diyetisyen .hero-service-card__person-img {
  height: 136.21%;
  left: 2.47%;
  top: -22.01%;
  width: 68.42%;
}

/* Bottom CTA bar */
.hero-service-card__bottom {
  display: flex;
  align-items: flex-start;
  gap: calc(6 * var(--sw));
  padding: calc(8 * var(--sh)) calc(10 * var(--sw));
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
  font-size: calc(12 * var(--sw));
  line-height: calc(16 * var(--sh));
  text-decoration: none;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.2s;
}

.hero-service-card__bottom:hover {
  opacity: 0.85;
}

@media (min-width: 768px) {
  .hero-service-card__bottom {
    padding: calc(16 * var(--sh)) calc(16 * var(--sw));
    font-size: calc(16 * var(--sw));
    line-height: calc(24 * var(--sh));
    justify-content: center;
    align-items: center;
    white-space: nowrap;
  }
}

.hero-service-card__bottom img {
  width: calc(16 * var(--sw));
  height: calc(16 * var(--sw));
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .hero-service-card__bottom img {
    width: calc(24 * var(--sw));
    height: calc(24 * var(--sw));
  }
}

.hero-service-card--psikolog .hero-service-card__bottom {
  background: #FBEFE6;
  color: #D98E6A;
}

.hero-service-card--psikolog .hero-service-card__bottom:visited {
  color: #D98E6A;
}

.hero-service-card--diyetisyen .hero-service-card__bottom {
  background: #E8F3F1;
  color: #6FA29A;
}

.hero-service-card--diyetisyen .hero-service-card__bottom:visited {
  color: #6FA29A;
}

/* ─── Mobile Store Links Section ─── */
.mobile-store-section {
  display: flex;
  justify-content: center;
  padding: 32px 16px;
  background: #F8F9FA;
}

.mobile-store-section__inner {
  display: flex;
  gap: 14px;
  align-items: center;
}

.mobile-store-section__inner a {
  display: block;
  line-height: 0;
}

.mobile-store-section__inner img {
  height: 48px;
  width: auto;
  border-radius: 6px;
}

@media (min-width: 768px) {
  .mobile-store-section {
    display: none;
  }
}
