/* Otim Contabilidade — Design System */

:root {
  --roxo: #4B1F7A;
  --laranja: #F5821F;
  --lavanda: #A88FD1;
  --grafite: #2A2139;
  --cinza-medio: #6E6B74;
  --cinza-claro: #E3DEEA;
  --base-clara: #F7F5FA;
  --branco: #FFFFFF;
  --sucesso: #2F9E5C;
  --erro: #D93A3A;
  --atencao: #E3A73A;

  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius-pill: 999px;
  --radius-btn: 14px;
  --radius-card: 12px;
  --radius-badge: 8px;
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

#contato { scroll-margin-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--grafite);
  background: var(--branco);
  line-height: 1.5;
  font-size: 16px;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--roxo);
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: 1.125rem; font-weight: 600; }

p { color: var(--grafite); }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }

.section--dark {
  background: var(--roxo);
  color: var(--branco);
  position: relative;
  overflow: hidden;
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--branco); }
.section--dark p { color: rgba(255,255,255,0.85); }

.section--light-alt { background: var(--base-clara); }

/* Diamond texture */
.diamond-texture {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 38px, rgba(255,255,255,0.5) 38px, rgba(255,255,255,0.5) 40px),
                     repeating-linear-gradient(-45deg, transparent, transparent 38px, rgba(255,255,255,0.5) 38px, rgba(255,255,255,0.5) 40px);
  pointer-events: none;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cinza-claro);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.header__logo img { height: 46px; width: auto; }
.header__nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.header__nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grafite);
}
.header__nav a:hover { color: var(--roxo); }
.header__actions { display: flex; gap: 10px; align-items: center; }

@media (max-width: 860px) {
  .header__inner { flex-wrap: wrap; gap: 10px; padding: 12px 20px; }
  .header__nav {
    order: 3;
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .header__nav a { white-space: nowrap; font-size: 0.85rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn--laranja {
  background: var(--laranja);
  color: var(--grafite);
}
.btn--laranja:hover { box-shadow: 0 8px 20px rgba(245,130,31,0.35); }

.btn--roxo {
  background: var(--roxo);
  color: var(--branco);
}
.btn--roxo:hover { box-shadow: 0 8px 20px rgba(75,31,122,0.3); }

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--branco);
  color: var(--branco);
}
.btn--outline-roxo {
  background: transparent;
  border: 1.5px solid var(--roxo);
  color: var(--roxo);
}

.btn--sm { padding: 9px 18px; font-size: 0.85rem; }

.btn svg { width: 18px; height: 18px; }

/* Pill logo wrap for dark backgrounds */
.logo-pill {
  display: inline-flex;
  align-items: center;
  background: var(--branco);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
}
.logo-pill img { height: 28px; width: auto; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
  position: relative;
  z-index: 1;
}
.hero__eyebrow {
  display: inline-block;
  background: rgba(245,130,31,0.15);
  color: var(--laranja);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.hero h1 { margin-bottom: 18px; }
.hero p { font-size: 1.1rem; margin-bottom: 30px; max-width: 46ch; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 24px;
  padding: 32px;
  width: 100%;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: left; padding-top: 40px; }
}

/* Diamond badge / symbol */
.diamond-symbol {
  width: 56px;
  height: 56px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--branco);
  border: 1px solid var(--cinza-claro);
  border-radius: var(--radius-card);
  padding: 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: 0 12px 30px rgba(75,31,122,0.08); transform: translateY(-2px); }

.card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(75,31,122,0.25));
}

.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.9rem; color: var(--cinza-medio); }

/* Section headings */
.section-head {
  max-width: 620px;
  margin: 0 auto 8px;
  text-align: center;
}
.section-head--left { text-align: left; margin: 0 0 8px; }
.section-head .eyebrow {
  display: block;
  color: var(--laranja);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head p { color: var(--cinza-medio); margin-top: 12px; }

.section-head--center { text-align: center; margin: 0 auto; }

/* Pilares / process */
.process-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 56px;
}
.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 150px;
}
.process-step .card__icon { margin: 0 auto 14px; }
.process-step span { font-size: 0.85rem; color: rgba(255,255,255,0.85); }
.process-connector {
  color: var(--lavanda);
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Quote / question banner */
.question-banner {
  background: var(--base-clara);
  border-radius: 20px;
  padding: 80px 48px;
  text-align: center;
  margin: 64px 0;
}
.question-banner h2 { margin-bottom: 16px; }
.question-banner p { color: var(--cinza-medio); font-size: 1.05rem; margin-bottom: 24px; }

/* Testimonial / proof strip */
.proof-strip {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--cinza-claro);
  border-bottom: 1px solid var(--cinza-claro);
}
.proof-item { text-align: center; }
.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--roxo);
}
.proof-item span { font-size: 0.85rem; color: var(--cinza-medio); }

/* Services list style */
.service-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--cinza-claro);
}
.service-row:last-child { border-bottom: none; }
.service-row__check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(245,130,31,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--laranja);
  flex-shrink: 0;
}
.service-row h3 { margin-bottom: 4px; font-size: 1rem; }
.service-row p { font-size: 0.9rem; color: var(--cinza-medio); }

/* Footer */
.footer {
  background: var(--grafite);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer h4 {
  color: var(--branco);
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.footer a:hover { color: var(--laranja); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom));
  right: calc(24px + env(safe-area-inset-right));
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(37,211,102,0.4);
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

/* Audience toggle (institutional home) */
.audience-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
.audience-card {
  border-radius: 20px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.audience-card--b2c { background: var(--roxo); color: var(--branco); }
.audience-card--b2b { background: var(--grafite); color: var(--branco); }
.audience-card h3 { color: var(--branco); font-size: 1.4rem; margin-bottom: 10px; }
.audience-card p { color: rgba(255,255,255,0.8); margin-bottom: 24px; font-size: 0.95rem; }
@media (max-width: 760px) {
  .audience-split { grid-template-columns: 1fr; }
}

/* Tag / badge */
.tag {
  display: inline-block;
  background: var(--cinza-claro);
  color: var(--roxo);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-badge);
}

/* Mobile nav toggle (simple, no JS menu complexity needed beyond show/hide) */
.mobile-nav-toggle { display: none; }
@media (max-width: 860px) {
  .mobile-nav-toggle {
    display: flex;
    background: none;
    border: none;
    cursor: pointer;
  }
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

.split-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 760px) {
  .split-2col { grid-template-columns: 1fr; gap: 32px; }
}

.split-bio {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 760px) {
  .split-bio { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; }
  .header__actions .btn { font-size: 0.8rem; padding: 9px 14px; }
}
