/* ==========================================================================
   TLD - Site Institucional Estático (Página Única)
   Identidade visual preservada do tema original TLD (Exo 2, #1191d0, #083c75)
   Zero dependências externas de framework CSS
   ========================================================================== */

:root {
  --brand-cyan: #1191d0;
  --brand-blue: #1775a3;
  --brand-blue-dark: #0e5a7f;
  --brand-navy: #083c75;
  --brand-navy-deep: #002660;
  --text-dark: #231f20;
  --text-body: #58595b;
  --text-muted: #71686a;
  --border-footer: #4c4849;
  --bg-white: #ffffff;
  --text-light: #e8ebed;
  --header-height: 112px;
  --radius-pill: 16px;
  --container-max: 1140px;
  --transition: 0.25s ease;
}

/* Reset básico */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px, mantendo a escala original */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--header-height);
  background: var(--bg-white);
  color: var(--text-body);
  font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), background-color var(--transition), opacity var(--transition);
}

b,
strong {
  font-weight: 600;
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

/* Scrollbar personalizada (identidade original) */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background-color: #d8d8d8;
}

::-webkit-scrollbar-thumb {
  background-color: var(--brand-cyan);
  border-radius: 6px;
  border: 1px solid #047cb7;
}

/* Layout base */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

section,
footer {
  position: relative;
  scroll-margin-top: var(--header-height);
}

/* Tipografia e elementos padrão TLD */
h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  line-height: 1.2;
}

.section-title {
  background: url('../img/section_title_obj.png') no-repeat left center;
  padding: 8px 0 4px 40px;
  margin-bottom: 16px;
}

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

.indent-content {
  margin-left: 40px;
}

.btn {
  display: inline-block;
  padding: 1.2rem 2.6rem;
  text-transform: uppercase;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: inherit;
}

.btn-blue {
  background: var(--brand-blue);
  color: #fcfafa;
}

.btn-blue:hover,
.btn-blue:focus-visible {
  background: var(--brand-blue-dark);
  color: var(--bg-white);
}

.btn-blue:disabled {
  opacity: 0.65;
  cursor: wait;
}

.tld-list {
  list-style-type: disc;
  margin: 20px 0 0 20px;
  padding: 0;
}

.tld-list li {
  margin-top: 14px;
  font-size: 1.8rem;
  font-weight: 400;
}

.tld-list li:first-child {
  margin-top: 0;
}

.tld-list--dark {
  color: var(--text-body);
}

.tld-list--light {
  color: var(--bg-white);
}

/* Animação suave de entrada */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   HEADER FIXO E NAVEGAÇÃO
   ========================================================================== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: var(--bg-white);
  box-shadow: 0 10px 16px -8px rgba(0, 0, 0, 0.45);
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
}

#header.is-mobile-open {
  background: var(--brand-cyan);
  box-shadow: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  max-height: 62px;
  width: auto;
}

.brand-logo .img-logo-white {
  display: none;
}

#header.is-mobile-open .brand-logo .img-logo {
  display: none;
}

#header.is-mobile-open .brand-logo .img-logo-white {
  display: block;
}

/* Menu Desktop */
#nav .menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}

#nav .menu a {
  color: var(--text-dark);
  font-size: 1.65rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 6px 0;
  position: relative;
}

#nav .menu a:hover,
#nav .menu a.active {
  color: var(--brand-cyan);
}

#nav .menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

#nav .menu a:hover::after,
#nav .menu a.active::after {
  transform: scaleX(1);
}

/* Botão Hamburger Mobile */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 32px;
  height: 4px;
  background-color: var(--text-dark);
  margin: 6px 0;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

#header.is-mobile-open .nav-toggle span {
  background-color: var(--bg-white);
}

#header.is-mobile-open .nav-toggle .bar1 {
  transform: rotate(-45deg) translate(-7px, 7px);
}

#header.is-mobile-open .nav-toggle .bar2 {
  opacity: 0;
}

#header.is-mobile-open .nav-toggle .bar3 {
  transform: rotate(45deg) translate(-7px, -7px);
}

/* Menu Mobile Fullscreen */
#mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: var(--brand-cyan);
  z-index: 999;
  padding: 24px 0 40px;
  overflow-y: auto;
}

#mobile-menu.is-open {
  display: block;
}

#mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#mobile-menu li a {
  display: block;
  padding: 16px 28px;
  color: var(--bg-white);
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
}

#mobile-menu li a:hover,
#mobile-menu li a.active {
  background: #052231;
}

/* ==========================================================================
   SEÇÃO 1: HERO (INÍCIO)
   ========================================================================== */
#inicio {
  min-height: 540px;
  background: var(--brand-navy) url('../img/bg_home.jpg') no-repeat center center / cover;
  display: flex;
  align-items: center;
  padding: 72px 0;
}

.hero-box {
  max-width: 520px;
}

#inicio h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 18px;
}

#inicio p {
  color: var(--text-light);
  font-size: 1.85rem;
  font-weight: 400;
  line-height: 1.55;
  margin-bottom: 18px;
}

#inicio .hero-cta {
  display: inline-block;
  color: var(--brand-navy-deep);
  text-decoration: underline;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.45;
}

#inicio .hero-cta:hover {
  color: var(--bg-white);
}

/* ==========================================================================
   SEÇÃO 2: QUEM SOMOS
   ========================================================================== */
#quem-somos {
  min-height: 540px;
  background: #071931 url('../img/bg_quem_somos.jpg') no-repeat center center / cover;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.quem-somos-content {
  max-width: 720px;
}

#quem-somos p {
  color: var(--bg-white);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 20px;
}

#quem-somos p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   SEÇÃO 3: NOSSO MÉTODO
   ========================================================================== */
#nosso-metodo {
  background: var(--bg-white);
  padding: 84px 0 96px;
}

.metodo-intro {
  color: var(--text-body);
  font-size: 2rem;
  font-weight: 300;
  max-width: 820px;
  margin-bottom: 48px;
}

.metodo-grid-wrap {
  position: relative;
}

.metodo-line {
  position: absolute;
  top: 48%;
  left: 6%;
  width: 88%;
  height: 3px;
  background: var(--brand-navy);
  z-index: 0;
}

.metodo-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.metodo-card {
  display: flex;
  flex-direction: column;
  box-shadow: 4px 24px 28px -18px rgba(0, 0, 0, 0.55);
}

.metodo-card h3 {
  width: 88%;
  margin: 0 auto;
  padding: 14px 10px;
  text-align: center;
  text-transform: uppercase;
  color: var(--bg-white);
  font-size: 1.6rem;
  font-weight: 600;
  background: var(--brand-cyan);
  position: relative;
  top: 3px;
  z-index: 1;
}

.metodo-card p {
  flex: 1;
  margin: 0;
  padding: 26px 18px;
  background: var(--brand-navy);
  color: var(--bg-white);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.55;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   SEÇÃO 4: SERVIÇOS (ABAS INTERATIVAS)
   ========================================================================== */
#servicos {
  background: var(--bg-white) url('../img/bg_home_servicos.jpg') no-repeat right center / cover;
  padding: 84px 0 96px;
}

#servicos::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.92) 62%, rgba(255, 255, 255, 0.65) 100%);
  z-index: 0;
}

#servicos .container {
  position: relative;
  z-index: 1;
}

.servicos-intro {
  color: var(--text-body);
  font-size: 1.95rem;
  font-weight: 300;
  max-width: 820px;
  margin-bottom: 36px;
}

.servicos-tabs-wrap {
  max-width: 920px;
}

.servicos-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}

.servicos-tab {
  appearance: none;
  border: 2px solid var(--brand-navy);
  border-bottom: none;
  background: var(--bg-white);
  color: var(--brand-navy);
  font-family: inherit;
  font-size: 1.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 13px 22px;
  border-radius: var(--radius-pill) var(--radius-pill) 0 0;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.servicos-tab:hover {
  background: #eaf5fb;
  color: var(--brand-blue-dark);
}

.servicos-tab.is-active {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: var(--bg-white);
}

.servicos-panels {
  background: var(--bg-white);
  border: 2px solid var(--brand-navy);
  border-top: 4px solid var(--brand-cyan);
  border-radius: 0 var(--radius-pill) var(--radius-pill) var(--radius-pill);
  padding: 36px 40px 40px;
  box-shadow: 0 18px 34px -22px rgba(8, 60, 117, 0.45);
}

.servicos-panel h3 {
  font-size: 2.3rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.servicos-panel .panel-lead {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--brand-cyan);
  margin-bottom: 14px;
}

.servicos-panel p {
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 18px;
}

.servicos-panel .tld-list {
  margin-bottom: 28px;
}

.servicos-panel .tld-list li {
  font-size: 1.65rem;
}

#servicos .btn-blue {
  margin-left: 0;
  margin-top: 4px;
}

/* ==========================================================================
   SEÇÃO 6: CERTIFICAÇÕES
   ========================================================================== */
#certificacoes {
  background: var(--bg-white);
  padding: 88px 0;
}

.cert-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px 40px;
  margin: 28px 0 36px 40px;
}

.cert-logos img {
  max-height: 68px;
  width: auto;
  object-fit: contain;
}

.cert-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-left: 40px;
}

.cert-item {
  border-left: 3px solid var(--brand-cyan);
  padding-left: 20px;
}

.cert-item h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.cert-item p {
  font-size: 1.65rem;
  font-weight: 300;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 10px;
}

.cert-item p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   SEÇÃO 7: PARCEIROS
   ========================================================================== */
#parceiros {
  min-height: 500px;
  background: var(--brand-navy) url('../img/bg_quem_somos_parceiros.jpg') no-repeat center center / cover;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.parceiros-box {
  max-width: 620px;
}

#parceiros p {
  color: var(--bg-white);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 24px;
}

.parceiros-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: 40px;
}

.parceiro-tag {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-pill);
  background: rgba(8, 60, 117, 0.55);
  color: var(--bg-white);
  font-size: 1.55rem;
  font-weight: 500;
}

/* ==========================================================================
   SEÇÃO 8: CONTATO & RODAPÉ
   ========================================================================== */
.contato-banner {
  min-height: 150px;
  background: var(--brand-blue) url('../img/bg_contato.jpg') no-repeat center center / cover;
  display: flex;
  align-items: center;
  padding: 36px 0;
}

.contato-banner .section-title {
  margin-bottom: 0;
}

#footer {
  background: var(--bg-white);
  padding: 72px 0 64px;
  border-bottom: 32px solid var(--border-footer);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.footer-logo {
  max-width: 118px;
  margin-bottom: 28px;
}

.footer-info p {
  margin: 0 0 16px 0;
  color: var(--text-muted);
  font-size: 1.65rem;
  font-weight: 500;
  padding-left: 30px;
  line-height: 1.5;
}

.footer-info a:hover {
  color: var(--brand-cyan);
  text-decoration: underline;
}

.footer-info .p-endereco {
  background: url('../img/pin_icon.png') no-repeat 1px 4px;
}

.footer-info .p-email {
  background: url('../img/email_icon.png') no-repeat left center;
}

.footer-info .p-telefone {
  background: url('../img/phone_icon.png') no-repeat left center;
}

.footer-copyright {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #e6e6e6;
  color: var(--text-muted);
  font-size: 1.35rem;
}

/* Formulário Material (preservando o visual original de contato.css) */
#form_contato h3 {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.mat-div {
  padding-top: 14px;
  position: relative;
  margin-bottom: 16px;
}

.mat-label {
  display: block;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-muted);
  transform: translateY(24px);
  transition: transform 0.25s ease, font-size 0.25s ease, color 0.25s ease;
  pointer-events: none;
}

.mat-input {
  position: relative;
  background: transparent;
  width: 100%;
  border: none;
  outline: none;
  padding: 8px 0;
  font-size: 1.7rem;
  font-family: inherit;
  color: var(--text-dark);
  resize: vertical;
}

.mat-div::before,
.mat-div::after {
  content: '';
  position: absolute;
  display: block;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  transition: transform 0.3s ease;
}

.mat-div::before {
  background-color: var(--text-muted);
}

.mat-div::after {
  height: 2px;
  background-color: var(--brand-blue);
  transform: scaleX(0);
}

.mat-div.is-active::after {
  transform: scaleX(1);
}

.mat-div.is-active .mat-label {
  color: var(--brand-blue);
}

.mat-div.is-completed .mat-label,
.mat-div.is-active .mat-label {
  font-size: 1.2rem;
  transform: translateY(0);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}

.form-feedback {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--brand-blue);
  min-height: 20px;
}

.form-feedback.is-error {
  color: #b71c1c;
}

.form-feedback.is-success {
  color: #1b5e20;
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 1080px) {
  .metodo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .metodo-line {
    display: none;
  }
  #nav .menu {
    gap: 18px;
  }
  #nav .menu a {
    font-size: 1.5rem;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 86px;
  }

  .brand-logo img {
    max-height: 48px;
  }

  #nav {
    display: none;
  }

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

  .cert-list {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .cert-logos {
    margin-left: 0;
  }

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

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

@media (max-width: 640px) {
  h2 {
    font-size: 2.2rem;
  }

  .indent-content,
  .parceiros-tags,
  #servicos .btn-blue {
    margin-left: 0;
  }

  .servicos-tablist {
    gap: 6px;
  }

  .servicos-tab {
    flex: 1 1 calc(50% - 6px);
    font-size: 1.35rem;
    padding: 11px 12px;
    border-radius: 10px;
    border-bottom: 2px solid var(--brand-navy);
    text-align: center;
  }

  .servicos-panels {
    margin-top: 10px;
    border-radius: var(--radius-pill);
    padding: 24px 20px 28px;
  }

  #inicio {
    min-height: 460px;
    background-position: 35% center;
    padding: 56px 0;
  }

  #inicio::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(17, 145, 208, 0.86);
  }

  #inicio .container {
    position: relative;
    z-index: 1;
  }

  #inicio h1 {
    font-size: 2.5rem;
  }

  #inicio p,
  #inicio .hero-cta {
    font-size: 1.6rem;
  }

  #quem-somos p,
  #parceiros p,
  .metodo-intro {
    font-size: 1.65rem;
  }

  #servicos {
    background-position: 30% center;
    padding: 64px 0;
  }

  #servicos::before {
    background: rgba(255, 255, 255, 0.92);
  }

  #parceiros .container {
    position: relative;
    z-index: 1;
  }

  #parceiros::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8, 60, 117, 0.84);
  }

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

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions .btn {
    width: 100%;
    text-align: center;
  }
}

