/* ============================================================
   TLG Consulting — Folha de estilos principal
   ============================================================ */

:root {
  --navy: #1a3a5c;
  --blue: #1e5fa8;
  --teal: #0fa3b1;
  --teal-light: #b8dfe3;
  --off-white: #f7f9fb;
  --white: #ffffff;
  --gray: #6b7a8d;
  --gray-light: #e8edf2;
}

* { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--off-white);
  color: var(--navy);
}

h1, h2, h3 {
  font-family: 'DM Serif Display', serif;
}

/* ─── NAV ─── */
.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--navy);
  text-transform: uppercase;
  padding-bottom: 2px;
  transition: color .25s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--teal);
  transition: width .3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--teal); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ─── PAGES ─── */
.page { display: none; }
.page.active { display: block; }

/* ─── HERO ─── */
.hero-bg {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 55%, var(--teal) 100%);
}
/* Quando .hero-grid é usada JUNTO de .hero-bg, empilhamos
   o padrão de pontinhos sobre o gradiente — caso contrário
   o background-image da .hero-grid sobrescreve o gradiente
   e o fundo fica transparente. */
.hero-bg.hero-grid {
  background-color: var(--navy);
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(135deg, var(--navy) 0%, var(--blue) 55%, var(--teal) 100%);
  background-size: 32px 32px, auto;
}

/* ─── CARDS ─── */
.card {
  background: var(--white);
  border-radius: 16px;
  transition: transform .3s ease, box-shadow .3s ease;
  border: 1px solid var(--gray-light);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(26,58,92,0.12);
}

/* ─── ICON BADGE ─── */
.icon-badge {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  flex-shrink: 0;
}
.icon-badge svg { color: #fff; }

/* ─── DIVIDER LINE ─── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}
.section-tag::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--teal);
}

/* ─── BUTTON ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 14px 32px;
  border-radius: 50px;
  transition: opacity .25s, transform .25s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid rgba(255,255,255,0.4);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 32px;
  border-radius: 50px;
  transition: background .25s, border-color .25s;
  background: transparent;
  cursor: pointer;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* ─── STAT ─── */
.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: var(--teal);
  line-height: 1;
}

/* ─── FORM ─── */
.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--gray-light);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.925rem;
  color: var(--navy);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15,163,177,0.12);
}
.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 6px;
  display: block;
}

/* ─── TIMELINE ─── */
.timeline-line {
  position: absolute;
  left: 27px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal), var(--blue));
}
.timeline-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--teal);
  flex-shrink: 0;
  margin-top: 4px;
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── FOOTER ─── */
footer {
  background: var(--navy);
}

/* ─── MOBILE NAV ─── */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
#mobile-menu.open { max-height: 300px; }