/* ============================================
   CA Medlynks LP Base Styles
   Shared section styles for all landing pages
   ============================================ */

/* LP body needs space for floating CTA */
body {
  padding-bottom: 76px;
}

/* =============================================
   LP HEADER (Sticky, CTA-focused)
   ============================================= */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 10px 16px;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-sm);
  margin: 0 auto;
}

.header__logo-text {
  font-size: 16px;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.header__logo-text strong {
  font-weight: 800;
}

.header__cta-group {
  display: flex;
  gap: 8px;
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
  min-height: 44px;
}

.header__cta:active {
  transform: scale(0.96);
}

.header__cta--phone {
  color: var(--color-primary);
  background: var(--color-primary-subtle);
}

.header__cta--whatsapp {
  color: #fff;
  background: var(--color-whatsapp);
}

.header__cta--whatsapp:hover {
  background: var(--color-whatsapp-dark);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  background:
    linear-gradient(170deg, rgba(22, 58, 86, 0.82) 0%, rgba(43, 124, 182, 0.75) 50%, rgba(141, 198, 63, 0.6) 100%),
    image-set(url('/assets/images/lp/sti/hero-bg.webp') type('image/webp'), url('/assets/images/lp/sti/hero-bg.png') type('image/png')) center/cover no-repeat;
  color: #fff;
  padding: 52px 20px 44px;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container-sm);
  margin: 0 auto;
}

.hero__urgency-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(141, 198, 63, 0.15);
  border: 1px solid rgba(141, 198, 63, 0.3);
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  color: #8DC63F;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.hero__title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.hero__subtitle {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 480px;
}

.hero__cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

/* =============================================
   TRUST BAR
   ============================================= */
.trust-bar {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}

.trust-bar__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  max-width: var(--container-sm);
  margin: 0 auto;
  padding: 0 16px;
  flex-wrap: wrap;
}

.trust-bar__item {
  text-align: center;
  flex: 1;
  min-width: 70px;
}

.trust-bar__number {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.trust-bar__plus,
.trust-bar__unit {
  font-size: 16px;
  font-weight: 700;
  color: var(--lp-accent);
}

.trust-bar__label {
  display: block;
  font-size: 11px;
  color: var(--color-text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.trust-bar__divider {
  width: 1px;
  height: 36px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* =============================================
   PACKAGES
   ============================================= */
.packages {
  padding: 52px 0 40px;
  background: var(--color-bg-warm);
}

.packages__grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.package {
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: all 0.3s ease;
}

.package:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.package--featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--color-primary);
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.package__badge {
  position: absolute;
  top: -13px;
  left: 24px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--lp-accent) 100%);
  color: #fff;
  padding: 5px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(43, 124, 182, 0.3);
}

.package__name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.package__price {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.package__currency {
  font-size: 14px;
  color: var(--color-text-light);
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 6px;
}

.package__amount {
  font-size: 42px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -1.5px;
}

.package__desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.package__tests {
  list-style: none;
  margin-bottom: 20px;
}

.package__tests li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
  line-height: 1.5;
}

.package__tests li:last-child {
  border-bottom: none;
}

.package__tests li strong {
  color: var(--color-text);
}

.package__highlight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  background: var(--color-warning-light);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 13px;
  color: #92400e;
  line-height: 1.5;
}

.package__highlight svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* =============================================
   MID-SECTION CTA
   ============================================= */
.mid-cta {
  text-align: center;
  margin-top: 28px;
  padding: 24px;
  background: var(--color-bg-cool);
  border-radius: var(--radius);
  border: 1px dashed var(--color-border);
}

.mid-cta__text {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  font-weight: 500;
}

/* =============================================
   HOW IT WORKS
   ============================================= */
.how-it-works {
  padding: 52px 0;
  background: var(--color-bg);
}

.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.step {
  text-align: center;
  padding: 28px 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  position: relative;
  border: 1px solid var(--color-border);
}

.step__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
}

.step__number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(43, 124, 182, 0.3);
}

.step__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-text);
}

.step__desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.step__connector {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  transform: rotate(90deg);
  opacity: 0.5;
}

/* =============================================
   PRIVACY SECTION
   ============================================= */
.privacy {
  padding: 52px 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, #163A56 100%);
  color: #fff;
}

.privacy__card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
}

.privacy__header {
  text-align: center;
  margin-bottom: 28px;
}

.privacy__icon {
  margin-bottom: 16px;
  color: #8DC63F;
}

.privacy__title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.privacy__lead {
  font-size: 15px;
  opacity: 0.85;
  line-height: 1.5;
}

.privacy__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.privacy__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.privacy__check {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: rgba(141, 198, 63, 0.2);
  color: #8DC63F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}

.privacy__list li div strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.privacy__list li div span {
  font-size: 13px;
  opacity: 0.75;
  line-height: 1.4;
}

/* =============================================
   FACILITY SECTION
   ============================================= */
.facility {
  padding: 56px 0;
  background: var(--color-bg);
}

.facility__grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.facility__image-wrap {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.facility__img {
  width: 100%;
  height: auto;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.facility__image-wrap:hover .facility__img {
  transform: scale(1.05);
}

.facility__content {
  width: 100%;
}

.facility__text {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.facility__list {
  list-style: none;
}

.facility__list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.6;
}

.facility__list li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--lp-accent);
  font-weight: 800;
}

/* =============================================
   WHY US
   ============================================= */
.why-us {
  padding: 52px 0;
  background: var(--color-bg-warm);
}

/* =============================================
   FINAL CTA
   ============================================= */
.final-cta {
  padding: 56px 0;
  background: linear-gradient(170deg, var(--color-bg-dark) 0%, #163A56 100%);
  color: #fff;
}

.final-cta__content {
  text-align: center;
}

.final-cta__title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.final-cta__subtitle {
  font-size: 16px;
  opacity: 0.8;
  margin-bottom: 32px;
  line-height: 1.5;
}

.final-cta__form-area {
  max-width: 400px;
  margin: 0 auto;
}

.quick-form {
  text-align: left;
}

.quick-form__label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 14px;
  opacity: 0.85;
}

.quick-form__fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.quick-form__privacy {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

.quick-form__privacy svg {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.4);
}

.final-cta__divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.final-cta__divider::before,
.final-cta__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.final-cta__direct {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.final-cta__direct .btn--outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.final-cta__direct .btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* =============================================
   FLOATING CTA (Mobile)
   ============================================= */
.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-floating);
  display: flex;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  padding: 10px 16px;
  gap: 10px;
  transition: transform 0.3s ease;
}

.floating-cta--hidden {
  transform: translateY(100%);
}

.floating-cta__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.floating-cta__btn:active {
  transform: scale(0.97);
}

.floating-cta__btn--phone {
  background: var(--color-primary-subtle);
  color: var(--color-primary);
}

.floating-cta__btn--whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}

/* =============================================
   LP TABLET & DESKTOP OVERRIDES
   ============================================= */
@media (min-width: 768px) {
  .header__inner {
    max-width: var(--container-md);
  }

  .hero {
    padding: 80px 32px 64px;
  }

  .hero__title {
    font-size: 42px;
  }

  .hero__cta-group {
    flex-direction: row;
    max-width: 520px;
  }

  .hero__trust {
    gap: 24px;
  }

  .trust-bar__inner {
    max-width: var(--container-md);
  }

  .trust-bar__number {
    font-size: 32px;
  }

  .trust-bar__label {
    font-size: 12px;
  }

  .steps {
    flex-direction: row;
    gap: 0;
  }

  .step {
    flex: 1;
  }

  .step__connector {
    transform: none;
    width: 32px;
  }

  .packages__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .facility__grid {
    flex-direction: row-reverse;
    gap: 48px;
  }

  .facility__image-wrap,
  .facility__content {
    flex: 1;
  }

  .quick-form__fields {
    flex-direction: row;
  }

  .final-cta__direct {
    flex-direction: row;
  }

  .floating-cta {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: 48px;
  }

  .packages__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .packages__grid > .package:last-child {
    grid-column: 2 / 4;
  }
}

/* Small screen adjustments (320px devices) */
@media (max-width: 374px) {
  .hero__title {
    font-size: 24px;
  }
}
