/* ==========================================================================
   organico.css  |  Responsável: Dev 1
   Carregado DEPOIS de css/style.css. Só sobrescreve o necessário.
   1. Fotos do Mateus com formas orgânicas
   2. Folhas de costela-de-adão (Monstera) como textura de fundo
   ========================================================================== */

/* ---------- 1. FORMAS ORGÂNICAS ---------- */
@keyframes organicoA {
  0%, 100% { border-radius: 52% 48% 46% 54% / 58% 44% 56% 42%; }
  50%      { border-radius: 46% 54% 53% 47% / 50% 56% 44% 50%; }
}
@keyframes organicoB {
  0%, 100% { border-radius: 58% 42% 36% 64% / 42% 56% 44% 58%; }
  50%      { border-radius: 50% 50% 44% 56% / 48% 50% 50% 52%; }
}

/* Foto 1 (Início): era arco/janela, agora forma de "seixo" */
.arch {
  border-radius: 52% 48% 46% 54% / 58% 44% 56% 42%;
  animation: organicoA 14s ease-in-out infinite;
}
.arch-halo {
  border-radius: 52% 48% 46% 54% / 58% 44% 56% 42%;
  animation: organicoA 14s ease-in-out infinite reverse;
}

/* Foto 2 (Sobre): forma de pedra, fluida e assimétrica.
   O recorte vai na própria foto; a caixa retangular some e a legenda flutua por cima. */
.sobre__photo-card {
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}
.sobre__photo-card img {
  display: block;
  border-radius: 58% 42% 36% 64% / 42% 56% 44% 58%;
  box-shadow: var(--shadow-soft);
  animation: organicoB 16s ease-in-out infinite;
}
.sobre__caption-badge {
  left: 8%;
  right: 8%;
  bottom: 4%;
}

@media (prefers-reduced-motion: reduce) {
  .arch, .arch-halo, .sobre__photo-card img { animation: none; }
}

/* ---------- 2. TEXTURA DE MONSTERA ---------- */
:root {
  --monstera-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3Cdefs%3E%3Cmask id='m' maskUnits='userSpaceOnUse' x='0' y='0' width='200' height='200'%3E%3Crect width='200' height='200' fill='black'/%3E%3Cpath d='M100 150C90 185 30 170 14 118C0 70 34 28 76 24C90 22 98 14 100 6C102 14 110 22 124 24C166 28 200 70 186 118C170 170 110 185 100 150Z' fill='white'/%3E%3Cg stroke='black' stroke-width='7' stroke-linecap='round' fill='none'%3E%3Cpath d='M6 110L58 100M14 72L60 77M34 38L66 56M24 142L62 125M194 110L142 100M186 72L140 77M166 38L134 56M176 142L138 125'/%3E%3C/g%3E%3Cpath d='M100 150V26' stroke='black' stroke-width='2.2'/%3E%3C/mask%3E%3Cg id='l'%3E%3Crect width='200' height='200' fill='%23234d36' mask='url(%23m)'/%3E%3Cpath d='M100 150V198' stroke='%23234d36' stroke-width='4' stroke-linecap='round'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23l' transform='translate(40 30) rotate(-18 100 100) scale(.9)'/%3E%3Cuse href='%23l' transform='translate(390 80) rotate(24 100 100) scale(.7)'/%3E%3Cuse href='%23l' transform='translate(200 380) rotate(160 100 100) scale(.85)'/%3E%3C/svg%3E");
}

.cream-bg,
.beige-bg {
  isolation: isolate; /* mantém a textura ATRÁS do conteúdo, mas à frente da cor de fundo */
}

.cream-bg::before,
.beige-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;           /* não atrapalha cliques nem seleção de texto */
  background-image: var(--monstera-tile);
  background-size: 640px 640px;
  background-repeat: repeat;
  opacity: 0.055;                  /* sutil: efeito de impressão no papel */
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
.beige-bg::before { background-position: 260px 140px; }
#formacao::before { background-position: 120px 300px; }
#contato::before  { background-position: 380px 60px; }

@media (max-width: 720px) {
  .cream-bg::before, .beige-bg::before { background-size: 420px 420px; opacity: 0.05; }
}
@media print {
  .cream-bg::before, .beige-bg::before { display: none; }
}
