/* ── NAVBAR ── */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(27, 42, 107, 0.08);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 999;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-link {
  color: var(--navy-dark) !important;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  padding: 6px 14px !important;
}
.nav-link:hover {
  color: var(--coral-red) !important;
}

/* Main search container */
.search-container {
  position: relative;
}
/* Wrapper that controls the animation */
.search-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  transition: all 0.4s ease;
}
/* Button for the icon (always visible) */
.search-icon-btn {
  background: transparent;
  border: none;
  padding: 6px 12px; /* adjust for your color variable */
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--gray-dk);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  z-index: 1;
  min-width: 40px;
  height: 40px;
}
.search-icon-btn:hover,
.search-icon-btn:focus {
  color: var(--coral-red);
}
.search-icon-btn:active {
  /* highlight color when hovering */
  outline: none;
}
/* Expandable form and input */
.search-form {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.search-form.active {
  display: flex;
  width: auto;
  opacity: 1;
  min-width: 200px;
  max-width: 300px;
}
.search-input {
  width: 100% !important;
  font-size: 0.875rem;
  border: 1px solid rgba(27, 42, 107, 0.15) !important;
  border-radius: 25px !important;
  background: var(--white) !important;
  color: var(--gray-dk) !important;
  outline: none;
  transition: all 0.2s !important;
  box-sizing: border-box;
}
.search-input::placeholder {
  color: var(--gray-md);
  font-size: 13px;
}
.search-input:focus {
  border-color: var(--navy-blue) !important;
  box-shadow: 0 0 0 3px rgba(0, 25, 144, 0.1) !important;
}
.search-container {
  position: relative;
}
/* Expanded state */
.search-wrapper.expanded {
  width: 200px; /* final width desired - adjust according to layout */
}
.search-wrapper.expanded .search-form {
  width: 100%;
  opacity: 01;
  visibility: visible;
}
.search-wrapper.expanded .search-input {
  padding-left: 2.8rem; /* Space for an internal icon if you want. */
}
/* Mobile-friendly adjustment (example) */
@media (max-width: 768px) {
  .search-wrapper.expanded {
    width: 200px; /* smaller on mobile */
  }
}
/* ── DROPDOWN DE RESULTADOS (SITE.CSS) ── */
#searchResult {
  position: fixed; /* Fixa em relação à tela */
  top: 84px; /* Distância exata do topo (Header) */
  left: 50%; /* Centralização lógica inicial */
  transform: translateX(-50%) translateY(-10px); /* Centraliza e sobe 10px para o efeito */
  width: 90%; /* Largura responsiva */
  max-width: 600px; /* Limite para telas grandes */
  background: var(--white);
  color: var(--gray-dk) !important; /* Cor solicitada */
  border: 1px solid rgba(27, 42, 107, 0.1);
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  z-index: 1000; /* Acima da Navbar (que é 999) */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  padding: 15px;
}
/* Quando a busca retorna algo (Classe adicionada pelo seu JS) */
#searchResult.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
/* Garantia de cor para os itens dentro do resultado */
#searchResult a,
#searchResult p,
#searchResult span {
  color: var(--gray-dk) !important;
}
/* Hover nos resultados para feedback visual */
#searchResult .result-item:hover {
  background: var(--gray-lt);
  border-radius: 8px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 6px;
  background-color: var(--navy-mid); /* Cor da sua barra */
  z-index: 9999;

  /* Sincroniza a largura com a rolagem da página */
  animation: grow-progress auto linear;
  animation-timeline: scroll();
}

@keyframes grow-progress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* ── HERO ── */
.hero {
  background: url('../img/background.png') center/cover no-repeat;
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 60, 111, 0.75); /* overlay blue */
  pointer-events: none;
  z-index: 0;
}
.hero > .container {
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 79, 43, 0.15);
  border: 1px solid rgba(217, 79, 43, 0.35);
  color: var(--coral-red-lt);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral-red);
  animation: blink 1.4s infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 22px;
}
.hero h1 .highlight {
  color: var(--coral-red);
}
.hero p.lead {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stat .num {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--coral-red);
}
.hero-stat .lbl {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--navy-blue);
  padding: 16px 0;
}
.trust-bar .trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 500;
}
.trust-bar .trust-check {
  color: var(--fine-turquoise);
  font-size: 15px;
}

/* ── SERVICES ── */
.services {
  padding: 90px 0;
  background: var(--cream);
}
.service-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(27, 42, 107, 0.08);
  padding: 28px;
  height: 100%;
  transition:
    box-shadow 0.25s,
    transform 0.2s;
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(27, 42, 107, 0.1);
  transform: translateY(-3px);
}
.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(27, 42, 107, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 20px;
  color: var(--fine-turquoise);
}
.service-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 14px;
  color: var(--gray-md);
  line-height: 1.6;
  margin-bottom: 16px;
}
.metric-badge {
  display: inline-block;
  background: rgba(217, 79, 43, 0.1);
  color: var(--coral-red-dk);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px 5px 0px;
  border-radius: 6px;
}

/* ── RESULTS DARK ── */
.results-dark {
  background: var(--navy-dark);
  padding: 90px 0;
}
.result-num {
  font-family: 'Syne', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--coral-red);
}
.result-lbl {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}
.result-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
}

/* ── TESTIMONIALS ── */
.testimonials {
  padding: 90px 0;
  background: var(--white);
}
.testi-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid rgba(27, 42, 107, 0.06);
}
.stars {
  color: var(--coral-red);
  font-size: 14px;
  margin-bottom: 14px;
}
.testi-card blockquote {
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-dk);
  font-style: italic;
  margin-bottom: 20px;
}
.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  background: var(--navy-blue);
  color: var(--white);
}
.testi-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy-dark);
}
.testi-role {
  font-size: 12px;
  color: var(--gray-md);
}

/* ── PORTFOLIO ── */
.portfolio {
  padding: 90px 0;
  background: var(--gray-lt);
}
.port-card {
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(27, 42, 107, 0.07);
  height: 100%;
  background: var(--white);
  transition: box-shadow 0.2s;
  overflow: hidden;
}
.port-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(27, 42, 107, 0.1);
}
.port-thumb {
  width: 100%;
  overflow: hidden;
  background: var(--navy-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.port-thumb.t2 {
  background: var(--navy-mid);
}
.port-thumb.t3 {
  background: var(--coral-red-dk);
}
.metric-badge {
  /* Cor de fundo rosa pálido e cor do texto */
  background-color: #fff0f0; /* Um rosa bem claro */
  color: #ff6b6b; /* Um rosa mais escuro para o texto */

  /* Borda arredondada */
  border-radius: 8px;

  /* AQUI ESTÁ A CHAVE: PADDING */
  padding: 5px 10px; /* 10px em cima/baixo, 15px nas laterais */

  /* Outros ajustes de layout se necessário */
  display: inline-block; /* Faz o elemento ocupar apenas a largura do texto */
  margin-top: 8px; /* Espaço entre o texto e o parágrafo acima */

  /* Opcional: para o texto não encostar nas bordas */
  word-break: break-word;
}
.port-metric {
  font-size: 13px;
  color: var(--coral-red);
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}
.port-body h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 6px;
}
.port-body p {
  font-size: 13px;
  color: var(--gray-md);
  line-height: 1.55;
}
/* ───────── FOOTER / LINK ───────── */
.port-footer {
  padding: 12px 18px;
  border-top: 1px solid #f0f0f0;
}
.card-link {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fine-turquoise);
  text-decoration: none;
  transition: gap 0.2s;
}
.card-link:hover {
  gap: 10px;
  color: var(--coral-red-lt);
}
.card-link {
  width: 148px;
  height: 14px;
  flex-shrink: 0;
}

/* ── CTA CAPTURE ── */
.cta-capture {
  background: linear-gradient(
    135deg,
    var(--navy-dark) 0%,
    var(--navy-blue) 100%
  );
  position: relative;
  overflow: hidden;
  padding: 90px 0;
  border-top: 4px solid var(--coral-red);
}
.cta-bg-effect-1 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(217, 79, 43, 0.08);
  filter: blur(100px);
  border-radius: 50%;
  top: -100px;
  right: -50px;
  pointer-events: none;
}
.cta-bg-effect-2 {
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(26, 188, 156, 0.05);
  filter: blur(80px);
  border-radius: 50%;
  bottom: -50px;
  left: -50px;
  pointer-events: none;
}
.cta-container {
  z-index: 2;
}
.cta-badge {
  background: rgba(217, 79, 43, 0.15);
  border: 1px solid rgba(217, 79, 43, 0.3);
  color: var(--coral-red-lt);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  border-radius: 50px;
}
.cta-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}
.cta-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.7;
}
.cta-form-container {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}
.cta-input-group-text {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.5);
}
.cta-input {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: var(--white) !important;
  font-size: 14px;
  padding: 12px 15px;
}
.cta-input:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: var(--white) !important;
  box-shadow: none !important;
}
.cta-btn {
  background: var(--coral-red) !important;
  border: none !important;
  color: var(--white) !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  letter-spacing: 0.5px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(217, 79, 43, 0.4) !important;
}
.cta-btn:hover {
  background: var(--coral-red-dk) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 79, 43, 0.6) !important;
  color: var(--white) !important;
}
.cta-btn:active {
  transform: translateY(0);
}
.cta-footer-note {
  font-size: 12px;
  opacity: 0.8;
}

/* ── BLOG ── */
.blog {
  padding: 90px 0;
  background: var(--white);
}
.blog-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-red);
  margin-bottom: 8px;
  display: block;
}
.blog-card {
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(27, 42, 107, 0.07);
  height: 100%;
  transition: box-shadow 0.2s;
}
.blog-card:hover {
  box-shadow: 0 6px 24px rgba(27, 42, 107, 0.08);
}
/* ── BLOG POST (CATEGORY) ── */
.blog-post {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(27, 42, 107, 0.08);
  background: var(--white);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(27, 42, 107, 0.1);
}
.blog-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--gray-lt);
}
.blog-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-meta {
  font-size: 12px;
  color: var(--gray-md);
  margin-bottom: 10px;
}
.blog-post a {
  color: var(--gray-dk);
  text-decoration: none;
  transition: color 0.2s ease;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-post a:hover {
  color: var(--gray-md);
  text-decoration: none;
}
.blog-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 10px;
  line-height: 1.4;
}
.blog-post a:hover .blog-title {
  color: var(--coral-red);
}
.blog-excerpt {
  font-size: 13px;
  color: var(--gray-md);
  line-height: 1.6;
  margin: 0;
}

.blog-card h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 10px;
  line-height: 1.4;
}
.blog-card p {
  font-size: 13px;
  color: var(--gray-md);
  line-height: 1.6;
  margin-bottom: 14px;
}
.read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--coral-red);
  text-decoration: none;
}
.read-more:hover {
  color: var(--coral-red-dk);
}

/* ── CONTACT ── */
.contact {
  padding: 90px 0;
  background: var(--cream);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(27, 42, 107, 0.15);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  margin-bottom: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--navy-blue);
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
.btn-whatsapp {
  width: 100%;
  background: var(--fine-turquoise);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 14px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-whatsapp a {
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.btn-whatsapp a:hover,
.btn-whatsapp a:visited {
  color: var(--white);
  text-decoration: none;
}
.btn-whatsapp:hover {
  background: #1ebe5a;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--navy-dark);
}
.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(27, 42, 107, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--fine-turquoise);
}
.urgency-note {
  font-size: 13px;
  color: var(--gray-md);
  margin-top: 8px;
  text-align: center;
}

/* ── FOOTER ── */
footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 56px 0 28px;
}
footer h6 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
  margin-bottom: 16px;
}
footer a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
  transition: color 0.2s;
}
footer a:hover {
  color: var(--coral-red);
}
.footer-brand-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  font-family: 'Syne', sans-serif;
}
.footer-brand-text .cor1 {
  color: var(--coral-red);
}
.footer-brand-text .cor2 {
  color: var(--fine-turquoise);
}
.footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 6px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

/* ── SIDEBAR ── */
.sidebar-category a {
  color: var(--gray-dk);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}
.sidebar-category a:hover {
  color: var(--gray-md);
  text-decoration: none;
}

/* ── SCROLL TO TOP BUTTON ── */
/* Botão flutuante para retornar ao topo da página */
.scroll-to-top-btn {
  /* Posicionamento e dimensões */
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  /* Estilo visual com gradiente das cores da marca */
  background: linear-gradient(
    135deg,
    var(--navy-blue) 0%,
    var(--fine-turquoise) 100%
  );
  color: var(--white);
  border: 2px solid var(--coral-red);
  border-radius: 50%;
  /* Tipografia e interação */
  font-size: 24px;
  font-weight: 600;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 25, 144, 0.3);
  /* Transições suaves */
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 998;
  /* Remove estilo padrão do botão */
  outline: none;
}
/* Mostrar o botão quando o usuário rolar 300px para baixo */
.scroll-to-top-btn.show {
  display: flex;
  animation: slideIn 0.5s ease-out forwards;
}

/* Animação de entrada do botão */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Efeito ao passar o mouse */
.scroll-to-top-btn:hover {
  background: linear-gradient(
    135deg,
    var(--coral-red) 0%,
    var(--navy-blue) 100%
  );
  border-color: var(--fine-turquoise);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}
/* Efeito ao clicar */
.scroll-to-top-btn:active {
  transform: translateY(-2px);
}
/* Ícone SVG dentro do botão */
.scroll-to-top-btn .scroll-icon {
  width: 24px;
  height: 24px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Responsivo para telas pequenas */
@media (max-width: 768px) {
  .scroll-to-top-btn {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
    font-size: 20px;
  }
  .scroll-to-top-btn .scroll-icon {
    width: 20px;
    height: 20px;
  }
}

/* Responsivo para telas muito pequenas */
@media (max-width: 480px) {
  .scroll-to-top-btn {
    width: 40px;
    height: 40px;
    bottom: 15px;
    right: 15px;
    font-size: 18px;
  }
  .scroll-to-top-btn .scroll-icon {
    width: 18px;
    height: 18px;
  }
}
