/* ============================================================
   LANDING PAGE (index.html) — page-specific styles
   ============================================================ */

.section { padding: 96px 0; }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(32px) scale(.97); transition: opacity .65s ease, transform .65s ease; }
.reveal.d1 { transition-delay: .10s; }
.reveal.d2 { transition-delay: .20s; }
.reveal.d3 { transition-delay: .30s; }
.reveal.d4 { transition-delay: .40s; }
.reveal.d5 { transition-delay: .50s; }
.reveal.shown { opacity: 1; transform: none; }

/* ── Button shimmer ── */
@keyframes shimmerSlide { from { transform: translateX(-120%) skewX(-15deg); } to { transform: translateX(220%) skewX(-15deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes modalIn { from { opacity: 0; transform: scale(.95) translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes expandDown { from { opacity: 0; max-height: 0; } to { opacity: 1; max-height: 600px; } }
@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.fade-up { animation: fadeUp .55s ease both; }
.fu1 { animation-delay: .10s; }
.fu2 { animation-delay: .22s; }
.fu3 { animation-delay: .34s; }

/* ── Modal overlay ── */
.overlay { position: fixed; inset: 0; background: rgba(21, 66, 81, .72); z-index: 400; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-box { background: #fff; border-radius: 8px; padding: 48px; max-width: 460px; width: 90%; animation: modalIn .3s ease; position: relative; }

/* ── Tabs ── */
.tab-btn { font-family: var(--font-body); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 10px 28px; border: 2px solid #154251; border-radius: 4px; cursor: pointer; transition: all 150ms ease; background: transparent; color: #154251; }
.tab-btn.active { background: #154251; color: #fff; }

/* ── Procedure card expand ── */
.proc-article { overflow: hidden; animation: expandDown .35s ease forwards; }

/* ── WhatsApp FAB ── */
.wa-fab { position: fixed; bottom: 28px; right: 28px; z-index: 200; width: 56px; height: 56px; border-radius: 9999px; background: #25d366; box-shadow: 0 4px 20px rgba(37, 211, 102, .4); display: flex; align-items: center; justify-content: center; transition: transform 150ms ease, box-shadow 150ms ease; cursor: pointer; }
.wa-fab:hover { transform: scale(1.09); box-shadow: 0 6px 28px rgba(37, 211, 102, .55); }

/* ── Field ── */
.field { width: 100%; font-family: var(--font-body); font-weight: 400; font-size: 15px; color: #2d4a50; background: #fff; border: 1px solid #d0dbd8; border-radius: 4px; padding: 12px 16px; outline: none; box-sizing: border-box; transition: border-color 150ms; }
.field:focus { border-color: #154251; }
.field-lbl { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11px; letter-spacing: .10em; text-transform: uppercase; color: #154251; margin-bottom: 6px; }

/* ── Section layout grids ── */
.hero-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; transform: translate(-50%,-50%) scale(1.35); object-fit: cover; opacity: .16; z-index: 0; }
.hero-text { position: relative; z-index: 1; }
.hero-portrait { position: relative; z-index: 1; }
.hero-portrait-frame { border-radius: 12px; overflow: hidden; box-shadow: 0 20px 64px rgba(21,66,81,.5); aspect-ratio: 3/4; }
.hero-badge-float { position: absolute; bottom: -18px; left: -22px; background: #fff; border-radius: 8px; padding: 14px 20px; box-shadow: 0 10px 36px rgba(21,66,81,.18); display: flex; align-items: center; gap: 12px; }
.hero-grid { display: grid; grid-template-columns: 1fr 440px; gap: 56px; align-items: center; padding-top: 100px; padding-bottom: 80px; }
.hero-credentials { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 48px; padding-top: 36px; border-top: 1px solid rgba(200,213,216,.14); }
.about-grid { display: grid; grid-template-columns: 420px 1fr; gap: 72px; align-items: center; }
.credentials-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items: start; }
.footer-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 28px; border-bottom: 1px solid rgba(200,213,216,.10); gap: 24px; flex-wrap: wrap; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; flex-wrap: wrap; gap: 10px; }

/* ── Location card (single clinic, presencial/online) ── */
.location-card { max-width: 760px; margin: 0 auto; background: #fff; border-radius: 10px; padding: 44px; box-shadow: 0 4px 20px rgba(21,66,81,.09); border: 1px solid #e8eeec; border-top: 3px solid #adc265; }
.location-card-modes { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 28px; padding-top: 28px; border-top: 1px solid #eef3f0; }
.location-mode { background: #f9fbfa; border-radius: 8px; padding: 18px 20px; }
.location-card-cta { margin-top: 28px; }

/* Grid items default to min-width:auto, which lets content (e.g. images)
   blow tracks past their `fr` size. Force them to respect the track. */
.hero-grid > *, .about-grid > *, .credentials-grid > *, .testimonials-grid > *, .location-card-modes > * { min-width: 0; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 140px; padding-bottom: 56px; gap: 40px; }
  .hero-video { opacity: .12; }
  .hero-portrait { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; z-index: 0; opacity: .3; pointer-events: none; }
  .hero-portrait-frame { height: 100%; border-radius: 0; box-shadow: none; }
  .hero-portrait-frame img { object-position: center 22%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%); mask-image: linear-gradient(90deg, transparent 0%, #000 32%); }
  .hero-badge-float { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-badge { right: 12px !important; top: 16px !important; padding: 14px 18px !important; }
  .credentials-grid { grid-template-columns: repeat(2,1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  /* Navigation to O Quadril is concentrated in the mobile menu instead */
  .about-quadril-cta { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .footer-top, .footer-bottom { justify-content: center; text-align: center; }
  .location-card { padding: 28px 24px; }
  .location-card-modes { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .credentials-grid { grid-template-columns: 1fr; }
  .modal-box { padding: 32px 24px; }
  .hero-credentials { gap: 20px; }
}
