/* Capa V8 — carregada depois de styles.css. Não altera as demais seções. */

@media (min-width: 1001px) {
  .site-header { height: 98px; }
  .nav-wrap { justify-content: flex-end; }
  .site-header .brand { display: none; }
  .main-nav { gap: clamp(20px, 2.2vw, 38px); font-size: 16px; }
  .nav-cta { padding: 15px 26px; background: #0b4851; }

  .hero { min-height: calc(100vh - 98px); background:
    radial-gradient(circle at 84% 87%, rgba(15, 190, 181, .17), transparent 26%),
    radial-gradient(circle at 10% 38%, rgba(12, 134, 160, .18), transparent 25%),
    linear-gradient(115deg, #021d28 0%, #052b35 55%, #02232b 100%); }
  .hero-grid { min-height: 660px; grid-template-columns: 29% 28% 43%; gap: 0; padding: 42px 0 34px; }
  .hero-copy { grid-column: 2; grid-row: 1; z-index: 5; align-self: center; padding: 0 0 0 8px; }
  .hero h1 { font-size: clamp(62px, 5.45vw, 94px); line-height: .97; margin-bottom: 24px; }
  .hero-text { font-size: 18px; line-height: 1.72; max-width: 455px; margin-bottom: 30px; }
  .hero-actions { gap: 14px; }
  .hero .btn-primary { color: #fff; background: linear-gradient(100deg, #149cbd, #39c9dc); }
  .btn-outline { border-color: rgba(255,255,255,.72); }
  .hero-meta { display: none; }

  .hero-visual { grid-column: 1 / -1; grid-row: 1; width: 100%; height: 100%; min-height: 620px; z-index: 1; }
  .hero-logo-panel { width: 27%; height: 87%; left: -1%; right: auto; top: 5%; border: 0; border-radius: 0; background: transparent; box-shadow: none; transform: none; overflow: visible; }
  .hero-logo { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 23px rgba(46,220,244,.5)); }
  .hero-photo { border: 6px solid rgba(19, 113, 123, .85); border-radius: 34px; box-shadow: 0 25px 50px rgba(0,0,0,.30), 0 0 0 1px rgba(89,235,237,.18); }
  .hero-photo span { background: rgba(3, 42, 49, .88); padding: 7px 13px; font-size: 12px; }
  .photo-one { width: 31%; height: 77%; left: 55%; top: 13%; transform: none; z-index: 3; }
.photo-one img { object-position: center; }
  .photo-two img { object-fit: contain; background: #fff; }
  .photo-two { width: 25%; height: 54%; right: -2%; top: 2%; bottom: auto; transform: rotate(7deg); z-index: 4; }
  .photo-three { display: block; width: 27%; height: 43%; right: 1%; bottom: -1%; transform: rotate(-4deg); z-index: 5; }
  .photo-three img { object-fit: cover; object-position: center; filter: saturate(.78) hue-rotate(105deg); }
  .photo-three span { left: 50%; transform: translateX(-50%); white-space: nowrap; }
  .neon-ring { width: 340px; height: 340px; right: -1%; top: 39%; border-color: rgba(66,221,232,.2); }
  .hero-bottom { display: none; }
}

@media (max-width: 1000px) {
  .photo-three { display: none; }
  .hero-actions .btn-outline { font-size: 0; }
  .hero-actions .btn-outline::after { content: 'Fale pelo WhatsApp'; font-size: 16px; }
}

@media (max-width: 720px) {
  .hero-actions .btn-outline::after { font-size: 14px; }
}

/* Galeria de projetos: cartões com dimensões consistentes e sem áreas vazias. */
.projects .gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-rows: 250px !important;
  gap: 22px !important;
  align-items: stretch;
}

.projects .gallery-item {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  margin: 0;
}

.projects .gallery-item.item-tall { grid-row: span 2 !important; }
.projects .gallery-item.item-wide { grid-column: span 2 !important; }

.projects .gallery-item .photo-frame {
  height: auto !important;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  border-radius: 20px;
  background: #eaf1f2;
}

.projects .gallery-item .photo-frame img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center;
}

/* Arquivos de desenho têm formato vertical: mostrar a peça completa, sem corte. */
.projects .gallery-item:nth-child(4) .photo-frame,
.projects .gallery-item:nth-child(5) .photo-frame,
.projects .gallery-item:nth-child(6) .photo-frame {
  background: #24232a;
}

.projects .gallery-item:nth-child(4) .photo-frame img,
.projects .gallery-item:nth-child(5) .photo-frame img,
.projects .gallery-item:nth-child(6) .photo-frame img {
  object-fit: contain !important;
  object-position: center !important;
}

.projects .gallery-item figcaption {
  min-height: 32px;
  padding: 9px 4px 0;
  font-size: 13px;
  line-height: 1.25;
}

@media (max-width: 1000px) {
  .projects .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 720px) {
  .projects .gallery-grid { grid-template-columns: 1fr !important; grid-auto-rows: 290px !important; gap: 18px !important; }
  .projects .gallery-item.item-tall,
  .projects .gallery-item.item-wide { grid-column: auto !important; grid-row: auto !important; }
}

/* V11: projetos organizados por intenção de compra, não por tipo de imagem. */
.project-heading { max-width: 720px; margin-bottom: 64px; }
.project-heading > p:last-child { max-width: 560px; margin: 0; color: var(--muted); font-size: 17px; }
.project-category { padding: 38px 0 60px; border-top: 1px solid var(--line); }
.category-intro { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: start; gap: 24px; margin-bottom: 30px; }
.category-number { margin: 5px 0 0; color: #19a4bd; font-size: 14px; font-weight: 900; letter-spacing: .12em; }
.category-intro h3 { margin: 0 0 8px; font-family: Manrope, sans-serif; font-size: clamp(28px, 3vw, 42px); line-height: 1.06; letter-spacing: -.04em; }
.category-intro p:not(.category-number) { max-width: 610px; margin: 0; color: var(--muted); font-size: 16px; }
.category-link { align-self: center; color: #0a788f; font-weight: 800; white-space: nowrap; }
.category-gallery { display: grid; gap: 20px; }
.category-gallery-three { grid-template-columns: 1.15fr 1fr 1fr; }
.category-gallery-feature { grid-template-columns: 1.45fr 1fr; }
.category-gallery figure { display: flex; min-width: 0; min-height: 310px; flex-direction: column; margin: 0; overflow: hidden; border-radius: 22px; background: #e9f0f1; }
.category-gallery-three figure:first-child { min-height: 360px; }
.category-gallery img { display: block; width: 100%; min-height: 0; flex: 1; object-fit: cover; }
.category-gallery figcaption { min-height: 41px; padding: 11px 14px; background: #fff; color: #486168; font-size: 13px; font-weight: 800; }
.project-category-dark { margin: 14px 0 0; padding: 45px 42px 44px; border: 0; border-radius: 28px; background: #082b33; color: #fff; }
.project-category-dark .category-intro p:not(.category-number) { color: #b4ccd0; }
.project-category-dark .category-link { color: #61d8eb; }
.project-category-dark .category-gallery figure { background: #123d46; }
.project-category-dark .category-gallery figcaption { background: #0e3942; color: #d9edef; }
.project-category-dark .category-gallery-feature figure:not(.feature-large) img { object-fit: contain; background: #123d46; }
.process-showcase { margin-top: 65px; padding-top: 0; border-top: 0; }
.process-showcase .pair-card { border: 1px solid var(--line); background: #f4f8f8; }
.process-showcase .pair-card div { background: #fff; }
.project-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 72px; padding: 42px 48px; border-radius: 24px; background: #e7f3f4; }
.project-cta .eyebrow { margin-bottom: 10px; }
.project-cta h3 { max-width: 620px; margin: 0; font-family: Manrope, sans-serif; font-size: clamp(24px, 2.6vw, 37px); line-height: 1.12; letter-spacing: -.035em; }
.project-cta .btn-primary { background: var(--ink); color: #fff; white-space: nowrap; }

@media (max-width: 800px) {
  .category-intro { grid-template-columns: 45px 1fr; }
  .category-link { grid-column: 2; justify-self: start; }
  .category-gallery-three, .category-gallery-feature { grid-template-columns: 1fr 1fr; }
  .category-gallery-three figure:first-child { grid-column: 1 / -1; }
  .project-cta { display: block; padding: 32px 28px; }
  .project-cta .btn { margin-top: 24px; }
}

@media (max-width: 560px) {
  .project-heading { margin-bottom: 45px; }
  .project-category { padding: 30px 0 46px; }
  .category-intro { gap: 14px; }
  .category-gallery-three, .category-gallery-feature { grid-template-columns: 1fr; }
  .category-gallery-three figure:first-child { grid-column: auto; }
  .category-gallery figure, .category-gallery-three figure:first-child { min-height: 265px; }
  .project-category-dark { margin-left: -2px; margin-right: -2px; padding: 32px 20px; border-radius: 22px; }
  .project-cta { margin-top: 50px; }
  .project-cta .btn { width: 100%; white-space: normal; }
}

/* Modelos técnicos ficam como contexto do processo, em escala íntegra. */
.technical-samples { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 18px; align-items: stretch; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.technical-samples > div { padding: 18px 10px 10px 0; }
.technical-samples .eyebrow { margin-bottom: 9px; }
.technical-samples h4 { margin: 0; font-family: Manrope, sans-serif; font-size: 26px; line-height: 1.12; letter-spacing: -.035em; }
.technical-samples figure { display: flex; min-width: 0; min-height: 190px; flex-direction: column; margin: 0; overflow: hidden; border-radius: 18px; background: #24232a; }
.technical-samples img { display: block; width: 100%; min-height: 0; flex: 1; object-fit: contain; }
.technical-samples figcaption { padding: 10px 12px; background: #fff; color: #4a656a; font-size: 12px; font-weight: 800; }

@media (max-width: 700px) {
  .technical-samples { grid-template-columns: 1fr 1fr; }
  .technical-samples > div { grid-column: 1 / -1; padding-top: 0; }
}

/* V12: vitrine curta com produtos diferentes para evitar repetição visual. */
.fresh-products { margin-top: 32px; padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: #f5f9f9; }
.fresh-products .eyebrow { margin-bottom: 8px; }
.fresh-products h3 { margin: 0 0 25px; font-family: Manrope, sans-serif; font-size: clamp(24px, 2.5vw, 34px); line-height: 1.1; letter-spacing: -.035em; }
.fresh-gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.fresh-gallery figure { display: flex; min-width: 0; min-height: 220px; flex-direction: column; margin: 0; overflow: hidden; border-radius: 17px; background: #fff; border: 1px solid #e1ebec; }
.fresh-gallery img { display: block; width: 100%; min-height: 0; flex: 1; object-fit: cover; object-position: center; }
.fresh-gallery figcaption { min-height: 39px; padding: 10px; color: #4a656a; font-size: 12px; font-weight: 800; line-height: 1.2; }

@media (max-width: 900px) {
  .fresh-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .fresh-products { padding: 24px 18px; }
  .fresh-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .fresh-gallery figure { min-height: 190px; }
  .fresh-gallery figure:last-child { grid-column: 1 / -1; }
}
