/* ============================================================
   ROQUE MORALEZ ENGENHARIA — sistema de design editorial
   Paleta de marca: navy #091F5B | taupe #8C7E73 | branco
   + tons neutros para um visual mais sofisticado (publico A)
   Tipografia: Lora (display/serifada) + Inter (texto/UI)
   Elemento de assinatura: linha técnica (régua/plano arquitetônico)
   ============================================================ */

:root{
  --navy: #091F5B;
  --navy-deep: #060E2E;
  --taupe: #8C7E73;
  --taupe-light: #BDB2A8;
  --white: #FFFFFF;
  --paper: #F7F5F1;       /* off-white quente, fundo principal claro */
  --paper-deep: #EFEBE4;
  --ink: #14182A;          /* quase-preto para texto sobre branco */
  --ink-soft: #565D72;

  --font-display: 'Lora', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --container-w: 1240px;
  --container-narrow: 760px;
  --shadow-soft: 0 24px 60px -32px rgba(9,31,91,.35);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

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

.container{
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow{
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.22;
  margin: 0 0 .5em;
  color: var(--navy);
  letter-spacing: -0.005em;
}

h1{ font-size: clamp(2.4rem, 5.2vw, 4.2rem); font-weight: 500; }
h2{ font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 500; }
h3{ font-size: 1.3rem; }

p{ margin: 0 0 1.1em; color: var(--ink-soft); }

a{ color: var(--navy); text-decoration: none; }

.section{ padding: 100px 0; }
.section-paper{ background: var(--paper); }
.section-white{ background: var(--white); }
.section-navy{ background: var(--navy); }
.section-navy h1, .section-navy h2, .section-navy h3, .section-navy h4{ color: var(--white); }
.section-navy p{ color: rgba(255,255,255,.72); }
.section-tight{ padding: 64px 0; }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  color: var(--taupe);
  margin-bottom: 22px;
}
.eyebrow::before{
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--taupe);
}
.eyebrow-light{ color: var(--taupe-light); }
.eyebrow-light::before{ background: var(--taupe-light); }

.lead{
  max-width: 620px;
  font-size: 1.08rem;
}

/* ============================================================
   SIGNATURE — linha técnica / régua de plano
   Uma linha horizontal fina com marcações, remete a desenho
   técnico de engenharia. Usada como divisor e na hero.
   ============================================================ */
.plan-line{
  position: relative;
  height: 1px;
  background: rgba(9,31,91,.14);
  margin: 0;
  overflow: visible;
}
.plan-line::before{
  content: "";
  position: absolute;
  left: 0; top: -3px;
  width: 1px; height: 7px;
  background: var(--taupe);
}
.plan-line::after{
  content: "";
  position: absolute;
  right: 0; top: -3px;
  width: 1px; height: 7px;
  background: var(--taupe);
}
.plan-line-light{ background: rgba(255,255,255,.16); }
.plan-line-light::before, .plan-line-light::after{ background: var(--taupe-light); }

.plan-ticks{
  display: flex;
  justify-content: space-between;
  margin-top: -1px;
}
.plan-ticks span{
  width: 1px; height: 5px;
  background: rgba(9,31,91,.14);
}

/* ============================================================
   BOTÕES
   ============================================================ */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .02em;
  border-bottom: 1.5px solid currentColor;
  transition: gap .2s ease, opacity .2s ease;
  cursor: pointer;
  background: none;
  border-top: none; border-left: none; border-right: none;
  color: var(--navy);
}
.btn:hover{ gap: 16px; }
.btn-light{ color: var(--white); }
.btn-arrow::after{ content: "\2192"; }

.btn-solid{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 34px;
  border-radius: 2px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .02em;
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--navy);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-solid:hover{ background: var(--navy-deep); }
.btn-solid-light{
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-solid-light:hover{ background: var(--paper); }
.btn-outline-light{
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.4);
}
.btn-outline-light:hover{ border-color: var(--white); }
.btn-block{ width: 100%; justify-content: center; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid rgba(9,31,91,.08);
}
.header-on-dark .site-header{
  background: rgba(6,14,46,.88);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(255,255,255,.08);
}

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

.brand{
  display: flex;
  align-items: center;
  gap: 13px;
}
.brand-mark{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.brand-text{
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text strong{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: .01em;
}
.header-on-dark .brand-text strong{ color: var(--white); }
.brand-text strong .accent{ color: var(--taupe); font-weight: 400; }
.brand-text small{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .6rem;
  letter-spacing: .32em;
  color: var(--taupe);
}

.main-nav{
  display: flex;
  align-items: center;
}
.main-nav a:not(.nav-cta){
  margin-right: 36px;
}
.main-nav a{
  color: var(--ink);
  font-size: .92rem;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  padding-bottom: 4px;
}
.header-on-dark .main-nav a{ color: rgba(255,255,255,.8); }
.main-nav a::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--taupe);
  transition: width .2s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after{ width: 100%; }
.header-on-dark .main-nav a:hover, .header-on-dark .main-nav a.active{ color: var(--white); }

.nav-cta{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .85rem;
  padding: 11px 22px;
  border: 1px solid var(--navy);
  color: var(--navy) !important;
  white-space: nowrap;
}
.nav-cta::after{ display: none; }
.nav-cta:hover{ background: var(--navy); color: var(--white) !important; }
.header-on-dark .nav-cta{ border-color: rgba(255,255,255,.4); color: var(--white) !important; }
.header-on-dark .nav-cta:hover{ background: var(--white); color: var(--navy) !important; }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  margin-top: 6px;
}
.nav-toggle span:first-child{ margin-top: 0; }
.header-on-dark .nav-toggle span{ background: var(--white); }

/* ============================================================
   PAGE HERO (paginas internas)
   ============================================================ */
.page-hero{
  background: var(--navy);
  padding: 76px 0 90px;
}
.page-hero .eyebrow{ margin-bottom: 18px; }
.page-hero h1{ color: var(--white); max-width: 760px; }
.page-hero .lead{ color: rgba(255,255,255,.72); margin-top: 18px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  background: var(--navy-deep);
  padding: 70px 0 40px;
}
.footer-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand{ flex: 1 1 280px; }
.footer-brand .brand{ margin-bottom: 18px; }
.footer-brand .brand-text strong{ color: var(--white); }
.footer-tagline{
  color: rgba(255,255,255,.55);
  font-size: .92rem;
  max-width: 320px;
  font-family: var(--font-display);
  font-style: italic;
}
.footer-col{ flex: 1 1 160px; }
.footer-col h4{
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-bottom: 20px;
}
.footer-col ul{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a{
  color: rgba(255,255,255,.65);
  font-size: .92rem;
  transition: color .2s ease;
}
.footer-col a:hover{ color: var(--white); }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  color: rgba(255,255,255,.4);
  font-size: .8rem;
}

/* ============================================================
   CTA BANNER (componente compartilhado entre páginas)
   ============================================================ */
.cta-banner{
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.cta-banner-media{ position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.cta-banner-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-banner-overlay{
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(105deg, rgba(6,14,46,.97) 0%, rgba(6,14,46,.97) 30%, rgba(9,31,91,.55) 70%, rgba(9,31,91,.3) 100%);
}
.cta-banner-content{
  position: relative;
  z-index: 1;
  padding: 80px 0;
}
.cta-banner-content h2{ color: var(--white); margin-bottom: 36px; max-width: 560px; }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float{
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 56px;
  height: 56px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 14px 34px -12px rgba(9,31,91,.55);
  z-index: 200;
  transition: transform .2s ease, background .2s ease;
}
.whatsapp-float:hover{ transform: scale(1.07); background: var(--navy-deep); }
.whatsapp-float svg{ width: 26px; height: 26px; }

/* ============================================================
   RESPONSIVE — header
   ============================================================ */
@media (max-width: 860px){
  .main-nav{
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 32px 30px;
    gap: 18px;
    border-bottom: 1px solid rgba(9,31,91,.08);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all .25s ease;
  }
  .header-on-dark .main-nav{ background: var(--navy-deep); border-bottom-color: rgba(255,255,255,.08); }
  .main-nav.open{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle{ display: flex; }
  .nav-cta{ align-self: flex-start; }
  .section{ padding: 68px 0; }
  .page-hero{ padding: 56px 0 64px; }
}
