/* ==========================================================================
   Dra. Jessica Bastos — Biomédica Esteta
   Design System & Editorial Layout (Opção B: Luxo Noturno — Marsala & Champagne)
   ========================================================================== */

:root {
  /* Paleta oficial extraída da identidade visual — Versão Marsala Imersiva */
  --color-marsala-void: #240610;
  --color-marsala-deep: #340A17;
  --color-marsala: #531226;
  --color-marsala-surface: #470F20;
  --color-marsala-glow: #6E1B35;
  --color-ivory: #F5EFE7;
  --color-porcelain: #FAF7F3;
  --color-champagne: #C5A26E;
  --color-champagne-light: #E8D2AA;
  --color-champagne-soft: rgba(232, 210, 170, 0.78);
  --color-ink-light: #FAF5EE;
  --color-ink-muted: rgba(245, 239, 231, 0.72);
  --color-ink-subtle: rgba(232, 210, 170, 0.54);

  /* Tipografia */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Elevação e profundidade noturna */
  --shadow-card:
    0 34px 80px -20px rgba(10, 1, 5, 0.72),
    0 12px 32px -10px rgba(15, 2, 7, 0.55),
    inset 0 1px 0 rgba(232, 210, 170, 0.16);
  --shadow-btn-primary:
    0 16px 34px -10px rgba(12, 2, 6, 0.56),
    0 4px 14px -4px rgba(197, 162, 110, 0.22);
  --shadow-btn-primary-hover:
    0 22px 42px -10px rgba(12, 2, 6, 0.65),
    0 8px 20px -4px rgba(232, 210, 170, 0.3);
  --shadow-btn-secondary:
    0 10px 26px -12px rgba(10, 1, 5, 0.45);
  --shadow-btn-secondary-hover:
    0 16px 34px -12px rgba(10, 1, 5, 0.6),
    inset 0 1px 0 rgba(232, 210, 170, 0.18);

  /* Transições */
  --ease-luxury: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-btn: 16px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  font-family: var(--font-sans);
  color: var(--color-ink-light);
  background-color: var(--color-marsala-void);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(112, 26, 54, 0.62) 0%, rgba(36, 6, 16, 0) 70%),
    radial-gradient(ellipse 65% 55% at 85% 95%, rgba(197, 162, 110, 0.11) 0%, rgba(36, 6, 16, 0) 62%),
    radial-gradient(ellipse 55% 50% at 15% 80%, rgba(92, 21, 44, 0.35) 0%, rgba(36, 6, 16, 0) 65%);
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Textura sutil de veludo/papel fosco */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Filete assinatura superior em Dourado Champagne */
.top-signature-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(197, 162, 110, 0.18) 0%,
    var(--color-champagne) 30%,
    var(--color-champagne-light) 50%,
    var(--color-champagne) 70%,
    rgba(197, 162, 110, 0.18) 100%
  );
  z-index: 10;
}

/* Utilidade de acessibilidade (SEO h1 semântico) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Layout Principal — Mobile-First Editorial Noturno
   ========================================================================== */

.page-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 18px 28px;
}

.editorial-card {
  width: 100%;
  max-width: 430px;
  background: linear-gradient(165deg, #571429 0%, #480F21 48%, #3A0B1A 100%);
  border-radius: 28px;
  border: 1px solid rgba(232, 210, 170, 0.24);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Coluna / Seção da Foto Editorial
   ========================================================================== */

.portrait-stage {
  position: relative;
  padding: 22px 22px 0;
  display: flex;
  justify-content: center;
  background: radial-gradient(ellipse 85% 70% at 50% 35%, rgba(197, 162, 110, 0.12) 0%, transparent 72%);
}

.portrait-frame {
  position: relative;
  width: 100%;
  max-width: 310px;
  aspect-ratio: 4 / 4.35;
  border-radius: 175px 175px 22px 22px;
  overflow: hidden;
  background-color: #DED9DF;
  border: 1px solid rgba(232, 210, 170, 0.34);
  box-shadow: 0 22px 44px -18px rgba(15, 2, 7, 0.65);
}

/* Moldura interna delicada champagne */
.portrait-frame::after {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 166px 166px 15px 15px;
  border: 1px solid rgba(250, 247, 243, 0.56);
  pointer-events: none;
  z-index: 2;
}

/* Vinheta inferior em Marsala para fundir a foto ao card escuro */
.portrait-frame::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(
    180deg,
    rgba(68, 14, 31, 0) 0%,
    rgba(68, 14, 31, 0.45) 62%,
    rgba(68, 14, 31, 0.85) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.portrait-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 12%;
  transform: scale(1.01);
  transition: transform 1.1s var(--ease-luxury);
}

.portrait-frame:hover .portrait-image {
  transform: scale(1.035);
}

/* Legenda discreta sobre a foto (exibida no layout desktop split-screen) */
.portrait-caption {
  display: none;
}

/* ==========================================================================
   Conteúdo Principal (Logo Dourada, Frase, 2 Botões e Credenciais)
   ========================================================================== */

.content-panel {
  padding: 20px 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Bloco da Logo Dourada */
.brand-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-logo {
  width: 100%;
  max-width: 224px;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 2px 10px rgba(15, 2, 7, 0.25));
}

/* Divisor ornamental champagne luminoso */
.champagne-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 170px;
  margin: 15px auto 13px;
}

.champagne-divider::before,
.champagne-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-champagne-light), transparent);
  opacity: 0.58;
}

.champagne-diamond {
  width: 5px;
  height: 5px;
  background-color: var(--color-champagne-light);
  transform: rotate(45deg);
  flex-shrink: 0;
  opacity: 0.9;
}

/* Frase de posicionamento */
.brand-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.12rem;
  line-height: 1.45;
  color: rgba(248, 241, 233, 0.9);
  max-width: 330px;
  letter-spacing: 0.015em;
}

/* ==========================================================================
   Os 2 Botões Principais (Padronizados — Bordô Veludo Profundo sobre Marsala)
   ========================================================================== */

.actions-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 22px;
}

.action-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(145deg, #2E0714 0%, #21040E 100%);
  color: var(--color-ink-light);
  border: 1px solid rgba(232, 210, 170, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(232, 210, 170, 0.14),
    0 14px 30px -12px rgba(10, 1, 5, 0.68);
  transition:
    transform 0.38s var(--ease-luxury),
    box-shadow 0.38s var(--ease-luxury),
    border-color 0.32s ease,
    background 0.32s ease;
  -webkit-tap-highlight-color: transparent;
}

/* Brilho champagne sutil deslizante no hover */
.action-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 85%;
  height: 100%;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(232, 210, 170, 0.14) 50%,
    transparent 100%
  );
  transform: skewX(-18deg);
  transition: left 0.85s var(--ease-luxury);
  pointer-events: none;
}

.action-card:hover {
  transform: translateY(-2.5px);
  background: linear-gradient(145deg, #370918 0%, #270511 100%);
  border-color: rgba(232, 210, 170, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(232, 210, 170, 0.24),
    0 20px 38px -12px rgba(10, 1, 5, 0.78);
}

.action-card:hover::after {
  left: 145%;
}

.action-card:active {
  transform: translateY(0);
}

.action-card:focus-visible {
  outline: 2px solid var(--color-champagne-light);
  outline-offset: 3px;
}

/* Medalhão do ícone */
.action-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(232, 210, 170, 0.1);
  border: 1px solid rgba(232, 210, 170, 0.26);
  color: var(--color-champagne-light);
  transition: transform 0.38s var(--ease-luxury), background-color 0.32s ease;
}

.action-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.action-card:hover .action-icon {
  transform: scale(1.05);
  background: rgba(232, 210, 170, 0.16);
}

/* Textos internos do botão */
.action-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.action-title {
  font-family: var(--font-sans);
  font-size: 0.91rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.25;
  color: var(--color-porcelain);
}

.action-subtitle {
  font-size: 0.73rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: rgba(232, 210, 170, 0.8);
}

/* Seta direcional animada */
.action-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-champagne-light);
  opacity: 0.82;
  transition: transform 0.36s var(--ease-luxury), opacity 0.3s ease;
}

.action-card:hover .action-arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* ==========================================================================
   Credenciais, Localização e Instagram Discreto
   ========================================================================== */

.credentials-block {
  width: 100%;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(232, 210, 170, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.meta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-champagne-soft);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.meta-item svg {
  width: 13px;
  height: 13px;
  color: var(--color-champagne-light);
  flex-shrink: 0;
}

.meta-dot {
  display: none;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--color-porcelain);
  text-decoration: none;
  background-color: rgba(46, 7, 20, 0.6);
  border: 1px solid rgba(232, 210, 170, 0.28);
  transition:
    background-color 0.28s ease,
    border-color 0.28s ease,
    transform 0.28s var(--ease-luxury);
}

.instagram-link svg {
  width: 15px;
  height: 15px;
  color: var(--color-champagne-light);
}

.instagram-link:hover {
  background-color: rgba(46, 7, 20, 0.9);
  border-color: rgba(232, 210, 170, 0.55);
  transform: translateY(-1px);
}

.instagram-link:focus-visible {
  outline: 2px solid var(--color-champagne-light);
  outline-offset: 2px;
}

/* Rodapé minimalista fora do card */
.site-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-ink-subtle);
}

/* ==========================================================================
   Animações Suaves de Entrada (Progressive Enhancement)
   ========================================================================== */

.js-enhanced [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.75s var(--ease-luxury),
    transform 0.75s var(--ease-luxury);
}

.js-enhanced [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Desktop Editorial Split-Screen (>= 900px)
   ========================================================================== */

@media (min-width: 900px) {
  .page-shell {
    padding: 40px 32px 32px;
  }

  .editorial-card {
    max-width: 960px;
    min-height: 600px;
    flex-direction: row;
    align-items: stretch;
    border-radius: 30px;
  }

  /* Esquerda: Foto Editorial Full-Bleed com Moldura Champagne Interna */
  .portrait-stage {
    flex: 0 0 45%;
    padding: 0;
    background: #DED9DF;
    overflow: hidden;
  }

  .portrait-frame {
    max-width: none;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }

  .portrait-frame::after {
    inset: 16px;
    border-radius: 16px;
    border: 1px solid rgba(250, 247, 243, 0.55);
  }

  .portrait-frame::before {
    height: 36%;
    background: linear-gradient(
      180deg,
      rgba(45, 8, 20, 0) 0%,
      rgba(45, 8, 20, 0.42) 50%,
      rgba(45, 8, 20, 0.84) 100%
    );
  }

  .portrait-image {
    object-position: center 14%;
  }

  .portrait-caption {
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: absolute;
    left: 32px;
    bottom: 28px;
    z-index: 3;
    color: var(--color-porcelain);
    text-align: left;
    text-shadow: 0 1px 10px rgba(24, 4, 11, 0.55);
  }

  .portrait-caption__loc {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-champagne-light);
  }

  .portrait-caption__crbm {
    font-family: var(--font-serif);
    font-size: 1.04rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: rgba(250, 247, 243, 0.96);
  }

  /* Direita: Estúdio Marsala Noturno Amplo e Sofisticado */
  .content-panel {
    flex: 1;
    justify-content: center;
    padding: 48px 54px;
    border-left: 1px solid rgba(232, 210, 170, 0.14);
  }

  .brand-logo {
    max-width: 272px;
  }

  .champagne-divider {
    max-width: 210px;
    margin: 22px auto 18px;
  }

  .brand-tagline {
    font-size: 1.24rem;
    max-width: 360px;
  }

  .actions-nav {
    max-width: 390px;
    gap: 15px;
    margin-top: 30px;
  }

  .action-card {
    padding: 17px 20px;
    gap: 15px;
  }

  .action-icon {
    width: 44px;
    height: 44px;
  }

  .action-title {
    font-size: 0.95rem;
  }

  .action-subtitle {
    font-size: 0.76rem;
  }

  .credentials-block {
    max-width: 390px;
    margin-top: 28px;
    padding-top: 22px;
  }

  .meta-row {
    display: none;
  }

  .site-footer {
    margin-top: 22px;
  }
}

/* Telas pequenas (ex.: iPhone SE 375px) */
@media (max-width: 380px) {
  .page-shell {
    padding: 16px 12px 22px;
  }

  .portrait-stage {
    padding: 18px 18px 0;
  }

  .portrait-frame {
    aspect-ratio: 4 / 4.1;
  }

  .content-panel {
    padding: 16px 18px 22px;
  }

  .action-card {
    padding: 13px 14px;
    gap: 12px;
  }

  .action-icon {
    width: 40px;
    height: 40px;
  }

  .action-title {
    font-size: 0.89rem;
  }
}

/* Respeito às preferências de redução de movimento */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js-enhanced [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
