/* style.css — Dr. Ikaro Rocha, link da bio
   Paleta: logo Souza Rocha (marinho e creme) + stories (azul royal e cinza-névoa) */
:root{
  --marinho:  #2A344E;
  --creme:    #FFDCAA;
  --azul:     #03238A;
  --azul-esc: #021A66;
  --nevoa:    #EFEFEF;
  --aco:      #879BB6;
  --aco-claro:#A7B9D1;
  --branco:   #FFFFFF;
  --linha:    rgba(42,52,78,0.18);
  --texto:    #2A344E;
  --texto-suave: #4A5470;

  --titulo: "Cinzel", "Trajan Pro", Georgia, serif;
  --sans:   "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*{ box-sizing: border-box; }
html{ background: var(--nevoa); }

body{
  margin: 0;
  min-height: 100vh;
  position: relative;
  background: var(--nevoa);
  color: var(--texto);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

/* faixas de aço atrás do conteúdo, como no fundo dos stories */
body::before, body::after{
  content: ""; position: fixed; z-index: 0; pointer-events: none;
  background: var(--aco-claro); opacity: 0.55;
  border-radius: 60px;
}
body::before{ width: 340px; height: 120px; top: 70px; left: -150px; transform: rotate(-32deg); }
body::after { width: 420px; height: 110px; bottom: 90px; right: -210px; transform: rotate(-24deg); }

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul, ol{ margin: 0; padding: 0; list-style: none; }
h1, h2{ margin: 0; }

.cartao{
  position: relative; z-index: 1;
  width: 100%; max-width: 460px;
  padding: calc(28px + env(safe-area-inset-top, 0px)) 24px calc(36px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}

/* marca do escritório */
.marca{ display: flex; align-items: center; gap: 12px; margin-bottom: 22px; color: var(--marinho); }
.marca__sr{ width: 34px; height: 34px; flex-shrink: 0; }
.marca__nome{
  margin: 0; text-align: left;
  font-family: var(--titulo); font-weight: 600;
  font-size: 0.95rem; letter-spacing: 0.14em; line-height: 1.15;
}
.marca__nome span{
  display: block; margin-top: 3px;
  font-family: var(--sans); font-weight: 400;
  font-size: 0.6rem; letter-spacing: 0.42em;
}

/* foto com a moldura aberta da logo (a lacuna fica onde está o nome) */
.foto{
  position: relative; width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px; overflow: hidden;
  background: #4a4442;
}
.foto img{ width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.foto::before{
  content: ""; position: absolute; inset: auto 0 0 0; height: 34%;
  background: linear-gradient(180deg, transparent, rgba(42,52,78,0.92));
}
.foto__moldura{
  position: absolute; inset: 14px 14px 14px 14px;
  border: 1.5px solid var(--creme); border-bottom: 0;
  pointer-events: none;
}
.foto__moldura::before, .foto__moldura::after{
  content: ""; position: absolute; bottom: 0; width: 12%;
  border-bottom: 1.5px solid var(--creme);
}
.foto__moldura::before{ left: 0; }
.foto__moldura::after { right: 0; }
.foto__escritorio{
  position: absolute; left: 0; right: 0; bottom: 4px; margin: 0;
  font-family: var(--titulo); font-weight: 600;
  font-size: 0.85rem; letter-spacing: 0.3em; text-indent: 0.3em;
  color: var(--branco);
}

.nome{
  margin-top: 26px;
  font-family: var(--titulo); font-weight: 600;
  font-size: 1.9rem; line-height: 1.1; letter-spacing: 0.04em;
}
.cargo{
  margin: 10px 0 0;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--texto-suave);
}
.oab{ margin: 4px 0 0; font-size: 0.76rem; letter-spacing: 0.08em; color: var(--aco); font-weight: 500; }
.oab[hidden]{ display: none; }

/* chamada, no mesmo tom dos stories */
.chamada{ width: 100%; margin: 34px 0 26px; }
.chamada__titulo{
  font-weight: 700; text-transform: uppercase;
  font-size: 1.62rem; line-height: 1.08; letter-spacing: -0.02em;
}
.chamada__texto{ margin: 14px 0 0; font-size: 1.12rem; line-height: 1.3; }
.chamada__texto strong{ font-weight: 700; }

.botao{
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 17px 24px;
  background: var(--marinho); color: var(--creme);
  border: 1.5px solid var(--marinho); border-radius: 4px;
  font-size: 0.92rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease;
}
.botao:hover{ background: var(--creme); color: var(--marinho); }

.links{ width: 100%; margin-top: 30px; display: flex; flex-direction: column; gap: 10px; }

.acordeao{
  border: 1px solid var(--linha); border-radius: 4px;
  background: rgba(255,255,255,0.78);
  overflow: hidden; transition: border-color 0.3s ease;
}
.acordeao:has(.item[aria-expanded="true"]){ border-color: var(--azul); }

.item{
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; border: 0; background: transparent;
  color: var(--texto); font-family: var(--sans);
  font-weight: 500; font-size: 0.92rem; text-align: left; cursor: pointer;
}
.item--link{
  border: 1px solid var(--linha); border-radius: 4px;
  background: rgba(255,255,255,0.78);
  transition: border-color 0.25s ease;
}
.item--link:hover{ border-color: var(--azul); }
.item__seta{ color: var(--azul); flex-shrink: 0; }

.item__mais{ position: relative; width: 12px; height: 12px; flex-shrink: 0; }
.item__mais::before, .item__mais::after{
  content: ""; position: absolute; background: var(--azul);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.item__mais::before{ top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.item__mais::after { left: 50%; top: 0; height: 100%; width: 1.5px; transform: translateX(-50%); }
.item[aria-expanded="true"] .item__mais::after{ transform: translateX(-50%) rotate(90deg); opacity: 0; }

.item:focus-visible, .botao:focus-visible, .rodape a:focus-visible{
  outline: 2px solid var(--azul); outline-offset: 3px;
}

.painel-externo{ display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s ease; }
.painel-externo.aberto{ grid-template-rows: 1fr; }
.painel{
  overflow: hidden; min-height: 0; text-align: left;
  color: var(--texto-suave); font-size: 0.88rem;
}
.painel p{ margin: 0 18px 14px; }
.painel p:first-child{ margin-top: 2px; }
.painel > :last-child{ margin-bottom: 18px; }
.painel strong{ font-weight: 600; color: var(--texto); }


.aviso{ margin: 26px 0 0; font-size: 0.74rem; line-height: 1.5; color: var(--texto-suave); }

.rodape{ margin-top: 26px; color: var(--texto-suave); font-size: 0.76rem; letter-spacing: 0.02em; }
.rodape p{ margin: 0 0 6px; }
.rodape__credito{ margin-bottom: 0; }
.rodape__credito a{ text-decoration: underline; text-underline-offset: 2px; }
.rodape__credito a:hover{ color: var(--azul); }

@media (max-width: 380px){
  .cartao{ padding-left: 18px; padding-right: 18px; }
  .chamada__titulo{ font-size: 1.4rem; }
  .nome{ font-size: 1.65rem; }
}
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; }
}
