/* =========================================
   RESET & VARIÁVEIS
   ========================================= */
:root {
  --bg-main: #f5f5ff;
  --bg-section-alt: #eaebf7;
  --placeholder-gray: #dfdfef;
  --placeholder-gray-hover: #b8b8bf;
  --text-black: #000000;
  --text-muted: #a1a1aa;
  --accent-blue: #1b3df1;
  --paty-pink: #d93c7e;
  --scolis-lime: #99ff00;
  --border-color: #d6d7e3;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-black);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
  padding-top: 63px;
}

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

img {
  -webkit-user-drag: none;
  user-select: none;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================
   CABEÇALHO
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-main);
  transition: padding 0.35s cubic-bezier(0.645, 0.045, 0.355, 1) 0s;
  will-change: padding;
}

.site-header.is-compact {
  padding-top: 8px;
  padding-bottom: 8px;
}

.site-header.is-compact:hover,
.site-header.is-compact:focus-within {
  padding-top: 20px;
  padding-bottom: 20px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 22px;
  width: auto;
  display: block;
  transform-origin: left center;
  transform: scale(1);
  transition: transform 0.35s cubic-bezier(0.645, 0.045, 0.355, 1) 0s;
  will-change: transform;
}

.site-header.is-compact .logo-img {
  transform: scale(0.5);
}

.site-header.is-compact:hover .logo-img,
.site-header.is-compact:focus-within .logo-img {
  transform: scale(1);
}

.logo-link:hover .logo-img {
  filter: invert(17%) sepia(96%) saturate(4684%) hue-rotate(228deg) brightness(96%) contrast(98%);
}

.main-nav {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.main-nav a {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--placeholder-gray-hover);
}

.main-nav a.active {
  color: var(--text-black);
}

.main-nav a:hover,
.main-nav a.active:hover {
  color: var(--accent-blue);
}

/* Gatilho e Gaveta Mobile (ocultos no desktop) */
.mobile-menu-toggle {
  all: unset;
  display: none;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: var(--accent-blue);
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: var(--accent-blue);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 8px 20px 32px;
  transform: translate3d(100%, 0, 0);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.645, 0.045, 0.355, 1) 0s,
              visibility 0s linear 0.35s;
  will-change: transform;
}

.mobile-drawer.is-open {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.35s cubic-bezier(0.645, 0.045, 0.355, 1) 0s,
              visibility 0s linear 0s;
}

.mobile-drawer-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 24px;
  margin-bottom: 36px;
}

.mobile-drawer-close {
  all: unset;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: #ffffff;
  cursor: pointer;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-drawer-links a {
  font-size: 24px;
  font-weight: 400;
  color: #ffffff;
  width: fit-content;
}

.mobile-drawer-links a:hover {
  opacity: 0.8;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  padding: 200px 32px 200px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(16px, 3vw, 34px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text-black);
}

/* =========================================
   CABEÇALHOS DE SEÇÃO & BOTÃO "VER MAIS"
   ========================================= */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-title,
.btn-ver-mais {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.btn-ver-mais {
  color: var(--text-black);
  transition: none;
}

.btn-ver-mais:hover {
  color: var(--accent-blue);
}

/* =========================================
   ÍCONE DE SETA (assets/icones/seta-direita.svg)
   ========================================= */
.arrow-icon {
  display: inline-block;
  width: 24px;
  height: auto;
  flex-shrink: 0;
  transition: none;
}

.inline-arrow {
  display: inline-block;
  vertical-align: -2px;
  margin-left: 10px;
  width: 28px;
  height: auto;
}

.project-card:hover .arrow-icon,
.sobre-resumo-link:hover .arrow-icon {
  filter: invert(17%) sepia(96%) saturate(4684%) hue-rotate(228deg) brightness(96%) contrast(98%);
}

/* =========================================
   SEÇÃO 01 — IDENTIDADES (HOME & PROJETOS)
   ========================================= */
.section-identidades {
  padding-bottom: 24px;
}

.identidades-home-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px 12px;
}

.identidades-home-grid .project-card.full-width {
  grid-column: 1 / -1;
  margin-top: 20px;
}

.projetos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 12px;
}

.project-card {
  display: block;
}

.image-swap-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--placeholder-gray);
}

.ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.ratio-square {
  aspect-ratio: 1 / 1;
}

.image-swap-wrapper img,
.image-swap-wrapper .media-placeholder,
.image-swap-wrapper .media-placeholder-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-placeholder {
  background-color: var(--placeholder-gray);
}

.media-placeholder-hover {
  background-color: var(--placeholder-gray-hover);
}

.img-hover {
  opacity: 0;
}

.project-card:hover .img-hover {
  opacity: 1;
}

.project-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
}

.project-name {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-black);
}

.paty-hit-area {
  display: block;
}

.paty-hit-area:hover .img-hover {
  opacity: 1;
}

.paty-hit-area:hover .arrow-icon {
  filter: invert(17%) sepia(96%) saturate(4684%) hue-rotate(228deg) brightness(96%) contrast(98%);
}

/* =========================================
   PROTEÇÃO CONTRA MENU DE IMAGEM NO CLIQUE DIREITO
   ========================================= */
.image-swap-wrapper img,
.ilustracao-box img,
.slide-item img,
.gallery-item img,
.project-hero-media img,
.especialidade-card img {
  pointer-events: none;
}

/* =========================================
   SEÇÃO 02 — ILUSTRAÇÕES (PÁGINA PROJETOS)
   ========================================= */
.section-ilustracoes-page {
  padding-bottom: 20px;
  padding-top: 24px;
}

.ilustracao-card {
  display: block;
}

.ilustracao-box {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--placeholder-gray);
}

.ilustracao-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================
   SEÇÃO 02 — ILUSTRAÇÕES (SLIDESHOW HOME)
   ========================================= */
.section-ilustracoes {
  background-color: var(--bg-section-alt);
  padding: 12px 12px 12px;
}

.slideshow-wrapper {
  width: 100%;
  overflow: hidden;
  padding: 0 32px;
}

.slideshow-track {
  display: flex;
  gap: 12px;
  width: max-content;
  will-change: transform;
}

.slide-item {
  flex: 0 0 auto;
  height: 488px;
}

.slide-item img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.slide-placeholder {
  height: 100%;
  background-color: var(--placeholder-gray);
}

/* =========================================
   SEÇÃO 03 — SOBRE (RESUMO NA HOME)
   ========================================= */
.section-sobre-home {
  padding-top: 40px;
  padding-bottom: 110px;
}

.sobre-resumo-link {
  display: inline-block;
  max-width: 820px;
}

.sobre-resumo-texto {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-black);
}

/* =========================================
   PÁGINA SOBRE (sobre.html)
   ========================================= */
.sobre-page {
  padding-top: 40px;
  padding-bottom: 120px;
}

.sobre-bio {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-bottom: 48px;
}

.especialidades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 130px;
}

.especialidade-card .media-placeholder {
  width: 100%;
  background-color: var(--placeholder-gray);
}

.especialidade-label {
  display: block;
  margin-top: 12px;
  font-size: 16px;
  font-weight: 400;
}

.contato-destaque {
  text-align: center;
  padding: 20px 0 40px;
}

.contato-label {
  display: block;
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 0px;
}

.contato-email {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  color: var(--text-black);
  transition: none;
}

.contato-email:hover {
  color: var(--accent-blue);
}

/* =========================================
   PÁGINAS DE DETALHE DOS PROJETOS
   ========================================= */
.project-detail-page {
  padding-bottom: 20px;
}

.project-hero-media {
  width: 100%;
  background-color: var(--accent-blue);
}

.project-hero-media.paty-hero-media {
  background-color: var(--paty-pink);
}

.project-hero-media.scolis-hero-media {
  background-color: var(--scolis-lime);
}

.project-hero-media img {
  width: 70%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.project-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-top: 20px;
  padding-bottom: 80px;
  align-items: start;
}

.project-overview-title h1 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-black);
  margin-bottom: 2px;
}

.project-category {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
}

.project-overview-description p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-black);
  max-width: 580px;
}

.project-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-item {
  width: 100%;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-row-full {
  width: 100%;
}

.paty-main-logo-box {
  background-color: var(--paty-pink);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 64px 24px;
}

.paty-main-logo-box img {
  width: auto;
  max-width: 100%;
  max-height: 440px;
  height: auto;
  object-fit: contain;
}

.gallery-row-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gallery-row-asymmetric-1 {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 12px;
}

.gallery-row-asymmetric-2 {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: 12px;
}

.gallery-row-asymmetric-paty {
  display: grid;
  grid-template-columns: 1.38fr 0.62fr;
  gap: 12px;
}

.gallery-row-scolis-top {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 12px;
  align-items: stretch;
}

.gallery-row-scolis-top .gallery-item img {
  height: 100%;
  aspect-ratio: 4 / 3.7;
  object-fit: cover;
}

.gallery-row-scolis-bottom {
  display: grid;
  grid-template-columns: 1.32fr 0.68fr;
  gap: 12px;
  align-items: stretch;
}

.gallery-row-scolis-bottom .gallery-item {
  height: 100%;
}

.gallery-row-scolis-bottom .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-row-scolis-bottom .gallery-item:first-child img {
  aspect-ratio: 1.60 / 1;
}

/* =========================================
   RODAPÉ
   ========================================= */
.site-footer {
  background-color: var(--accent-blue);
  color: #ffffff;
  padding: 48px 32px 24px;
  overflow: hidden;
}

.footer-brand {
  width: 100%;
  margin-bottom: 36px;
}

.footer-logo-white {
  width: 100%;
  height: auto;
  display: block;
  filter: invert(11%) sepia(71%) saturate(3941%) hue-rotate(228deg) brightness(104%) contrast(102%);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a:hover,
.back-to-top:hover {
  text-decoration: underline;
}

/* =========================================
   ANIMAÇÕES DE TEXTO EM SEÇÕES
   ========================================= */
.js .text-reveal {
  opacity: 0;
  transform: translate3d(0, 22%, 0);
  transition: transform 1s cubic-bezier(0.645, 0.045, 0.355, 1) 0s,
              opacity 1s cubic-bezier(0.645, 0.045, 0.355, 1) 0s;
  will-change: transform, opacity;
}

.js .text-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

a.text-reveal,
span.text-reveal {
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  .js .text-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.js .split-pendente {
  opacity: 0;
}

.js span.linha {
  display: block;
}

.js span.linha.text-reveal.is-visible {
  transition-delay: calc(var(--i) * 0.12s);
}

@media (prefers-reduced-motion: reduce) {
  .js span.linha.text-reveal.is-visible {
    transition-delay: 0s;
  }
}

/* =========================================
   RESPONSIVIDADE (MOBILE / TABLET)
   ========================================= */
@media (max-width: 900px) {
  .identidades-home-grid,
  .projetos-grid,
  .especialidades-grid,
  .project-overview,
  .gallery-row-half,
  .gallery-row-asymmetric-1,
  .gallery-row-asymmetric-2,
  .gallery-row-asymmetric-paty,
  .gallery-row-scolis-top,
  .gallery-row-scolis-bottom {
    grid-template-columns: 1fr;
  }

  .gallery-row-scolis-top .gallery-item img,
  .gallery-row-scolis-bottom .gallery-item:first-child img,
  .gallery-row-scolis-bottom .gallery-item:last-child img {
    aspect-ratio: auto;
    height: auto;
  }

  .slide-item {
    height: 240px;
  }
}

@media (max-width: 600px) {
  body {
    padding-top: 41px;
  }

  .container,
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Header sempre compacto no mobile, sem expandir no hover */
  .site-header,
  .site-header.is-compact,
  .site-header.is-compact:hover,
  .site-header.is-compact:focus-within {
    padding: 8px 20px;
  }

  .logo-img,
  .site-header.is-compact .logo-img,
  .site-header.is-compact:hover .logo-img,
  .site-header.is-compact:focus-within .logo-img {
    transform: scale(0.5);
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  /* Remove efeito de hover dos projetos no mobile */
  .project-card:hover .img-hover,
  .paty-hit-area:hover .img-hover {
    opacity: 0;
  }

  .project-card:hover .arrow-icon,
  .sobre-resumo-link:hover .arrow-icon,
  .paty-hit-area:hover .arrow-icon,
  .logo-link:hover .logo-img {
    filter: none;
  }

  .project-card:hover .project-name,
  .btn-ver-mais:hover,
  .contato-email:hover {
    color: inherit;
  }

  /* Ajusta o e-mail na página Sobre para não ultrapassar a tela */
  .contato-destaque {
    padding-left: 0;
    padding-right: 0;
  }

  .contato-email {
    display: block;
    max-width: 100%;
    font-size: clamp(16px, 5.2vw, 24px);
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .slideshow-track {
    padding: 0 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 16px;
  }
}