/*
Design philosophy: regionalismo contemporâneo elegante com prioridade mobile-first.
Referências: profundidade sutil, contraste editorial, leitura vertical no celular, cartões institucionais e navegação simples.
Regra de consistência: cada escolha visual deve reforçar clareza, confiança e facilidade de uso em smartphone antes do desktop.
*/
:root {
  --bg: #eef4fb;
  --bg-strong: #dce9f7;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --surface-dark: #143264;
  --surface-dark-2: #1b4784;
  --surface-dark-3: #10274f;
  --text: #143264;
  --text-soft: #486181;
  --text-light: #f7fbff;
  --line: rgba(20, 50, 100, 0.14);
  --line-strong: rgba(20, 50, 100, 0.24);
  --accent: #f1b840;
  --accent-2: #a27bb5;
  --accent-soft: rgba(113, 195, 228, 0.16);
  --success: #1b4784;
  --shadow-soft: 0 18px 42px rgba(17, 39, 49, 0.09);
  --shadow-strong: 0 28px 70px rgba(9, 23, 31, 0.16);
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --container: min(1120px, calc(100vw - 1.5rem));
  --header-height: 88px;
  --transition: 240ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(113, 195, 228, 0.18), transparent 24%),
    radial-gradient(circle at right 18%, rgba(162, 123, 181, 0.14), transparent 20%),
    linear-gradient(180deg, #f7fbff 0%, #eef4fb 46%, #dce9f7 100%);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: multiply;
  background-image:
    linear-gradient(90deg, transparent 0, transparent 96%, rgba(20, 50, 100, 0.04) 100%),
    radial-gradient(circle at 20% 30%, rgba(20, 50, 100, 0.14) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(241, 184, 64, 0.24) 0 1px, transparent 1px);
  background-size: auto, 24px 24px, 32px 32px;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  z-index: 1000;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: var(--surface-dark);
  color: var(--text-light);
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0.75rem;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(18px);
  background: rgba(247, 251, 255, 0.82);
  border-bottom: 1px solid rgba(20, 50, 100, 0.08);
}

.header-shell {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-mark {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 28px rgba(20, 50, 100, 0.16);
  border: 1px solid rgba(20, 50, 100, 0.08);
  flex-shrink: 0;
  overflow: hidden;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-copy {
  min-width: 0;
  display: grid;
  gap: 0.05rem;
}

.brand-copy strong,
.section-title,
.page-title,
.hero h1,
.hero h2,
.service-card h3,
.contact-card h3,
.feature-panel h3,
.cct-note h3,
.callout-banner h3 {
  font-family: "Bricolage Grotesque", sans-serif;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand-copy small {
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.35;
}

.menu-toggle {
  width: auto;
  min-width: 3rem;
  padding: 0.7rem 0.85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(20, 50, 100, 0.1);
  box-shadow: var(--shadow-soft);
  color: var(--text);
}

.menu-toggle span {
  width: 1.15rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle strong {
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-panel {
  position: fixed;
  inset: var(--header-height) 0 auto 0;
  padding: 0.75rem;
  display: grid;
  gap: 0.85rem;
  background: rgba(238, 244, 251, 0.98);
  border-bottom: 1px solid rgba(20, 50, 100, 0.08);
  box-shadow: 0 20px 40px rgba(9, 23, 31, 0.14);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-panel.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.site-nav {
  display: grid;
  gap: 0.35rem;
}

.site-nav a,
.header-cta,
.button,
.hero-dot,
.hero-arrow {
  transition:
    transform var(--transition),
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    opacity var(--transition);
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 50, 100, 0.08);
  color: var(--text);
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.header-cta:hover,
.header-cta:focus-visible,
.button:hover,
.button:focus-visible,
.hero-arrow:hover,
.hero-arrow:focus-visible,
.hero-dot:hover,
.hero-dot:focus-visible {
  transform: translateY(-2px);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.2rem;
  border-radius: 999px;
  padding: 0.95rem 1.25rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: center;
}

.header-cta,
.button-primary {
  color: var(--text-light);
  background: linear-gradient(135deg, #143264 0%, #71c3e4 100%);
  box-shadow: 0 16px 34px rgba(20, 50, 100, 0.22);
}

.button-secondary {
  color: var(--surface-dark);
  background: rgba(113, 195, 228, 0.18);
  border: 1px solid rgba(113, 195, 228, 0.42);
  box-shadow: 0 16px 30px rgba(20, 50, 100, 0.12);
}


.button-light {
  color: var(--surface-dark);
  background: var(--surface-strong);
}

.button-secondary-light {
  color: var(--text-light);
  border: 1px solid rgba(113, 195, 228, 0.28);
  background: rgba(113, 195, 228, 0.12);
}

.hero {
  position: relative;
}

.hero-carousel {
  position: relative;
  min-height: clamp(42rem, 100svh, 58rem);
  overflow: hidden;
}

.hero-carousel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 7rem;
  background: linear-gradient(180deg, rgba(244, 239, 231, 0) 0%, rgba(244, 239, 231, 1) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 720ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 50, 100, 0.2) 0%, rgba(20, 50, 100, 0.74) 100%),
    linear-gradient(90deg, rgba(20, 50, 100, 0.9) 0%, rgba(20, 50, 100, 0.62) 42%, rgba(113, 195, 228, 0.22) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: clamp(42rem, calc(100svh - var(--header-height)), 54rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: clamp(8rem, 16vh, 10rem);
}

.hero-content::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 16%;
  width: clamp(10rem, 40vw, 17rem);
  height: clamp(10rem, 40vw, 17rem);
  border-radius: 38% 62% 55% 45% / 44% 38% 62% 56%;
  background: radial-gradient(circle at 30% 30%, rgba(162, 123, 181, 0.24), rgba(162, 123, 181, 0) 70%);
  filter: blur(12px);
}

.hero-kicker,
.section-label {
  margin: 0 0 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 800;
}

.hero-kicker {
  color: rgba(247, 251, 255, 0.78);
}

.hero h1,
.hero h2,
.page-title,
.section-title {
  line-height: 1;
  margin: 0;
}

.hero h1,
.hero h2 {
  max-width: min(16ch, 100%);
  color: var(--text-light);
  font-size: clamp(1.95rem, 6.2vw, 4.1rem);
  text-wrap: balance;
}

.hero-text,
.section-lead,
.intro-copy p,
.feature-panel p,
.service-card p,
.contact-card p,
.cct-card p,
.footer-grid p,
.hero-page-text {
  font-size: 1rem;
}

.hero-text {
  max-width: 32rem;
  margin: 0.8rem 0 0;
  color: rgba(247, 251, 255, 0.9);
  font-size: 0.96rem;
}

.hero-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
  width: min(100%, 30rem);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  z-index: 4;
  width: min(calc(100% - 1.5rem), 16rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: rgba(247, 251, 255, 0.2);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(113, 195, 228, 0.18);
}

.hero-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex: 1 1 auto;
}

.hero-dot,
.hero-arrow {
  border-radius: 999px;
  cursor: pointer;
}

.hero-dot {
  width: 0.7rem;
  height: 0.7rem;
  background: rgba(113, 195, 228, 0.42);
}

.hero-dot.is-active {
  width: 1.7rem;
  background: var(--accent);
}

.hero-arrow {
  width: 2.3rem;
  height: 2.3rem;
  color: var(--text-light);
  background: rgba(113, 195, 228, 0.16);
}

.section,
.page-hero {
  padding: 4.25rem 0;
}

.intro-band {
  position: relative;
  margin-top: 0;
  z-index: 3;
}

.intro-grid,
.page-hero-grid,
.contact-layout,
.footer-grid,
.cct-grid,
.section-grid {
  display: grid;
  gap: 1.5rem;
}

.section-label {
  color: var(--accent);
}

.section-title,
.page-title {
  font-size: clamp(2rem, 8vw, 4.2rem);
  text-wrap: balance;
}

.section-title.light {
  color: var(--text-light);
}

.section-lead {
  margin: 1.1rem 0 0;
  color: var(--text-soft);
}

.intro-copy,
.content-stack,
.section-stack,
.contact-form-area {
  display: grid;
  gap: 1.25rem;
}

.feature-panel,
.company-form-card,
.service-card,
.contact-card,
.page-hero-card,
.map-card,
.callout-banner,
.cct-card,
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.feature-panel,
.company-form-card,
.service-card,
.contact-card,
.page-hero-card,
.map-card,
.cct-card {
  border-radius: var(--radius-md);
  padding: 1.35rem;
}

.feature-panel.subdued,
.accent-card,
.callout-banner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(162, 123, 181, 0.14) 100%);
}

.stats-grid,
.services-grid,
.contact-cards,
.form-grid {
  display: grid;
  gap: 1rem;
}

.stat-card {
  border-radius: 20px;
  padding: 1.15rem;
}

.stat-card strong,
.contact-card h3,
.service-card h3,
.feature-panel h3,
.cct-note h3,
.callout-banner h3 {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.stat-card span,
.contact-card small,
.form-feedback {
  color: var(--text-soft);
}

.cct-section {
  padding-top: 1rem;
}

.cct-primary {
  color: var(--text-light);
  background: linear-gradient(135deg, #143264 0%, #2d5a96 38%, #4d92bf 70%, #71c3e4 100%);
  border-color: rgba(247, 251, 255, 0.12);
  box-shadow: var(--shadow-strong);
}

.cct-actions,
.form-actions,
.split-actions {
  display: grid;
  gap: 0.75rem;
}

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

label {
  display: grid;
  gap: 0.45rem;
}

label span {
  font-weight: 700;
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  min-height: 3.15rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(20, 50, 100, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(31, 80, 101, 0.3);
  outline-offset: 3px;
}

.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.8rem;
}

.checkbox-row input {
  width: 1.15rem;
  min-height: 1.15rem;
  margin-top: 0.25rem;
  padding: 0;
}

.form-feedback {
  margin: 0;
  min-height: 1.5rem;
}

.form-feedback.is-success {
  color: var(--success);
}

.contact-layout {
  align-items: start;
}

.contact-cards.stacked {
  display: grid;
  gap: 1rem;
}

.map-card {
  overflow: hidden;
  padding: 0;
}

.map-card iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
}

.callout-banner {
  display: grid;
  gap: 1rem;
}

.page-hero {
  padding-top: 2.2rem;
}

.compact-hero {
  background:
    radial-gradient(circle at top left, rgba(162, 123, 181, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(220, 233, 247, 0.78) 100%);
}

.page-hero-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(113, 195, 228, 0.14) 100%);
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 55;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  background: linear-gradient(135deg, #143264 0%, #71c3e4 100%);
  box-shadow: 0 18px 34px rgba(20, 50, 100, 0.24);
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.back-to-top:hover,
.back-to-top:focus-visible,
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(-2px) scale(1.02);
  pointer-events: auto;
}

.back-to-top span {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(20, 50, 100, 0.08);
  background: rgba(255, 255, 255, 0.52);
}

.footer-grid strong {
  display: inline-block;
  margin-bottom: 0.4rem;
}

.narrow {
  max-width: 48rem;
}

@media (min-width: 720px) {
  :root {
    --container: min(1120px, calc(100vw - 3rem));
  }

  .hero-content {
    padding-top: calc(var(--header-height) + 2.5rem);
    padding-bottom: 9rem;
  }

  .back-to-top {
    right: 1.5rem;
    bottom: 1.5rem;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: auto;
  }

  .cct-actions,
  .split-actions {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    align-items: center;
  }

  .intro-grid,
  .page-hero-grid,
  .cct-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .callout-banner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 960px) {
  :root {
    --header-height: 94px;
    --container: min(1180px, calc(100vw - 4rem));
  }

  body.menu-open {
    overflow: auto;
  }

  .menu-toggle {
    display: none;
  }

  .header-shell {
    gap: 1.25rem;
  }

  .nav-panel {
    position: static;
    inset: auto;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    margin-left: auto;
  }

  .site-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(20, 50, 100, 0.1);
  }

  .site-nav a {
    min-height: 0;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    background: transparent;
    border: 0;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(113, 195, 228, 0.18);
  }

  .hero-carousel {
    min-height: clamp(44rem, 88svh, 56rem);
  }

  .hero-content {
    min-height: clamp(42rem, 78svh, 50rem);
    justify-content: center;
    padding-top: 7rem;
    padding-bottom: 9.5rem;
  }

  .hero h1,
  .hero h2 {
    max-width: min(16ch, 100%);
    font-size: clamp(2.55rem, 4.8vw, 4.3rem);
  }

  .hero-controls {
    left: auto;
    right: max(2rem, calc((100vw - min(1180px, calc(100vw - 4rem))) / 2 + 2rem));
    bottom: 2rem;
    transform: none;
    width: auto;
    min-width: 14rem;
  }

  .intro-grid,
  .contact-layout,
  .section-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .section-heading.sticky-heading {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    align-self: start;
  }

  .page-hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.85fr);
    align-items: center;
  }

  .cct-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
    align-items: start;
  }

  .services-grid.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
  }

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

  .contact-form-area {
    gap: 1.5rem;
  }
}

/* Nome institucional completo no cabeçalho, preservando o tamanho original da fonte. */
.brand-copy {
  position: relative;
  top: -0.22rem;
}

.brand-copy small {
  display: block;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  max-width: 100%;
  font-size: 0.8rem;
  line-height: 1.08;
  text-wrap: pretty;
}

.site-nav a,
.header-cta {
  white-space: nowrap;
}

@media (min-width: 960px) {
  .brand {
    flex: 0 1 39rem;
    max-width: 39rem;
  }

  .brand-copy {
    align-self: flex-start;
    padding-top: 0.52rem;
    top: 0;
  }

  .brand-copy small {
    max-width: 31rem;
    font-size: 0.8rem;
    line-height: 1.08;
    letter-spacing: 0;
  }

  .nav-panel {
    flex-shrink: 0;
  }
}
