/* ============================================================
   DAMMA INDUSTRIAL — LP DE QUALIFICAÇÃO DE LEADS
   Design tokens herdados de tailwind.config.ts + index.css do
   site institucional (damma.ind.br) — mesma paleta, mesma
   tipografia, para manter consistência de marca. Página estática,
   independente, sem build step.
   ============================================================ */

/* ---------- Tokens (HSL literal, extraídos do site institucional) ---------- */
:root {
  --background: hsl(0 0% 100%);
  --foreground: hsl(210 20% 16%);

  --card: hsl(210 20% 97%);
  --card-foreground: hsl(210 20% 16%);

  --primary: hsl(199 100% 43%);
  --primary-foreground: hsl(0 0% 100%);

  --secondary: hsl(210 15% 93%);
  --secondary-foreground: hsl(210 20% 16%);

  --muted: hsl(210 15% 95%);
  --muted-foreground: hsl(210 10% 45%);

  --accent-red: hsl(357 82% 51%);

  --border: hsl(210 15% 88%);
  --radius: 0.75rem;

  --font-heading: 'Bebas Neue', Impact, sans-serif;
  --font-body: 'Roboto', system-ui, sans-serif;

  --gradient-hero: linear-gradient(135deg, hsl(210 20% 14%) 0%, hsl(210 25% 20%) 50%, hsl(210 20% 16%) 100%);
  --gradient-cta: linear-gradient(135deg, hsl(199 100% 43%) 0%, hsl(199 90% 35%) 100%);
  --shadow-soft: 0 4px 30px -8px hsl(199 100% 43% / 0.25);
  --shadow-card: 0 8px 40px -12px hsl(210 20% 16% / 0.12);

  /* Spacing rhythm — 4px grid, section gaps generous strategy */
  --space-section-y: 64px;   /* mobile section padding */
  --space-section-y-lg: 112px; /* desktop section padding */
  --space-stack: 24px;        /* vertical rhythm baseline */
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, blockquote { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: 760px; }

.section {
  padding: var(--space-section-y) 0;
}
@media (min-width: 768px) {
  .section { padding: var(--space-section-y-lg) 0; }
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(199 100% 33%);
  margin-bottom: 12px;
}
.eyebrow--light { color: hsl(199 100% 65%); }

.section__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--foreground);
  margin-bottom: var(--space-stack);
}
@media (min-width: 768px) {
  .section__title { font-size: 2.75rem; }
}
.section__title--light { color: var(--primary-foreground); }

.section__head { text-align: center; margin-bottom: 40px; }
.section__head .section__title { margin-bottom: 8px; }
.section__head .eyebrow { display: block; text-align: center; }

.section__cta { margin-top: 40px; }

/* ---------- Buttons / CTA (single recurring WhatsApp button) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: calc(var(--radius) - 2px);
  font-family: var(--font-body);
  font-weight: 700;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.98); }

.btn--cta {
  background: var(--gradient-cta);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-soft);
  padding: 16px 24px;
}
.btn--cta:hover { box-shadow: 0 6px 36px -6px hsl(199 100% 43% / 0.4); }

.btn--lg { min-height: 60px; }
.btn--full { width: 100%; justify-content: center; }
.btn--closing { width: 100%; justify-content: center; }
@media (min-width: 480px) {
  .btn--closing { width: auto; justify-content: flex-start; }
}

.btn__icon {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex-shrink: 0;
}
.btn span { display: flex; flex-direction: column; line-height: 1.25; }
.btn strong { font-size: 1rem; font-weight: 700; }
.btn small { font-size: 0.78rem; font-weight: 400; opacity: 0.9; }

/* ============================================================
   SEÇÃO 1 — HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--gradient-hero);
  color: var(--primary-foreground);
  padding: 56px 0 40px;
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, hsl(199 100% 43% / 0.18), transparent 55%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 1;
}
.hero__headline {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--primary-foreground);
  margin-bottom: 20px;
}
@media (min-width: 768px) {
  .hero__headline { font-size: 3.75rem; }
}
.hero__sub {
  font-size: 1rem;
  line-height: 1.65;
  color: hsl(210 20% 88%);
  max-width: 620px;
  margin-bottom: 32px;
}
@media (min-width: 768px) {
  .hero__sub { font-size: 1.15rem; }
}

/* Sticky CTA bar — appears once hero scrolls out of view; same single CTA, not a second one */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--background);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px -12px hsl(210 20% 16% / 0.2);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
@media (min-width: 768px) {
  .sticky-cta { display: none; } /* mobile-first affordance; desktop CTAs stay in-flow and reachable */
}
@media (max-width: 767px) {
  /* reserves space below the last section so the fixed sticky bar never covers the FAQ or the closing CTA */
  main { padding-bottom: 84px; }
}

/* ============================================================
   SEÇÃO 2 — DORES / SINTOMAS
   ============================================================ */
.section--symptoms { background: var(--background); }
.symptom-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.symptom-list__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--card);
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--border);
}
.symptom-list__icon {
  width: 22px;
  height: 22px;
  fill: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.symptom-list__item p {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--foreground);
}

/* ============================================================
   SEÇÃO 3 — REFRAME
   ============================================================ */
.section--reframe {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section__title--reframe { color: var(--primary); }
.reframe__body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--foreground);
  margin-bottom: var(--space-stack);
}
.reframe__body--emphasis {
  font-weight: 700;
}
.reframe__bridge {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--muted-foreground);
}

/* ============================================================
   SEÇÃO 4 — AUTO-IDENTIFICAÇÃO (carrossel de 6 segmentos)
   ============================================================ */
.section--segments { background: var(--background); }

.segment-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 16px;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.segment-carousel::-webkit-scrollbar { height: 6px; }
.segment-carousel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.segment-card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 72%;
  max-width: 260px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.segment-card:hover { border-color: hsl(199 100% 43% / 0.4); }

.segment-card__icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: hsl(199 100% 43% / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.segment-card__icon { width: 26px; height: 26px; fill: var(--primary); }
.segment-card__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--foreground);
  margin-bottom: 8px;
}
.segment-card__desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .segment-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
    margin: 0;
    padding: 0;
  }
  .segment-card { width: auto; max-width: none; }
}

.section__closing {
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  max-width: 620px;
  margin: 40px auto 0;
}

/* ============================================================
   SEÇÃO 5 — MECANISMO
   ============================================================ */
.section--mechanism {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.mechanism__body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--foreground);
  margin-bottom: 32px;
}
.benefit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .benefit-grid { grid-template-columns: 1fr 1fr; }
}
.benefit-grid__item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  padding: 14px 16px;
  font-weight: 500;
  font-size: 0.92rem;
}
.benefit-grid__icon { width: 20px; height: 20px; fill: var(--primary); flex-shrink: 0; }

/* ============================================================
   SEÇÃO 6 — PROVA SOCIAL (Opção A)
   ============================================================ */
.section--proof { background: var(--background); }
.proof-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
}
.proof-card__quote {
  padding-left: 16px;
  border-left: 3px solid var(--primary);
  margin-bottom: 20px;
}
.proof-card__quote:last-of-type { margin-bottom: 16px; }
.proof-card__quote p {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--foreground);
  font-style: italic;
}
.proof-card__note {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ============================================================
   SEÇÃO 7 — FAQ (acordeão)
   ============================================================ */
.section--faq { background: var(--card); border-top: 1px solid var(--border); }
.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.accordion__item {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
}
.accordion__header { margin: 0; }
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--foreground);
}
.accordion__chevron {
  width: 22px;
  height: 22px;
  fill: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.accordion__trigger[aria-expanded="true"] .accordion__chevron { transform: rotate(180deg); }

.accordion__panel {
  padding: 0 20px 20px;
}
.accordion__panel p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* ============================================================
   SEÇÃO 8 — CTA FINAL
   ============================================================ */
.section--closing {
  background: var(--gradient-hero);
  text-align: center;
}
.section--closing .container { display: flex; flex-direction: column; align-items: center; }
.closing__body {
  font-size: 1.05rem;
  color: hsl(210 20% 88%);
  max-width: 520px;
  margin-bottom: 32px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 24px 0;
  text-align: center;
  background: var(--background);
  border-top: 1px solid var(--border);
}
.site-footer p {
  font-size: 0.78rem;
  color: var(--muted-foreground);
}
