/* Refinamentos visuais, responsivos e de movimento */

.hero-effects {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-mist {
  position: absolute;
  display: block;
  width: 46vw;
  height: 22vw;
  min-width: 520px;
  min-height: 240px;
  border-radius: 50%;
  opacity: 0.28;
  background:
    radial-gradient(ellipse at 25% 60%, rgba(255, 255, 255, 0.35), transparent 48%),
    radial-gradient(ellipse at 70% 45%, rgba(180, 184, 190, 0.3), transparent 52%);
  filter: blur(38px);
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.hero-mist-one {
  right: 17%;
  top: 22%;
  animation: mist-drift-one 10s ease-in-out infinite alternate;
}

.hero-mist-two {
  right: -12%;
  bottom: 8%;
  opacity: 0.2;
  animation: mist-drift-two 13s ease-in-out infinite alternate;
}

.hero-light-sweep {
  position: absolute;
  top: 8%;
  bottom: 5%;
  left: 43%;
  display: block;
  width: 18%;
  opacity: 0;
  background: linear-gradient(102deg, transparent 20%, rgba(255, 255, 255, 0.18) 49%, transparent 74%);
  filter: blur(16px);
  transform: translateX(-150%) skewX(-12deg);
  mix-blend-mode: screen;
  animation: light-sweep 8s ease-in-out 1.8s infinite;
}

.button-primary {
  background: linear-gradient(135deg, #ff3038 0%, var(--red) 48%, var(--red-dark) 100%);
  box-shadow: 0 14px 34px rgba(227, 27, 35, 0.2), inset 0 1px rgba(255, 255, 255, 0.2);
}

.button-primary:hover {
  background: linear-gradient(135deg, #ff454c 0%, #ec2028 52%, #bd1118 100%);
  box-shadow: 0 18px 42px rgba(227, 27, 35, 0.3), inset 0 1px rgba(255, 255, 255, 0.24);
}

.button-outline {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.82), rgba(225, 225, 223, 0.34));
}

.button-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card .button-icon {
  display: inline-block;
  margin-left: 0.5rem;
  color: var(--red);
  vertical-align: -0.24rem;
}

.service-icon svg {
  width: 34px;
  height: 34px;
}

.process-grid {
  grid-template-columns: minmax(0, 0.86fr) minmax(380px, 1.14fr);
  gap: clamp(3rem, 7vw, 7rem);
}

.process-intro {
  min-width: 0;
}

.process h2 {
  max-width: 8.5em;
  font-size: clamp(3rem, 5.2vw, 5.25rem);
  overflow-wrap: normal;
}

.inline-icon {
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  margin-left: 0.28rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  vertical-align: -0.12em;
}

.contact-meta a:hover {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.link-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.055), transparent 42%),
    linear-gradient(145deg, rgba(24, 24, 27, 0.96), rgba(10, 10, 11, 0.92));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), 0 12px 34px rgba(0, 0, 0, 0.18);
}

.link-card::after {
  content: "";
  position: absolute;
  inset: auto -15% -80% 35%;
  height: 110px;
  background: radial-gradient(ellipse, rgba(227, 27, 35, 0.18), transparent 65%);
  pointer-events: none;
  transition: transform 0.35s, opacity 0.35s;
}

.link-card:hover {
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.08), transparent 44%),
    linear-gradient(145deg, #1d1d20, #0d0d0e);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(227, 27, 35, 0.1);
}

.link-card:hover::after {
  opacity: 1;
  transform: translateY(-16px);
}

.link-card.link-primary {
  background:
    linear-gradient(110deg, rgba(255,255,255,.16), transparent 42%),
    linear-gradient(135deg, #f12830 0%, var(--red) 50%, #a80f15 100%);
  box-shadow: 0 16px 42px rgba(227, 27, 35, 0.25), inset 0 1px rgba(255,255,255,.22);
}

.link-card.link-primary:hover {
  background:
    linear-gradient(110deg, rgba(255,255,255,.2), transparent 42%),
    linear-gradient(135deg, #ff343c 0%, #e31b23 50%, #b51017 100%);
}

.link-icon {
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.015));
}

.link-icon svg,
.link-arrow,
.social-row svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-icon svg {
  width: 23px;
  height: 23px;
}

.link-arrow {
  position: relative;
  z-index: 1;
  width: 17px;
  height: 17px;
  color: var(--red);
  transition: transform 0.25s;
}

.link-card:hover .link-arrow {
  transform: translate(2px, -2px);
}

.link-primary .link-arrow {
  color: #fff;
}

.social-row {
  flex-wrap: wrap;
  row-gap: 0.8rem;
}

.social-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.social-row svg {
  width: 14px;
  height: 14px;
  color: var(--red);
}

@keyframes mist-drift-one {
  from { transform: translate3d(-7%, 3%, 0) scale(0.92); opacity: 0.18; }
  to { transform: translate3d(16%, -7%, 0) scale(1.18); opacity: 0.34; }
}

@keyframes mist-drift-two {
  from { transform: translate3d(10%, 5%, 0) scale(0.98); opacity: 0.14; }
  to { transform: translate3d(-20%, -9%, 0) scale(1.22); opacity: 0.27; }
}

@keyframes light-sweep {
  0%, 18% { opacity: 0; transform: translateX(-170%) skewX(-12deg); }
  30% { opacity: 0.35; }
  48% { opacity: 0; transform: translateX(330%) skewX(-12deg); }
  100% { opacity: 0; transform: translateX(330%) skewX(-12deg); }
}

@media (max-width: 1100px) {
  .process-grid {
    grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1.22fr);
    gap: 3.5rem;
  }

  .process h2 {
    font-size: clamp(3rem, 5.8vw, 4.5rem);
  }
}

@media (max-width: 860px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .process h2 {
    max-width: 10em;
  }
}

@media (max-width: 760px) {
  .hero-mist {
    min-width: 360px;
    min-height: 200px;
  }

  .hero-mist-one {
    right: -42%;
    top: 27%;
  }

  .hero-light-sweep {
    left: 25%;
    width: 28%;
  }

  .social-row {
    gap: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mist,
  .hero-light-sweep {
    animation: none !important;
  }

  .hero-mist {
    opacity: 0.16;
  }
}


/* Identidade oficial e registros reais */
.brand-logo {
  display: block;
  width: clamp(118px, 10vw, 148px);
  height: auto;
}

.site-footer .brand-logo {
  width: 158px;
}

.links-brand-logo {
  display: block;
  width: min(310px, 72vw);
  height: auto;
  margin-inline: auto;
}

.showcase {
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 28%, rgba(227, 27, 35, 0.11), transparent 27%),
    #0b0b0c;
  border-top: 1px solid var(--line);
}

.showcase-heading {
  display: grid;
  grid-template-columns: 1.55fr 0.6fr;
  align-items: end;
  gap: 3rem;
}

.showcase-heading h2 {
  max-width: 900px;
  margin: 1.6rem 0 0;
  font-family: var(--display);
  font-size: clamp(3.3rem, 6.7vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.88;
  text-transform: uppercase;
}

.showcase-heading > p {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  margin-top: clamp(3rem, 7vw, 6rem);
}

.showcase-card {
  position: relative;
  height: clamp(390px, 43vw, 535px);
  margin: 0;
  overflow: hidden;
  background: #151517;
}

.showcase-card-tall {
  height: clamp(390px, 43vw, 535px);
}

.showcase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(2, 2, 3, 0.9) 100%);
  pointer-events: none;
}

.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  filter: saturate(0.88) contrast(1.04);
  transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s;
}

.showcase-card:hover img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.06);
}

.showcase-card figcaption {
  position: absolute;
  inset: auto 1.4rem 1.35rem;
  z-index: 1;
  display: grid;
  gap: 0.25rem;
}

.showcase-card figcaption span {
  color: var(--red);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.showcase-card figcaption strong {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
}

.course-visual {
  position: relative;
  width: min(100%, 460px);
  height: clamp(500px, 53vw, 640px);
  margin: 0;
  overflow: hidden;
  background: #151517;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.course-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(3, 3, 4, 0.92) 100%);
}

.course-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
  filter: saturate(0.88) contrast(1.04);
}

.course-visual figcaption {
  position: absolute;
  inset: auto 1.5rem 1.5rem;
  z-index: 1;
  display: grid;
  gap: 0.35rem;
}

.course-visual figcaption span {
  color: var(--red);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.course-visual figcaption strong {
  max-width: 310px;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.about-portrait {
  height: clamp(300px, 35vw, 440px);
  margin: 2.8rem 0 0;
  overflow: hidden;
  background: #18181a;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 51%;
  filter: saturate(0.85) contrast(1.04);
  transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.about-portrait:hover img {
  transform: scale(1.025);
}

@media (max-width: 900px) {
  .showcase-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.5rem;
  }

  .showcase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .showcase-card,
  .showcase-card-tall,
  .showcase-card:not(.showcase-card-tall) {
    height: clamp(360px, 55vw, 480px);
  }
}

@media (max-width: 760px) {
  .brand-logo {
    width: 122px;
  }

  .showcase-heading h2 {
    font-size: clamp(3.1rem, 15vw, 5rem);
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .showcase-card,
  .showcase-card-tall,
  .showcase-card:not(.showcase-card-tall),
  .showcase-card:last-child {
    grid-column: auto;
    grid-row: auto;
    height: min(118vw, 500px);
  }

  .course-visual {
    width: 100%;
    height: min(132vw, 570px);
    margin-inline: auto;
  }

  .about-portrait {
    height: min(105vw, 500px);
  }
}

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

  .showcase-card-tall,
  .showcase-card:not(.showcase-card-tall),
  .showcase-card:last-child {
    grid-column: auto;
    height: 118vw;
    max-height: 500px;
  }
}
