/* ============================================================================
   Espaço Assessoria — estilos da marca sobre o Bootstrap 5
   Reconstrução fiel do site estático original (style.css) em HTML/Bootstrap.
   Paleta e tipografia extraídas do site atual.
   ========================================================================== */

:root {
  --blue-600: #134F8E;   /* azul institucional (títulos, rodapé) */
  --blue-500: #1097D5;   /* azul-claro (botões, destaques) */
  --navy:     #00152c;   /* fim do gradiente do hero */
  --navy-nav: #0C4179;   /* topo do gradiente da navbar */
  --gray-600: #858382;   /* texto secundário */
  --gray-400: #B4B3B3;   /* bordas e ícones neutros */
  --cyan:     #5EC2D6;   /* ciano de apoio */
  --blue-700: #003E58;   /* azul-petróleo (barra de copyright) */
  --orange:   #DA3D15;   /* obrigatório / erro */

  --font-head: 'Montserrat', -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif;

  --bs-link-color-rgb: 16, 151, 213;
  --bs-link-hover-color-rgb: 19, 79, 142;
}

* { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-600);
  overflow-x: hidden;
}

::selection { background: var(--blue-500); color: #fff; }
::-webkit-scrollbar { width: 10px; background: #e6e6e6; }
::-webkit-scrollbar-thumb { background: var(--blue-600); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-500); }

.esp-skip {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--blue-600); color: #fff; padding: .6rem 1rem; border-radius: 0 0 .5rem 0;
}
.esp-skip:focus { left: 0; }

h1, h2, h3, h4, h5 { font-family: var(--font-head); }

/* ------------------------------------------------------------------ Navbar */
.esp-navbar {
  padding: 1rem 0 1.4rem;
  background: linear-gradient(to bottom, var(--navy-nav) 10%, rgba(12,65,121,0) 100%);
  transition: background .25s ease, padding .25s ease, box-shadow .25s ease;
}
.esp-navbar.esp-solid,
body.esp-inner .esp-navbar {
  background: var(--blue-600);
  box-shadow: 0 2px 20px rgba(0,0,0,.28);
  padding: .55rem 0 .6rem;
}
.esp-navbar .navbar-brand img { filter: drop-shadow(0 0 5px rgba(255,255,255,.25)); transition: height .25s ease; }
.esp-navbar.esp-solid .navbar-brand img,
body.esp-inner .esp-navbar .navbar-brand img { height: 40px; }

.esp-menu { gap: .25rem; }
.esp-menu .nav-link {
  color: #fff; text-transform: uppercase;
  font-family: var(--font-body); font-weight: 300; font-size: .98rem;
  letter-spacing: .3px; padding: .35rem .9rem;
  border-bottom: 4px solid transparent;
  filter: drop-shadow(0 0 5px rgba(255,255,255,.2));
  transition: .2s ease;
}
.esp-menu .nav-link:hover,
.esp-menu .nav-link:focus { color: #fff; border-bottom-color: var(--cyan); }

/* hamburger custom */
.navbar-toggler { border: none; padding: .35rem; box-shadow: none !important; }
.navbar-toggler:focus { box-shadow: none; }
.esp-bar {
  display: block; width: 28px; height: 3px; margin: 5px 0;
  background: #fff; border-radius: 3px; filter: drop-shadow(0 0 4px rgba(255,255,255,.6));
  transition: .3s ease;
}

/* phone chip (desktop) */
.esp-phone {
  display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none;
  filter: drop-shadow(0 0 5px rgba(255,255,255,.2));
}
.esp-phone-ico svg { width: 2.5rem; height: 2.5rem; color: #fff; }
.esp-phone-label { font-family: var(--font-head); font-weight: 300; font-size: .95rem; display: block; line-height: 1.1; }
.esp-phone-num   { font-family: var(--font-body); font-weight: 700; font-size: .85rem; transition: .2s ease; }
.esp-phone:hover .esp-phone-num { color: var(--cyan); }

@media (max-width: 991.98px) {
  .esp-menu {
    background: hsla(211, 82%, 26%, .96);
    padding: 1.25rem 1.5rem; border-radius: 0 0 1rem 1rem; margin-top: .6rem;
  }
  .esp-menu .nav-link { font-size: 1.1rem; border-bottom: none; }
  .esp-navbar { background: var(--blue-600); }
}

/* -------------------------------------------------------------------- Hero */
.esp-hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 7rem 1rem 3rem;
  background: url('/assets/img/mainbanner.webp') center / cover no-repeat;
}
.esp-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--blue-600), var(--navy));
  mix-blend-mode: multiply; opacity: .65;
}
.esp-hero .esp-hero-content { position: relative; z-index: 1; max-width: 70rem; }
.esp-hero h1 {
  font-weight: 500; font-size: clamp(2.1rem, 5vw, 4rem);
  margin-bottom: 1.6rem; filter: drop-shadow(0 0 6px rgba(255,255,255,.25));
}
.esp-hero p.lead {
  font-family: var(--font-head); font-weight: 400; font-size: clamp(1.1rem, 2.3vw, 1.75rem);
  margin-bottom: 2.8rem; filter: drop-shadow(0 0 6px rgba(255,255,255,.2));
}
.esp-hero p.lead i { font-style: normal; font-weight: 600; }
.esp-hero p.lead b { font-weight: 700; }

.btn-esp {
  --bs-btn-color: #fff;
  background: var(--blue-500); color: #fff;
  font-family: var(--font-body); font-weight: 300;
  padding: .5rem 3rem; border-radius: 3rem; border: 2px solid var(--blue-500);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  filter: drop-shadow(0 0 15px rgba(255,255,255,.35));
  transition: .25s ease;
}
.btn-esp:hover {
  background: #fff; color: var(--blue-500); border-color: var(--blue-500);
  letter-spacing: 1px;
}

/* --------------------------------------------------------------- Seções */
.esp-section { padding: 4.5rem 0; }
.esp-section-title {
  font-family: var(--font-head); color: var(--gray-600); font-weight: 300;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem); margin-bottom: 2.6rem;
}
.esp-section-title span, .esp-section-title b { color: var(--blue-600); font-weight: 700; }
.esp-emphasis { color: var(--blue-600); font-weight: 700; font-size: clamp(1.9rem, 4vw, 3rem); }

/* --------------------------------------------------------------- Benefícios */
.esp-benefits-wrap { margin-top: -6rem; position: relative; z-index: 3; }
.esp-benefits {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem;
}
.esp-benefit {
  background: #fff; border-radius: 2rem 0; box-shadow: 0 0 6px rgba(0,0,0,.22);
  padding: 1.5rem 1.2rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: .25s ease; min-height: 15rem;
}
.esp-benefit:last-child { grid-column: 1 / -1; max-width: 22rem; margin: 0 auto; width: 100%; }
.esp-benefit svg { width: 50px; height: 50px; margin-bottom: 1rem; }
.esp-benefit h3 { color: var(--blue-600); font-size: 1.25rem; margin-bottom: .4rem; }
.esp-benefit p { color: var(--gray-600); font-size: .95rem; margin: 0; }
.esp-benefit:hover { background: var(--blue-500); box-shadow: 0 0 14px var(--blue-500); }
.esp-benefit:hover svg path[stroke] { stroke: #fff; }
.esp-benefit:hover svg path[fill="#B4B3B3"] { fill: #fff; }
.esp-benefit:hover h3, .esp-benefit:hover p { color: #fff; }

@media (min-width: 992px) {
  .esp-benefits {
    display: flex; gap: 0; max-width: 72rem; margin: 0 auto;
    box-shadow: 0 0 50px rgba(0,0,0,.25);
  }
  .esp-benefit {
    flex: 1; border-radius: 0; box-shadow: none; min-height: 19rem; padding: 1.5rem;
  }
  .esp-benefit:last-child { max-width: none; margin: 0; }
  .esp-benefit h3 { font-size: 1.35rem; }
  .esp-benefit p { font-size: 1rem; }
}

/* --------------------------------------------------------- Por que / Mentor */
.esp-figure { position: relative; display: inline-block; }
.esp-figure img { position: relative; z-index: 1; display: block; width: 100%; border-radius: 2px; }
.esp-figure::after {
  content: ""; position: absolute; left: 1.4rem; bottom: -1.4rem;
  width: 100%; height: 70%; background: var(--blue-500); z-index: 0;
}
.esp-lead-txt { color: var(--gray-600); font-weight: 300; font-size: clamp(1rem, 1.8vw, 1.15rem); }
.esp-how { font-family: var(--font-head); color: var(--gray-600); font-weight: 300; font-size: clamp(1.4rem,2.6vw,1.9rem); }
.esp-how span { color: var(--blue-600); font-weight: 700; }

.btn-wpp {
  display: inline-flex; align-items: center; justify-content: center; gap: .8rem;
  background: var(--blue-500); color: #fff; border-radius: 3rem;
  box-shadow: 0 0 15px var(--blue-500); padding: .6rem 2rem;
  font-family: var(--font-body); font-weight: 300; font-size: clamp(1.1rem,2vw,1.3rem);
  transition: .25s ease;
}
.btn-wpp i { font-size: 1.5rem; }
.btn-wpp:hover { background: #fff; color: var(--blue-500); outline: 1px solid var(--blue-500); letter-spacing: .5px; }

.esp-mentor-list { padding-left: 0; list-style: none; }
.esp-mentor-list li { position: relative; padding-left: 2.2rem; margin-bottom: 1.1rem; text-align: left; color: var(--gray-600); font-weight: 300; font-size: clamp(1rem,1.8vw,1.15rem); }
.esp-mentor-list li::before { content: "-->"; position: absolute; left: 0; color: var(--blue-600); font-weight: 700; }
.esp-mentor-list li span { color: var(--blue-600); font-weight: 700; }

/* ------------------------------------------------------------- Vantagens */
.esp-advantages { padding: 0; }
.esp-advantages .carousel, .esp-advantages .carousel-item { height: 88vh; min-height: 32rem; }
.esp-advantages .carousel-item img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.esp-advantages .carousel-caption {
  inset: 0; left: 0; right: 0; top: 0; bottom: 0; padding: 0; text-align: left;
  display: flex; flex-direction: column; justify-content: center; gap: 1.2rem;
  background: linear-gradient(to bottom, hsla(211,76%,32%,.55), hsla(0,0%,0%,.55));
}
.esp-advantages .esp-adv-inner { padding: 0 6vw; max-width: 46rem; }
.esp-advantages h2 { font-weight: 400; font-size: clamp(2rem, 4.8vw, 3.4rem); text-shadow: 0 0 4px rgba(0,0,0,.25); }
.esp-advantages h2 span { color: var(--cyan); font-weight: 700; }
.esp-advantages p { color: #e6e6e6; font-weight: 300; font-size: clamp(1.1rem, 2.2vw, 1.6rem); text-shadow: 0 0 4px rgba(0,0,0,.25); }
.esp-advantages a { color: var(--blue-500); font-weight: 700; }
.esp-advantages a:hover { color: var(--cyan); }
.esp-adv-btn {
  display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start;
  background: rgba(255,255,255,.92); color: var(--blue-500);
  border: none; border-radius: 1rem; padding: .35rem 1.3rem;
  font-family: var(--font-head); font-size: 1rem; text-transform: uppercase; transition: .2s ease;
}
.esp-adv-btn:hover { background: #fff; letter-spacing: .5px; }
.esp-advantages .carousel-control-prev, .esp-advantages .carousel-control-next { width: 10%; }
.esp-advantages .carousel-control-prev-icon, .esp-advantages .carousel-control-next-icon { filter: drop-shadow(0 0 10px rgba(255,255,255,.5)); }
@media (min-width: 992px) {
  .esp-advantages .carousel-caption { background: linear-gradient(to right, hsla(211,76%,32%,.55), hsla(0,0%,0%,.3)); }
}

/* -------------------------------------------------------------- Formulário */
.esp-contact label { font-family: var(--font-head); font-weight: 700; color: var(--blue-600); }
.esp-contact .req { color: var(--orange); margin-left: .2rem; font-size: .85rem; }
.esp-contact .form-control, .esp-contact .form-select {
  border-radius: 1.5rem; border: 1px solid var(--gray-400);
  font-family: var(--font-body); padding: .5rem 1.3rem;
}
.esp-contact .form-control:focus, .esp-contact .form-select:focus {
  border-color: var(--blue-500); box-shadow: 0 0 0 .18rem rgba(16,151,213,.25);
}
.esp-contact textarea.form-control { resize: none; min-height: 7rem; }
.btn-send {
  background: var(--blue-500); color: #fff; border: none; border-radius: 3rem;
  box-shadow: 0 0 15px var(--blue-500);
  font-family: var(--font-head); font-weight: 300; text-transform: uppercase;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem); padding: .4rem 2rem;
  display: inline-flex; align-items: center; gap: .8rem; transition: .25s ease;
}
.btn-send:hover { background: #fff; color: var(--blue-500); outline: 1px solid var(--blue-500); transform: scale(1.02); }
.esp-alert { font-family: var(--font-body); }

/* ----------------------------------------------------------------- Rodapé */
.esp-footer { background: var(--blue-600); color: #fff; padding-top: 3.2rem; }
.esp-footer-logos { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 4rem; flex-wrap: wrap; }
.esp-footer-allcross { height: 3rem; filter: drop-shadow(0 0 5px rgba(255,255,255,.25)); }
.esp-footer-espaco { height: 3.4rem; filter: drop-shadow(0 0 5px rgba(255,255,255,.25)); }
.esp-footer-title { font-size: 1.4rem; color: #fff; margin-bottom: 1.2rem; }
.esp-footer-list a, .esp-footer-contact a { color: #fff; font-family: var(--font-body); line-height: 2; transition: .2s ease; }
.esp-footer-list a:hover, .esp-footer-contact a:hover { color: var(--cyan); }
.esp-footer-contact li { margin-bottom: .6rem; }
.esp-footer-contact a { display: flex; align-items: center; gap: .9rem; }
.esp-footer-contact i { font-size: 1.3rem; }
.esp-copyright {
  margin-top: 3rem; background: var(--blue-700); padding: 1.3rem 0; text-align: center;
  font-family: var(--font-body); font-size: .9rem; color: #fff;
}
.esp-copyright a { color: #fff; text-decoration: underline; }
@media (min-width: 992px) {
  .esp-footer-allcross { height: 4.4rem; }
  .esp-footer-espaco { height: 4.8rem; }
  .esp-footer-title { font-size: 1.7rem; }
}

/* ------------------------------------------------------------ WhatsApp flutuante */
.esp-whatsapp-floater {
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 1030;
  width: 3.6rem; height: 3.6rem; border-radius: 50%;
  background: #25D366; color: #fff; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 15px rgba(0,0,0,.25); opacity: .92; transition: .2s ease;
}
.esp-whatsapp-floater i { font-size: 1.9rem; }
.esp-whatsapp-floater:hover { transform: scale(1.12); background: #fff; color: #25D366; border-color: #25D366; opacity: 1; }

/* ------------------------------------------------------------------- Popup */
.esp-popup-overlay {
  display: none; position: fixed; inset: 0; z-index: 1080;
  background: rgba(0,0,0,.7); align-items: center; justify-content: center; padding: 1rem;
}
.esp-popup-overlay.show { display: flex; }
.esp-popup { position: relative; background: #fff; max-width: 420px; width: 100%; border-radius: 6px; overflow: hidden; }
.esp-popup img { width: 100%; height: auto; display: block; }
.esp-popup-close {
  position: absolute; top: 8px; left: 12px; cursor: pointer; font-size: 1.8rem;
  line-height: 1; color: #fff; text-shadow: 0 0 6px rgba(0,0,0,.6); background: none; border: none; z-index: 2;
}

/* ------------------------------------------------------------------ Filiais */
.esp-page-head { padding-top: 9rem; }
.esp-page-title { text-align: center; font-family: var(--font-head); color: var(--gray-600); font-weight: 400; font-size: clamp(1.8rem,4vw,2.8rem); }
.esp-page-title span { color: var(--blue-600); font-weight: 700; }
.esp-filiais { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 3rem; }
@media (min-width: 768px) { .esp-filiais { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .esp-filiais { grid-template-columns: 1fr 1fr 1fr; } }
.esp-filial { border-radius: 1rem; box-shadow: 0 0 15px rgba(16,151,213,.5); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.esp-filial-title {
  height: 11rem; background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.esp-filial-title h2 {
  margin: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 500; font-size: clamp(1.4rem,3vw,2rem);
  background: rgba(0,0,0,.3); filter: drop-shadow(0 0 5px rgba(255,255,255,.3));
}
.esp-filial-content { padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.esp-filial-content li { display: flex; align-items: flex-start; gap: .8rem; }
.esp-filial-content i { color: var(--blue-500); font-size: 1.25rem; margin-top: .15rem; }
.esp-filial-content p { margin: 0; font-family: var(--font-body); font-size: .98rem; color: #4e4e4e; }
.esp-filial-content a { color: var(--blue-500); font-weight: 700; word-break: break-word; }
.esp-filial-content a:hover { color: var(--blue-600); }

/* espaço para navbar fixa nas páginas internas */
body.esp-inner { padding-top: 0; }
