/* ============================================
   COOLDOOR — Custom Styles & Animations
   Premium institutional website
   ============================================ */

:root {
  --blue-primary: #1a56db;
  --blue-dark: #0f3a8e;
  --blue-deeper: #0a2463;
  --blue-light: #e8effc;
  --blue-accent: #2563eb;
  --black: #0a0a0a;
  --black-soft: #1a1a2e;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  /* Menu: mais curto = menos frames “pesados”; backdrop rápido para não competir com o painel */
  --mobile-nav-slide-duration: 1.08s;
  --mobile-nav-slide-easing: var(--ease-smooth);
  --mobile-nav-backdrop-duration: 0.42s;
}

/* --- Page transition --- */

.page-shell {
  opacity: 0;
  transition: opacity 0.72s var(--ease-smooth);
}

.page-shell.is-loaded {
  opacity: 1;
}

.page-shell.is-leaving {
  opacity: 0;
  transition: opacity 0.7s var(--ease-smooth);
  pointer-events: none;
}

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

  .page-shell.is-leaving {
    transition: none;
  }
}

/* --- Base Resets & Typography --- */

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

html,
body {
  overflow-x: hidden;
  width: 100%;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--gray-800);
  background-color: var(--white);
  line-height: 1.6;
  position: relative;
}

html.is-scroll-locked,
body.is-scroll-locked {
  overflow: hidden !important;
}

body.is-scroll-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .mobile-nav-link,
  .mobile-nav-cta {
    transition-duration: 0.2s !important;
    transition-delay: 0s !important;
  }

  .mobile-nav.open .mobile-nav-link,
  .mobile-nav.open .mobile-nav-cta {
    transition-delay: 0s !important;
  }

  .process-track__fill {
    transition: none !important;
  }

  .modal-backdrop,
  .modal-panel,
  .modal-close {
    transition-duration: 0.01ms !important;
  }

  .home-feature-shimmer::after {
    animation: none;
    opacity: 0;
  }
}

/* --- Navbar --- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transform: translateY(0);
  transition:
    transform 0.38s var(--ease-smooth),
    background var(--transition-base),
    box-shadow var(--transition-base),
    backdrop-filter var(--transition-base);
  background: transparent;
}

.navbar.nav-hide {
  transform: translateY(-110%);
  pointer-events: none;
}

body.menu-open .navbar {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: none;
}

/* Hamburger invisível ao abrir; o X fixo repete a posição do botão (ver JS). */
body.menu-open .mobile-menu-btn {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 1023px) {
  .navbar:not(.navbar-dark):not(.scrolled) {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.45) 0%,
      transparent 100%
    );
  }
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 1px 3px rgb(0 0 0 / 0.06),
    0 1px 2px rgb(0 0 0 / 0.04);
}

.navbar.scrolled .nav-link {
  color: var(--gray-700);
}
.navbar.scrolled .nav-link:hover {
  color: var(--blue-primary);
}
.navbar.scrolled .mobile-menu-btn span {
  background: var(--gray-800);
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  padding: 0.5rem 0;
  transition:
    color var(--transition-base),
    opacity var(--transition-base);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease-smooth);
  border-radius: 1px;
  transform-origin: center;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link:hover {
  color: var(--white);
}

.nav-link.active {
  opacity: 1;
}

.navbar-dark {
  background: var(--white);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.06);
}

.navbar-dark .nav-link {
  color: var(--gray-700);
}
.navbar-dark .nav-link:hover {
  color: var(--blue-primary);
}
.navbar-dark .mobile-menu-btn span {
  background: var(--gray-800);
}

.nav-brand-home {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-brand-home .nav-logo-img {
  transition: opacity 0.45s var(--ease-smooth);
}

.nav-brand-home .nav-logo--hero {
  position: relative;
  opacity: 1;
}

.nav-brand-home .nav-logo--scrolled {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  width: max-content;
}

.navbar.scrolled .nav-brand-home .nav-logo--hero {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
}

.navbar.scrolled .nav-brand-home .nav-logo--scrolled {
  position: relative;
  top: auto;
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

/* --- FAB --- */

/* Flutuar contínuo: alternate faz 0% ↔ 100% (sobe e desce sem saltos no meio) */
@keyframes fab-attention {
  0% {
    transform: translate3d(0, 0, 0);
    box-shadow:
      0 4px 18px rgb(15 23 42 / 0.14),
      0 2px 6px rgb(15 23 42 / 0.08),
      0 0 0 0 rgba(37, 99, 235, 0.35);
  }
  100% {
    transform: translate3d(0, -10px, 0);
    box-shadow:
      0 12px 28px rgb(26 86 219 / 0.35),
      0 4px 12px rgb(15 23 42 / 0.12),
      0 0 0 6px rgba(37, 99, 235, 0.12);
  }
}

.fab-contact {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  z-index: 900;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blue-primary) 0%, var(--blue-dark) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 18px rgb(15 23 42 / 0.14),
    0 2px 6px rgb(15 23 42 / 0.08);
  transition: background 0.25s ease, filter 0.2s ease;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-animation: fab-attention 1.2s ease-in-out infinite alternate;
  animation: fab-attention 1.2s ease-in-out infinite alternate;
}

.fab-contact svg {
  width: 1.4rem;
  height: 1.4rem;
}

/* Manter sempre a animação (subir/descer + pulso); só feedback de cor no hover */
.fab-contact:hover {
  background: linear-gradient(145deg, var(--blue-dark) 0%, var(--blue-deeper) 100%);
}

.fab-contact:active {
  filter: brightness(0.92);
}

.fab-contact:focus-visible {
  outline: 2px solid var(--blue-primary);
  outline-offset: 3px;
}

body.menu-open .fab-contact {
  -webkit-animation: none;
  animation: none;
  will-change: auto;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

/* --- Toasts: topo direito, abaixo da navbar fixa (~4–5rem) + safe-area; acima da navbar (z-index) --- */

.toast-stack {
  position: fixed;
  /* Navbar h-16 (4rem) + margem; sm+ em media query */
  top: calc(4.5rem + max(0px, env(safe-area-inset-top, 0px)));
  bottom: auto;
  right: max(1rem, env(safe-area-inset-right, 0px));
  left: auto;
  z-index: 12050;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  max-width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

@media (min-width: 640px) {
  .toast-stack {
    /* Navbar sm:h-20 (5rem) + margem */
    top: calc(5.35rem + max(0px, env(safe-area-inset-top, 0px)));
  }
}

.toast {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0.85rem 2.35rem 0.85rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.45;
  box-shadow:
    0 10px 28px rgb(15 23 42 / 0.12),
    0 4px 10px rgb(15 23 42 / 0.06);
  background: var(--white);
  color: var(--gray-900, #111827);
  border: 1px solid rgb(15 23 42 / 0.08);
  opacity: 0;
  transform: translate3d(1rem, 0, 0);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  pointer-events: auto;
}

.toast--success {
  border-left: 3px solid #22c55e;
}

.toast--error {
  border-left: 3px solid #ef4444;
}

.toast--in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.toast--out {
  opacity: 0;
  transform: translate3d(0.5rem, 0, 0);
}

.toast__title {
  margin: 0 0 0.2rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gray-900, #111827);
}

.toast__text {
  margin: 0;
  color: rgb(75 85 99);
  font-size: 0.8125rem;
}

.toast__close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  color: rgb(107 114 128);
  cursor: pointer;
  padding: 0;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.toast__close:hover {
  background: rgb(243 244 246);
  color: rgb(17 24 39);
}

.toast__close:focus-visible {
  outline: 2px solid var(--blue-primary);
  outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transition-duration: 0.01ms;
  }
}

/* --- Language switcher --- */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.lang-btn {
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.38rem 0.42rem;
  min-width: 2rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--gray-600);
  cursor: pointer;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.lang-btn:hover {
  color: var(--blue-primary);
}

.lang-btn.is-active {
  background: var(--blue-primary);
  color: var(--white);
  border-color: var(--blue-primary);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--blue-primary);
  outline-offset: 2px;
}

.navbar:not(.navbar-dark):not(.scrolled) .lang-btn {
  color: rgba(255, 255, 255, 0.88);
}

.navbar:not(.navbar-dark):not(.scrolled) .lang-btn:hover {
  color: var(--white);
}

.navbar:not(.navbar-dark):not(.scrolled) .lang-btn.is-active {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.navbar.scrolled:not(.navbar-dark) .lang-btn.is-active {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  color: var(--white);
}

.navbar-dark .lang-btn {
  color: var(--gray-500);
}

.navbar-dark .lang-btn:hover {
  color: var(--blue-primary);
}

.navbar-dark .lang-btn.is-active {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  color: var(--white);
}

/* --- Mobile menu button --- */

.mobile-menu-btn {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1100;
  position: relative;
  border: none;
  background: transparent;
  border-radius: 14px;
  transition: background var(--transition-base);
}

.mobile-menu-btn:focus-visible {
  outline: 2px solid var(--blue-primary);
  outline-offset: 2px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  position: absolute;
  left: 13px;
  transition:
    top 0.3s var(--ease-smooth),
    transform 0.3s var(--ease-smooth),
    opacity 0.2s ease,
    background 0.3s ease;
}

.mobile-menu-btn span:nth-child(1) {
  top: 16px;
}
.mobile-menu-btn span:nth-child(2) {
  top: 23px;
  width: 16px;
}
.mobile-menu-btn span:nth-child(3) {
  top: 30px;
}

/* Contentor interno: mesma coluna que a navbar (max-w-7xl + margens). O X fica dentro disto. */
.mobile-nav-shell {
  position: relative;
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-sizing: border-box;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

@media (min-width: 640px) {
  .mobile-nav-shell {
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
  }
}

@media (min-width: 1024px) {
  .mobile-nav-shell {
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
  }
}

/* X: canto superior direito da coluna do conteúdo (igual ao hamburger na navbar) */
.mobile-nav-close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: 40px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 14px;
  background: var(--blue-primary);
  color: var(--white);
  cursor: pointer;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease;
}

.mobile-nav-close:hover {
  background: var(--blue-dark);
  color: var(--white);
}

.mobile-nav-close:focus-visible {
  outline: 2px solid var(--blue-primary);
  outline-offset: 2px;
}

/* --- Full-screen menu --- */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  visibility: hidden;
}

.mobile-nav.open,
.mobile-nav.closing {
  pointer-events: auto;
  visibility: visible;
}

/* Um paint com overlay visível e painel ainda fora do ecrã — sem isto o Chrome/Safari
   muitas vezes aplica open num único frame e o transform parece instantâneo. */
.mobile-nav.mobile-nav--arm-open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 42, 0.42);
  opacity: 0;
  cursor: pointer;
  transition: opacity var(--mobile-nav-backdrop-duration) var(--mobile-nav-slide-easing);
  contain: strict;
}

.mobile-nav.open .mobile-nav-backdrop {
  opacity: 1;
}

/* Fecho: escurecimento recua em paralelo ao painel */
.mobile-nav.closing .mobile-nav-backdrop {
  opacity: 0;
}

.mobile-nav-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-height: min(92dvh, 880px);
  /* Cor sólida: gradiente + painel a mover custa mais por frame */
  background: #f8fafc;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -8px 40px rgb(0 0 0 / 0.1);
  transform: translate3d(0, 105%, 0);
  backface-visibility: hidden;
  transition: transform var(--mobile-nav-slide-duration) var(--mobile-nav-slide-easing);
  overflow: hidden;
}

.mobile-nav.open .mobile-nav-panel {
  transform: translate3d(0, 0, 0);
}

/* Fecho: painel sobe suavemente (mesma curva e duração que a abertura) */
.mobile-nav.closing .mobile-nav-panel {
  transform: translate3d(0, -105%, 0);
  transition: transform var(--mobile-nav-slide-duration) var(--mobile-nav-slide-easing);
}

.mobile-nav.menu-snap .mobile-nav-panel {
  transition: none !important;
  transform: translate3d(0, 105%, 0) !important;
}

.mobile-nav-layout {
  display: block;
  padding-top: 2.75rem;
  padding-bottom: 2.25rem;
  padding-left: 0;
  padding-right: 0;
  width: 100%;
  max-height: min(92dvh, 880px);
  overflow-y: auto;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mobile-nav-link {
  display: block;
  color: var(--gray-900);
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  padding: 0.55rem 0;
  opacity: 0;
  /* Opacidade curta e sem stagger — evita 5 fades em paralelo com o slide do painel */
  transition: color 0.25s var(--ease-smooth), opacity 0.26s var(--ease-smooth);
  position: relative;
}

.mobile-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.35rem;
  width: 0;
  height: 2px;
  background: var(--blue-primary);
  border-radius: 1px;
  transition: width 0.4s var(--ease-smooth);
}

.mobile-nav-link:hover {
  color: var(--blue-primary);
}

.mobile-nav-link:hover::after {
  width: 2rem;
}

.mobile-nav-link.is-active {
  color: var(--blue-primary);
}

.mobile-nav-link.is-active::after {
  width: 1.5rem;
}

.mobile-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.75rem;
  padding: 1rem 1.75rem;
  background: var(--blue-primary);
  color: var(--white);
  font-weight: 600;
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  border-radius: 999px;
  opacity: 0;
  transition: background 0.25s var(--ease-smooth), opacity 0.26s var(--ease-smooth);
  box-shadow: none;
}

.mobile-nav-cta:hover {
  background: var(--blue-dark);
}

.mobile-nav.open .mobile-nav-cta:hover {
  transform: translate3d(0, -1px, 0);
}

.mobile-nav.open .mobile-nav-link {
  opacity: 1;
  transition-delay: 0.06s;
}

.mobile-nav.open .mobile-nav-cta {
  opacity: 1;
  transition-delay: 0.06s;
}

/* Ao fechar: sem animação própria nos links — só o painel move (evita “tremer” / neon) */
.mobile-nav.closing .mobile-nav-link,
.mobile-nav.closing .mobile-nav-cta {
  opacity: 1;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav-panel,
  .mobile-nav.closing .mobile-nav-panel {
    transition-duration: 0.28s;
  }

  .mobile-nav-backdrop,
  .mobile-nav.closing .mobile-nav-backdrop {
    transition-duration: 0.22s;
  }

  .mobile-nav.closing .mobile-nav-link,
  .mobile-nav.closing .mobile-nav-cta {
    opacity: 1;
    transform: none;
    transition: none;
  }

  @media (min-width: 1024px) {
    .mobile-nav.closing .mobile-nav-aside {
      opacity: 1;
      transform: none;
      transition: none;
    }
  }
}

/* Aside: desktop only */
.mobile-nav-aside {
  display: none;
}

.mobile-nav-aside-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 0.45rem;
}

.mobile-nav-aside a {
  color: var(--gray-700);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.45;
  transition: color var(--transition-base);
}

.mobile-nav-aside a:hover {
  color: var(--blue-primary);
}

.mobile-nav-aside-address {
  line-height: 1.55;
  margin-bottom: 1.65rem;
}

.mobile-nav-social {
  display: flex;
  gap: 0.65rem;
  margin-top: 0;
  margin-bottom: 1.65rem;
}

.mobile-nav-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gray-100);
  color: var(--gray-700);
  transition:
    background var(--transition-base),
    color var(--transition-base),
    transform var(--transition-fast);
}

.mobile-nav-social a:hover {
  background: var(--gray-200);
  color: var(--blue-primary);
  transform: translateY(-2px);
}

.mobile-nav-social svg {
  width: 22px;
  height: 22px;
}

/* Menu móvel: ecrã inteiro (painel não limitado a ~92vh) */
@media (max-width: 1023px) {
  .mobile-nav-panel {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-height: none;
    min-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    transform: translate3d(0, 100%, 0);
  }

  .mobile-nav.open .mobile-nav-panel {
    transform: translate3d(0, 0, 0);
  }

  .mobile-nav.closing .mobile-nav-panel {
    transform: translate3d(0, -100%, 0);
  }

  .mobile-nav-layout {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-content: safe center;
    align-items: center;
    padding-top: max(3.75rem, calc(env(safe-area-inset-top) + 3rem));
    padding-bottom: max(1.75rem, env(safe-area-inset-bottom));
    padding-left: 0;
    padding-right: 0;
    text-align: center;
  }

  .mobile-nav-links {
    align-items: center;
    width: 100%;
    max-width: min(92vw, 28rem);
  }

  .mobile-nav-link {
    font-size: clamp(2.35rem, 8vw, 3.75rem);
    padding: 0.72rem 0;
    text-align: center;
  }

  .mobile-nav-link::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .mobile-nav-link:hover::after {
    width: 2.5rem;
  }

  .mobile-nav-link.is-active::after {
    width: 2rem;
  }

  .mobile-nav-cta {
    margin-top: 2.25rem;
    font-size: clamp(1.05rem, 3.2vw, 1.2rem);
    padding: 1.1rem 2rem;
  }

  .mobile-nav.menu-snap .mobile-nav-panel {
    transform: translate3d(0, 100%, 0) !important;
  }
}

@media (min-width: 1024px) {
  .mobile-nav {
    justify-content: flex-end;
  }

  .mobile-nav-panel {
    display: flex;
    flex-direction: column;
    max-height: none;
    height: 100dvh;
    border-radius: 0;
    transform: translate3d(0, 100%, 0);
    box-shadow: none;
  }

  .mobile-nav.open .mobile-nav-panel {
    transform: translate3d(0, 0, 0);
  }

  .mobile-nav.closing .mobile-nav-panel {
    transform: translate3d(0, -100%, 0);
  }

  .mobile-nav-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    min-height: 100dvh;
    padding-top: 5.5rem;
    padding-bottom: 4rem;
    padding-left: 0;
    padding-right: 0;
    max-height: none;
    overflow-y: visible;
  }

  .mobile-nav-aside {
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 0.52s var(--ease-smooth) 0.06s,
      transform 0.52s var(--ease-smooth) 0.06s;
  }

  .mobile-nav.open .mobile-nav-aside {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-nav.closing .mobile-nav-aside {
    opacity: 1;
    transform: translateY(0);
    transition: none;
  }

  .mobile-nav.menu-snap .mobile-nav-panel {
    transform: translate3d(0, 100%, 0) !important;
  }
}

/* --- Buttons --- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--blue-primary);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition:
    background var(--transition-base),
    transform var(--transition-fast),
    box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -6px rgb(15 23 42 / 0.18);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--transition-base);
  letter-spacing: 0.01em;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--gray-800);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  border: 2px solid var(--gray-200);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-outline-dark:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px -4px rgb(15 23 42 / 0.1);
}

/* --- Cards --- */

.card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  transition:
    transform 0.35s var(--ease-smooth),
    box-shadow 0.35s var(--ease-smooth),
    border-color 0.35s ease;
  border: 1px solid var(--gray-100);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-200);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition:
    background 0.35s var(--ease-smooth),
    transform 0.35s var(--ease-smooth);
}

.card:hover .card-icon {
  background: var(--blue-primary);
  transform: scale(1.05);
}

.card:hover .card-icon svg {
  color: var(--white);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--blue-primary);
  transition: color var(--transition-base);
}

/* --- Hero Section --- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--black);
}

@media (max-width: 639px) {
  .hero {
    min-height: 72svh;
    min-height: 72vh;
    max-height: none;
    align-items: stretch;
    justify-content: flex-end;
  }
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.15) 35%,
      rgba(0, 0, 0, 0.65) 100%
    ),
    linear-gradient(90deg, rgba(10, 36, 99, 0.55) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-bottom: 4.5rem;
  padding-top: 5.25rem;
}

@media (max-width: 639px) {
  .hero-content {
    min-height: 0;
    justify-content: flex-end;
    padding-top: 4.75rem;
    padding-bottom: 3.75rem;
  }
}

@media (min-width: 640px) {
  .hero-content {
    padding: 7rem 1.5rem 6rem;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    padding: 0 2rem;
    justify-content: center;
    min-height: 100vh;
  }
}

.hero-dots {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.625rem;
  z-index: 15;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.hero-dot.active {
  background: var(--white);
  transform: scale(1.3);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--blue-accent);
  z-index: 15;
  transition: none;
  will-change: width;
}

/* --- Page Header (inner pages) --- */

.page-header {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 280px;
  padding: 0 0 2rem;
}

@media (min-width: 640px) {
  .page-header {
    min-height: 340px;
    padding-bottom: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .page-header {
    min-height: 420px;
    padding-bottom: 3.5rem;
  }
}

.page-header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-header-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.1) 30%,
      rgba(10, 36, 99, 0.8) 100%
    ),
    linear-gradient(90deg, rgba(10, 36, 99, 0.5) 0%, transparent 60%);
  pointer-events: none;
}

.page-header-content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 6rem 1.25rem 0;
}

@media (min-width: 640px) {
  .page-header-content {
    padding: 7rem 1.5rem 0;
  }
}

@media (min-width: 1024px) {
  .page-header-content {
    padding: 8rem 2rem 0;
  }
}

/* --- Section Styles --- */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-primary);
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .section-label {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }
}

.section-label::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--blue-primary);
  border-radius: 1px;
}

@media (min-width: 640px) {
  .section-label::before {
    width: 24px;
  }
}

.section-title {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 640px;
}

@media (min-width: 640px) {
  .section-subtitle {
    font-size: 1.125rem;
  }
}

/* --- Portfolio --- */

.portfolio-work-section {
  background: var(--white);
  border-top: 1px solid var(--gray-100);
}

.portfolio-work-head {
  border-bottom: 1px solid var(--gray-100);
  padding-bottom: 2rem;
}

@media (min-width: 1024px) {
  .portfolio-work-head {
    border-bottom: none;
    padding-bottom: 0;
  }
}

.portfolio-filters-bar__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 0.85rem;
}

.portfolio-filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  transition:
    transform 0.25s var(--ease-smooth),
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.portfolio-filter-pill:hover {
  transform: translateY(-2px);
  border-color: var(--gray-300);
  color: var(--gray-800);
}

.portfolio-filter-pill.is-active {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  color: var(--white);
  box-shadow: 0 4px 16px -6px rgb(26 86 219 / 0.45);
}

.portfolio-masonry {
  align-items: stretch;
}

.portfolio-item.portfolio-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow:
    0 1px 3px rgb(15 23 42 / 0.04),
    0 8px 24px -12px rgb(15 23 42 / 0.08);
  cursor: pointer;
  transition:
    transform 0.35s var(--ease-smooth),
    box-shadow 0.35s var(--ease-smooth),
    border-color 0.3s ease;
}

.portfolio-item.portfolio-card:focus {
  outline: none;
}

.portfolio-item.portfolio-card:focus-visible {
  outline: 2px solid var(--blue-primary);
  outline-offset: 4px;
}

.portfolio-item.portfolio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px -16px rgb(15 23 42 / 0.14);
  border-color: var(--gray-300);
}

.portfolio-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-100);
}

.portfolio-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-smooth);
}

.portfolio-item.portfolio-card:hover .portfolio-card__thumb img {
  transform: scale(1.05);
}

.portfolio-card__meta {
  padding: 1.2rem 1.25rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.portfolio-card__cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-primary);
}

.portfolio-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  line-height: 1.25;
}

.portfolio-card__excerpt {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.55;
  margin-top: 0.15rem;
}

.portfolio-card__cta {
  margin-top: auto;
  padding-top: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-primary);
}

.portfolio-card__cta svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.35s var(--ease-smooth);
}

.portfolio-item.portfolio-card:hover .portfolio-card__cta svg {
  transform: translateX(4px);
}

/* --- Modal projeto --- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgb(15 23 42 / 0.65);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s;
}

@media (min-width: 640px) {
  .modal-backdrop {
    padding: 1.5rem 2rem;
  }
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  overscroll-behavior: contain;
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: min(88vh, 800px);
  overflow: hidden;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 20px 50px -24px rgb(15 23 42 / 0.35);
  transform: translateY(12px);
  opacity: 0;
  transition:
    transform 0.2s var(--ease-smooth),
    opacity 0.18s ease;
}

.modal-backdrop.open .modal-panel {
  transform: translateY(0);
  opacity: 1;
}

.modal-hero {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--gray-100);
}

.modal-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--white);
  background: rgb(15 23 42 / 0.55);
  transition:
    background 0.2s ease,
    transform 0.2s var(--ease-smooth);
}

.modal-close:hover {
  background: rgb(15 23 42 / 0.75);
  transform: scale(1.06);
}

.modal-close:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.modal-close svg {
  width: 1.1rem;
  height: 1.1rem;
}

.modal-body {
  padding: 1.5rem 1.5rem 1.75rem;
  max-height: calc(min(88vh, 800px) - 56.25vw);
  overflow-y: auto;
}

@media (min-width: 640px) {
  .modal-body {
    padding: 1.75rem 2rem 2rem;
    max-height: calc(min(88vh, 800px) - 360px);
  }
}

.modal-body__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0.25rem 0 0.6rem;
}

@media (min-width: 640px) {
  .modal-body__title {
    font-size: 1.5rem;
  }
}

/* --- Processo (scroll + barra) — serviços --- */

.process-scroll-section {
  position: relative;
  z-index: 2;
  padding: 5rem 0 5.5rem;
  background: linear-gradient(
    180deg,
    var(--gray-50) 0%,
    var(--white) 55%,
    var(--white) 100%
  );
}

@media (min-width: 1024px) {
  .process-scroll-section {
    padding: 6.5rem 0 6.5rem;
  }
}

.process-track-hint {
  margin-top: 0.25rem;
}

.process-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--gray-200);
  overflow: hidden;
  margin-bottom: 2.25rem;
}

.process-track__fill {
  position: absolute;
  inset: 0;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-accent));
  transition: transform 0.14s ease-out;
}

.process-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.process-step-card {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  box-shadow: 0 1px 4px rgb(15 23 42 / 0.04);
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.process-step-card__num {
  flex-shrink: 0;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  background: var(--gray-100);
  color: var(--gray-500);
  transition:
    background 0.28s ease,
    color 0.28s ease;
}

.process-step-card.is-active {
  border-color: rgba(26, 86, 219, 0.38);
  box-shadow: 0 10px 32px -14px rgb(26 86 219 / 0.35);
}

.process-step-card.is-active .process-step-card__num {
  background: var(--blue-primary);
  color: var(--white);
}

.process-step-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 0.3rem;
  letter-spacing: -0.02em;
}

.process-step-card__text {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.55;
  margin: 0;
}

/* --- Contact Form --- */

.form-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: var(--gray-800);
  background: var(--white);
  transition: all var(--transition-base);
  outline: none;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder {
  color: var(--gray-400);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

@media (min-width: 640px) {
  textarea.form-input {
    min-height: 140px;
  }
}

.form-select-wrap {
  position: relative;
}

.form-select-wrap::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  pointer-events: none;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  opacity: 0.9;
  transition: opacity var(--transition-base);
}

.form-select-wrap:focus-within::after {
  opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231a56db' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
}

select.form-input.form-select {
  cursor: pointer;
  padding-right: 3rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  line-height: 1.4;
}

select.form-input.form-select option {
  font-weight: 500;
}

/* Custom service dropdown (contact form) */
.form-select-wrap--custom {
  position: relative;
}

.form-select-wrap--custom::after {
  display: none;
}

.form-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: var(--gray-800);
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-base);
}

.form-select-trigger:hover {
  border-color: var(--gray-300);
}

.form-select-trigger:focus-visible {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-select-wrap--custom.is-open .form-select-trigger {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-select-trigger__text {
  flex: 1;
  min-width: 0;
  font-weight: 500;
}

.form-select-trigger__text.is-placeholder {
  color: var(--gray-400);
  font-weight: 400;
}

.form-select-trigger__icon {
  flex-shrink: 0;
  color: var(--gray-500);
  display: flex;
  transition: transform 0.2s ease;
}

.form-select-wrap--custom.is-open .form-select-trigger__icon {
  transform: rotate(180deg);
  color: var(--blue-primary);
}

.form-select-list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  box-shadow:
    0 12px 28px rgb(15 23 42 / 0.12),
    0 4px 10px rgb(15 23 42 / 0.06);
  max-height: 240px;
  overflow-y: auto;
}

.form-select-list__item {
  padding: 0.65rem 1.1rem;
  font-size: 0.9375rem;
  color: var(--gray-800);
  cursor: pointer;
  transition: background 0.15s ease;
}

.form-select-list__item:hover {
  background: var(--blue-light);
  color: var(--blue-dark);
}

.form-select-list__item.is-selected {
  font-weight: 600;
  color: var(--blue-primary);
}

.form-field-hint {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin: 0.35rem 0 0;
}

.form-field-hint--count {
  text-align: right;
}

.char-count {
  font-variant-numeric: tabular-nums;
  color: var(--gray-400);
}

.char-count--warn {
  color: #b45309;
}

.phone-field-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

/* País do telefone: mesmo padrão do serviço, compacto à esquerda */
.form-select-wrap--country.form-select-wrap--custom {
  flex: 0 0 auto;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  width: auto;
  min-width: 7rem;
  max-width: 9.25rem;
}

.form-select-wrap--country .form-select-trigger {
  flex: 1;
  min-height: 0;
  box-sizing: border-box;
  padding: 0.875rem 0.55rem 0.875rem 0.85rem;
  gap: 0.35rem;
}

.form-select-wrap--country .form-select-trigger__text {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.form-select-wrap--country .form-select-trigger__icon {
  transform: none;
}

.form-select-wrap--country.is-open .form-select-trigger__icon {
  transform: rotate(180deg);
}

.form-select-wrap--country .form-select-list {
  left: 0;
  right: auto;
  min-width: 100%;
  width: max-content;
}

.phone-field-row > .form-input[type="tel"] {
  flex: 1;
  min-width: 0;
  align-self: stretch;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

/* --- Footer --- */

.footer {
  background: var(--gray-900);
  color: var(--gray-400);
}

.footer a {
  transition: color var(--transition-base);
}
.footer a:hover {
  color: var(--white);
}

/* Links Política / Termos — evitar sobreposição do FAB fixo (canto inferior direito) */
.footer-legal-links {
  position: relative;
  z-index: 910;
  padding-right: max(0.25rem, calc(3.5rem + 1.25rem + 0.5rem));
}

/* CTA final: faixa própria acima do footer */
.cta-overlap-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgb(37 99 235 / 0.11) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgb(26 86 219 / 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #f1f5f9 0%, #e8eef5 50%, #f1f5f9 100%);
  border-top: 1px solid rgb(226 232 240 / 0.85);
  padding: 3rem 0 3.5rem;
}

.cta-overlap-section::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 70%;
  background: radial-gradient(circle at 50% 0%, rgb(255 255 255 / 0.55) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 640px) {
  .cta-overlap-section {
    padding: 3.75rem 0 4.5rem;
  }
}

.cta-overlap-section__inner {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

/* --- CTA inline --- */

.cta-inline {
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  background: var(--white);
  text-align: center;
}

.cta-inline--float {
  position: relative;
  z-index: 3;
  box-shadow:
    0 1px 2px rgb(15 23 42 / 0.04),
    0 20px 50px -15px rgb(15 23 42 / 0.14),
    0 0 0 1px rgb(255 255 255 / 0.8) inset;
}

/* CTA final — aspeto institucional (todas as páginas) */
.cta-inline--pro {
  position: relative;
  text-align: center;
  padding: 2.25rem 1.5rem 2.5rem;
  border-radius: 20px;
  border: 1px solid rgb(226 232 240 / 0.95);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.97) 0%, rgb(248 250 252 / 0.99) 100%);
  overflow: visible;
}

.cta-inline.cta-inline--pro.cta-inline--float::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(12rem, 56%);
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, var(--blue-primary), var(--blue-accent), transparent);
  opacity: 0.88;
  pointer-events: none;
}

@media (min-width: 640px) {
  .cta-inline--pro {
    padding: 2.65rem 2.5rem 3rem;
    border-radius: 22px;
  }
}

.cta-inline__eyebrow {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-primary);
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgb(37 99 235 / 0.08);
  border: 1px solid rgb(37 99 235 / 0.12);
}

.cta-inline__title {
  font-size: clamp(1.4rem, 3.4vw, 1.95rem);
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin: 0 auto 0.75rem;
  max-width: 34rem;
}

.cta-inline__lead {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.68;
  margin: 0 auto 1.65rem;
  max-width: 30rem;
}

@media (min-width: 640px) {
  .cta-inline__lead {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }
}

.cta-inline__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 0.85rem;
}

.cta-overlap-section .cta-inline__actions .btn-outline-dark {
  background: rgb(255 255 255 / 0.65);
  backdrop-filter: blur(8px);
}

@media (min-width: 640px) {
  .cta-inline:not(.cta-inline--pro) {
    padding: 3rem 2.5rem;
  }
}

/* --- Serviços: vales de confiança + ritmo das ofertas --- */

.services-trust-strip {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--gray-100);
}

.service-offering {
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--gray-100);
}

@media (min-width: 1024px) {
  .service-offering {
    padding-bottom: 4rem;
    margin-bottom: 4rem;
  }
}

.service-offering:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* --- Brands section --- */

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  padding: 0 1rem;
  opacity: 0.45;
  filter: grayscale(100%);
  text-decoration: none;
  color: inherit;
  transition:
    opacity 0.35s var(--ease-smooth),
    filter 0.35s var(--ease-smooth);
}

.brand-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* --- Páginas legais (política / termos) --- */

.legal-prose h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900, #111827);
}

.legal-prose h2:first-child {
  margin-top: 0;
}

.legal-prose p {
  margin-bottom: 1rem;
}

.legal-prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-prose a {
  color: #1a56db;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-prose a:hover {
  color: #0f3a8e;
}

.brand-logo img,
.brand-logo svg {
  max-height: 100%;
  max-width: 120px;
  object-fit: contain;
}

/* --- Why Cooldoor feature cards --- */

@media (prefers-reduced-motion: reduce) {
  .why-feature {
    transition: none !important;
  }
}

/* --- Stats Counter --- */

.stat-number {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-deeper));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

/* --- Scrollbar --- */

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--gray-50);
}
::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* --- Selection --- */

::selection {
  background: rgba(37, 99, 235, 0.15);
  color: var(--blue-deeper);
}

/* --- Mobile Responsive --- */

@media (max-width: 767px) {
  .card {
    padding: 1.5rem;
  }
  .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
  .hero-dots {
    bottom: 1.5rem;
  }
}

/* --- Imagem destaque (início): reflexo azul a atravessar --- */
@keyframes home-feature-shine {
  0% {
    background-position: 125% 0;
  }
  100% {
    background-position: -125% 0;
  }
}

.home-feature-shimmer {
  position: relative;
}

.home-feature-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent 36%,
    rgba(37, 99, 235, 0.22) 50%,
    transparent 64%
  );
  background-size: 240% 100%;
  animation: home-feature-shine 2.8s ease-in-out infinite;
}
