@font-face {
  font-family: "Square";
  src: url("../fontes/square.ttf") format("truetype");
  font-weight: normal;
  font-display: swap;
}

:root {
  --bg: #050608;
  --grid-line: rgba(170, 180, 200, 0.035);
  --pink: #ff5a8a;
  --pink-deep: #ff2f6e;
  --cyan: #2dd4ff;
  --blue: #2cb0e2;
  --header-font: "Square", "Helvetica Neue", Arial, sans-serif;
  --body-font: "Helvetica Neue", Arial, sans-serif;
}

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

html {
  overflow-x: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

html,
body {
  width: 100%;
  background: var(--bg);
  color: #fff;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
}

/* canvas overlay that brightens grid lines around the cursor */
#cursor-glow {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* top-left navigation bar */
.nav-menu {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 10;
  display: flex;
  align-items: stretch;
  height: 46px;
  background: rgba(5, 6, 8, 0.82);
  border: 1px solid rgba(170, 180, 200, 0.10);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  text-decoration: none;
  color: #fff;
  font-family: var(--header-font);
  font-size: 1em;
  letter-spacing: 0.1em;
  border-right: 1px solid rgba(170, 180, 200, 0.10);
}

.nav-item:last-child {
  border-right: none;
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}

/* official symbol (B com raio) drawn in currentColor through a mask */
.nav-icon--bz {
  background: currentColor;
  -webkit-mask: url("../favicon.svg") center / 128% no-repeat;
  mask: url("../favicon.svg") center / 128% no-repeat;
}

.nav-item.selected {
  background: var(--cyan);
  color: #000;
}

.page-section {
  position: relative;
  z-index: 3;
  background: var(--bg);
  min-height: 100dvh;
  /* each section slides over the previous one: a soft shadow cast upward
     plus a faint top edge sell the depth of the (intentional) section break */
  box-shadow:
    0 -1px 0 rgba(170, 180, 200, 0.10),
    0 -18px 36px -6px rgba(0, 0, 0, 0.75),
    0 -60px 90px -20px rgba(0, 0, 0, 0.55);
}

.page-section,
#home {
  scroll-margin-top: 58px;
}

.section-inner {
  padding: 72px 48px 48px 36px;
}

.section-heading {
  position: relative;
  font-family: var(--header-font);
  font-size: 2.4rem;
  font-weight: normal;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 28px;
}

/* cyan accent bar — left screen edge, vertically aligned with section title */
.section-heading::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 1.2em;
  background: var(--cyan);
}

/* cases grid */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 20px;
}

.case-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.case-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  background: #111;
  border: 2px solid rgba(10, 10, 12, 0.6);
  position: relative;
  overflow: hidden;
}

.case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.35s ease;
}

.yt-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.yt-overlay img {
  width: 65px;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.case-item:is(:hover, :focus-visible) .case-thumb img {
  filter: grayscale(0%);
}

.case-item:is(:hover, :focus-visible) .yt-overlay {
  opacity: 1;
}

.case-name {
  font-family: var(--body-font);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  line-height: 1.4;
}

/* home hero — full viewport height */
#home {
  position: relative;
  height: 100dvh;
  min-height: 480px;
  overflow: hidden;
}

/* center logo */
.center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  z-index: 5;
  text-align: center;
  pointer-events: none;
  user-select: none;
  width: min(1100px, 78vw);
}

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

.ears {
  position: absolute;
  left: -3vw;
  bottom: -5vh;
  height: 33vh;
  z-index: 4;
  pointer-events: none;
  transform-origin: bottom left;
}

.ears svg {
  width: auto;
  height: 100%;
  display: block;
  overflow: visible;
}

.ears svg .ear-stroke,
.ears svg .ear-glow-tight,
.ears svg .ear-glow-mid,
.ears svg .ear-glow-wide,
.ears svg .ear-glow-bloom {
  fill: none;
  stroke-linejoin: round;
}

.ears svg .ear-stroke {
  stroke: var(--pink, #ff5a8a);
  stroke-width: 5;
}

.ears svg .ear-glow-tight {
  stroke: var(--pink, #ff5a8a);
  stroke-width: 5;
  opacity: .50;
  filter: blur(2px);
}

.ears svg .ear-glow-mid {
  stroke: var(--pink, #ff5a8a);
  stroke-width: 7;
  opacity: .28;
  filter: blur(6px);
}

.ears svg .ear-glow-wide {
  stroke: #ff7aa3;
  stroke-width: 10;
  opacity: .15;
  filter: blur(12px);
}

.ears svg .ear-glow-bloom {
  stroke: #ff5a8a;
  stroke-width: 14;
  opacity: .09;
  filter: blur(20px);
}

@keyframes earsFlicker {

  0%,
  100% {
    opacity: 1;
  }

  45% {
    opacity: .92;
  }

  55% {
    opacity: .98;
  }

  70% {
    opacity: .88;
  }
}

.ears svg .ear-glow-group {
  animation: earsFlicker 60s ease-in-out infinite;
}

.ear-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60vw 70vh at 18vw 95vh,
      rgba(255, 90, 138, 0.35) 0%,
      rgba(255, 90, 138, 0.24) 18%,
      rgba(255, 90, 138, 0.14) 35%,
      rgba(255, 90, 138, 0.06) 55%,
      rgba(255, 90, 138, 0.02) 75%,
      transparent 100%);
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
}

@media (max-width: 720px) {
  /* full-width bar: icon over a short label, 56px tall touch targets */
  .nav-menu {
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-width: 0 0 1px;
    background: rgba(5, 6, 8, 0.92);
  }

  .nav-item {
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0 4px;
    font-size: 10.5px;
    letter-spacing: 0.08em;
  }

  .nav-label-long {
    display: none;
  }

  /* bar touches the viewport edges: keep the ring inside the item */
  .nav-item:focus-visible {
    outline-offset: -5px;
  }

  .center {
    width: 86vw;
  }

  .ears {
    width: 40vh;
    height: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .ear-wash {
    background:
      radial-gradient(60vw 40vh at 50vw 95vh,
        rgba(255, 90, 138, 0.35) 0%,
        rgba(255, 90, 138, 0.24) 18%,
        rgba(255, 90, 138, 0.14) 35%,
        rgba(255, 90, 138, 0.06) 55%,
        rgba(255, 90, 138, 0.02) 75%,
        transparent 100%);
  }

  .section-inner {
    padding: 72px 16px 48px 28px;
  }

  .section-heading::before {
    left: -28px;
  }

  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── SOBRE NÓS ─────────────────────────────────── */
#sobre .section-heading::before {
  background: var(--pink);
}

.sobre-intro {
  font-size: 1rem;
  line-height: 1.82;
  color: rgba(255, 255, 255, 0.82);
  max-width: 960px;
  margin-bottom: 48px;
}

.sobre-intro p+p {
  margin-top: 16px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.team-card {
  display: flex;
  flex-direction: row;
  background: #0c0e12;
  border: 1px solid rgba(170, 180, 200, 0.08);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.team-card:is(:hover, :has(:focus-visible)) {
  border-color: rgba(45, 212, 255, 0.22);
}

.team-card-photo {
  width: 155px;
  flex-shrink: 0;
  overflow: hidden;
}

.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
  transition: filter 0.4s ease;
}

.team-card:is(:hover, :has(:focus-visible)) .team-card-photo img {
  filter: grayscale(0%);
}

.team-card-content {
  flex: 1;
  padding: 14px 14px 10px;
  display: flex;
  flex-direction: column;
}

.team-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.team-card-name {
  font-family: var(--header-font);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: #fff;
  font-weight: normal;
  line-height: 1.2;
}

.team-card-bio {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  flex: 1;
}

.team-card-socials {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 8px;
}

.team-card-social {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  text-decoration: none;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(45, 212, 255, 0.22);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.team-card-social:is(:hover, :focus-visible) {
  background: rgba(45, 212, 255, 0.08);
  border-color: rgba(45, 212, 255, 0.48);
  transform: translateY(-2px);
}

/* 3 columns only when bios at 14px still fit; 3 cards in 2 columns would orphan one */
@media (max-width: 1279px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

  .team-card-photo {
    width: 140px;
  }

  .team-card:first-child .team-card-photo img,
  .team-card:nth-child(2) .team-card-photo img {
    object-position: center 15%;
  }
}

@media (max-width: 720px) {
  .team-card {
    flex-direction: column;
  }

  .team-card-photo {
    width: 100%;
    height: 220px;
  }

  .team-card:first-child .team-card-photo img,
  .team-card:nth-child(2) .team-card-photo img {
    object-position: center 15%;
  }
}

/* ── CONTATO ─────────────────────────────────── */
.contato-form {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

/* ── CONTATO ─────────────────────────────────── */
.contato-form {
  --cf-ctl-line: rgba(255, 255, 255, 0.5);
  --cf-text-secondary: rgba(255, 255, 255, 0.82);
  --cf-text-muted: rgba(255, 255, 255, 0.58);
  --cf-line: rgba(170, 180, 200, 0.10);
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.contato-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.contato-form fieldset:disabled {
  opacity: 0.7;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cf-field {
  margin-bottom: 32px;
}

.cf-field>label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font: 400 0.85rem/1.2 var(--header-font);
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-transform: uppercase;
}

.cf-cnt {
  font: 400 12px/1 var(--body-font);
  letter-spacing: 0;
  color: var(--cf-text-muted);
}

.cf-ctl {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--cf-ctl-line);
  border-radius: 0;
  color: #fff;
  font: 400 1.1rem/1.5 var(--body-font);
  padding: 12px 0 10px;
  transition: border-color 0.2s;
}

textarea.cf-ctl {
  min-height: 168px;
  resize: vertical;
}

.cf-ctl::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

/* error: 2px pink underline, message with 3px pink bar and white text */
.cf-ctl[aria-invalid="true"] {
  border-bottom: 2px solid var(--pink);
  padding-bottom: 9px;
}

/* focus: the underline itself turns cyan and thicker, no box (also over an error) */
.cf-ctl:focus,
.cf-ctl:focus-visible {
  outline: none;
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 9px;
}

.cf-privacy {
  margin-top: 12px;
  color: var(--cf-text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.cf-err {
  margin-top: 8px;
  border-left: 3px solid var(--pink);
  padding: 2px 0 2px 10px;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-line;
}

.cf-err:empty {
  display: none;
}

.cf-extra {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-ts-row {
  margin: 8px 0 24px;
}

.cf-lbl {
  font: 400 0.85rem/1.2 var(--header-font);
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.cf-turnstile {
  min-height: 65px;
  width: 100%;
}

.cf-alert {
  border-left: 4px solid var(--pink);
  background: #0c0e12;
  padding: 12px 14px;
  margin-bottom: 16px;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cf-alert:empty {
  display: none;
}

.cf-alert strong {
  display: block;
  font: 400 0.8rem/1.3 var(--header-font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.cf-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 0 24px;
  background: transparent;
  border: 1px solid rgba(45, 212, 255, 0.48);
  border-radius: 0;
  color: var(--cyan);
  font: 400 1rem/1.2 var(--header-font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.cf-btn:hover:not(:disabled) {
  background: rgba(45, 212, 255, 0.08);
  border-color: var(--cyan);
}

.cf-btn:disabled {
  cursor: progress;
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(170, 180, 200, 0.12);
}

.cf-dots {
  display: inline-flex;
  gap: 3px;
  margin-left: 8px;
}

.cf-dots i {
  width: 5px;
  height: 5px;
  background: currentColor;
  opacity: 0.4;
}

@media (prefers-reduced-motion: no-preference) {
  .cf-dots i {
    animation: cfBlink 1.2s infinite;
  }

  .cf-dots i:nth-child(2) {
    animation-delay: 0.2s;
  }

  .cf-dots i:nth-child(3) {
    animation-delay: 0.4s;
  }
}

@keyframes cfBlink {

  0%,
  100% {
    opacity: 0.25;
  }

  50% {
    opacity: 1;
  }
}

/* success panel, log style */
.cf-done {
  position: relative;
}

.cf-done h3 {
  position: relative;
  font: 400 1.5rem/1.2 var(--header-font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.cf-done h3::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 1.2em;
  background: var(--pink);
}

.cf-done dl {
  margin: 0 0 20px;
  border-top: 1px solid var(--cf-line);
}

.cf-done dl>div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--cf-line);
}

.cf-done dl>div[hidden] {
  display: none;
}

.cf-done dt {
  font: 400 0.75rem/1.6 var(--header-font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cf-text-muted);
}

.cf-done dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
  color: var(--cf-text-secondary);
}

.cf-done .cf-st {
  color: var(--cyan);
}

.cf-done p {
  color: var(--cf-text-secondary);
  margin: 0 0 16px;
}

.cf-link {
  background: none;
  border: 0;
  color: var(--cyan);
  font: inherit;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  min-height: 44px;
  padding: 0 4px;
  cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
  .cf-done dl>div {
    animation: cfRise 0.5s both;
  }

  .cf-done dl>div:nth-child(2) {
    animation-delay: 0.15s;
  }

  .cf-done dl>div:nth-child(3) {
    animation-delay: 0.3s;
  }

  .cf-done dl>div:nth-child(4) {
    animation-delay: 0.45s;
  }
}

@keyframes cfRise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.cf-done h3:focus {
  outline: none;
}

@media (min-width: 721px) {
  .cf-actions {
    flex-direction: row;
    align-items: center;
  }

  .cf-btn {
    width: auto;
    min-width: 260px;
  }
}

@media (max-width: 720px) {
  .cf-done h3::before {
    left: -28px;
  }
}

/* ── FOCO DO TECLADO ─────────────────────────── */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* cyan background: draw the ring in black, inside the item */
.nav-item.selected:focus-visible {
  outline-color: #000;
  outline-offset: -5px;
}

/* main receives focus from the skip link; no ring around the whole page */
/* Shift+Tab focus scrolling must not park links under the fixed nav */
.case-item,
.team-card-social {
  scroll-margin-top: 80px;
}

#conteudo:focus {
  outline: none;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 20;
  padding: 12px 16px;
  background: var(--cyan);
  color: #000;
  font-family: var(--body-font);
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
  outline-color: #000;
  outline-offset: -5px;
}
