/* ==========================================================================
   CFT Engenharia — folha de estilos principal
   ========================================================================== */

:root {
  --color-primary: #0B5FA6;
  --color-primary-dark: #063F73;
  --color-primary-light: #E8F1FA;
  --color-accent: #F5B921;
  --color-accent-dark: #D89E0B;
  --color-cta: #22C55E;
  --color-cta-dark: #159448;
  --color-dark: #0B1F33;
  --color-dark-alt: #123353;
  --color-text: #1E293B;
  --color-text-light: #5B6B7E;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F8FB;
  --color-border: #E2E8F0;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(11, 31, 51, .07);
  --shadow-md: 0 10px 30px rgba(11, 31, 51, .12);
  --shadow-lg: 0 20px 50px rgba(11, 31, 51, .18);

  --container: 1180px;
  --header-h: 84px;

  --font-heading: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; line-height: 1.2; color: var(--color-dark); }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 20px;
  z-index: 10000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

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

.section {
  padding: 88px 0;
}
.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--color-dark); color: #EAF1F8; }
.section-dark h2, .section-dark h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.section-dark .eyebrow {
  color: var(--color-accent);
  background: rgba(245, 185, 33, .12);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  text-wrap: balance;
}
.section-head p {
  margin-top: 14px;
  font-size: 1.05rem;
  color: var(--color-text-light);
}
.section-dark .section-head p { color: #C3D2E2; }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .98rem;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  max-width: 100%;
  text-align: center;
}
/* O ícone nunca encolhe; o texto (.btn-label) é o único item flexível,
   então quando falta espaço é o texto que quebra em duas linhas — o
   ícone nunca "pula" para uma linha própria. */
.btn svg { flex-shrink: 0; }
.btn-label { min-width: 0; flex: 1 1 auto; }
.btn:hover { transform: translateY(-2px); }
.btn-cta {
  background: var(--color-cta);
  color: #fff;
  box-shadow: 0 10px 24px rgba(34, 197, 94, .35);
}
.btn-cta:hover { background: var(--color-cta-dark); }
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 95, 166, .3);
}
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.5);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 52px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: .95rem;
  color: var(--color-dark);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px; width: 0;
  background: var(--color-primary);
  transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
  color: var(--color-dark);
}
.header-phone svg { width: 18px; height: 18px; color: var(--color-primary); flex: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--color-dark);
}
.nav-toggle svg { width: 28px; height: 28px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/hero-bg.webp");
  background-size: cover;
  background-position: center 65%;
  z-index: 0;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(6,26,46,.92) 0%, rgba(6,26,46,.82) 32%, rgba(6,26,46,.45) 62%, rgba(6,26,46,.25) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 90px;
  padding-bottom: 70px;
  max-width: 680px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 700;
  text-wrap: balance;
  letter-spacing: -.01em;
}
.hero-lead {
  margin-top: 20px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #DCE7F2;
  max-width: 540px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  margin-top: 26px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
}
.hero-badge svg { width: 16px; height: 16px; color: var(--color-accent); flex: none; }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}
.hero-note {
  margin-top: 26px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
  font-size: .88rem;
  color: #B8C8D9;
}
.hero-note svg { width: 18px; height: 18px; color: var(--color-accent); flex: none; }

/* ==========================================================================
   Cards genéricos (serviços / diferenciais)
   ========================================================================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  margin-bottom: 18px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.card p {
  color: var(--color-text-light);
  font-size: .95rem;
  line-height: 1.55;
}

.diff-card .card-icon {
  background: rgba(245, 185, 33, .16);
  color: var(--color-accent-dark);
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ==========================================================================
   Avaliações
   ========================================================================== */
.rating-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin: -16px auto 44px;
  font-family: var(--font-heading);
  color: var(--color-dark);
  text-align: center;
}
.rating-summary .stars {
  display: inline-flex;
  gap: 3px;
  color: var(--color-accent);
}
.rating-summary .stars svg { width: 20px; height: 20px; }
.rating-summary strong { font-size: 1.05rem; }
.rating-summary span { color: var(--color-text-light); font-size: .95rem; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
.review-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.review-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.review-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  box-shadow: 0 0 0 3px var(--color-bg-alt);
}
.review-who { flex: 1; min-width: 0; }
.review-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--color-dark);
}
.review-time {
  font-size: .82rem;
  color: var(--color-text-light);
  margin-top: 2px;
}
.review-google { flex: none; opacity: .9; }
.review-google svg { width: 24px; height: 24px; }
.review-stars {
  display: flex;
  gap: 3px;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.review-stars svg { width: 18px; height: 18px; }
.review-quote {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.65;
}

/* ==========================================================================
   Sobre / Quem sou eu
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: center;
}
.about-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}
.about-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  font-family: var(--font-heading);
}
.about-badge strong {
  display: block;
  font-size: 1.5rem;
  color: var(--color-primary);
  line-height: 1;
}
.about-badge span {
  font-size: .78rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.about-copy .eyebrow { margin-bottom: 10px; }
.about-copy h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 4px; }
.about-role {
  color: var(--color-primary);
  font-weight: 600;
  font-family: var(--font-heading);
  margin-bottom: 20px;
  display: block;
}
.about-copy p {
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}
.about-copy p strong { color: var(--color-dark); }
.about-copy .btn { margin-top: 12px; }

/* ==========================================================================
   Contato
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 14px; }
.contact-info > p { color: #C3D2E2; line-height: 1.6; margin-bottom: 32px; }
.contact-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list a, .contact-list span { font-size: 1rem; color: #EAF1F8; }
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,.1);
  color: var(--color-accent);
  flex: none;
}
.contact-icon svg { width: 20px; height: 20px; }
.social-row { display: flex; gap: 12px; }
.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  transition: background .2s ease;
}
.social-row a:hover { background: rgba(255,255,255,.22); }
.social-row svg { width: 19px; height: 19px; }

.contact-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
}
.contact-form-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.contact-form-card > p { color: var(--color-text-light); font-size: .93rem; margin-bottom: 26px; line-height: 1.5; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--color-dark);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  font-size: .96rem;
  background: var(--color-bg-alt);
  transition: border-color .15s ease;
}
.field input:focus { border-color: var(--color-primary); background: #fff; }
.form-note {
  margin-top: 14px;
  font-size: .8rem;
  color: var(--color-text-light);
  text-align: center;
  line-height: 1.5;
}
.form-note a { color: var(--color-primary); text-decoration: underline; }
.form-feedback {
  margin-top: 14px;
  font-size: .88rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #071729;
  color: #A9BBCE;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 14px;
}
.footer-brand p { line-height: 1.6; font-size: .93rem; max-width: 360px; }
.footer-col h4 {
  color: #fff;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: .93rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
  font-size: .82rem;
}
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a:hover { color: #fff; }

/* ==========================================================================
   Botão flutuante WhatsApp
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-cta);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(34,197,94,.4);
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.07); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ==========================================================================
   Banner de cookies
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: var(--color-dark);
  color: #EAF1F8;
  border-top: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 -10px 30px rgba(0,0,0,.25);
}
.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  flex-wrap: wrap;
}
.cookie-text { max-width: 640px; font-size: .9rem; line-height: 1.55; color: #C3D2E2; }
.cookie-text a { color: var(--color-accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 11px 22px; font-size: .88rem; }
.btn-ghost {
  background: transparent;
  color: #EAF1F8;
  border: 1.5px solid rgba(255,255,255,.3);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ==========================================================================
   Páginas internas (política / termos / 404)
   ========================================================================== */
.legal-hero {
  background: var(--color-dark);
  color: #fff;
  padding: 64px 0 48px;
}
.legal-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.legal-hero p { color: #C3D2E2; margin-top: 10px; }
.legal-content { padding: 56px 0 90px; }
.legal-content .container { max-width: 860px; }
.legal-content h2 {
  font-size: 1.3rem;
  margin: 40px 0 14px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li {
  color: var(--color-text-light);
  line-height: 1.75;
  margin-bottom: 12px;
}
.legal-content ul { padding-left: 22px; list-style: disc; }
.legal-content a { color: var(--color-primary); text-decoration: underline; }
.legal-content strong { color: var(--color-dark); }
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 8px;
}

.not-found {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.not-found .eyebrow { margin-bottom: 18px; }
.not-found h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.not-found p { color: var(--color-text-light); margin: 18px 0 32px; font-size: 1.05rem; }

/* ==========================================================================
   Animações de entrada
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16,.8,.24,1), transform .7s cubic-bezier(.16,.8,.24,1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-zoom {
  transform: scale(.94);
}
.reveal-zoom.is-visible {
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-zoom {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 980px) {
  .grid-3, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 380px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  /* No mobile o header mostra só logo + menu hambúrguer;
     telefone e botão de WhatsApp saem do header (o botão flutuante
     de WhatsApp já cobre esse contato durante a rolagem). */
  .header-phone { display: none; }
  .header-cta { display: none; }
  .section { padding: 64px 0; }
  .hero { min-height: 560px; }
  .hero-inner { padding-top: 60px; padding-bottom: 50px; }
  .hero-ctas .btn,
  .section-cta .btn,
  .about-copy .btn { width: 100%; }
  /* Botões um pouco mais compactos no mobile, pra caber o texto
     completo numa linha só, como no desktop. */
  .btn { font-size: .78rem; padding: 12px 14px; gap: 6px; }
  .btn svg { width: 15px; height: 15px; }
  .grid-3, .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1; }
  .contact-form-card { padding: 28px; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

/* Menu mobile aberto (o header não é fixo, então o overlay cobre a tela inteira
   independente da posição de rolagem em que o menu foi aberto) */
.nav-open .main-nav {
  display: flex;
  position: fixed;
  inset: 0;
  background: #fff;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: calc(var(--header-h) + 16px) 24px 24px;
  overflow-y: auto;
}
.nav-open .main-nav a {
  width: 100%;
  padding: 14px 4px;
  border-bottom: 1px solid var(--color-border);
}
.nav-open { overflow: hidden; }
