/* ==========================================================================
   PureMed Research Center — Ad landing page (free-call.html / ar/free-call.html)
   Loaded ONLY by the two landing pages, on top of style.css. Kept in its own
   file so the main site's cached style.css never has to be re-downloaded.
   Everything here is prefixed .lp- so it can't collide with the site.
   ========================================================================== */

/* ---------- Slim header ----------
   The landing page deliberately drops the 9-item primary nav: every extra
   link is a way out of a page whose only job is "watch, then book". Brand,
   language and the booking CTA stay, so it still reads as the same site. */
.lp-nav .container { justify-content: space-between; gap: 16px; }
.lp-nav .nav-actions { display: flex; align-items: center; gap: 12px; }
.lp-nav .menu-toggle { display: none; }
@media (max-width: 560px) {
  .lp-nav .nav-cta { display: none; } /* the sticky mobile bar already carries it */
}

/* ---------- Hero copy ---------- */
.lp-hero { padding: 72px 0 64px; }
@media (max-width: 640px) { .lp-hero { padding: 44px 0 48px; } }

.lp-hero .hero-inner { max-width: 860px; }

.lp-h1 {
  font-size: clamp(26px, 4.2vw, 44px);
  line-height: 1.32;
  color: var(--hero-navy-950, var(--navy));
  margin-bottom: 14px;
}
.lp-sub {
  color: var(--ink-muted);
  font-size: clamp(15px, 1.6vw, 18px);
  max-width: 620px;
  margin: 0 auto 30px;
}

/* ---------- Video ----------
   A "facade": the poster image plus a play button is all that loads with the
   page. Wistia's player (a third-party iframe with its own JS) is injected
   only on click, so visitors who never press play pay nothing for it. */
.lp-video {
  position: relative;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: var(--shadow-lg);
}
.lp-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.lp-video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--navy);
  cursor: pointer;
  display: block;
}
.lp-video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease), filter .3s var(--ease);
}
.lp-video-facade::after {
  /* keeps the play button readable over a bright frame */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,37,69,.10) 0%, rgba(11,37,69,.38) 100%);
  transition: opacity .3s var(--ease);
}
.lp-video-facade:hover img { transform: scale(1.03); }
.lp-video-facade:hover::after { opacity: .8; }
.lp-video-facade:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.lp-play {
  position: absolute;
  top: 50%;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  box-shadow: 0 14px 40px rgba(11,37,69,.36);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
/* RTL: translate(-50%) would push the button the wrong way when the start
   edge is on the right, so mirror the X shift for right-to-left pages. */
html[dir="rtl"] .lp-play { transform: translate(50%, -50%); }
.lp-video-facade:hover .lp-play { background: #fff; transform: translate(-50%, -50%) scale(1.07); }
html[dir="rtl"] .lp-video-facade:hover .lp-play { transform: translate(50%, -50%) scale(1.07); }

.lp-play svg {
  width: 30px;
  height: 30px;
  fill: var(--blue);
  /* the triangle is drawn pointing right; in RTL it must still point at the
     direction playback runs, which for video is always "forward" = right */
  margin-inline-start: 5px;
}
html[dir="rtl"] .lp-play svg { transform: scaleX(1); margin-inline-start: 0; margin-inline-end: 5px; }

.lp-play-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.55);
  animation: lpPulse 2.6s ease-out infinite;
}
@keyframes lpPulse {
  0%   { transform: scale(.9); opacity: .7; }
  70%  { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .lp-play-ring { animation: none; } }

@media (max-width: 560px) {
  .lp-play { width: 66px; height: 66px; }
  .lp-play svg { width: 24px; height: 24px; }
}

.lp-video-duration {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  inset-inline-end: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(11,37,69,.72);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}

.lp-video-note {
  margin-top: 14px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-faint);
}

/* ---------- CTA under the video ---------- */
.lp-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}
.lp-cta-row .btn { padding: 16px 34px; font-size: 16px; }
@media (max-width: 560px) {
  .lp-cta-row { flex-direction: column; align-items: stretch; }
  .lp-cta-row .btn { width: 100%; justify-content: center; }
}
.lp-btn-whatsapp { background: #fff; color: #128C4B; border-color: #cdeeda; }
.lp-btn-whatsapp:hover { border-color: #128C4B; background: #f2fbf6; }
.lp-btn-whatsapp svg { width: 19px; height: 19px; fill: currentColor; flex-shrink: 0; }

/* No booking block on this page: the inline Calendly calendar was removed so
   the page ends on the trust row. Every booking button opens the Calendly
   popup instead (js/script.js), falling back to its own href without JS. */

/* ---------- Slim footer ---------- */
.lp-footer {
  background: var(--navy);
  color: rgba(255,255,255,.72);
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
}
.lp-footer .container { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lp-footer a { color: rgba(255,255,255,.9); }
.lp-footer a:hover { color: #fff; text-decoration: underline; }
.lp-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.lp-footer-social { display: flex; gap: 12px; }
.lp-footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  transition: background .25s var(--ease);
}
.lp-footer-social a:hover { background: rgba(255,255,255,.18); }
.lp-footer-social svg { width: 18px; height: 18px; }
.lp-footer-copy { color: rgba(255,255,255,.5); font-size: 13px; }
/* No extra bottom padding for the sticky mobile bar — style.css already
   reserves it site-wide with `body { padding-bottom: 82px }` under 900px. */
