:root {
  --bg-deep: #051b33;
  --bg-mid: #0b2f4f;
  --bg-soft: #eaf6f8;
  --accent: #48d9dd;
  --accent-strong: #1fc5d3;
  --text: #0d1f36;
  --text-light: #f3fdff;
  --muted: #7891aa;
  --card: #f5f7fb;
  --line: rgba(72, 217, 221, 0.25);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-lg: 0 28px 65px rgba(1, 17, 33, 0.28);
  --shadow-sm: 0 12px 26px rgba(5, 27, 51, 0.13);
}

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

html {
  scroll-behavior: smooth; /* Rolagem suave ao clicar nos links do menu */
}

/* Evita que seções com âncora fiquem encobertas pelo header sticky */
#inicio,
#sobre,
#servicos,
#contato {
  scroll-margin-top: 7.5rem;
}

body {
  font-family: "Urbanist", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 80% -10%, rgba(72, 217, 221, 0.2), transparent 45%),
    radial-gradient(circle at 0% 25%, rgba(31, 197, 211, 0.12), transparent 35%),
    #f2f6f9;
  line-height: 1.55;
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.9rem;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(72, 217, 221, 0.26), transparent 32%),
    radial-gradient(circle at 80% 0%, rgba(72, 217, 221, 0.16), transparent 28%),
    rgba(4, 22, 41, 0.96);
  color: var(--text-light);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.24);
  border-top-color: var(--accent);
  animation: spin 0.85s linear infinite;
}

.page-loader__text {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader {
    transition: none;
  }

  .page-loader__spinner {
    animation: none;
  }
}

h1, h2, h3, h4 {
  font-family: "Sora", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* TOPBAR */
.topbar {
  background: #0a5a79;
  color: var(--text-light);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}

.topbar__group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
  align-items: center;
  opacity: 0.92;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
}

.pill-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(72, 217, 221, 0.22);
  margin-right: 0.45rem;
}

.pill-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(5, 27, 51, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(72, 217, 221, 0.2);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  gap: 1rem;
}

/* LOGO E MARCA */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent);
}

.brand__text {
  display: block;
}

/* Configuração da imagem da Logo */
.brand__logo-img {
  height: 52px;
  width: auto;
  border-radius: 12px;
  border: 1px solid rgba(72, 217, 221, 0.4);
  box-shadow: 0 0 15px rgba(72, 217, 221, 0.2); /* Efeito de brilho */
}

.brand h1 {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.brand p {
  color: #9dc3d6;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

.brand--footer {
  display: inline-flex;
  margin-bottom: 1rem;
}

.brand--footer h1 {
  font-size: 1.4rem;
}

/* NAVEGAÇÃO */
.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav a {
  color: #d8e8f7;
  font-weight: 600;
  font-size: 0.96rem;
  position: relative;
  padding: 0.3rem 0.1rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  background: linear-gradient(to right, var(--accent), transparent);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(72, 217, 221, 0.4);
  background: rgba(10, 44, 71, 0.85);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: #d8e8f7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header.is-menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header.is-menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.header.is-menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* BOTÕES */
.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: 0.28s ease;
}

.btn--primary {
  color: #012539;
  background: linear-gradient(95deg, #4be2e5, #35c8d7);
  box-shadow: 0 0px 25px rgba(43, 190, 208, 0.36);
}

.btn--primary:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
}

.btn--ghost {
  color: var(--text-light);
  background: transparent;
  border: 1px solid rgba(203, 233, 255, 0.65);
}

.btn--ghost:hover {
  background: rgba(72, 217, 221, 0.14);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.btn--email {
  color: #0a2f4f;
  background: rgba(11, 47, 79, 0.06);
  border: 1px solid rgba(11, 47, 79, 0.3);
}

.btn--email:hover {
  background: rgba(11, 47, 79, 0.14);
  transform: translateY(-3px);
}

/* HERO SECTION (INÍCIO) */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(3, 25, 47, 0.78), rgba(5, 44, 76, 0.7)),
    url('FUNDO-1920.jpg') center/cover no-repeat;
  min-height: 78svh;
  color: var(--text-light);
  display: grid;
  align-items: center;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(72, 217, 221, 0.25), transparent 33%),
    radial-gradient(circle at 80% 10%, rgba(72, 217, 221, 0.18), transparent 26%);
  z-index: -1;
}

.hero__content {
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  padding: 4.5rem 0 5.2rem;
}

.eyebrow {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #8ef1f8;
  font-size: 0.78rem;
  margin-bottom: 1.1rem;
}

.hero h2 {
  font-size: clamp(2.25rem, 5vw, 4.4rem);
  margin-bottom: 1.25rem;
}

.hero p {
  color: #d6eaf8;
  font-size: clamp(1.06rem, 1.5vw, 1.35rem);
  max-width: 760px;
  margin: 0 auto 2.25rem;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* SERVIÇOS (CARDS) */
.floating-cards {
  position: relative;
  margin-top: -74px;
  z-index: 12;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  background: rgba(245, 249, 253, 0.88);
  border: 1px solid rgba(72, 217, 221, 0.28);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  padding: 1.45rem 1.2rem;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.icon-dot {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(72, 217, 221, 0.3), rgba(72, 217, 221, 0));
  color: #119db3;
  display: grid;
  place-content: center;
  margin: 0 auto 0.8rem;
  font-size: 1.5rem;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: #486482;
  font-size: 1rem;
}

/* SEÇÕES GENÉRICAS */
.section {
  padding: 6rem 0;
}

/* SOBRE NÓS */
.about {
  display: grid;
  gap: 3.5rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.about__media {
  position: relative;
}

.about__media-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(72, 217, 221, 0.24);
}

.about h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1.1rem;
  color: #0b223b;
}

.highlight {
  color: #22b9c9;
}

.about p {
  color: #3c5670;
  font-size: 1.12rem;
  margin-bottom: 1.3rem;
}

.about__eyebrow {
  margin-bottom: 0.8rem;
  color: #2baebf;
}

.about__cta {
  margin-top: 1rem;
}

.about ul {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.about li {
  display: flex;
  gap: 0.55rem;
  color: #2f4f6d;
}

.about li::before {
  content: "";
  margin-top: 0.55rem;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(72, 217, 221, 0.2);
}

/* CONTATO */
.contact-wrap {
  border-radius: 34px;
  background: linear-gradient(155deg, #edf4f8, #ffffff);
  border: 1px solid rgba(72, 217, 221, 0.24);
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.contact-visual {
  min-height: 560px;
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1551434678-e076c223a692?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
  background-size: cover;
  background-position: center;
}

.contact-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 22, 42, 0.42), rgba(4, 22, 42, 0.04));
}

.contact-body {
  padding: clamp(1.7rem, 3vw, 3rem);
}

.contact-body h2 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  margin-bottom: 0.7rem;
}

.contact-body p {
  color: #5c728c;
  margin-bottom: 1.6rem;
  font-size: 1.1rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.contact-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.contact-actions .btn {
  flex: 1 1 250px;
  justify-content: center;
}

.field {
  width: 100%;
  border: 1px solid rgba(72, 217, 221, 0.2);
  border-radius: 14px;
  background: #f3f6f9;
  padding: 0.95rem 1rem;
  font: inherit;
  color: #19324e;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.field--full {
  grid-column: 1 / -1;
}

.field:focus {
  outline: none;
  border-color: var(--accent-strong);
  background: #fcfeff;
}

textarea.field {
  min-height: 130px;
  resize: vertical;
  grid-column: 1 / -1;
}

.contact-note {
  margin-top: 1rem;
  color: #5f7690;
  font-size: 0.96rem;
  font-weight: 500;
}

/* FOOTER */
.footer {
  margin-top: 6rem;
  background: linear-gradient(120deg, rgba(4, 23, 43, 0.97), rgba(3, 46, 74, 0.92));
  color: #d3e9f9;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(72, 217, 221, 0.22);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.4fr 1fr 1fr;
}

.footer h3 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer p,
.footer li {
  color: #bbd6e9;
  font-size: 1rem;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.footer a:hover {
  color: #84f4fc;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: #9ec5da;
  font-size: 0.95rem;
  text-align: center;
}

/* =========================================
   ANIMAÇÕES (Controladas via JavaScript agora)
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Delays para animações em cascata */
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* =========================================
   RESPONSIVIDADE (Telas menores)
   ========================================= */
@media (max-width: 1200px) {
  .container {
    width: min(1120px, calc(100% - 2rem));
  }

  .nav {
    gap: 1rem;
  }

  .nav a {
    font-size: 0.92rem;
  }

  .btn {
    padding: 0.82rem 1.25rem;
  }
}

@media (max-width: 1024px) {
  .section {
    padding: 5rem 0;
  }

  .topbar {
    font-size: 0.88rem;
  }

  .topbar .container,
  .topbar__group {
    justify-content: center;
  }

  .nav {
    gap: 0.9rem;
  }

  .hero {
    min-height: 70svh;
  }

  .hero__content {
    padding: 3.8rem 0 4.8rem;
  }

  .floating-cards {
    margin-top: -52px;
  }

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

  .about {
    grid-template-columns: 1fr;
    gap: 2.3rem;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .contact-visual {
    min-height: 320px;
  }

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

@media (max-width: 980px) {
  #inicio,
  #sobre,
  #servicos,
  #contato {
    scroll-margin-top: 6.8rem;
  }

  .header .container {
    row-gap: 0.8rem;
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.65rem;
    border-radius: 14px;
    border: 1px solid rgba(72, 217, 221, 0.24);
    background: rgba(6, 35, 61, 0.92);
  }

  .header.is-menu-open .nav {
    display: flex;
  }

  .nav a {
    width: 100%;
    font-size: 0.98rem;
    border-radius: 10px;
    padding: 0.65rem 0.7rem;
  }

  .nav a::after {
    display: none;
  }

  .nav a:hover,
  .nav a:focus-visible {
    background: rgba(72, 217, 221, 0.14);
  }

  .header__cta {
    display: none;
    order: 4;
    width: 100%;
    justify-content: center;
  }

  .header.is-menu-open .header__cta {
    display: inline-flex;
  }
}

@media (max-width: 760px) {
  #inicio,
  #sobre,
  #servicos,
  #contato {
    scroll-margin-top: 9rem;
  }

  .topbar {
    display: block;
    font-size: 0.84rem;
  }

  .topbar .container {
    justify-content: center;
    gap: 0.45rem;
    padding: 0.45rem 0;
  }

  .topbar__group {
    width: 100%;
    justify-content: center;
    gap: 0.45rem 0.7rem;
  }

  .topbar__group:last-child {
    display: none;
  }

  .topbar .contact-link {
    padding: 0.25rem 0.45rem;
    border-radius: 999px;
    background: rgba(72, 217, 221, 0.12);
    font-size: 0.84rem;
  }

  .topbar .pill-icon {
    width: 22px;
    height: 22px;
    margin-right: 0.35rem;
  }

  .topbar .pill-icon svg {
    width: 13px;
    height: 13px;
  }

  .container {
    width: min(1120px, calc(100% - 1.4rem));
  }

  .header .container {
    padding: 0.75rem 0 0.95rem;
  }

  .brand__logo-img {
    height: 44px;
  }

  .brand h1 {
    font-size: 1.28rem;
  }

  .brand p {
    display: none;
  }

  .hero {
    min-height: 64svh;
  }

  .hero__content {
    padding: 3rem 0 3.7rem;
  }

  .hero h2 {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.6rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .hero__actions .btn {
    width: min(100%, 290px);
    justify-content: center;
  }

  .floating-cards {
    margin-top: -24px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .service-card {
    padding: 1.25rem 1rem;
  }

  .section {
    padding: 4rem 0;
  }

  .about p {
    font-size: 1rem;
  }

  .contact-wrap {
    border-radius: 24px;
  }

  .contact-visual {
    min-height: 240px;
  }

  .contact-body p {
    font-size: 1rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .field {
    padding: 0.85rem 0.9rem;
  }

  .contact-actions .btn {
    width: 100%;
    flex-basis: 100%;
  }

  .footer {
    margin-top: 4.5rem;
    padding: 3rem 0 1.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 560px) {
  #inicio,
  #sobre,
  #servicos,
  #contato {
    scroll-margin-top: 10.2rem;
  }

  .brand {
    width: auto;
  }

  .nav {
    font-size: 0.9rem;
    gap: 0.6rem 0.9rem;
  }

  .eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0.13em;
  }

  .icon-dot {
    width: 52px;
    height: 52px;
  }

  .contact-visual {
    min-height: 210px;
  }

  .topbar .contact-link {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  #inicio,
  #sobre,
  #servicos,
  #contato {
    scroll-margin-top: 10.8rem;
  }

  .container {
    width: min(1120px, calc(100% - 1rem));
  }

  .brand h1 {
    font-size: 1.1rem;
  }

  .hero h2 {
    font-size: clamp(1.65rem, 9vw, 2rem);
  }

  .contact-body {
    padding: 1.2rem 0.95rem;
  }

  .hero__actions .btn,
  .contact-body .btn {
    width: 100%;
    justify-content: center;
  }
}
