/* ===================================================================
   Sâmela Helena — Social Media · Mini Site
   CSS Fiel ao Modelo Visual (MODELO.png e modalexemplo.png)
   
   Proporção estrutural de referência: 1087 × 4824 (≈ 461 × 2048)
   Seções rigorosamente mapeadas sobre a imagem de fundo (Fundo.png):
     1. Hero:   0 – 1050px  (21.77%)  aspect-ratio: 1087 / 1050
     2. Cards:  1050 – 2215px (24.15%)  aspect-ratio: 1087 / 1165
     3. Sobre:  2215 – 3310px (22.70%)  aspect-ratio: 1087 / 1095
     4. Final:  3310 – 4720px (29.23%)  aspect-ratio: 1087 / 1410
     5. Footer: 4720 – 4824px ( 2.16%)  aspect-ratio: 1087 / 104
     Total:     4824px (100.00%)
   =================================================================== */

/* ---------------------------------------------------------------
   0. RESET & FUNDAMENTOS
   --------------------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  background: #050a12;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #050a12;
  color: #f0e6d6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.modal-open {
  overflow: hidden;
  touch-action: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  padding: 0;
}

/* ---------------------------------------------------------------
   1. PAGE WRAPPER — preserva a identidade visual mobile
   --------------------------------------------------------------- */
.page-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  overflow: hidden;
  background-image: url('assets/Fundo.png');
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: top center;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.7);
}

/* ---------------------------------------------------------------
   2. SEÇÃO 1 — HERO
   --------------------------------------------------------------- */
.section-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1087 / 1050;
  pointer-events: none;
}

/* ---------------------------------------------------------------
   3. SEÇÃO 2 — TRÊS CARDS
   --------------------------------------------------------------- */
.section-cards {
  position: relative;
  width: 100%;
  aspect-ratio: 1087 / 1165;
  display: flex;
  align-items: flex-start;
  overflow: visible;
}

.cards-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Estilo base dos cards */
.card {
  display: block;
  border-radius: 0;
  overflow: visible;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  transform-origin: center;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

/* Posicionamento fiel a modelo.png:
   Card 1: 959px de largura (88.22%), encosta na borda ESQUERDA
   Card 2: 910px de largura (83.72%), encosta na borda DIREITA
   Card 3: 959px de largura (88.22%), encosta na borda ESQUERDA */
.card-servicos {
  width: 88.22%;
  align-self: flex-start;
  margin-left: 0;
  margin-top: 0;
  z-index: 3;
}

.card-projetos {
  width: 83.72%;
  align-self: flex-end;
  margin-right: 0;
  margin-top: -8.5%;
  z-index: 4;
}

.card-agendar {
  width: 88.22%;
  align-self: flex-start;
  margin-left: 0;
  margin-top: -14.2%;
  z-index: 5;
}

/* Efeito de hover / foco */
.card:hover {
  filter: brightness(1.03);
}

.card:focus-visible {
  outline: 2px solid #c9a96e;
  outline-offset: 3px;
}

/* Transições pós-animação */
.card--visible {
  transition: transform 0.25s ease, filter 0.25s ease !important;
}

.card--visible:hover {
  transform: translateY(-3px) scale(1.01) !important;
}

/* ---------------------------------------------------------------
   3a. ANIMAÇÕES DE ENTRADA DOS CARDS
   - Duração: 900ms
   - Card 1: surge da esquerda para a direita
   - Card 2: inicia aos 450ms (~50% do card 1), da direita para a esquerda
   - Card 3: inicia aos 900ms (~50% do card 2), da esquerda para a direita
   - Execução única via IntersectionObserver
   --------------------------------------------------------------- */
.card[data-animate="left"] {
  opacity: 0;
  transform: translateX(-60px) scale(0.97);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.card[data-animate="right"] {
  opacity: 0;
  transform: translateX(60px) scale(0.97);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.card--visible[data-animate="left"],
.card--visible[data-animate="right"] {
  opacity: 1;
  transform: translateX(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .card[data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------------------------------------------------------------
   4. SEÇÃO 3 — SOBRE A SÂMELA
   - Fotografia da Sâmela sentada está no lado esquerdo do fundo
   - O texto ocupa exatamente a metade direita (x: ~50% a 95%)
   - Abaixo do botão SAIBA MAIS, o espaço livre exibe a assinatura original
   --------------------------------------------------------------- */
.section-sobre {
  position: relative;
  width: 100%;
  aspect-ratio: 1087 / 1095;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 3% 4% 0 49%;
  z-index: 2;
}

.sobre-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sobre-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.5rem, 2.1vw, 0.68rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  color: #c9a96e;
  margin-bottom: 2px;
}

.sobre-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 5.8vw, 2.1rem);
  font-weight: 600;
  color: #f0e6d6;
  line-height: 1.1;
  margin-bottom: clamp(10px, 2.8vw, 16px);
}

.sobre-text {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.6rem, 2.4vw, 0.8rem);
  font-weight: 300;
  line-height: 1.62;
  color: #d4c8b8;
  margin-bottom: clamp(12px, 3.2vw, 20px);
}

.btn-saiba-mais {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.5rem, 2vw, 0.68rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #f0e6d6;
  border: 1px solid rgba(201, 169, 110, 0.45);
  padding: clamp(6px, 1.8vw, 9px) clamp(14px, 3.8vw, 22px);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  -webkit-tap-highlight-color: transparent;
}

.btn-saiba-mais:hover,
.btn-saiba-mais:focus-visible {
  background: rgba(201, 169, 110, 0.15);
  border-color: #c9a96e;
  outline: none;
}

/* ---------------------------------------------------------------
   5. SEÇÃO 4 — FRASE + REDES SOCIAIS
   - Frase elegante no topo esquerdo
   - Três ícones organizados verticalmente, abaixo da linha divisória
   - A foto da Sâmela com notebook e mesa está na metade direita
   --------------------------------------------------------------- */
.section-final {
  position: relative;
  width: 100%;
  aspect-ratio: 1087 / 1410;
  display: flex;
  align-items: flex-start;
  padding: 5% 4% 0 6.5%;
  z-index: 2;
}

.final-content {
  width: 48%;
  display: flex;
  flex-direction: column;
}

.final-frase-block {
  margin-bottom: clamp(10px, 2.5vw, 16px);
}

.final-frase-light {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-size: clamp(1.05rem, 4.4vw, 1.55rem);
  font-weight: 400;
  font-style: italic;
  color: #f0e6d6;
  line-height: 1.32;
  margin-bottom: 2px;
}

.final-frase-bold {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.35rem, 5.5vw, 1.95rem);
  font-weight: 700;
  font-style: italic;
  color: #bc8160; /* tom bronze rosé idêntico ao modelo */
  line-height: 1.18;
}

.final-gold-line {
  width: 78%;
  height: 1.5px;
  background: linear-gradient(90deg, #c9a96e 0%, rgba(201, 169, 110, 0.1) 100%);
  margin: clamp(12px, 3vw, 20px) 0 clamp(16px, 4vw, 24px);
}

/* Ícones de redes sociais: vertical, um abaixo do outro */
.social-icons {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 3.6vw, 22px);
  padding-left: 2px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.8vw, 16px);
  text-decoration: none;
  min-height: 48px;
  transition: transform 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.social-link:hover {
  transform: translateX(4px) scale(1.03);
}

.social-link:focus-visible {
  outline: 2px solid #c9a96e;
  outline-offset: 4px;
  border-radius: 8px;
}

.social-icon-img {
  width: clamp(44px, 12vw, 56px);
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}

.social-label {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.78rem, 3.2vw, 0.95rem);
  font-weight: 500;
  color: #f0e6d6;
  letter-spacing: 0.04em;
}

/* ---------------------------------------------------------------
   6. SEÇÃO 5 — RODAPÉ
   - Posicionado diretamente sobre a mesa bege do fundo
   - Texto escuro com traços laterais sutis
   - Apenas 'NEXDEN Digital' é clicável e abre o WhatsApp
   --------------------------------------------------------------- */
.section-footer {
  position: relative;
  width: 100%;
  aspect-ratio: 1087 / 104;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0 10px;
  z-index: 2;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2.5vw, 14px);
  width: 90%;
}

.footer-line {
  flex: 1;
  max-width: clamp(40px, 15vw, 80px);
  height: 1px;
  background: #6e645a;
  opacity: 0.7;
}

.footer-text {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.6rem, 2.4vw, 0.76rem);
  font-weight: 400;
  color: #2b2520;
  white-space: nowrap;
}

.footer-link {
  font-weight: 700;
  color: #1a1a1a;
  transition: opacity 0.2s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  opacity: 0.75;
  outline: none;
}

/* ---------------------------------------------------------------
   7. MODAIS — COMPARTILHADO
   --------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal-overlay.modal--active {
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  color: #c9a96e;
  background: rgba(8, 18, 34, 0.65);
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  line-height: 1;
  cursor: pointer;
  transition: all 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(201, 169, 110, 0.25);
  color: #f0e6d6;
  outline: none;
}

.modal-content {
  position: relative;
  width: 100%;
  max-height: 92vh;
  border-radius: 16px;
  overflow: hidden;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal--active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-scroll {
  overflow-y: auto;
  max-height: 92vh;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 169, 110, 0.3) transparent;
}

.modal-scroll::-webkit-scrollbar {
  width: 5px;
}

.modal-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(201, 169, 110, 0.3);
  border-radius: 3px;
}

/* ---------------------------------------------------------------
   8. MODAL 1 — SERVIÇOS (reproduzindo modalexemplo.png)
   --------------------------------------------------------------- */
.modal-servicos-wrapper {
  width: 100%;
  max-width: 440px;
}

.modal-servicos-content {
  background-color: #0b1a2d;
  border: 1px solid rgba(201, 169, 110, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.modal-servicos-scroll {
  padding: 38px 26px 32px;
  background-image: url('assets/modalservicos.png');
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: local;
}

/* Header de serviços */
.ms-header {
  position: relative;
  margin-bottom: 24px;
}

.ms-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: #c9a96e;
  margin-bottom: 2px;
}

.ms-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.3rem;
  font-weight: 600;
  color: #f0e6d6;
  line-height: 1;
  margin-bottom: 8px;
}

.ms-title-line {
  width: 46px;
  height: 2.5px;
  background: #c9a96e;
  border-radius: 2px;
  margin-bottom: 12px;
}

.ms-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.55;
  color: #d0c8be;
  max-width: 52%; /* espaçamento perfeito em relação ao caderno */
}

/* Itens de serviço */
.ms-service {
  position: relative;
  padding: 18px 0 18px 14px;
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
}

.ms-service:last-of-type {
  border-bottom: none;
}

.ms-accent-bar {
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 2.5px;
  background: linear-gradient(180deg, #c9a96e, rgba(201, 169, 110, 0.15));
  border-radius: 2px;
}

.ms-service-body {
  width: 100%;
}

.ms-service-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #f0e6d6;
  margin-bottom: 6px;
  line-height: 1.2;
}

.ms-tagline-wrap {
  margin-bottom: 8px;
}

.ms-service-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  font-style: italic;
  color: #f8ebe0;
  background: #664742; /* tom cobre/rosé idêntico a modalexemplo.png */
  padding: 3px 12px;
  border-radius: 12px;
  display: inline-block;
  letter-spacing: 0.02em;
}

.ms-service-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.76rem;
  font-weight: 300;
  line-height: 1.65;
  color: #c8bfb0;
}

/* Bloco CTA do modal de serviços */
.ms-cta {
  margin-top: 28px;
  text-align: center;
}

.ms-cta-frame {
  border: 1.5px solid rgba(201, 169, 110, 0.35);
  border-radius: 12px;
  padding: 18px 14px;
  margin-bottom: 20px;
}

.ms-cta-heading {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: #c9a96e;
  margin-bottom: 6px;
}

.ms-cta-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.76rem;
  font-weight: 300;
  color: #c8bfb0;
  line-height: 1.5;
}

.ms-cta-btn {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #f6c8a4 0%, #e8a980 100%);
  color: #111e33;
  border-radius: 50px;
  padding: 14px 28px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 6px 20px rgba(244, 182, 135, 0.35);
  -webkit-tap-highlight-color: transparent;
}

.ms-cta-btn:hover,
.ms-cta-btn:focus-visible {
  transform: scale(1.04);
  box-shadow: 0 8px 28px rgba(244, 182, 135, 0.5);
  outline: none;
}

.ms-cta-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ms-cta-btn-icon svg {
  fill: #111e33;
}

.ms-cta-btn-divider {
  width: 1px;
  height: 22px;
  background: rgba(17, 30, 51, 0.35);
  margin: 0 12px;
  flex-shrink: 0;
}

.ms-cta-btn-label {
  white-space: nowrap;
}

/* ---------------------------------------------------------------
   9. MODAL 2 — SOBRE A SÂMELA
   - Borda com acabamento rosé/dourado
   - Fotografia sh3.png no topo com degradê escuro partindo da base
   - Rolagem interna e CTA final destacado
   --------------------------------------------------------------- */
.modal-sobre-wrapper {
  width: 100%;
  max-width: 440px;
}

.modal-sobre-content {
  background: linear-gradient(180deg, #0d1e39 0%, #091628 50%, #06101e 100%);
  border: 2px solid #c9a96e;
  box-shadow: 0 0 0 1px rgba(201, 169, 110, 0.3), 0 12px 48px rgba(0, 0, 0, 0.7);
}

.modal-sobre-scroll {
  max-height: 92vh;
}

/* Foto no topo com degradê */
.msb-foto {
  position: relative;
  width: 100%;
  aspect-ratio: 1122 / 820;
  overflow: hidden;
}

.msb-foto-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.msb-foto-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 65%;
  background: linear-gradient(to top, #0d1e39 12%, rgba(13, 30, 57, 0.85) 55%, transparent 100%);
  pointer-events: none;
}

/* Corpo do modal sobre */
.msb-body {
  padding: 0 26px 40px;
  margin-top: -30px;
  position: relative;
  z-index: 2;
}

.msb-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 600;
  color: #f0e6d6;
  margin-bottom: 20px;
  text-align: center;
}

.msb-text-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.msb-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.75;
  color: #c8bfb0;
}

.msb-cta {
  display: block;
  margin-top: 28px;
  margin-bottom: 10px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #111e33;
  background: linear-gradient(135deg, #f6c8a4 0%, #e8a980 100%);
  padding: 14px 30px;
  border-radius: 50px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 6px 20px rgba(244, 182, 135, 0.35);
  -webkit-tap-highlight-color: transparent;
}

.msb-cta:hover,
.msb-cta:focus-visible {
  transform: scale(1.04);
  box-shadow: 0 8px 28px rgba(244, 182, 135, 0.5);
  outline: none;
}

/* ---------------------------------------------------------------
   10. RESPONSIVIDADE E ACESSIBILIDADE
   --------------------------------------------------------------- */
@media (max-width: 360px) {
  .section-sobre {
    padding-left: 45%;
  }
  .sobre-name { font-size: 1.25rem; }
  .final-content { width: 50%; }
  .final-frase-light { font-size: 0.95rem; }
  .final-frase-bold { font-size: 1.25rem; }
  .ms-title { font-size: 1.9rem; }
  .ms-service-title { font-size: 1.05rem; }
  .ms-cta-btn { padding: 11px 18px; font-size: 0.72rem; }
}

@media (max-width: 480px) {
  .modal-servicos-wrapper,
  .modal-sobre-wrapper {
    max-width: 95%;
  }
}

@media print {
  .modal-overlay { display: none !important; }
}
