/* ============================================================
   FavDental v2 — Blocks 11–15
   Motive · Expertiză · Echipă · Video · Diplome
   Uses tokens from styles-v2.css (loaded first)
   ============================================================ */

/* ---- BLOCK 11 — 5 Motive ---- */
.reasons { padding-block: 110px; background: var(--white); }
.reasons-head { margin-inline: auto; text-align: center; }
.reasons-head .section-title { margin-top: 16px; white-space: nowrap; }
.reasons-head .lead { margin-top: 16px; max-width: 680px; margin-inline: auto; }
.reasons-grid {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.reason {
  position: relative; padding: 34px 30px; border-radius: var(--r-lg);
  background: var(--ivory); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.reason:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--accent-soft); }
.reason .r-num {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; color: var(--accent);
  font-variant-numeric: tabular-nums; margin-bottom: 18px;
}
.reason .r-ico {
  width: 58px; height: 58px; border-radius: 16px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 22px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.reason:hover .r-ico { background: var(--accent); color: #fff; }
.reason .r-ico svg { width: 30px; height: 30px; }
.reason h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.015em; }
.reason p { margin-top: 9px; font-size: 0.94rem; color: var(--muted); line-height: 1.62; }
/* CTA card occupies the 6th cell */
.reason-cta {
  grid-column: span 1; padding: 34px 30px; border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--accent) 0%, var(--accent-deep) 100%); color: #fff;
  display: flex; flex-direction: column; justify-content: center; box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.reason-cta::after { content: ""; position: absolute; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,0.1); }
.reason-cta h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.025em; position: relative; z-index: 1; }
.reason-cta p { margin-top: 10px; color: rgba(255,255,255,0.88); font-size: 0.96rem; line-height: 1.6; position: relative; z-index: 1; }
.reason-cta .btn { margin-top: 24px; align-self: flex-start; position: relative; z-index: 1; }

/* ---- BLOCK 12 — Expertiză (doctor principal) ---- */
.expert { padding-block: 110px; background: var(--ivory); }
.expert-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 84px); align-items: center; }
.expert-photo { position: relative; }
.expert-photo .ep-img { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.expert-photo .ep-img image-slot { width: 100%; height: clamp(420px, 50vw, 580px); display: block; }
.expert-photo .ep-sign {
  position: absolute; left: -24px; bottom: 34px; background: var(--white); border-radius: var(--r-md);
  padding: 18px 22px; box-shadow: var(--shadow-md); max-width: 230px;
}
.expert-photo .ep-sign strong { display: block; font-size: 1.02rem; font-weight: 700; }
.expert-photo .ep-sign span { font-size: 0.84rem; color: var(--muted); }
.expert-copy .section-title { margin-top: 16px; }
.expert-copy .lead { margin-top: 18px; }
.expert-copy .lead + .lead { margin-top: 14px; }
.expert-stats {
  margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  border-top: 1px solid var(--line-2); padding-top: 32px;
}
.expert-stats .es-item strong {
  display: block; font-size: clamp(2rem, 3vw, 2.7rem); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1; color: var(--accent);
}
.expert-stats .es-item span { display: block; margin-top: 8px; font-size: 0.86rem; color: var(--ink-2); font-weight: 500; line-height: 1.4; }

/* ---- BLOCK 13 — Echipa de medici (slider) ---- */
.team { padding-block: 110px; background: var(--white); }
.team-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.team-head-left { max-width: 680px; }
.team-head .section-title { margin-top: 16px; }
.team-head .lead { margin-top: 16px; }
.team-arrows { display: flex; gap: 10px; flex: none; }
.team-arrows button { width: 52px; height: 52px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--line-2); display: grid; place-items: center; color: var(--ink); transition: all 0.3s var(--ease); }
.team-arrows button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.team-arrows button:disabled { opacity: 0.35; cursor: default; }
.team-arrows button:disabled:hover { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.team-arrows svg { width: 20px; height: 20px; }

.team-slider { margin-top: 40px; overflow: hidden; }
.team-track { display: flex; gap: 22px; transition: transform 0.55s var(--ease); will-change: transform; }
.team-card { flex: 0 0 calc((100% - 66px) / 4); min-width: 0; }
.team-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.team-photo image-slot { width: 100%; height: 340px; display: block; transition: transform 0.6s var(--ease); }
.team-card:hover .team-photo image-slot { transform: scale(1.05); }
.team-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(26,11,18,0.6) 0%, transparent 50%); }
.team-photo .tp-social { position: absolute; z-index: 2; right: 14px; bottom: 14px; display: flex; gap: 8px; opacity: 0; transform: translateY(8px); transition: all 0.35s var(--ease); }
.team-card:hover .tp-social { opacity: 1; transform: translateY(0); }
.team-photo .tp-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.92); color: var(--ink); display: grid; place-items: center; transition: background 0.25s var(--ease), color 0.25s var(--ease); }
.team-photo .tp-social a:hover { background: var(--accent); color: #fff; }
.team-photo .tp-social svg { width: 17px; height: 17px; }
.team-info { padding: 18px 4px 0; }
.team-info h3 { font-size: 1.16rem; font-weight: 700; letter-spacing: -0.015em; }
.team-info span { font-size: 0.9rem; color: var(--accent); font-weight: 600; }
.team-dots { margin-top: 26px; display: flex; gap: 8px; justify-content: center; }
.team-dots button { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); transition: all 0.3s var(--ease); }
.team-dots button.is-active { background: var(--accent); width: 28px; border-radius: 9px; }

/* ---- BLOCK 14 — Video experți ---- */
.videos { padding-block: 110px; background: var(--dark-grad); color: #fff; }
.videos-head { display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; }
.videos-head-left { max-width: 680px; margin-inline: auto; text-align: center; }
.videos .kicker { color: #fff; }
.videos .kicker .idx { color: var(--accent-light); }
.videos .kicker::before { background: rgba(255,255,255,0.6); opacity: 1; }
.videos-head .section-title { margin-top: 16px; color: #fff; }
.videos-head .lead { margin-top: 16px; color: rgba(255,255,255,0.74); }
.videos-grid {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.video-item {
  position: relative; border-radius: var(--r-md); overflow: hidden; cursor: pointer;
  background: #000; aspect-ratio: 9 / 14;
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.video-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.video-item image-slot { width: 100%; height: 100%; display: block; }
.video-item::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,0.62) 0%, transparent 52%); }
.video-play {
  position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.92); color: var(--accent);
  display: grid; place-items: center; transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.video-item:hover .video-play { transform: translate(-50%,-50%) scale(1.1); background: var(--accent); color: #fff; }
.video-play svg { width: 22px; height: 22px; margin-left: 3px; }
.video-meta { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 13px; }
.video-meta strong { display: block; font-size: 0.92rem; font-weight: 700; color: #fff; line-height: 1.3; }
.video-meta span { font-size: 0.78rem; color: rgba(255,255,255,0.7); }
.videos-pagination { margin-top: 34px; display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
.vp-btn {
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px;
  background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.18); color: #fff;
  font-weight: 600; font-size: 0.96rem; font-variant-numeric: tabular-nums;
  display: grid; place-items: center; transition: all 0.25s var(--ease);
}
.vp-btn:hover:not(:disabled) { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.4); }
.vp-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.vp-btn:disabled { opacity: 0.3; cursor: default; }
.vp-btn svg { width: 18px; height: 18px; }

/* ---- BLOCK 15 — Diplome (galerie) ---- */
.diplomas { padding-block: 110px; background: var(--ivory); }
.diplomas-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.diplomas-head-left { max-width: 680px; }
.diplomas-head .section-title { margin-top: 16px; }
.diplomas-head .lead { margin-top: 16px; }
.diplomas-arrows { display: flex; gap: 10px; flex: none; }
.diplomas-arrows button { width: 52px; height: 52px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--line-2); display: grid; place-items: center; color: var(--ink); transition: all 0.3s var(--ease); }
.diplomas-arrows button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.diplomas-arrows button:disabled { opacity: 0.35; cursor: default; }
.diplomas-arrows button:disabled:hover { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.diplomas-arrows svg { width: 20px; height: 20px; }

.diplomas-slider { margin-top: 40px; overflow: hidden; }
.diplomas-track { display: flex; gap: 14px; transition: transform 0.55s var(--ease); will-change: transform; }
.diploma {
  position: relative; border-radius: var(--r-sm); overflow: hidden; cursor: pointer;
  background: var(--white); border: 1px solid var(--line); aspect-ratio: 3 / 4; min-width: 0;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.diploma:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent-soft); }
.diploma image-slot { width: 100%; height: 100%; display: block; }
.diploma .d-zoom {
  position: absolute; z-index: 2; inset: 0; display: grid; place-items: center;
  background: rgba(26,11,18,0.0); opacity: 0; transition: opacity 0.3s var(--ease), background 0.3s var(--ease);
}
.diploma:hover .d-zoom { opacity: 1; background: rgba(26,11,18,0.28); }
.diploma .d-zoom span { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.94); color: var(--accent); display: grid; place-items: center; }
.diploma .d-zoom svg { width: 20px; height: 20px; }
.diplomas-dots { margin-top: 26px; display: flex; gap: 8px; justify-content: center; }
.diplomas-dots button { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); transition: all 0.3s var(--ease); }
.diplomas-dots button.is-active { background: var(--accent); width: 28px; border-radius: 9px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: clamp(20px, 5vw, 60px);
  background: rgba(20,8,14,0.92); backdrop-filter: blur(6px);
}
.lightbox.is-open { display: flex; animation: lbFade 0.3s var(--ease); }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img { max-width: 100%; max-height: 100%; border-radius: var(--r-sm); box-shadow: 0 40px 100px -30px rgba(0,0,0,0.7); }
.lightbox-img image-slot { width: min(70vw, 620px); height: min(82vh, 820px); display: block; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,0.14); border: 1.5px solid rgba(255,255,255,0.4); color: #fff;
  display: grid; place-items: center; transition: all 0.25s var(--ease); backdrop-filter: blur(6px);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: #fff; color: var(--ink); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: clamp(12px, 3vw, 36px); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(12px, 3vw, 36px); top: 50%; transform: translateY(-50%); }
.lb-close svg, .lb-prev svg, .lb-next svg { width: 22px; height: 22px; }
.lb-count { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.8); font-size: 0.9rem; font-variant-numeric: tabular-nums; }

/* ---- Responsive for blocks 11–15 ---- */
@media (max-width: 980px) {
  .reasons-grid { grid-template-columns: repeat(2, 1fr); }
  .expert-grid { grid-template-columns: 1fr; }
  .expert-photo { order: -1; max-width: 480px; }
  .team-card { flex: 0 0 calc((100% - 22px) / 2); }
  .videos-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .reasons-grid { grid-template-columns: 1fr; }
  .expert-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .team-card { flex: 0 0 calc((100% - 22px) / 1.3); }
  .team-head, .videos-head, .diplomas-head { flex-direction: column; align-items: flex-start; }
  .videos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
}
