/* ==========================================================================
   Studio Medico Tesoriera - Home Conversion Styles
   Wave 4 Hardened: Intent Router, Private Preview, Static Grid Desktop Rail, Latent Sticky CTA
   ========================================================================== */

/* Intent Router */
.intent-router-section {
  padding: 3rem 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.intent-router-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 2.5rem;
}

.intent-router-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.intent-router-lead {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

.intent-router-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .intent-router-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.intent-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.intent-card:hover,
.intent-card:focus-within {
  transform: translateY(-2px);
  border-color: #0369a1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.intent-card-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0369a1;
  margin-bottom: 0.5rem;
  display: block;
}

.intent-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.intent-card-desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.intent-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9375rem;
  min-height: 44px;
}

/* Private Services Preview */
.private-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .private-preview-grid {
    grid-template-columns: 1fr;
  }
}

/* Health Guide Rail / Discovery (Desktop: Static 3-Card Grid; Mobile: Horizontal Scroll/Snap; ZERO Autoplay) */
.health-rail-section {
  padding: 3.5rem 0;
}

.health-rail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Desktop: Static 3-Card Grid (min-width: 901px) */
@media (min-width: 901px) {
  .health-rail-controls {
    display: none !important; /* Hide carousel buttons on desktop: static grid */
  }
  .health-rail-track {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }
  .health-rail-card {
    flex: none !important;
  }
}

/* Mobile: Horizontal scroll with scroll-snap (max-width: 900px) */
@media (max-width: 900px) {
  .health-rail-controls {
    display: flex;
    gap: 0.5rem;
  }
  .health-rail-btn {
    width: 2.75rem; /* 44px touch target */
    height: 2.75rem; /* 44px touch target */
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.125rem;
  }
  .health-rail-btn:hover,
  .health-rail-btn:focus-visible {
    background: #0369a1;
    color: #ffffff;
    border-color: #0369a1;
  }
  .health-rail-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0.5rem 0.25rem 1.5rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .health-rail-card {
    flex: 0 0 82%; /* Visual swipe affordance */
    scroll-snap-align: start;
  }
}

.health-rail-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.health-rail-card:hover,
.health-rail-card:focus-within {
  border-color: #0369a1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

/* Sticky Mobile CTA Engine (DISABLED BY DEFAULT, NOT RENDERED GLOBALLY) */
.sticky-mobile-cta {
  display: none !important; /* Explicitly suppressed globally */
}

/* Prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .intent-card,
  .health-rail-card,
  .health-rail-track {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
