/* Site Ronny Oliveira — base compartilhada (links, mentoria, fornecedores) */
:root {
  --fundo: #1C1C1C;
  --card: #0D0D0D;
  --grafite: #3C3C3C;
  --azul: #0098FF;
  --azul-claro: #5CBDFF;
  --texto: #FFFFFF;
  --texto-2: #C9C9C9;
  --raio: 22px;
  --sora: 'Sora', system-ui, sans-serif;
  --inter: 'Inter', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fundo); color: var(--texto); font: 400 16px/1.55 var(--inter); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- Topo ---------- */
.hero { position: relative; display: grid; justify-items: center; padding: 28px 16px 0; isolation: isolate; }
.hero-nome {
  position: absolute; z-index: -1; inset: 64px 0 auto; margin: 0; text-align: center;
  font: 800 clamp(64px, 23vw, 150px)/.86 var(--sora); letter-spacing: -.04em; color: var(--grafite);
  display: grid; justify-items: center;
}
.hero-nome span { /* nome com contorno azul (sombras em 8 direções: sem as "costuras" internas da fonte) */
  --c: rgba(0,152,255,.6); display: block; color: #1B2B3B;
  text-shadow: 1.5px 0 var(--c), -1.5px 0 var(--c), 0 1.5px var(--c), 0 -1.5px var(--c), 1.1px 1.1px var(--c), -1.1px 1.1px var(--c), 1.1px -1.1px var(--c), -1.1px -1.1px var(--c);
}
.hero::before { /* quadriculado de planta de engenharia, bem leve, sumindo nas bordas */
  content: ''; position: absolute; z-index: -3; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 32px 32px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
}
.hero-foto { width: min(78vw, 400px); height: auto; aspect-ratio: 923 / 1322; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.hero-sub { margin: -6px 0 0; max-width: 30ch; text-align: center; color: var(--texto-2); font: 500 15px/1.45 var(--inter); }
.hero::after { /* brilho azul atrás da foto */
  content: ''; position: absolute; z-index: -2; left: 50%; top: 22%; width: 100%; max-width: 760px; aspect-ratio: 1;
  translate: -50% 0; background: radial-gradient(closest-side, rgba(0,152,255,.16), transparent 70%); pointer-events: none;
}

/* ---------- Cards ---------- */
.cards { display: grid; gap: 14px; width: min(100% - 32px, 820px); margin: 32px auto 56px; }
.card {
  --brilho: -120%;
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 72px; min-height: 128px;
  background: var(--card); border-radius: var(--raio); text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.09);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
  -webkit-tap-highlight-color: transparent;
}
.card::after { /* faixa de luz que atravessa o card */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.10) 50%, transparent 65%);
  translate: var(--brilho) 0; transition: translate .8s ease;
}
.card-corpo { display: grid; align-content: center; gap: 4px; padding: 18px 18px 18px 20px; }
.card-icone { width: 26px; height: 26px; margin-bottom: 4px; fill: none; stroke: var(--texto); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card-icone--yt rect { fill: #FF0033; stroke: none; } .card-icone--yt path { fill: #fff; stroke: none; }
.card strong { font: 700 17px/1.2 var(--sora); color: var(--azul); }
.card small { font: 400 13.5px/1.45 var(--inter); color: var(--texto-2); }
.card-seta { display: grid; place-items: center; background: var(--azul); }
.card-seta svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.card--destaque { box-shadow: 0 0 0 2px var(--azul); }
.card--destaque small { color: #DCE9F5; }
.card:hover, .card:focus-visible { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(0,152,255,.55), 0 14px 40px -12px rgba(0,152,255,.45); --brilho: 120%; }
.card:hover .card-seta svg, .card:focus-visible .card-seta svg { transform: translateX(5px); }
.card:active { transform: scale(.98); }
.card:focus-visible { outline: 2px solid var(--azul-claro); outline-offset: 3px; }

/* ---------- Sobre ---------- */
.sobre {
  position: relative; overflow: hidden; display: grid; background: #F4F6F9; color: #111;
  border-radius: 40px 40px 0 0; padding: 44px 24px 0;
}
.sobre h2 { margin: 0 0 14px; font: 800 clamp(30px, 8vw, 46px)/1.1 var(--sora); letter-spacing: -.02em; }
.sobre h2 span { color: var(--azul); }
.sobre p { margin: 0 0 14px; font: 400 16px/1.6 var(--inter); color: #3F3F46; max-width: 58ch; }
.sobre-foto { position: relative; justify-self: center; width: min(100vw - 24px, 560px); aspect-ratio: 760 / 750; margin: 18px 0 0; }
.sobre-foto img { position: absolute; left: 14.47%; top: 4.85%; width: 72.5%; height: auto; }
.notas { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.notas text { font: 700 52px 'Caveat', cursive; fill: var(--azul); }
.notas marker path { fill: none; stroke: var(--azul); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: none !important; }
.notas > path { fill: none; stroke: var(--azul); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.rodape { padding: 18px 16px; text-align: center; font: 400 13px var(--inter); color: #9A9A9A; background: var(--fundo); }

@media (min-width: 900px) {
  .hero { padding-top: 48px; }
  .hero-nome { inset: 120px 0 auto; display: flex; justify-content: center; gap: .28em; font-size: clamp(110px, 10vw, 170px); }
  .hero-foto { width: 430px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 22px; margin: 56px auto 96px; }
  .card--destaque { grid-column: 1 / -1; }
  .card { grid-template-columns: 1fr 84px; min-height: 150px; }
  .sobre { grid-template-columns: 1.15fr 1fr; align-items: end; gap: 40px; padding: 72px max(48px, calc((100% - 1180px) / 2)) 0; border-radius: 80px 80px 0 0; }
  .sobre-texto { padding-bottom: 72px; }
  .sobre p { font-size: 18px; }
  .sobre-foto { width: 100%; max-width: 600px; justify-self: end; margin: 0; }
}

/* ---------- Animações (só com JS ligado e sem "reduzir movimento") ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-nome span { opacity: 0; translate: 0 40px; animation: sobe 1s cubic-bezier(.2,.8,.2,1) forwards; }
  .js .hero-nome span:nth-child(2) { animation-delay: .12s; }
  .js .hero-nome span { color: var(--fundo); animation: sobe 1s cubic-bezier(.2,.8,.2,1) forwards, preenche 1.2s ease .9s forwards; }
  .js .hero-nome span:nth-child(2) { animation-delay: .12s, 1.1s; }
  .js .hero-foto { opacity: 0; scale: 1.06; animation: aparece 1.1s cubic-bezier(.2,.8,.2,1) .2s forwards; }
  .js .hero-sub { opacity: 0; animation: sobe .8s ease .7s forwards; }
  .js .card { opacity: 0; translate: 0 24px; }
  .js .card.visivel { animation: sobe .7s cubic-bezier(.2,.8,.2,1) calc(var(--i) * 90ms) forwards, brilho 1.2s ease calc(var(--i) * 90ms + .5s) 1; }
  .js .sobre { translate: 0 60px; opacity: .001; transition: translate 1s cubic-bezier(.2,.8,.2,1), opacity .6s; }
  .js .sobre.visivel { translate: 0 0; opacity: 1; }
  .js .sobre-texto > * { opacity: 0; translate: 0 18px; transition: opacity .6s, translate .6s cubic-bezier(.2,.8,.2,1); }
  .js .sobre.visivel .sobre-texto > * { opacity: 1; translate: 0 0; }
  .js .sobre.visivel .sobre-texto > :nth-child(2) { transition-delay: .1s; }
  .js .sobre.visivel .sobre-texto > :nth-child(3) { transition-delay: .2s; }
  .js .sobre.visivel .sobre-texto > :nth-child(4) { transition-delay: .3s; }
  .js .sobre.visivel .sobre-texto > :nth-child(5) { transition-delay: .4s; }
  .js .sobre-foto { translate: 0 40px; transition: translate 1.2s cubic-bezier(.2,.8,.2,1) .15s; }
  .js .sobre.visivel .sobre-foto { translate: 0 0; }
  .card-seta svg { animation: cutuca 2.8s ease-in-out 2s infinite; }
  .js .notas > path { stroke-dasharray: 200; stroke-dashoffset: 200; }
  .js .notas text { opacity: 0; }
  .js .sobre.visivel .notas > path { stroke-dashoffset: 0; transition: stroke-dashoffset .8s ease 1s; }
  .js .sobre.visivel .notas text { opacity: 1; transition: opacity .5s ease .8s; }
}
@keyframes preenche { to { color: #1B2B3B; } }
@keyframes sobe { to { opacity: 1; translate: 0 0; } }
@keyframes aparece { to { opacity: 1; scale: 1; } }
@keyframes brilho { from { --brilho: -120%; } to { --brilho: 120%; } }
@keyframes cutuca { 0%, 70%, 100% { translate: 0 0; } 80% { translate: 4px 0; } 90% { translate: 0 0; } }
@property --brilho { syntax: '<length-percentage>'; inherits: true; initial-value: -120%; }
