/* =====================================================================
   FITQOR site-wide layer — brings the Teen Personal Training design
   (css/tpt.css) to every standard page without changing any layout.
   Loaded LAST in <head>. Pages that already use css/tpt.css do not load it.
   ===================================================================== */

/* ---------- 1. Hero: photo + dark fade + copy block + WhatsApp CTA ----------
   Applies to the standard `.hero` + `.hero-panel` pattern only. Special heroes
   (Experience, Café, Open House, Kids Club) keep their own layout and only get
   the WhatsApp button style below. */
.hero { --tpt-edge: max(24px, calc((100vw - 1200px) / 2 + 24px)); }

.hero:not(.xp-hero):not(.cf-hero):not(.oh-hero):not(.kc-hero)::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(270deg, rgba(20,10,30,.92) 0%, rgba(20,10,30,.62) 26%, rgba(20,10,30,0) 52%),
              linear-gradient(0deg, rgba(20,10,30,.55) 0%, rgba(20,10,30,0) 34%);
}
.hero:not(.xp-hero):not(.cf-hero):not(.oh-hero):not(.kc-hero):has(.hero-panel.on-left)::after {
  background: linear-gradient(90deg, rgba(20,10,30,.92) 0%, rgba(20,10,30,.62) 26%, rgba(20,10,30,0) 52%),
              linear-gradient(0deg, rgba(20,10,30,.55) 0%, rgba(20,10,30,0) 34%);
}

@media (min-width: 901px) {
  .hero:not(.xp-hero):not(.cf-hero):not(.oh-hero):not(.kc-hero) .hero-panel:not([style*="width:100%"]) {
    position: absolute !important; top: auto !important; bottom: 56px !important;
    left: auto !important; right: var(--tpt-edge) !important;
    width: auto !important; min-width: 0 !important; max-width: 480px !important;
    border: 0 !important; background: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    padding: 0 !important; display: block !important; justify-content: initial !important;
  }
  .hero:not(.xp-hero):not(.cf-hero):not(.oh-hero):not(.kc-hero) .hero-panel.on-left:not([style*="width:100%"]) {
    left: var(--tpt-edge) !important; right: auto !important;
  }
}
@media (max-width: 900px) {
  .hero:not(.xp-hero):not(.cf-hero):not(.oh-hero):not(.kc-hero)::after {
    background: linear-gradient(0deg, rgba(20,10,30,.96) 0%, rgba(20,10,30,.7) 38%, rgba(20,10,30,0) 66%);
  }
  .hero:not(.xp-hero):not(.cf-hero):not(.oh-hero):not(.kc-hero) .hero-panel:not([style*="width:100%"]) {
    border: 0 !important; border-top: 0 !important; background: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    padding: 24px 24px 34px !important;
  }
}

/* eyebrow line above the title (same as the teen hero) */
.hero:not(.xp-hero):not(.cf-hero):not(.oh-hero):not(.kc-hero) .hero-panel:not([style*="width:100%"])::before {
  content: "FITQOR · CASCAIS"; display: block; margin-bottom: 14px; padding-left: 52px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
  background: linear-gradient(currentColor, currentColor) left center / 38px 1px no-repeat;
}

/* title + subtitle — teen scale and weight */
.hero:not(.xp-hero):not(.cf-hero):not(.oh-hero):not(.kc-hero) .hero-panel:not([style*="width:100%"]) .panel-title {
  font-size: clamp(32px, 3.5vw, 50px) !important; line-height: 1.02 !important; font-weight: 500 !important;
  letter-spacing: -.01em; max-width: none !important; margin-top: 0 !important;
}
.hero:not(.xp-hero):not(.cf-hero):not(.oh-hero):not(.kc-hero) .hero-panel:not([style*="width:100%"]) .panel-title b { font-weight: 700; }
.hero:not(.xp-hero):not(.cf-hero):not(.oh-hero):not(.kc-hero) .hero-panel:not([style*="width:100%"]) .panel-sub {
  font-size: 17px !important; line-height: 1.5 !important; margin-top: 16px !important; max-width: 430px !important; color: rgba(255,255,255,.9);
}
.hero .hero-tagline { white-space: normal; }
@media (max-width: 900px) {
  .hero:not(.xp-hero):not(.cf-hero):not(.oh-hero):not(.kc-hero) .hero-panel:not([style*="width:100%"]) .panel-title { font-size: clamp(30px, 8.4vw, 42px) !important; }
  .hero:not(.xp-hero):not(.cf-hero):not(.oh-hero):not(.kc-hero) .hero-panel:not([style*="width:100%"]) .panel-sub { font-size: 15.5px !important; }
}

/* hero call-to-action row with the WhatsApp button */
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; position: relative; z-index: 3; }
.hero-cta .btn { gap: 10px; }
.hero-cta .btn img { width: 20px; height: 20px; flex: none; }
.hero-wa:focus-visible, .hero-cta a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 480px) { .hero-cta .btn { flex: 1 1 100%; } }

/* ---------- 2. Section titles, sub-lines, buttons ---------- */
.section-title { font-size: clamp(30px, calc(28px + 1.2vw), 46px); font-weight: 400; line-height: 1.1; letter-spacing: -.01em; }
.section-title b { font-weight: 700; }
.stay-sub { line-height: 1.55; }
.btn:focus-visible { outline: 3px solid var(--imperial); outline-offset: 3px; }

/* ---------- 3. Cards: teen look (soft radius, hairline border, hover lift) ---------- */
.step-card, .lean-item { border-radius: 20px; border: 1px solid rgba(0,0,0,.06); box-shadow: none; transition: transform .2s ease, box-shadow .2s ease; }
.step-card:hover, .lean-item:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(27,5,52,.1); }
.class-row .c-img { border-radius: 22px; box-shadow: 0 24px 60px rgba(27,5,52,.18); }
.price-table { border-radius: 22px; }
.faq-item { border-bottom-color: rgba(186,173,142,.7); }
@media (prefers-reduced-motion: reduce) { .step-card:hover, .lean-item:hover { transform: none; } }

/* ---------- 4. Hero details ---------- */
.hero-wa-ghost { margin: 26px 0 0 12px; border: 1px solid rgba(255,255,255,.75); background: rgba(255,255,255,.06); backdrop-filter: blur(6px); gap: 10px; vertical-align: top; }
.hero-wa-ghost img { width: 20px; height: 20px; flex: none; }
.hero-wa-ghost:hover { background: #fff; color: var(--dark-purple); }
.hero-wa-ic { vertical-align: -4px; }
@media (max-width: 480px) { .hero-wa-ghost { margin-left: 0; } }
.hero:not(.xp-hero):not(.cf-hero):not(.oh-hero):not(.kc-hero) .hero-panel .know-more { position: static !important; margin-top: 22px !important; }
.hero:not(.xp-hero):not(.cf-hero):not(.oh-hero):not(.kc-hero) .hero-panel .cat-tag { display: inline-block !important; margin-bottom: 12px; }
.hero-wa-light { border: 1.5px solid var(--imperial); color: var(--imperial); background: transparent; gap: 10px; margin-left: 12px; }
.hero-wa-light img, .hero-wa .hero-wa-ic { width: 20px; height: 20px; flex: none; }
.hero-wa-light:hover { background: var(--imperial); color: #fff; }
.hero-cta .hero-wa-ghost { margin: 0; }

