/* ==========================================================================
   ESTILOS - DRA. MARIANA CAVALCANTE (LINK NA BIO)
   Tema: Harmonioso com a foto de fundo (Tons Mocha, Nude, Areia e Café)
   Regra: Sem sombra (box-shadow: none)
   ========================================================================== */

:root {
  --color-mocha: #6f4237;
  --color-mocha-hover: #5a342b;
  --color-mocha-light: #875448;
  --color-nude-bg: rgba(246, 241, 237, 0.92);
  --color-nude-card: rgba(255, 255, 255, 0.88);
  --color-sand: #d8c8bd;
  --color-sand-light: #f7f2ee;
  --color-text-dark: #2a1f1c;
  --color-text-muted: #6b5c57;
  --color-gold-accent: #c59b63;
  --color-border: rgba(111, 66, 55, 0.18);
  --color-border-subtle: rgba(255, 255, 255, 0.4);
  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* Elimina sombras globalmente conforme solicitado */
  box-shadow: none !important;
  text-shadow: none !important;
}

html, body {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  font-family: var(--font-sans);
  color: var(--color-text-dark);
  background-color: #b5aeb3;
  background-image: url('../../imagemfundo.jpeg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container da página sem sombra e sem overlay escuro */
.page-container {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  background: transparent;
  display: flex;
  justify-content: center;
  padding: 32px 16px 40px;
  overflow-x: hidden;
}

/* Container Mobile-First centralizado */
.bio-wrapper {
  width: 100%;
  max-width: 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   HEADER / TOPO (NOME DRA. MARIANA CAVALCANTE)
   ========================================================================== */
.bio-header {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 12px;
}

.doctor-name {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 5.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text-dark);
  line-height: 1.18;
  margin-bottom: 4px;
  text-align: center;
  max-width: 100%;
}

.doctor-title {
  font-size: clamp(0.66rem, 2.2vw, 0.74rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-mocha);
  margin-bottom: 2px;
  line-height: 1.3;
  padding: 0 4px;
  max-width: 100%;
}

/* ==========================================================================
   LETREIRO FLUTUANTE (SEM BLOCO DE FUNDO)
   ========================================================================== */
.ticker-wrapper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  user-select: none;
  background: transparent;
  border: none;
  margin: 6px 0 14px;
  padding: 4px 0;
  border-radius: 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 20s linear infinite;
}

.ticker-wrapper:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.ticker-item {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-mocha);
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ticker-item .sparkle {
  color: var(--color-gold-accent);
  font-size: 0.85rem;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   CARDS DE PROCEDIMENTOS PEQUENOS EM LETREIRO DEVAGAR
   ========================================================================== */
.cards-section {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: clamp(140px, 22vh, 210px);
  margin-bottom: 18px;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: fit-content;
  margin: 0 auto 10px;
  padding: 4px 18px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(111, 66, 55, 0.15);
  border-radius: 20px;
}

.section-title {
  font-size: 0.80rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-mocha);
  text-align: center;
}

.cards-marquee-viewport {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  position: relative;
  padding: 4px 0;
  border-radius: 12px;
}

.cards-marquee-track {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: scrollCardsSlow 32s linear infinite;
  cursor: pointer;
}

.cards-marquee-viewport:hover .cards-marquee-track,
.cards-marquee-viewport.is-paused .cards-marquee-track {
  animation-play-state: paused;
}

@keyframes scrollCardsSlow {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Card Individual - Pequeno */
.proc-card {
  width: 135px;
  min-width: 135px;
  height: 195px;
  background: var(--color-nude-card);
  border: 1px solid var(--color-sand);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.proc-card:hover, .proc-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--color-mocha);
}

.proc-card-image-box {
  width: 100%;
  height: 135px;
  position: relative;
  overflow: hidden;
  background-color: #f0eae5;
}

.proc-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

/* Enquadramento ideal para o procedimento de glúteo */
.proc-card[data-procedure*="Glúteo"] .proc-card-image {
  object-position: 18% center;
}

.proc-card:hover .proc-card-image {
  transform: scale(1.06);
}

.proc-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6px 6px;
  text-align: center;
  background: #ffffff;
  border-top: 1px solid rgba(111, 66, 55, 0.1);
}

.proc-card-title {
  font-family: var(--font-serif);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.15;
  margin-bottom: 3px;
}

.proc-card-action {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-mocha);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ==========================================================================
   BOTÕES PRINCIPAIS (INSTAGRAM, WHATSAPP E LOCALIZAÇÃO)
   Design Centralizado e Ultra-Compacto
   ========================================================================== */
.buttons-group {
  width: 100%;
  max-width: 250px;
  margin: 0 auto 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
}

.bio-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 9px;
  text-decoration: none;
  font-family: var(--font-sans);
  border: 1px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
  background: transparent;
  text-align: center;
}

.bio-btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  width: 100%;
}

.bio-btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bio-btn-icon svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.bio-btn-texts {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.bio-btn-label {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.bio-btn-subtitle {
  font-size: 0.60rem;
  opacity: 0.88;
  margin-top: 1px;
  text-align: center;
  line-height: 1.1;
}

/* Botão WhatsApp - Cor Mocha Sólido Combinando com a Página */
.btn-whatsapp-theme {
  background-color: var(--color-mocha);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-whatsapp-theme .bio-btn-icon {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.btn-whatsapp-theme:hover, .btn-whatsapp-theme:focus-visible {
  background-color: var(--color-mocha-hover);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Botão Instagram - Cor Mocha Claro / Nude Nobre Combinando */
.btn-instagram-theme {
  background-color: #845246;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-instagram-theme .bio-btn-icon {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.btn-instagram-theme:hover, .btn-instagram-theme:focus-visible {
  background-color: #724237;
  border-color: rgba(255, 255, 255, 0.4);
}

/* Botão Secundário / Localização ou Avaliação */
.btn-outline-theme {
  background-color: rgba(255, 255, 255, 0.85);
  color: var(--color-text-dark);
  border: 1px solid var(--color-sand);
}

.btn-outline-theme .bio-btn-icon {
  background-color: rgba(111, 66, 55, 0.1);
  color: var(--color-mocha);
}

.btn-outline-theme:hover {
  background-color: #ffffff;
  border-color: var(--color-mocha);
}

/* ==========================================================================
   RODAPÉ
   ========================================================================== */
.bio-footer {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(111, 66, 55, 0.15);
  border-radius: 12px;
}

.footer-copy {
  font-size: clamp(0.65rem, 2.4vw, 0.74rem);
  color: var(--color-text-dark);
  font-weight: 600;
  margin-bottom: 3px;
  text-align: center;
}

.footer-developer {
  font-size: 0.70rem;
  color: var(--color-text-muted);
}

.footer-developer .dev-link {
  color: var(--color-mocha);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.footer-developer .dev-link:hover {
  text-decoration: underline;
  color: var(--color-mocha-hover);
}

/* ==========================================================================
   MODAL DE PRÉ-AGENDAMENTO
   Sem sombra (box-shadow: none), elegante, mobile-first
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(30, 22, 20, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow-y: auto;
}

.modal-overlay.is-active {
  display: flex;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  width: 100%;
  max-width: 410px;
  background-color: #ffffff;
  border: 1px solid var(--color-sand);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  max-height: 94vh;
  margin: auto;
}

.modal-header {
  padding: 14px 16px;
  background-color: #f7f2ee;
  border-bottom: 1px solid var(--color-sand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-header-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.modal-header-title {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--color-mocha);
}

.modal-header-sub {
  font-size: 0.74rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.modal-close-btn {
  background: transparent;
  border: 1px solid var(--color-sand);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-mocha);
  transition: all 0.2s;
  flex-shrink: 0;
}

.modal-close-btn:hover {
  background-color: var(--color-mocha);
  color: #ffffff;
  border-color: var(--color-mocha);
}

.modal-body {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Formulário de Pré-Agendamento */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-label-tag {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-mocha);
  background: #f7f2ee;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid var(--color-sand);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--color-text-dark);
  background-color: #faf7f5;
  border: 1px solid var(--color-sand);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-mocha);
  background-color: #ffffff;
}

.form-textarea {
  resize: vertical;
  min-height: 60px;
}

/* ==========================================================================
   CALENDÁRIO INTERATIVO (SEGUNDA A SÁBADO)
   Garante visualmente e funcionalmente atendimento Seg - Sáb
   ========================================================================== */
.calendar-box {
  background-color: #fcf9f7;
  border: 1px solid var(--color-sand);
  border-radius: 12px;
  padding: 12px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.calendar-month-label {
  font-family: var(--font-serif);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--color-mocha);
  text-transform: capitalize;
}

.calendar-nav-buttons {
  display: flex;
  gap: 6px;
}

.calendar-nav-btn {
  background-color: #ffffff;
  border: 1px solid var(--color-sand);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-mocha);
  font-size: 12px;
}

.calendar-nav-btn:hover {
  background-color: var(--color-mocha);
  color: #ffffff;
  border-color: var(--color-mocha);
}

.calendar-grid-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  margin-bottom: 6px;
}

.weekday-col {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-mocha);
  text-transform: uppercase;
  padding: 4px 0;
}

.weekday-col.is-sunday {
  color: #aa9c98;
}

.calendar-grid-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  background-color: #ffffff;
  color: var(--color-text-dark);
  cursor: pointer;
  transition: all 0.15s ease;
}

.calendar-day:not(.disabled):hover {
  background-color: #f0e6de;
  border-color: var(--color-mocha);
  color: var(--color-mocha);
}

.calendar-day.is-selected {
  background-color: var(--color-mocha) !important;
  color: #ffffff !important;
  border-color: var(--color-mocha) !important;
  font-weight: 700;
}

.calendar-day.disabled {
  background-color: #f4efeb;
  color: #c4b9b5;
  cursor: not-allowed;
  opacity: 0.6;
}

.calendar-day.disabled.sunday-day {
  background-color: #eee7e2;
  color: #c0b4af;
  text-decoration: line-through;
}

.calendar-footer-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--color-sand);
  font-size: 0.72rem;
}

.calendar-note-text {
  color: var(--color-mocha);
  font-weight: 600;
}

.calendar-selected-badge {
  font-weight: 700;
  color: var(--color-text-dark);
}

/* Opções de Turno */
.periods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.period-option {
  position: relative;
}

.period-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.period-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  background-color: #faf7f5;
  border: 1px solid var(--color-sand);
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--color-text-dark);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.period-option input[type="radio"]:checked + .period-label {
  background-color: var(--color-mocha);
  color: #ffffff;
  border-color: var(--color-mocha);
}

/* Botão Submit Modal */
.modal-submit-btn {
  width: 100%;
  padding: 13px 14px;
  background-color: var(--color-mocha);
  color: #ffffff;
  border: 1px solid var(--color-mocha);
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 4px;
  line-height: 1.2;
}

.modal-submit-btn:hover {
  background-color: var(--color-mocha-hover);
}

.modal-submit-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ==========================================================================
   RESPONSIVIDADE: MOBILE, TABLET & LANDING PAGE DESKTOP (16:9)
   ========================================================================== */

/* Telas pequenas (Smartphones compactos) */
@media (max-width: 380px) {
  .page-container {
    padding: 20px 10px 32px;
  }
  .cards-section {
    margin-top: 125px;
  }
  .proc-card {
    width: 120px;
    min-width: 120px;
    height: 180px;
  }
  .proc-card-image-box {
    height: 120px;
  }
  .doctor-name {
    font-size: 1.35rem;
  }
  .buttons-group {
    max-width: 245px;
  }
  .bio-btn {
    padding: 5px 10px;
  }
  .bio-btn-icon {
    width: 20px;
    height: 20px;
  }
}

/* Tablets e Telas Médias */
@media (min-width: 768px) {
  .page-container {
    padding: 44px 24px 60px;
    align-items: flex-start;
  }

  .bio-wrapper {
    max-width: 540px;
  }

  .doctor-name {
    font-size: 2.15rem;
  }

  .doctor-title {
    font-size: 0.82rem;
  }

  .ticker-item {
    font-size: 0.84rem;
    padding: 0 20px;
  }

  .cards-section {
    margin-top: clamp(160px, 24vh, 240px);
  }

  .proc-card {
    width: 145px;
    min-width: 145px;
    height: 205px;
  }

  .proc-card-image-box {
    height: 145px;
  }

  .proc-card-title {
    font-size: 0.88rem;
  }

  .buttons-group {
    max-width: 260px;
  }

  .bio-btn {
    padding: 7px 14px;
  }

  .bio-btn-label {
    font-size: 0.82rem;
  }

  .bio-btn-subtitle {
    font-size: 0.64rem;
  }
}

/* Desktop Widescreen / Landing Page (16:9) */
@media (min-width: 1024px) {
  .page-container {
    padding: 50px 32px 70px;
  }

  .bio-wrapper {
    max-width: 580px;
  }

  .doctor-name {
    font-size: 2.35rem;
  }

  .doctor-title {
    font-size: 0.86rem;
  }

  .cards-marquee-track {
    animation-duration: 38s;
  }
}
