/* =========================================================================
   MTM ENGECON — folha de estilo única do site
   Vale para a home (index.html) e para as 6 páginas de área de atuação.
   Antes desta consolidação a home tinha o CSS repetido inline e as páginas
   internas traziam um <style> extra para encolher o hero.
   ========================================================================= */

/* ===== TOKENS ===== */
:root {
  --navy: #0b1f3a;
  --navy-2: #123054;
  --blue: #1d4e89;
  --teal: #00b8a9;
  --amber: #f6a821;
  --light: #f4f7fb;
  --gray: #5a6b7c;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(11, 31, 58, .08);

  --header-h: 72px;   /* altura travada da faixa do topo */
  --logo-h: 56px;     /* altura do logo; nunca passa de --header-h */
}

/* ===== RESET / BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  color: var(--navy);
  line-height: 1.6;
  background: var(--white);
}

.container { width: min(1140px, 92%); margin: 0 auto; }

/* ===== HEADER — faixa de altura fixa =====
   A faixa mede sempre --header-h. O logo cresce até --logo-h sem engrossá-la
   porque a imagem (logo-mtm-header.png) já vem cortada no traço: a altura
   declarada aqui é toda desenho, sem margem transparente. */
header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;                /* centraliza logo e menu na vertical */
  background: rgba(11, 31, 58, .96);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;                         /* sem padding: quem define a altura é o header */
  height: 100%;
}

.logo { display: flex; align-items: center; gap: .6rem; color: var(--white); text-decoration: none; }

.logo img {
  height: var(--logo-h);
  max-height: 100%;                   /* trava de segurança: nunca estoura a faixa */
  width: auto;
  display: block;
  object-fit: contain;
}

/* ===== LINKS DO MENU ===== */
.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: #cbd8e8;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1;
  transition: color .2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--teal); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; }

/* ===== BOTÕES ===== */
.btn {
  display: inline-block; padding: .85rem 1.8rem; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(246, 168, 33, .35); }
.btn-outline { border: 2px solid var(--teal); color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--navy); transform: translateY(-2px); }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== HERO DA HOME ===== */
.hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 55%, var(--blue) 100%);
  color: var(--white);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 184, 169, .25), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 1.2rem; }
.hero h1 span { color: var(--teal); }
.hero p { color: #c8d6e8; font-size: 1.05rem; max-width: 560px; margin-bottom: 2rem; }

.hero-cards { display: grid; gap: 1rem; }
.hero-card {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px; padding: 1.1rem 1.3rem; backdrop-filter: blur(4px);
}
.hero-card strong { color: var(--teal); display: block; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .2rem; }
.hero-card span { font-size: .95rem; color: #dfe9f5; }

/* ===== HERO DAS PÁGINAS DE ÁREA (faixa de topo com foto de fundo) =====
   Os valores compactos abaixo vinham de um <style> repetido nas 6 páginas. */
.page-hero { position: relative; background-size: cover; background-position: center; color: var(--white); padding: 2.5rem 0 2rem; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11, 31, 58, .85) 0%, rgba(11, 31, 58, .55) 55%, rgba(29, 78, 137, .35) 100%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .tag { color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; margin-bottom: .6rem; }
.page-hero h1 { font-size: 1.8rem; line-height: 1.12; margin-bottom: 1rem; max-width: 820px; }
.page-hero p { color: #dfe9f5; font-size: .95rem; max-width: 640px; }

/* ===== SEÇÕES ===== */
section { padding: 4.5rem 0; }
.bg-light { background: var(--light); }
.section-tag { color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: .4rem 0 1rem; }
.section-sub { color: var(--gray); max-width: 760px; margin-bottom: 2.2rem; }
.lead { color: var(--gray); max-width: 820px; margin-bottom: 1.2rem; }

/* ===== SOBRE (home) ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat {
  background: var(--white); border-radius: 12px; padding: 1.4rem; text-align: center;
  box-shadow: var(--shadow); border-top: 4px solid var(--teal);
}
.stat b { font-size: 2rem; color: var(--blue); display: block; }
.stat span { font-size: .85rem; color: var(--gray); }

/* ===== SERVIÇOS (home) ===== */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.service-card {
  background: var(--white); border-radius: 14px; padding: 1.8rem;
  box-shadow: var(--shadow); border-left: 5px solid var(--teal);
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(11, 31, 58, .14); }
.service-card h3 { font-size: 1.1rem; margin-bottom: .8rem; color: var(--blue); }
.service-card ul { list-style: none; }
.service-card li { padding: .28rem 0 .28rem 1.4rem; position: relative; font-size: .93rem; color: #3d4d5f; }
.service-card li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.service-card .card-note { font-size: .93rem; color: #3d4d5f; margin-bottom: .6rem; }
.service-icon {
  width: 46px; height: 46px; border-radius: 10px; margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.3rem;
}

/* ===== ÁREAS DE ATUAÇÃO (grade da home) ===== */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.area-item {
  background: var(--white); border-radius: 12px; padding: 1.5rem;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 1rem;
  border-bottom: 3px solid transparent; transition: border-color .2s, transform .2s;
  text-decoration: none; color: var(--navy);
}
.area-item:hover { border-color: var(--amber); transform: translateY(-3px); }
.area-item .dot {
  min-width: 12px; height: 12px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 4px rgba(246, 168, 33, .2);
}
.area-item strong { font-size: .98rem; }

/* ===== CONTATO (home) ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-card {
  background: var(--white); border-radius: 14px; padding: 2rem;
  box-shadow: var(--shadow); margin-bottom: 1.2rem;
}
.contact-card h3 { color: var(--blue); margin-bottom: .8rem; }
.contact-card p { color: var(--gray); margin-bottom: .4rem; }
.contact-card a { color: var(--blue); text-decoration: none; font-weight: 600; }
.contact-card a:hover { color: var(--teal); }
.contact-highlight { background: var(--navy); color: var(--white); }
.contact-highlight h3 { color: var(--amber); }
.contact-highlight p { color: #c8d6e8; }
.contact-highlight a { color: var(--teal); }

/* ===== DUAS COLUNAS (páginas de área) ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

/* ===== LISTA COM CHECK ===== */
.check-list { list-style: none; }
.check-list li { padding: .45rem 0 .45rem 1.6rem; position: relative; font-size: .98rem; color: #3d4d5f; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* ===== CARDS DE DIFERENCIAIS ===== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.feature { background: var(--white); border-radius: 14px; padding: 1.6rem; box-shadow: var(--shadow); border-top: 4px solid var(--teal); }
.feature h4 { color: var(--blue); margin-bottom: .5rem; }
.feature p { font-size: .92rem; color: var(--gray); }

/* ===== NAVEGAÇÃO ENTRE ÁREAS (rodapé das páginas internas) ===== */
.areas-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.area-link { background: var(--white); border-radius: 12px; padding: 1.2rem; box-shadow: var(--shadow); text-decoration: none; color: var(--navy); font-weight: 600; display: flex; align-items: center; gap: .8rem; border-bottom: 3px solid transparent; transition: border-color .2s, transform .2s; }
.area-link:hover { border-color: var(--amber); transform: translateY(-3px); }
.area-link .dot { min-width: 12px; height: 12px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(246, 168, 33, .2); }

/* ===== FAIXA DE CTA ===== */
.cta-band { background: linear-gradient(120deg, var(--navy), var(--blue)); color: var(--white); text-align: center; padding: 3.5rem 0; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .6rem; }
.cta-band p { color: #c8d6e8; margin-bottom: 1.6rem; }

/* ===== FOOTER ===== */
footer { background: var(--navy); color: #9fb0c4; padding: 2.5rem 0 2rem; text-align: center; }
footer p { font-size: .88rem; }
footer a { color: var(--teal); text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; margin-bottom: 1rem; }
.footer-links a { color: #cbd8e8; font-size: .9rem; }
.footer-links a:hover { color: var(--teal); }
.footer-copy { margin-top: 1rem; color: #6f8299; }

/* ===== RESPONSIVO ===== */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid, .two-col { grid-template-columns: 1fr; }
  .services-grid, .areas-grid { grid-template-columns: 1fr; }
  .features, .areas-nav { grid-template-columns: 1fr 1fr; }
  .hero { padding: 4rem 0 3.5rem; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy); flex-direction: column; padding: 1.2rem 8%;
    gap: 1rem; box-shadow: 0 12px 20px rgba(0, 0, 0, .25);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .features, .areas-nav { grid-template-columns: 1fr; }
}
