/*
Theme Name: Brasthec Landing
Theme URI: https://www.brasthec.com.br
Author: Brasthec
Description: Landing page institucional da Brasthec Comércio e Serviços Ltda. Foco em orçamentos via WhatsApp. Estrutura inspirada no tema leve do backup, com identidade e conteúdo próprios.
Version: 1.0.0
Text Domain: brasthec-landing
*/

:root {
  --navy: #0F2B46;
  --navy-deep: #0A1E32;
  --steel: #2B5C8A;
  --steel-light: #4A82B8;
  --white: #FFFFFF;
  --light: #F4F7FA;
  --line: #DCE5ED;
  --text: #1C2D3E;
  --muted: #5C6D7E;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;
  --amber: #F2A93B;
  --shadow: 0 12px 32px rgba(15, 43, 70, 0.10);
  --radius: 16px;
  --header-h: 70px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.16;
  margin: 0 0 0.6em;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.05rem, 6vw, 3.55rem); }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.65rem); }
h3 { font-size: clamp(1.12rem, 2.4vw, 1.35rem); }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--white);
  color: var(--navy);
  padding: 12px 18px;
  font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

.container { width: min(100% - 40px, 1160px); margin-inline: auto; }
.section { padding: 76px 0; }
.section--light { background: var(--light); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 12px;
}
.section--navy .eyebrow { color: #9FC6EA; }

.section-heading { max-width: 720px; margin-bottom: 42px; }
.section-heading p { color: var(--muted); font-size: 1.02rem; }
.section--navy .section-heading p { color: #D8E6F2; }

.lead { font-size: 1.08rem; color: var(--muted); }

/* ===== BOTÕES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; fill: currentColor; }

.btn--whatsapp { background: var(--whatsapp); color: var(--white); box-shadow: 0 8px 20px rgba(37, 211, 102, 0.28); }
.btn--whatsapp:hover { background: var(--whatsapp-dark); color: var(--white); }

.btn--outline { border-color: rgba(255,255,255,.85); color: var(--white); background: rgba(255,255,255,.06); }
.btn--outline:hover { background: rgba(255,255,255,.18); }

.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--steel); }

.btn--ghost { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--steel); }

.btn--small { min-height: 44px; padding: 10px 18px; font-size: 0.88rem; }

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

/* ===== CABEÇALHO ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: var(--header-h);
  background: var(--navy);
  box-shadow: 0 2px 18px rgba(10, 30, 50, 0.22);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand__mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--steel-light);
  display: grid; place-items: center;
  overflow: hidden;
}
.brand__mark img { width: 100%; height: 100%; object-fit: cover; }
.brand__mark-fallback { font-weight: 900; color: var(--navy); font-size: 1.25rem; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { color: var(--white); font-size: 1.02rem; letter-spacing: .05em; }
.brand__text span { color: #A9C5DE; font-size: .63rem; text-transform: uppercase; letter-spacing: .08em; }

.main-nav { margin-left: auto; }
.main-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav__list a {
  display: block;
  padding: 10px 13px;
  border-radius: 8px;
  color: #E7F0F8;
  font-size: .92rem;
  font-weight: 600;
}
.main-nav__list a:hover, .main-nav__list a[aria-current="true"] { background: rgba(255,255,255,.12); color: var(--white); }

.header-cta { flex: 0 0 auto; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span { display: block; height: 3px; border-radius: 3px; background: var(--white); margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-panel {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 890;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 20px 26px;
  display: none;
  box-shadow: 0 18px 30px rgba(10,30,50,.25);
}
.mobile-panel.is-open { display: block; }
.mobile-panel ul { list-style: none; margin: 0 0 18px; padding: 0; }
.mobile-panel a {
  display: block;
  padding: 14px 12px;
  color: var(--white);
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.mobile-panel .btn { width: 100%; }

@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-cta span { display: none; }
  .header-cta { padding: 12px; min-width: 44px; }
}

@media (max-width: 520px) {
  :root { --header-h: 64px; }
  .brand__text span { display: none; }
  .brand__text strong { font-size: .92rem; }
  .brand__mark { width: 40px; height: 40px; }
  .site-header__inner { gap: 10px; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--white);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,26,44,.96) 0%, rgba(8,26,44,.90) 42%, rgba(8,26,44,.55) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 76px; }
.hero__content { max-width: 680px; }
.hero h1 { color: var(--white); }
.hero h1 span { color: #8FC0EA; }
.hero__subtitle { font-size: 1.08rem; color: #D9E7F3; max-width: 620px; margin-bottom: 30px; }
.hero .btn--outline { background: rgba(255,255,255,.04); }

@media (max-width: 700px) {
  .hero { min-height: 620px; }
  .hero__overlay { background: linear-gradient(180deg, rgba(8,26,44,.82) 0%, rgba(8,26,44,.94) 100%); }
  .hero__inner { padding-top: 104px; padding-bottom: 70px; }
  .hero__subtitle { font-size: 1rem; }
  .hero .btn { width: 100%; }
}

/* ===== DIFERENCIAIS ===== */
.benefits { background: var(--white); border-bottom: 1px solid var(--line); }
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.benefit {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
}
.benefit__icon {
  flex: 0 0 46px; height: 46px;
  border-radius: 12px;
  background: #EAF2F9;
  color: var(--steel);
  display: grid; place-items: center;
}
.benefit__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.benefit h3 { font-size: 1rem; margin-bottom: 4px; }
.benefit p { font-size: .88rem; color: var(--muted); margin: 0; }

@media (max-width: 980px) { .benefits__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 22px; } }
@media (max-width: 560px) { .benefits__grid { grid-template-columns: 1fr; gap: 22px; } }

/* ===== VITRINE ===== */
.rental-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.rental-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.rental-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(15,43,70,.16); }
.rental-card__media {
  background: #EDF3F8;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.rental-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.rental-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.rental-card__body h3 { margin-bottom: 8px; }
.rental-card__body p { color: var(--muted); font-size: .92rem; flex: 1; }
.rental-card__body .btn { margin-top: 16px; align-self: flex-start; }

@media (max-width: 980px) { .rental-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .rental-grid { grid-template-columns: 1fr; } }

.partner-band {
  margin-top: 48px;
  background: var(--steel);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.partner-band h3 { color: var(--white); max-width: 620px; }
.partner-band p { color: #DCEAF6; margin-bottom: 0; max-width: 620px; }
.partner-band .btn { flex: 0 0 auto; }
@media (max-width: 760px) { .partner-band { flex-direction: column; align-items: flex-start; padding: 26px; } .partner-band .btn { width: 100%; } }

/* ===== CATÁLOGO ===== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 42px;
}
.catalog-item {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 24px 18px;
  text-align: center;
}
.catalog-item__icon {
  width: 50px; height: 50px;
  margin: 0 auto 14px;
  border-radius: 12px;
  background: rgba(159,198,234,.16);
  color: #BBD8F1;
  display: grid; place-items: center;
}
.catalog-item__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.catalog-item h3 { font-size: 1.02rem; margin: 0; }
.catalog-cta {
  background: rgba(255,255,255,.07);
  border-left: 4px solid var(--amber);
  border-radius: 12px;
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.catalog-cta p { margin: 0; max-width: 720px; color: #E4EFF8; }
.catalog-cta .btn { flex: 0 0 auto; }
@media (max-width: 980px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .catalog-cta { flex-direction: column; align-items: flex-start; } .catalog-cta .btn { width: 100%; } }
@media (max-width: 460px) { .catalog-grid { grid-template-columns: 1fr 1fr; gap: 12px; } .catalog-item { padding: 18px 10px; } }

/* ===== SERVIÇOS / SOBRE ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}
.split__text .lead { margin-bottom: 20px; }
.split__media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.split__media figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--light); }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.split__media figure:last-child img { aspect-ratio: 4 / 5; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split__media { grid-template-columns: 1fr 1fr; }
  .split__media img { aspect-ratio: 1 / 1; }
}
@media (max-width: 460px) { .split__media { grid-template-columns: 1fr; } }

/* ===== PASSOS ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  box-shadow: var(--shadow);
}
.step__number {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: grid; place-items: center;
  font-weight: 900;
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: .94rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ===== SOBRE / PENDÊNCIAS ===== */
.pending-note {
  margin-top: 22px;
  border: 1px dashed var(--amber);
  background: #FFF9EE;
  color: #6B4A16;
  border-radius: 12px;
  padding: 18px 20px;
  font-size: .9rem;
}
.pending-note strong { display: block; color: #8A5A0A; margin-bottom: 4px; letter-spacing: .04em; }
.map-placeholder {
  margin-top: 20px;
  border: 1px dashed var(--steel);
  border-radius: 12px;
  background: var(--light);
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}
.map-placeholder strong { color: var(--navy); }

/* ===== CTA FINAL ===== */
.final-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
  color: var(--white);
  text-align: center;
}
.final-cta .eyebrow { color: var(--white); }
.final-cta h2 { color: var(--white); max-width: 760px; margin-inline: auto; }
.final-cta p { color: #DCEAF6; max-width: 620px; margin-inline: auto; }
.final-cta .btn { margin-top: 12px; }

/* ===== RODAPÉ ===== */
.site-footer { background: var(--navy-deep); color: #C9D9E8; padding: 68px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 44px; }
.footer-grid h3 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.footer-about { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-about img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--white); }
.footer-grid p, .footer-grid li { font-size: .9rem; color: #B9CCDD; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a:not(.btn) { color: #DCEAF6; }
.footer-grid a:not(.btn):hover { color: var(--white); text-decoration: underline; }
.footer-contacts { display: grid; gap: 10px; }
.footer-contacts .btn { justify-content: flex-start; width: 100%; }
.footer-bottom {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: .85rem;
  color: #9FB5C9;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } .footer-grid > div:first-child { grid-column: auto; } }

/* ===== WHATSAPP FLUTUANTE ===== */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 950;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37,211,102,.42);
  transition: transform .18s ease, background .18s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); background: var(--whatsapp-dark); color: var(--white); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.wa-float::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,.45);
  animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse { 0% { transform: scale(.85); opacity: .8; } 100% { transform: scale(1.25); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ===== UTILITÁRIOS ===== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.no-margin { margin: 0; }
