/*
 * Projetos — HTML/CSS/JS nativos.
 * Porta fiel de opl-digital-landingpages (src/pages/projects/*.css e as regras
 * de src/shared/styles/global.css que atingem esta página). Manter os valores
 * idênticos à origem para preservar os efeitos visuais.
 */

/* ---- global.css: base ---- */
:root {
  font-family: 'Avenir Next', 'Nunito Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: #15202b;
  background: radial-gradient(
    circle at 15% 20%,
    #fff4d9 0%,
    #f4f8fc 50%,
    #ebf1f7 100%
  );
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}


h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.1;
}

/* ---- global.css: banner de consentimento ---- */
.cookieConsentBanner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  width: 100%;
  border-top: 1px solid #d3d3d3;
  background: #ffffff;
  color: #111111;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
}

.cookieConsentBanner__inner {
  width: min(1120px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 1.35rem 1rem 1.15rem;
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
}

.cookieConsentBanner__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookieConsentBanner p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  max-width: 1100px;
}

.cookieConsentBanner__button {
  min-height: 2.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: 0.35rem;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease;
}

.cookieConsentBanner__button:hover {
  transform: translateY(-1px);
}

.cookieConsentBanner__button--secondary {
  color: #111111;
  background: #ffffff;
  border-color: transparent;
}

.cookieConsentBanner__button--primary {
  color: #ffffff;
  background: #000000;
}

.cookieConsentBanner__button--primary:hover {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

@media (max-width: 640px) {
  .cookieConsentBanner {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  .cookieConsentBanner__inner {
    width: calc(100vw - 1rem);
    padding: 1rem 0.75rem 0.95rem;
  }

  .cookieConsentBanner__actions {
    gap: 0.75rem;
  }
}

[hidden] {
  display: none !important;
}

/* ---- projects.page.css ---- */
.projectsPage {
  min-height: 100vh;
  overflow: hidden;
  color: #f5f7f8;
  background:
    radial-gradient(
      circle at 88% 24%,
      rgba(0, 190, 239, 0.11),
      transparent 28rem
    ),
    radial-gradient(
      circle at 10% 64%,
      rgba(0, 92, 125, 0.08),
      transparent 32rem
    ),
    #030608;
}

.projectsHeader {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 clamp(1.25rem, 5vw, 5.25rem);
  border-bottom: 1px solid rgba(126, 153, 163, 0.24);
}

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

.projectsBrand img {
  display: block;
  width: clamp(5.5rem, 8vw, 7rem);
  height: auto;
  max-height: 2.35rem;
  object-fit: contain;
}

.projectsHeaderNav {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: clamp(1.25rem, 4vw, 2.25rem);
}

.projectsHeaderNav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #8d9499;
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.projectsHeaderNav a:hover,
.projectsHeaderNav a:focus-visible,
.projectsHeaderNav a.is-active {
  color: #00c9f7;
}

.projectsHeaderNav a.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #00c9f7;
  content: '';
}

.projectsGallery {
  width: min(1320px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.projectsGallery {
  padding: clamp(2.5rem, 6vw, 5.5rem) 0 5rem;
}

.projectsVisuallyHidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  margin: -1px;
  white-space: nowrap;
  border: 0;
}

.projectsGrid {
  display: grid;
  grid-auto-flow: dense;
  grid-auto-rows: minmax(11rem, 15rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.projectsHero {
  display: flex;
  grid-column: span 2;
  grid-row: span 2;
  flex-direction: column;
  justify-content: center;
  padding: clamp(0.5rem, 2vw, 1.5rem) clamp(0.25rem, 2vw, 1.25rem) 1.5rem 0;
}

.projectsEyebrow {
  margin: 0 0 1.1rem;
  color: #00c9f7;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.projectsHero h1 {
  max-width: 10ch;
  margin: 0;
  color: #f5f7f8;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.projectsHeroDescription {
  max-width: 35rem;
  margin: 1.35rem 0 0;
  color: #a9b0b5;
  font-size: clamp(0.92rem, 1.3vw, 1.08rem);
  line-height: 1.5;
}

.projectsCta,
.projectDownload {
  color: #00c9f7;
  font-weight: 800;
  text-decoration: none;
}

.projectsCta {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.8rem;
  padding: 0.58rem 0.8rem;
  border: 1px solid #00c9f7;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.projectsCta:hover,
.projectsCta:focus-visible {
  color: #030608;
  background: #00c9f7;
}

.projectCard {
  --project-accent: #00c9f7;
  position: relative;
  min-height: 11rem;
  overflow: hidden;
  border: 1px solid rgba(126, 153, 163, 0.48);
  border-radius: 0.4rem;
  background: #0b1115;
  isolation: isolate;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.projectCard--wide {
  grid-column: span 2;
}

.projectCard--tall {
  grid-row: span 2;
}

.projectCardPreview {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.projectCardPreview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transform: scale(1.01);
  transition:
    opacity 180ms ease,
    transform 320ms ease;
}

.projectCardShade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(1, 5, 7, 0.03) 18%,
    rgba(1, 5, 7, 0.94) 100%
  );
}

.projectCardOverlay {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.projectCardOverlay strong {
  max-width: 18ch;
  color: #fff;
  font-size: clamp(1rem, 1.65vw, 1.35rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.projectCardOverlay > span:not(.projectCardCta) {
  max-width: 38ch;
  color: #c7d0d4;
  font-size: 0.76rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(0.4rem);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.projectCardCta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.44rem 0.65rem;
  border: 1px solid #00c9f7;
  border-radius: 0.25rem;
  color: #00c9f7;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.projectDownload {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  padding: 0.4rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 0.25rem;
  color: #fff;
  background: rgba(3, 6, 8, 0.72);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(0.4rem);
}

.projectCard:hover,
.projectCard:has(.projectCardPreview:focus-visible),
.projectCard.is-selected {
  border-color: var(--project-accent);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.projectCard:hover .projectCardPreview img,
.projectCardPreview:focus-visible img {
  opacity: 0.98;
  transform: scale(1.06);
}

.projectCard:hover .projectCardOverlay > span:not(.projectCardCta),
.projectCardPreview:focus-visible
  .projectCardOverlay
  > span:not(.projectCardCta),
.projectCard.is-selected .projectCardOverlay > span:not(.projectCardCta) {
  opacity: 1;
  transform: translateY(0);
}

.projectDownload:hover,
.projectDownload:focus-visible {
  border-color: #00c9f7;
  color: #00c9f7;
}

@media (max-width: 900px) {
  .projectsGrid {
    grid-auto-rows: 13rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projectsHero {
    grid-column: span 2;
    grid-row: span 2;
  }

  .projectCard--wide {
    grid-column: span 2;
  }

  .projectCard--tall {
    grid-row: span 1;
  }
}

@media (max-width: 620px) {
  .projectsHeader {
    min-height: 4rem;
    padding: 0 1rem;
  }

  .projectsHeaderNav {
    gap: 1rem;
  }

  .projectsHeaderNav a {
    font-size: 0.72rem;
  }

  .projectsGallery {
    width: min(100% - 1.5rem, 34rem);
  }

  .projectsGallery {
    padding-top: 2.5rem;
  }

  .projectsHero {
    grid-row: span 1;
    padding: 0 0 1rem;
  }

  .projectsHero h1 {
    max-width: 12ch;
    font-size: clamp(2.35rem, 13vw, 3.7rem);
  }
}

@media (max-width: 430px) {
  .projectsGrid {
    grid-template-columns: 1fr;
  }

  .projectsHero,
  .projectCard--wide {
    grid-column: span 1;
  }

  .projectsHero {
    min-height: 24rem;
  }

  .projectCardOverlay > span:not(.projectCardCta) {
    display: none;
  }
}

/* ---- projectViewerModal.css ---- */
.projectViewerModal {
  position: fixed;
  inset: 0;
  margin: auto;
  box-sizing: border-box;
  width: min(1680px, calc(100vw - 2.5rem));
  max-width: none;
  height: min(900px, calc(100dvh - 2.5rem));
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--project-accent) 56%, #52636a);
  border-radius: 0.65rem;
  color: #f5f7f8;
  background: #05090b;
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.78);
}

.projectViewerModal::backdrop {
  background: rgba(0, 3, 5, 0.9);
  backdrop-filter: blur(0.7rem);
}

.projectViewerModalShell {
  display: grid;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
}

.projectViewerModalHeader {
  display: grid;
  min-height: 4.75rem;
  align-items: center;
  grid-template-columns: minmax(6rem, 1fr) minmax(0, 2fr) minmax(6rem, 1fr);
  gap: 1.5rem;
  padding: 0.8rem clamp(1rem, 2.2vw, 2rem);
  border-bottom: 1px solid rgba(126, 153, 163, 0.24);
  background: #080d10;
}

.projectViewerModalBrand {
  display: inline-flex;
  width: fit-content;
}

.projectViewerModalBrand img {
  display: block;
  width: 5.25rem;
  height: 2.4rem;
  object-fit: contain;
}

.projectViewerModalHeading {
  min-width: 0;
  text-align: center;
}

.projectViewerModalHeading span {
  display: block;
  margin-bottom: 0.18rem;
  color: #7e99a3;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.projectViewerModalHeading h2 {
  overflow: hidden;
  margin: 0;
  color: #f5f7f8;
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.projectViewerModalActions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

.projectViewerModalActions a,
.projectViewerModalActions button {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid rgba(126, 153, 163, 0.55);
  border-radius: 0.3rem;
  color: #dce5e8;
  background: #0d1519;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease;
}

.projectViewerModalActions a {
  padding: 0.5rem 0.8rem;
}

.projectViewerModalActions button {
  width: 2.65rem;
  padding: 0;
}

.projectViewerModalActions a:hover,
.projectViewerModalActions a:focus-visible,
.projectViewerModalActions button:hover,
.projectViewerModalActions button:focus-visible {
  border-color: var(--project-accent);
  color: var(--project-accent);
  background: #101b20;
}

.projectViewerModalContent {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  padding: clamp(0.8rem, 2vh, 1.3rem) clamp(0.75rem, 2vw, 2rem) 0.85rem;
  overflow: hidden;
}

.projectViewerModalDescription {
  max-width: 48rem;
  margin: 0 auto clamp(0.5rem, 1.6vh, 1rem);
  color: #8fa0a7;
  font-size: clamp(0.7rem, 1vw, 0.82rem);
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 760px) {
  .projectViewerModal {
    width: calc(100vw - 1rem);
    height: min(calc(100dvh - 1rem), calc(56.25vw + 16rem));
    border-radius: 0.65rem;
  }

  .projectViewerModalHeader {
    min-height: 4rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.65rem;
    padding: 0.55rem 0.7rem;
  }

  .projectViewerModalBrand img {
    width: 3.7rem;
    height: 2rem;
  }

  .projectViewerModalHeading {
    text-align: left;
  }

  .projectViewerModalHeading span {
    display: none;
  }

  .projectViewerModalActions a {
    width: 2.65rem;
    padding: 0;
  }

  .projectViewerModalActions a span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .projectViewerModalContent {
    padding-inline: 0.6rem;
  }
}

@media (max-height: 500px) {
  .projectViewerModalDescription {
    display: none;
  }

  .projectViewerModalContent {
    grid-template-rows: minmax(0, 1fr);
    padding-top: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .projectViewerModalActions a,
  .projectViewerModalActions button {
    transition: none;
  }
}

/* ---- projectFlipbook.css ---- */
.projectFlipbook {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 1.25rem;
}

.projectFlipbookStage {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  overflow: hidden;
}

.projectFlipbookPosition {
  transition: transform 550ms ease;
}

.projectFlipbookBook {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0.6rem 0.7rem rgba(0, 0, 0, 0.35));
}

.projectFlipPage {
  overflow: hidden;
  background: #fff;
}

.projectFlipPage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

.projectFlipbookFooter {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  padding: 0.85rem 0 0;
  border-top: 1px solid #203038;
}

.projectFlipbookToolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.projectFlipbookNav {
  display: grid;
  width: 2.85rem;
  height: 2.85rem;
  place-items: center;
  padding: 0;
  border: 1px solid #00c9f7;
  border-radius: 50%;
  color: #00c9f7;
  background: #0a171d;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.projectFlipbookNav:hover:not(:disabled) {
  background: #00c9f7;
  color: #030608;
}

.projectFlipbookNav:focus-visible {
  outline: 2px solid #f5f7f8;
  outline-offset: 4px;
}

.projectFlipbookNav:disabled {
  border-color: #35454c;
  color: #61727a;
  background: transparent;
  cursor: default;
}

.projectFlipbookPageCounter {
  display: flex;
  min-width: 10rem;
  align-items: baseline;
  justify-content: center;
  gap: 0.45rem;
  color: #aabac1;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.projectFlipbookPageCounter strong {
  color: #fff;
  font-size: 0.95rem;
}

.projectFlipbookHint {
  margin: 0;
  color: #9aadb6;
  font-size: 0.72rem;
  text-align: center;
}

.projectFlipbookProgress {
  width: min(100%, 22rem);
  height: 2px;
  overflow: hidden;
  background: #26373f;
}

.projectFlipbookProgress > span {
  display: block;
  height: 100%;
  background: #00c9f7;
  transition: width 350ms ease;
}

@media (max-width: 760px) {
  .projectFlipbook {
    gap: 0.6rem;
  }
  .projectFlipbookHint {
    max-width: 30ch;
    font-size: 0.7rem;
  }
}

@media (max-height: 500px) {
  .projectFlipbook {
    gap: 0.35rem;
  }
  .projectFlipbookFooter {
    padding-top: 0.4rem;
    gap: 0.3rem;
  }
  .projectFlipbookHint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .projectFlipbookPosition,
  .projectFlipbookNav,
  .projectFlipbookProgress > span {
    transition: none;
  }
}
/* SEO/action-plan refinements: retain the mosaic while preserving touch and keyboard access. */
.projectCardDetails { position:absolute; z-index:4; top:.75rem; left:.75rem; min-height:2.75rem; display:inline-flex; align-items:center; padding:.5rem .7rem; border:1px solid rgba(255,255,255,.55); border-radius:.25rem; color:#fff; background:rgba(3,6,8,.72); font-size:.62rem; font-weight:800; letter-spacing:.05em; text-decoration:none; text-transform:uppercase; backdrop-filter:blur(.4rem); }
.projectCardDetails:hover,.projectCardDetails:focus-visible { border-color:var(--project-accent); color:var(--project-accent); }
.projectDownload { min-height:2.75rem; display:inline-flex; align-items:center; }
.projectsCta { min-height:2.75rem; padding:.65rem .9rem; }
.cookieConsentBanner__button { min-height:2.75rem; }
@media (max-width:430px) { .projectsHero { grid-row:span 2; min-height:0; } }
.projectDetailPage { min-height:100vh; color:#f5f7f8; background:radial-gradient(circle at 88% 24%,rgba(0,190,239,.11),transparent 28rem),#030608; }
.projectDetail { width:min(1120px,calc(100% - 2.5rem)); margin:0 auto; padding:clamp(2rem,6vw,5rem) 0 5rem; }
.breadcrumbs { display:flex; flex-wrap:wrap; gap:.55rem; margin-bottom:2rem; color:#8fa0a7; font-size:.78rem; }.breadcrumbs a,.projectDetailBack{ color:#00c9f7; text-decoration:none; }
.projectDetailGrid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(18rem,.95fr); gap:clamp(2rem,5vw,5rem); align-items:center; }.projectDetail h1{ max-width:12ch; color:#fff; font-size:clamp(2.8rem,6vw,5.4rem); line-height:.96; letter-spacing:-.055em; }.projectDetailLead{ max-width:40rem; color:#b7c2c6; font-size:clamp(1rem,1.4vw,1.15rem); line-height:1.55; }.projectDetailCover{ width:100%; height:auto; border:1px solid color-mix(in srgb,var(--project-accent) 58%,#52636a); border-radius:.45rem; box-shadow:0 1.3rem 3rem rgba(0,0,0,.35); }.projectDetailActions{ display:flex; flex-wrap:wrap; align-items:center; gap:1rem; margin-top:2rem; }.projectDetailBack{ min-height:2.75rem; display:inline-flex; align-items:center; font-weight:800; font-size:.78rem; }.projectDetailContent{ max-width:48rem; margin-top:clamp(3rem,7vw,6rem); padding-top:2rem; border-top:1px solid rgba(126,153,163,.24); color:#b7c2c6; line-height:1.65; }.projectDetailContent h2{ color:#fff; font-size:clamp(1.4rem,2.5vw,2rem); }@media(max-width:760px){.projectDetail{width:min(100% - 1.5rem,34rem)}.projectDetailGrid{grid-template-columns:1fr;gap:2rem}.projectDetail h1{font-size:clamp(2.6rem,13vw,4rem)}}
