/* ==========================================================================
   Marques & Oliveira Serviços Administrativos — estilos
   ========================================================================== */

:root {
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --primary: #1F4F66;
  --primary-dark: #163B4D;
  --primary-tint: #E7EEF1;
  --accent: #FF9F43;
  --accent-dark: #E68A2E;
  --accent-alt: #2ECC71;
  --accent-alt-dark: #27AE60;
  --border: #E5E9F0;
  --border-strong: #CBD2E1;
  --text: #2B3440;
  --text-muted: #5A6B7A;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 16px rgba(31, 79, 102, 0.08);
  --max-width: 1100px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  color: var(--primary);
  line-height: 1.25;
  margin: 0 0 1rem;
  font-weight: 700;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }

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

.section {
  padding: 4rem 0;
  scroll-margin-top: 80px;
}

.section-alt {
  background: var(--primary-tint);
}

.section-header {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
}

#beneficios .section-header {
  max-width: none;
}

#beneficios .section-header h2 {
  white-space: nowrap;
  font-size: clamp(0.8rem, 3.6vw, 2rem);
}

.text-muted {
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  min-height: 48px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  line-height: 1.2;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #24303A;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.05rem;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
}

.main-nav {
  display: none;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-cta {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.mobile-nav {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav a {
  display: block;
  padding: 0.65rem 0;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.mobile-nav .btn {
  margin-top: 0.75rem;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: 3.5rem 0 3rem;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.hero h1 {
  font-size: 2.1rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.hero-actions .btn {
  width: 100%;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.hero-trust svg {
  width: 18px;
  height: 18px;
  color: var(--accent-alt-dark);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Sobre
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.about-illustration {
  order: -1;
}

.about-illustration svg {
  width: 100%;
  height: auto;
}

.founder-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.founder-avatar svg {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   Cards grid (serviços, benefícios)
   -------------------------------------------------------------------------- */

.cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.cards-grid .card {
  flex: 1 1 100%;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card-icon {
  width: 44px;
  height: 44px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-sm);
  background: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin-bottom: 0.4rem;
  text-align: center;
}

.card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Para quem — colunas
   -------------------------------------------------------------------------- */

.audience-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.audience-grid .audience-item {
  flex: 1 1 100%;
}

.audience-item {
  text-align: left;
}

.audience-item .card-icon {
  margin-bottom: 0.85rem;
}

.audience-item h3 {
  font-size: 1.05rem;
  text-align: center;
}

.audience-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Como funciona — timeline
   -------------------------------------------------------------------------- */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  counter-reset: step;
}

.timeline-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.timeline-number {
  counter-increment: step;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.timeline-number::before {
  content: counter(step);
}

.timeline-content h3 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Depoimentos
   -------------------------------------------------------------------------- */

.testimonials-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.testimonial p {
  font-style: italic;
  color: var(--text);
  margin-bottom: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.testimonial-author strong {
  color: var(--primary);
  display: block;
}

.testimonial-note {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 2rem auto 0;
}

/* --------------------------------------------------------------------------
   Formulário de contato
   -------------------------------------------------------------------------- */

.contact-layout {
  display: grid;
  gap: 2rem;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.form-field {
  margin-bottom: 1.1rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 79, 102, 0.12);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  color: #C0392B;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: none;
}

.form-field.has-error input,
.form-field.has-error textarea {
  border-color: #C0392B;
}

.form-field.has-error .form-error {
  display: block;
}

/* honeypot escondido — não usar display:none (alguns bots ignoram) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-privacy {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.85rem;
  margin-bottom: 0;
}

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  display: none;
}

.form-status.is-success {
  display: block;
  background: rgba(46, 204, 113, 0.12);
  color: #1E8449;
  border: 1px solid rgba(46, 204, 113, 0.35);
}

.form-status.is-error {
  display: block;
  background: rgba(192, 57, 43, 0.08);
  color: #C0392B;
  border: 1px solid rgba(192, 57, 43, 0.3);
}

/* --------------------------------------------------------------------------
   WhatsApp CTA section
   -------------------------------------------------------------------------- */

.whatsapp-box {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem 1.75rem;
  text-align: center;
}

.whatsapp-box h2 {
  color: #fff;
}

.whatsapp-box p {
  color: #DCE6EA;
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.whatsapp-box .btn-primary {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--primary-dark);
  color: #C7D3D9;
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

.footer-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #C7D3D9;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: #96A7AF;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Responsivo — tablet e desktop
   -------------------------------------------------------------------------- */

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }

  .hero-actions .btn {
    width: auto;
  }

  .cards-grid .card {
    flex: 0 1 calc(50% - 0.625rem);
    max-width: calc(50% - 0.625rem);
  }

  .audience-grid .audience-item {
    flex: 0 1 calc(50% - 0.75rem);
    max-width: calc(50% - 0.75rem);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .whatsapp-box .btn-primary {
    width: auto;
  }
}

@media (min-width: 768px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 2rem; }

  .hero h1 { font-size: 2.75rem; }

  .about-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .about-illustration {
    order: 0;
  }

  .timeline {
    flex-direction: row;
    align-items: flex-start;
  }

  .timeline-step {
    flex: 1;
    flex-direction: column;
    text-align: center;
  }

  .timeline-number {
    margin: 0 auto;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
  }
}

@media (min-width: 900px) {
  .main-nav {
    display: block;
  }

  .header-cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .cards-grid .card {
    flex: 0 1 calc(33.333% - 0.834rem);
    max-width: calc(33.333% - 0.834rem);
  }

  .audience-grid .audience-item {
    flex: 0 1 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
  }
}
