/* Site LOCAPPONI: home e páginas de projeto.
   Fundo escuro, Inter, azul #2e6ada nas caixas grandes e azul claro no hover dos textos. Sem animações. */

:root {
  --bg: #111;
  --grey-line: #444;
  --grey-text: #8c8c8c;
  --blue: #2e6ada;
  --blue-light: #7aa5f5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg);
  color: #e4e4e4;
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, a, span, div { font-size: inherit; font-weight: inherit; }
img { display: block; max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding-left: 30px; padding-right: 30px; }

/* Navbar fixa */
.navbar { position: fixed; inset: 0 0 auto 0; z-index: 10; background-color: var(--bg); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.brand { padding: 22px 0; font-size: 20px; line-height: 1.1em; color: #fff; }
.nav-link { padding: 30px 0 25px 30px; font-size: 20px; color: #fff; }
.brand:hover, .nav-link:hover { color: var(--blue-light); }

/* Título */
.hero { padding-top: 140px; padding-bottom: 100px; }
.hero.tight { padding-bottom: 60px; }
.heading { max-width: 1000px; font-weight: 500; font-size: 56px; line-height: 1.05em; color: #fff; text-wrap: balance; }
.heading .grey { color: var(--grey-text); }

/* Rótulos e grids de duas colunas */
.heading02 { display: block; max-width: 600px; line-height: 1.1em; color: rgba(255, 255, 255, 0.5); }
.grid-duas-colunas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 100px; }
.grid-duas-colunas.meta { padding-bottom: 20px; }
.grid-duas-colunas.meta-last { padding-bottom: 80px; }
.grid-duas-colunas.chapter { padding-bottom: 80px; }

/* Textos corridos */
.about-text p { color: #fff; line-height: 1.2em; }
.about-text p + p { margin-top: 24px; }
.about-text p.grey { color: var(--grey-text); }
.chapter-title { max-width: 11.5em; color: #fff; }
.chapter-text { max-width: 480px; }

/* Projetos: foto por padrão; no hover o bloco vira azul */
.proj-list { display: grid; gap: 16px; padding-bottom: 100px; }
.proj { position: relative; display: block; width: 100%; aspect-ratio: 2 / 1; overflow: hidden; background: #1c1c1c; }
.proj img { width: 100%; height: 100%; object-fit: cover; }
.proj .fill { display: flex; opacity: 0; visibility: hidden; position: absolute; inset: 0; flex-direction: column; justify-content: space-between; padding: 24px 28px; background: var(--blue); color: #fff; }
.proj:hover .fill, .proj:focus-visible .fill { opacity: 1; visibility: visible; }
.proj:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.proj h3 { line-height: 1.1em; }

/* Cards de Newsletter e Instagram: o card inteiro é o link */
.content-head { padding-bottom: 20px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 100px; }
.pcard { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: 380px; padding: 28px; background: #262626; color: #fff; }
.pcard:hover, .pcard:focus-visible { background: var(--blue); outline: none; }
.pcard .tag { display: flex; align-items: center; gap: 14px; }
.pcard .ico { display: block; flex: none; width: 36px; height: 36px; }
.pcard .txt { margin-top: 36px; line-height: 1.2em; }
.pcard .flag { width: 44px; height: auto; margin-bottom: 14px; }
.pcard .go { display: inline-flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, 0.5); }
.pcard .go svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pcard:hover .go { color: #fff; }

/* Páginas de projeto: mídia */
.media { padding-bottom: 140px; }
.media img { width: 100%; height: auto; background: #1c1c1c; }
.media.duo, .media.stills { display: grid; gap: 16px; }
.media.duo { grid-template-columns: 1fr 1fr; }
.media.duo.portrait img { aspect-ratio: 4 / 5; object-fit: cover; }
.media.stills.cols2 { grid-template-columns: 1fr 1fr; }
.media.stills.cols3 { grid-template-columns: 1fr 1fr 1fr; }
.media.stills img { aspect-ratio: 4 / 3; object-fit: cover; }
.next-head { padding-bottom: 20px; }

/* Contato e rodapé */
.contact-line { color: #fff; line-height: 1.2em; }
.contact-line a { color: var(--blue-light); }
.contact-line a:hover { color: var(--blue-light); text-decoration: underline; }
.footer-rodape-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 20px; padding-bottom: 40px; border-top: 1px solid var(--grey-line); }
.footer-rodape-link { padding-right: 40px; font-size: 20px; line-height: 1.1em; color: #fff; }
.footer-rodape-link:hover { color: var(--blue-light); }
.footer-rodap-copyright { text-align: right; font-size: 20px; line-height: 1.1em; color: #e4e4e4; }

/* Tablet */
@media screen and (max-width: 991px) {
  .heading { max-width: 75%; font-size: 44px; }
  .nav-link { padding: 30px 0 25px 22px; }
  .hero { padding-bottom: 80px; }
}

/* Celular: escala própria (texto 22px, navegação e cards menores, tudo em uma coluna) */
@media screen and (max-width: 767px) {
  body { font-size: 22px; }
  .container { padding-left: 20px; padding-right: 20px; }

  /* navbar: nome e um botão de contato */
  .navbar .container { flex-wrap: nowrap; align-items: center; }
  .brand { padding: 16px 0; font-size: 17px; white-space: nowrap; }
  .nav-link { display: none; }
  .nav-link:last-child { display: inline-block; padding: 16px 0 16px 18px; font-size: 16px; line-height: 1.2; }
  .nav-link:last-child:hover { color: var(--blue-light); }
  .nav-link:last-child { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

  .hero { padding-top: 96px; padding-bottom: 56px; }
  .heading { max-width: 100%; font-size: 36px; text-wrap: pretty; }

  /* seções em uma coluna: rótulo em cima, conteúdo embaixo */
  .grid-duas-colunas { grid-template-columns: 1fr; gap: 10px; padding-bottom: 56px; }
  .grid-duas-colunas.meta { padding-bottom: 14px; }
  .grid-duas-colunas.meta-last { padding-bottom: 48px; }
  .grid-duas-colunas.chapter { padding-bottom: 36px; }
  .heading02 { max-width: none; font-size: 18px; }
  .chapter-title, .chapter-text { max-width: none; }
  .heading02.chapter-title { font-size: 22px; }
  .media { padding-bottom: 56px; }
  .media.duo, .media.stills.cols2, .media.stills.cols3 { grid-template-columns: 1fr; }
  .proj-list { padding-bottom: 56px; }

  /* cards de newsletter e Instagram */
  .content-head { padding-bottom: 12px; }
  .pair { grid-template-columns: 1fr; gap: 12px; padding-bottom: 56px; }
  .pcard { min-height: 0; gap: 20px; padding: 20px; }
  .pcard .tag { gap: 12px; font-size: 18px; }
  .pcard .ico { width: 32px; height: 32px; }
  .pcard .txt { margin-top: 16px; font-size: 20px; line-height: 1.25em; }
  .pcard .flag { width: 32px; margin-bottom: 8px; }
  .pcard .go { font-size: 17px; }

  /* contato: frase e telefone em linhas separadas, telefone nunca quebra */
  .contact-line { font-size: 22px; }
  .contact-line a { display: block; margin-top: 6px; font-size: 30px; white-space: nowrap; }

  /* rodapé: redes em linha cheia, assinatura embaixo */
  .footer-rodape-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; padding-bottom: 40px; }
  .footer-rodape-grid > div:first-child { display: flex; justify-content: space-between; gap: 16px; }
  .footer-rodape-link { padding-right: 0; font-size: 20px; }
  .footer-rodap-copyright { text-align: left; font-size: 15px; color: rgba(255, 255, 255, 0.5); }
}

/* Celular e toque: a foto vem com uma barra azul embaixo (nome e seta) */
@media (hover: none), (max-width: 767px) {
  .proj { aspect-ratio: auto; overflow: visible; background: none; }
  .proj img { height: auto; aspect-ratio: 2 / 1; }
  .proj .fill, .proj:hover .fill { position: static; opacity: 1; visibility: visible; display: flex; flex-direction: row; align-items: center; justify-content: space-between; padding: 16px 18px; font-size: 22px; }
  .proj .fill .cat, .proj .fill .go { display: none; }
  .proj .fill::after { content: ""; flex: none; width: 1em; height: 1em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M13 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M13 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat; }
}

/* Transições: discretas, só para quem não pediu menos movimento */
@media (prefers-reduced-motion: no-preference) {
  a { transition: color 0.2s ease; }
  .proj .fill { transition: opacity 0.3s ease, visibility 0.3s; }
  .pcard { transition: background-color 0.25s ease; }
  .pcard .go { transition: color 0.25s ease; }

  /* entrada suave ao rolar (a classe .js só existe se o JavaScript carregou) */
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .js .reveal.in { opacity: 1; transform: none; }

  /* troca de página: fade, com a navbar parada */
  @view-transition { navigation: auto; }
  .navbar { view-transition-name: nav; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.3s; }
}
