/* ============================================================
   Bruno Antunes Engenharia Mecânica — Landing Page
   Mobile-first · DM Sans · max-width 42rem
   ============================================================ */

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

:root {
  --bg:         #F2F5F8;
  --surface:    #FFFFFF;
  --blue:       #101828;
  --blue-dark:  #101828;
  --blue-mid:   #2F6BFF;
  --blue-light: #EAF1FF;
  --amber:      #f59e0b;
  --amber-dark: #d97706;
  --text:       #111827;
  --text-mid:   #4B5563;
  --text-light: #94a3b8;
  --white:      #FFFFFF;
  --border:     #DDE4EC;
  --wa:         #25D366;
  --wa-dark:    #1DA851;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06);
  --shadow:     0 2px 16px rgba(16,24,40,.08);
  --radius:     12px;
  --radius-sm:  8px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.container {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 600px) {
  .container { padding: 0 2rem; }
}

/* ── Typography ───────────────────────────────────────── */

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--blue-dark);
}

.section-label {
  font-size: 0.69rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mid);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.body-text {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.65;
  font-weight: 300;
}

/* ── Buttons ──────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  gap: 8px;
  transition: background .18s, border-color .18s, transform .12s;
  white-space: nowrap;
  line-height: 1;
}

.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--amber);
  color: var(--blue-dark);
  border-color: var(--amber);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
}

.btn-outline {
  background: transparent;
  color: var(--blue-dark);
  border-color: var(--blue-mid);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--blue-light);
  border-color: var(--blue-dark);
}

/* WhatsApp green button */
.btn-wa {
  background: #25D366 !important;
  color: #ffffff !important;
  border: 2px solid #25D366 !important;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(37,211,102,.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .18s, border-color .18s, transform .15s, box-shadow .18s;
}
.btn-wa:hover, .btn-wa:focus-visible {
  background: #1DA851 !important;
  border-color: #1DA851 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(37,211,102,.30);
}

.btn-wa .wa-icon,
.wa-icon { width: 20px; height: 20px; flex-shrink: 0; color: currentColor; }

@keyframes wa-soft-glow {
  0%, 100% {
    box-shadow: 0 10px 24px rgba(37,211,102,.22), 0 0 0 0 rgba(37,211,102,.30);
  }
  50% {
    box-shadow: 0 14px 32px rgba(37,211,102,.30), 0 0 0 8px rgba(37,211,102,0);
  }
}
.btn-wa-pulse { animation: wa-soft-glow 2.6s ease-in-out infinite; }

.btn-large { padding: 18px 40px; font-size: 1.05rem; }
.btn-small { padding: 10px 20px; font-size: .875rem; }
.btn-sm    { padding: 9px 18px; font-size: .8rem; }
.btn-full  { width: 100%; }

/* ── Header ───────────────────────────────────────────── */

.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
}

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

.logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.logo-sub {
  font-size: .68rem;
  color: var(--text-mid);
  font-weight: 500;
}

.header-cta {
  display: inline-flex;
  padding: 9px 14px;
  font-size: 0.82rem;
}

@media (max-width: 420px) {
  .header-cta {
    padding: 9px 12px;
    font-size: 0.78rem;
  }
  .header-cta .wa-icon {
    width: 17px;
    height: 17px;
  }
}

/* ── Hero ─────────────────────────────────────────────── */

.hero {
  background: linear-gradient(160deg, var(--blue-dark) 0%, #0f2440 100%);
  color: var(--white);
  padding: 56px 0 64px;
}

/* Mobile: coluna única centralizada; Desktop: duas colunas */
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
}

.hero-content { width: 100%; }

.hero-visual {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

/* Desktop: duas colunas (texto esquerda / foto direita) */
@media (min-width: 700px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 3rem;
  }

  .hero-note { justify-content: flex-start; }
}

/* Portrait photo */
.hero-photo-wrap {
  position: relative;
  width: 192px;
  height: 192px;
  margin: 0 auto;
}

.hero-photo-wrap img {
  width: 192px;
  height: 192px;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  border: 3px solid rgba(255,255,255,.12);
}

.hero-cred-badge {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: var(--blue-dark);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

.hero .section-label {
  color: rgba(255,255,255,.5);
  margin-bottom: 0.75rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.55rem, 5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-sub {
  font-size: .975rem;
  color: rgba(255,255,255,.72);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  font-weight: 300;
}

/* 2×2 benefits grid */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  margin-bottom: 2rem;
  text-align: left;
}

.hero-grid-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: .8rem;
  color: rgba(255,255,255,.82);
  font-weight: 400;
  line-height: 1.4;
}

.hero-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  margin-bottom: 0.875rem;
}

.hero-cta-wrap .btn-wa {
  width: 100%;
  max-width: 340px;
}

@media (min-width: 700px) {
  .hero-cta-wrap { justify-content: flex-start; }
  .hero-cta-wrap .btn-wa { width: auto; min-width: 260px; }
}

.hero-note {
  font-size: .72rem;
  color: rgba(255,255,255,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-weight: 400;
}

/* ── Section backgrounds & padding ───────────────────── */

.why,
.authority,
.faq {
  background: var(--bg);
  padding: 64px 0;
}

.services,
.testimonials {
  background: var(--white);
  padding: 64px 0;
}

/* ── Dash list ────────────────────────────────────────── */

.dash-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.dash-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.dash-marker {
  color: var(--blue-mid);
  font-size: 1.05rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.5;
  margin-top: 0;
}

.dash-title {
  font-size: .925rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 0.2rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.dash-desc {
  font-size: .855rem;
  color: var(--text-mid);
  line-height: 1.6;
  font-weight: 300;
}

/* ── Services ─────────────────────────────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 440px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .2s, transform .2s;
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service-icon { font-size: 1.5rem; line-height: 1; }

.service-card h3 {
  font-size: .875rem;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: .815rem;
  color: var(--text-mid);
  flex: 1;
  line-height: 1.6;
  font-weight: 300;
}

.service-card .btn { align-self: flex-start; margin-top: 4px; }

/* ── Authority ────────────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}

@media (min-width: 640px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  }
}

.about-copy { text-align: left; }

.about-copy h2 { margin-bottom: 1rem; }

.about-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding: 0;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.65;
  font-weight: 300;
}

.about-list li::before {
  content: '✓';
  color: var(--blue-mid);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-photo-wrap {
  justify-self: center;
  width: min(100%, 320px);
}

@media (min-width: 640px) {
  .about-photo-wrap { justify-self: end; }
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(16,24,40,.14);
}

/* ── Testimonials ─────────────────────────────────────── */

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 440px) {
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 640px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reviews-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.5rem;
  font-size: .82rem;
  color: var(--text-mid);
  font-weight: 500;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-mid);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0;
}

.testimonial-name {
  font-size: .875rem;
  font-weight: 600;
  color: var(--blue-dark);
  line-height: 1.25;
}

.review-stars {
  font-size: .82rem;
  color: var(--amber);
  line-height: 1;
  margin-top: 2px;
}

.testimonial-card p {
  font-size: .845rem;
  color: var(--text-mid);
  font-style: italic;
  line-height: 1.65;
  font-weight: 300;
  flex: 1;
}

.testimonial-meta {
  font-size: .72rem;
  color: var(--text-light);
  font-weight: 500;
  margin-top: auto;
  padding-top: 4px;
}

/* ── FAQ ──────────────────────────────────────────────── */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--blue-dark);
  font-size: .9rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
  letter-spacing: -0.01em;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--blue-mid);
  flex-shrink: 0;
  transition: transform .2s;
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 20px 18px;
  color: var(--text-mid);
  font-size: .855rem;
  line-height: 1.65;
  font-weight: 300;
}

/* ── Final CTA ────────────────────────────────────────── */

.final-cta {
  background: var(--blue-dark);
  color: var(--white);
  text-align: center;
  padding: 64px 0;
}

.final-cta h2 {
  color: var(--white);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  margin-bottom: 0.875rem;
  letter-spacing: -0.03em;
}

.final-cta p {
  color: rgba(255,255,255,.68);
  margin: 0 auto 2rem;
  font-size: .925rem;
  line-height: 1.65;
  font-weight: 300;
}

/* ── Footer ───────────────────────────────────────────── */

.footer {
  background: #0f1c2e;
  color: rgba(255,255,255,.38);
  padding: 32px 0 80px;
  font-size: .77rem;
  line-height: 1.9;
}

@media (min-width: 600px) {
  .footer { padding-bottom: 32px; }
}

.footer a {
  color: rgba(255,255,255,.5);
  text-decoration: underline;
}

.footer a:hover { color: var(--white); }

/* ── Sticky CTA (mobile) ──────────────────────────────── */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 10px 16px 16px;
  background: linear-gradient(to top, rgba(255,255,255,.98) 55%, transparent);
  transform: translateY(100%);
  transition: transform .3s ease;
}

@media (min-width: 600px) {
  .sticky-cta { display: none; }
}

/* ── Modal ────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15,28,46,.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 32px 24px 40px;
  width: 100%;
  max-width: 480px;
  position: relative;
  transform: translateY(20px);
  transition: transform .25s;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.modal-close:hover { background: var(--border); }

.modal h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 6px;
  padding-right: 36px;
  letter-spacing: -0.02em;
}

.modal-sub {
  font-size: .84rem;
  color: var(--text-mid);
  margin-bottom: 22px;
  font-weight: 300;
}

.modal-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-option {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  transition: border-color .15s, background .15s, color .15s;
}

.modal-option:hover,
.modal-option:focus-visible {
  border-color: var(--blue-mid);
  background: var(--blue-light);
  color: var(--blue-dark);
  outline: none;
}

.modal-option.selected {
  border-color: var(--blue-dark);
  background: var(--blue-light);
  color: var(--blue-dark);
  font-weight: 600;
}

@media (min-width: 600px) {
  .modal-overlay { align-items: center; }
  .modal {
    border-radius: var(--radius);
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* ── Modal etapa 2 — formulário de lead ───────────────── */

.modal-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0 0 18px;
  cursor: pointer;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: color .15s;
}
.modal-back:hover { color: var(--blue-mid); }

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-field label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .01em;
}

.modal-field input {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.modal-field input::placeholder { color: var(--text-light); }

.modal-field input:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(47,107,255,.12);
}

.modal-error {
  font-size: .8rem;
  color: #dc2626;
  font-weight: 500;
  margin-top: -4px;
}
