/* ALDECI FRETES E CARRETOS — folha de estilo global */

:root{
  --gold: #F5B400;
  --gold-dark: #C98F00;
  --black: #17140F;
  --teal: #0B5566;
  --teal-dark: #073C48;
  --white: #FFFFFF;
  --off-white: #FAF8F4;
  --text: #221F1A;
  --text-light: #62594B;
  --border: #E7E1D4;
  --success-bg: #EAF6EC;
  --success-text: #1E7A34;
  --error-bg: #FBEAEA;
  --error-text: #B3261E;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px rgba(23, 20, 15, 0.10);
  --header-h: 88px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body{
  max-width: 100%;
  overflow-x: hidden;
}

body{
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  padding-top: var(--header-h);
}

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

a{ color: inherit; text-decoration: none; }
ul, ol{ list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4{ font-weight: 800; line-height: 1.2; margin: 0 0 14px; word-break: break-word; overflow-wrap: anywhere; }
p{ margin: 0 0 16px; overflow-wrap: anywhere; }
button{ font-family: inherit; }

.container{
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

section{ padding: 64px 0; }

.section-title{ font-size: clamp(26px, 4vw, 36px); margin-bottom: 10px; }
.section-lead{ color: var(--text-light); max-width: 620px; margin-bottom: 40px; font-size: 17px; }
.center{ text-align: center; margin-left: auto; margin-right: auto; }

.bg-off{ background: var(--off-white); }
.bg-dark{ background: var(--teal-dark); color: var(--white); }
.bg-dark .section-lead{ color: rgba(255,255,255,0.82); }

/* ===== Botões ===== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  white-space: normal;
  text-align: center;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--gold); color: var(--black); box-shadow: var(--shadow); }
.btn-primary:hover{ background: var(--gold-dark); }
.btn-whatsapp{ background: #25D366; color: var(--white); box-shadow: var(--shadow); }
.btn-whatsapp:hover{ background: #1DA851; }
.btn-outline{ background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover{ background: rgba(255,255,255,0.12); }
.btn-outline-dark{ background: transparent; border-color: var(--teal); color: var(--teal); }
.btn-outline-dark:hover{ background: var(--teal); color: var(--white); }
.btn-block{ width: 100%; }
.btn-icon{ width: 20px; height: 20px; flex: none; }

.cta-row{ display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== Header ===== */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}
.site-header .container{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: none;
}
.brand img{ width: 64px; height: 64px; border-radius: 50%; }
.brand-text{ font-weight: 800; font-size: 15px; line-height: 1.15; color: var(--black); }
.brand-text span{ display: block; font-weight: 600; font-size: 11px; letter-spacing: .04em; color: var(--text-light); text-transform: uppercase; }

.main-nav{ display: flex; align-items: center; gap: 28px; }
.nav-links{ display: flex; gap: 26px; }
.nav-links a{
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"]{ color: var(--teal); border-color: var(--gold); }

.header-cta{ display: flex; align-items: center; gap: 12px; }
.header-cta .btn{ padding: 10px 18px; min-height: 44px; font-size: 14px; }

.nav-toggle{
  display: none;
  width: 44px; height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex: none;
  border-radius: var(--radius-sm);
}
.nav-toggle:hover{ background: var(--off-white); }
.nav-toggle span{
  position: absolute;
  left: 10px; right: 10px;
  height: 2.5px;
  background: var(--black);
  border-radius: 2px;
  transition: transform .28s ease, opacity .2s ease, top .28s ease;
}
.nav-toggle span:nth-child(1){ top: 15px; }
.nav-toggle span:nth-child(2){ top: 21px; }
.nav-toggle span:nth-child(3){ top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ top: 21px; transform: rotate(-45deg); }

.mobile-nav{ display: none; }

/* ===== Hero ===== */
.hero{
  padding: 56px 0 64px;
  background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
}
.hero .container{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}
.hero-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(11,85,102,0.08);
  color: var(--teal);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1{ font-size: clamp(30px, 4.6vw, 48px); color: var(--black); }
.hero h1 em{ font-style: normal; color: var(--teal); }
.hero p.lead{ font-size: 18px; color: var(--text-light); max-width: 520px; margin-bottom: 28px; }
.hero-media{
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-media img{ width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

.trust-strip{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.trust-item{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.trust-item .icon{
  flex: none; width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(245,180,0,0.16);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-dark);
}
.trust-item strong{ display: block; margin-bottom: 3px; font-size: 15px; }
.trust-item p{ margin: 0; font-size: 14px; color: var(--text-light); }

/* ===== Cards de serviço ===== */
.grid-services{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.service-card .thumb{ aspect-ratio: 4/3; overflow: hidden; }
.service-card .thumb img{ width: 100%; height: 100%; object-fit: cover; }
.service-card .body{ padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.service-card h3{ font-size: 18px; margin: 0; }
.service-card p{ font-size: 14.5px; color: var(--text-light); margin: 0; flex: 1; }
.service-card .btn{ align-self: flex-start; margin-top: 6px; padding: 9px 16px; min-height: 40px; font-size: 13.5px; }

.service-detail{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 8px;
}
@media (min-width: 900px){
  .service-detail{ grid-template-columns: repeat(2, 1fr); }
}

/* ===== Passo a passo ===== */
.steps{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  position: relative;
}
.step::before{
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  font-weight: 800;
  margin-bottom: 14px;
}
.step h3{ font-size: 16.5px; margin-bottom: 6px; }
.step p{ font-size: 14px; color: var(--text-light); margin: 0; }

/* ===== CTA banner ===== */
.cta-banner{
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius);
  padding: 44px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-banner h2{ font-size: 26px; margin-bottom: 6px; }
.cta-banner p{ margin: 0; color: rgba(255,255,255,0.85); }

/* ===== Formulário ===== */
.form-card{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.form-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field{ display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.field.full{ grid-column: 1 / -1; }
.field label{ font-weight: 700; font-size: 14px; }
.field .req{ color: var(--error-text); }
.field input, .field select, .field textarea{
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 16px;
  min-height: 48px;
  font-family: inherit;
  width: 100%;
  color: var(--text);
  background: var(--white);
}
.field textarea{ min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(11,85,102,0.15);
}
.field.has-error input, .field.has-error select, .field.has-error textarea{
  border-color: var(--error-text);
  background: var(--error-bg);
}
.error-msg{
  display: none;
  color: var(--error-text);
  font-size: 13px;
  font-weight: 600;
}
.field.has-error .error-msg{ display: block; }

.form-alert{
  display: none;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 14.5px;
  margin-bottom: 22px;
  gap: 10px;
}
.form-alert.show{ display: flex; align-items: flex-start; }
.form-alert.success{ background: var(--success-bg); color: var(--success-text); border: 1px solid #B9E3C0; }
.form-alert.error{ background: var(--error-bg); color: var(--error-text); border: 1px solid #F1BDBA; }
.form-alert strong{ display: block; margin-bottom: 2px; }

/* ===== Footer ===== */
.site-footer{
  background: var(--black);
  color: rgba(255,255,255,0.78);
  padding: 56px 0 26px;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand{ display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img{ width: 56px; height: 56px; border-radius: 50%; }
.footer-brand strong{ color: var(--white); font-size: 16px; }
.site-footer h4{ color: var(--white); font-size: 14px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.site-footer ul li{ margin-bottom: 10px; }
.site-footer a{ font-size: 14.5px; transition: color .15s ease; }
.site-footer a:hover{ color: var(--gold); }
.footer-bottom{
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* ===== 404 ===== */
.error-page{
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 60px 0;
}
.error-page .container{ text-align: center; max-width: 620px; }
.error-page img{ width: 120px; height: 120px; margin: 0 auto 22px; border-radius: 50%; }
.error-code{ font-size: 84px; font-weight: 800; color: var(--teal); line-height: 1; margin-bottom: 8px; }
.error-page h1{ font-size: 26px; }
.error-page p{ color: var(--text-light); font-size: 16px; }

/* ===== Página legal (rascunho) ===== */
.draft-banner{
  background: #FFF4DA;
  border: 1px solid #F0D28A;
  color: #7A5B00;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14.5px;
  margin-bottom: 32px;
}
.legal-content h2{ font-size: 20px; margin-top: 30px; }
.legal-content p, .legal-content li{ color: var(--text-light); font-size: 15px; }
.legal-content li{ margin-bottom: 8px; list-style: disc; margin-left: 20px; }

/* ===== Trilha de navegação (breadcrumb) ===== */
.breadcrumb{
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 20px 0;
  font-size: 13px;
  color: var(--text-light);
}
.breadcrumb a{ color: var(--teal); font-weight: 600; }
.breadcrumb a:hover{ text-decoration: underline; }
.breadcrumb .sep{ margin: 0 6px; color: var(--border); }
.breadcrumb [aria-current="page"]{ color: var(--text); font-weight: 600; }

/* ===== Utilidades ===== */
.skip-link{
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--gold);
  color: var(--black);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-weight: 700;
  z-index: 2000;
}
.skip-link:focus{ left: 0; top: 0; }

/* ===================== RESPONSIVO ===================== */
@media (max-width: 980px){
  .main-nav{ display: none; }
  .nav-toggle{ display: block; }

  .mobile-nav{
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height .32s ease, opacity .22s ease, transform .28s ease;
    z-index: 999;
  }
  .mobile-nav.open{
    max-height: 520px;
    opacity: 1;
    transform: translateY(0);
  }
  .mobile-nav .container{ padding: 18px 20px 26px; display: flex; flex-direction: column; gap: 4px; }
  .mobile-nav a{
    padding: 13px 6px;
    font-weight: 700;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }
  .mobile-nav a:last-of-type{ border-bottom: none; }
  .mobile-nav .btn{ margin-top: 14px; }

  .hero .container{ grid-template-columns: 1fr; }
  .hero-media{ order: -1; }
  .trust-strip{ grid-template-columns: 1fr; }
  .grid-services{ grid-template-columns: repeat(2, 1fr); }
  .steps{ grid-template-columns: repeat(2, 1fr); }
  .form-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px){
  section{ padding: 46px 0; }
  .grid-services{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .cta-banner{ flex-direction: column; align-items: flex-start; padding: 30px 24px; }
  .footer-grid{ grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom{ flex-direction: column; }
  .form-card{ padding: 22px; }
  .header-cta .nav-text{ display: none; }
}

@media (max-width: 380px){
  .site-header .container{ padding: 0 14px; gap: 8px; }
  .brand{ gap: 8px; }
  .brand img{ width: 50px; height: 50px; }
  .brand-text{ font-size: 13px; }
  .header-cta{ gap: 8px; }
  .error-code{ font-size: 64px; }
}
