/* =========================================================
   Villela Odontologia Integrada — Lentes & Facetas CSS
   Extends styles.css with Veneer-specific elements
   ========================================================= */

/* Lentes page: hero content max-width override */
.hero .hero-content {
  max-width: 920px;
}

/* Mobile: sobe conteúdo do hero e compacta espaçamentos para caber na tela */
@media (max-width: 860px) {
  .hero {
    justify-content: flex-start !important;
    padding-top: 68px !important;
    padding-bottom: 24px !important;
  }

  .hero .eyebrow {
    margin-bottom: 10px;
  }

  .hero .hero-sub {
    margin-top: 10px;
  }

  .hero .hero-actions {
    margin-top: 16px;
  }

  .hero .hero-trust {
    margin-top: 14px;
    padding-top: 12px;
    gap: 6px 16px;
  }
}


/* =========================================================
   Before / After Slider Section
   ========================================================= */
.before-after-section {
  background: var(--cream);
  position: relative;
}

.ba-container {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}

.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  user-select: none;
  background: var(--navy-deep);
  border: 1px solid var(--line);
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ba-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-image--before {
  z-index: 2;
  /* clip-path will cut the before image horizontally to reveal the after image underneath */
  clip-path: polygon(0 0, var(--exposure, 50%) 0, var(--exposure, 50%) 100%, 0 100%);
}

.ba-image--after {
  z-index: 1;
}

.ba-label {
  position: absolute;
  bottom: 20px;
  padding: 6px 14px;
  background: rgba(13, 35, 95, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 6px;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(196, 164, 124, 0.2);
}

.ba-label--before {
  left: 20px;
  background: rgba(29, 35, 51, 0.85);
}

.ba-label--after {
  right: 20px;
  color: var(--gold-light);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--exposure, 50%);
  width: 2px;
  background: var(--gold-light);
  z-index: 3;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}

.ba-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  color: var(--gold);
}

.ba-handle-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 4;
  cursor: ew-resize;
  margin: 0;
}

/* Before/After Instructions Indicator */
.ba-indicator {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ba-indicator svg {
  color: var(--gold-deep);
  animation: slideArrow 1.8s infinite ease-in-out;
}

@keyframes slideArrow {

  0%,
  100% {
    transform: translateX(-4px);
  }

  50% {
    transform: translateX(4px);
  }
}

/* Indicacoes - Dores que Lentes Resolvem */
.indications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.indication-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.indication-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
  border-color: var(--gold-light);
}

.indication-card-header {
  height: 180px;
  width: 100%;
  overflow: hidden;
  position: relative;
  background: var(--offwhite);
  border-bottom: 1px solid var(--line);
}

.indication-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease);
}

.indication-card:hover .indication-card-img {
  transform: scale(1.06);
}

.indication-card-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.indication-card h3 {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.indication-card p {
  font-size: 0.94rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* Myth Section: Wear/Desgaste Mitigation */
.myth-section {
  background: var(--offwhite);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.myth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.myth-comparison {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.compare-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  position: relative;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.compare-box--bad {
  border-left: 4px solid #cc4444;
}

.compare-box--good {
  border-left: 4px solid var(--gold);
  background: linear-gradient(180deg, var(--paper) 0%, rgba(196, 164, 124, 0.03) 100%);
}

.compare-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.compare-box--bad .compare-icon {
  background: rgba(204, 68, 68, 0.1);
  color: #cc4444;
}

.compare-box--good .compare-icon {
  background: rgba(196, 164, 124, 0.15);
  color: var(--gold-deep);
}

.compare-info h4 {
  font-family: var(--ff-display);
  font-size: 1.12rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.compare-info p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}

/* Myth Section Media Side & Test-Drive Card */
.myth-media-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.myth-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: var(--navy-deep);
}

.myth-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: transform 0.6s var(--ease);
}

.myth-image-card:hover .myth-image {
  transform: scale(1.03);
}

.myth-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13, 35, 95, 0.4) 100%);
  pointer-events: none;
}

.myth-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(13, 35, 95, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  border: 1px solid rgba(196, 164, 124, 0.25);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.myth-badge svg {
  color: var(--gold-light);
}

.test-drive-card {
  background: rgba(196, 164, 124, 0.06);
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: all 0.3s;
}

.test-drive-card h4 {
  font-family: var(--ff-display);
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.test-drive-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* Steps Grid visual cards */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 48px;
}

.step-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}

.step-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-deep);
}

.step-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.step-card:hover .step-image {
  transform: scale(1.05);
}

.step-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--gold-deep);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(196, 164, 124, 0.4);
}

.step-content {
  padding: 24px 24px 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.step-content h3 {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}

/* Beauty Icon Wrapper */
.beauty-icon-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.4s var(--ease);
}

.beauty-feature-card:hover .beauty-icon-wrapper {
  color: #fff;
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 4px 15px rgba(196, 164, 124, 0.4);
  transform: scale(1.05);
}

.beauty-icon-wrapper svg {
  width: 22px;
  height: 22px;
}

/* Quiet Beauty Philosophy Card grid */
.beauty-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.beauty-feature-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: background 0.3s, border-color 0.3s;
}

.beauty-feature-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(196, 164, 124, 0.3);
}

.beauty-feature-card h3 {
  font-family: var(--ff-display);
  font-size: 1.22rem;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.beauty-feature-card p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

/* Responsive specific to lenses page */
@media (max-width: 1024px) {
  .indications-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 860px) {
  .myth-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .indications-grid {
    grid-template-columns: 1fr;
  }

  .beauty-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ba-slider {
    aspect-ratio: 4 / 3;
    /* slightly taller on mobile */
  }

  .ba-label {
    bottom: 12px;
    padding: 4px 10px;
    font-size: 0.7rem;
  }

  .ba-label--before {
    left: 12px;
  }

  .ba-label--after {
    right: 12px;
  }
}

@media (max-width: 860px) {

  /* Ajuste de fontes no Hero em telas menores */
  .hero-title {
    font-size: clamp(2rem, 7vw, 2.8rem);
    line-height: 1.12;
  }

  .hero-sub {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .hero-trust strong {
    font-size: 1.1rem;
  }

  .hero-trust span {
    font-size: 0.7rem;
  }

  /* Evitar transbordamento horizontal do texto longo no botão CTA */
  .hero-actions .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    padding: 14px 22px;
    font-size: 0.92rem;
    width: 100%;
  }
}