/* ==========================================================================
   Dolg — estilos da landing page
   ========================================================================== */

/* Tokens ------------------------------------------------------------------ */
:root {
  --surface: #FFFFFF;
  --surface-alt: #F4F4F2;
  --graphite: #1E1F24;
  --on-graphite: #FFFFFF;
  --on-graphite-muted: #B9BBC1;
  --graphite-line: #3A3C44;
  --ink: #1E1F24;
  --ink-muted: #5C5F66;
  --accent: #FF6B00;
  --accent-hover: #FF8226;
  --on-accent: #1E1F24;
  --accent-text: #C24F00;
  --steel: #2D4A7A;
  --steel-on-graphite: #8FA9D6;
  --line: #E3E3DF;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-4: 16px;
  --space-6: 24px;
  --space-10: 40px;

  --radius-field: 4px;
  --radius: 10px;
  --radius-pill: 999px;

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 112px);
  --header-h: 68px;
  --measure: 65ch;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #16171B;
    --surface-alt: #1E1F24;
    --graphite: #2A2B31;
    --on-graphite: #F2F2F0;
    --on-graphite-muted: #B9BBC1;
    --graphite-line: #3E4048;
    --ink: #F2F2F0;
    --ink-muted: #A3A6AD;
    --accent: #FF7A1A;
    --accent-hover: #FF8F40;
    --on-accent: #1E1F24;
    --accent-text: #FF8A3D;
    --steel: #8FA9D6;
    --line: #2E3036;

    color-scheme: dark;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, p, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; }

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

.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;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Tipografia -------------------------------------------------------------- */
.display {
  font-size: clamp(34px, 6vw, 48px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.h1 {
  font-size: clamp(26px, 4.2vw, 32px);
  line-height: 1.19;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.eyebrow,
.tag {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Destaque de uma palavra por título */
.hl { color: var(--accent-text); }
.band-graphite .hl { color: var(--accent); }

/* Faixas ------------------------------------------------------------------ */
.band-graphite {
  background: var(--graphite);
  color: var(--on-graphite);
}
.band-graphite .eyebrow { color: var(--on-graphite-muted); }
.band-alt { background: var(--surface-alt); }

.section { padding-block: var(--section-y); }

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-10);
}
.section-head .eyebrow { margin-bottom: var(--space-2); }
.section-intro {
  margin-top: var(--space-4);
  color: var(--ink-muted);
  max-width: var(--measure);
}

/* Logo -------------------------------------------------------------------- */
.logo {
  font-family: var(--font);
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--ink);
}
.band-graphite .logo,
.site-header .logo { color: var(--on-graphite); }
.logo-dot { color: var(--accent); }

/* Botões ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: 700 16px/20px var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }

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

.btn-outline {
  border-color: var(--on-graphite-muted);
  color: var(--on-graphite);
  background: transparent;
}
.btn-outline:hover { border-color: var(--on-graphite); background: rgba(255, 255, 255, .06); }

.btn-ghost {
  min-height: 44px;
  padding: 10px 16px;
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost .icon { color: var(--steel); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Ícones ------------------------------------------------------------------ */
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: var(--steel);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 32px; height: 32px; stroke-width: 1.5; }

/* Cabeçalho --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--graphite);
  color: var(--on-graphite);
  border-bottom: 1px solid var(--graphite-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: var(--header-h);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav-list {
  display: flex;
  gap: var(--space-6);
}
.nav-list a {
  display: inline-block;
  padding-block: var(--space-2);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--on-graphite-muted);
  text-decoration: none;
  transition: color .18s ease;
}
.nav-list a:hover { color: var(--on-graphite); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--graphite-line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--on-graphite);
  font: 600 14px/20px var(--font);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    padding: var(--space-4) var(--gutter) var(--space-6);
    background: var(--graphite);
    border-bottom: 1px solid var(--graphite-line);
  }
  /* Sem JS o menu fica aberto; com JS ele começa recolhido */
  .js .site-nav:not(.is-open) { display: none; }

  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a {
    display: block;
    padding-block: 12px;
    font-size: 16px;
    border-bottom: 1px solid var(--graphite-line);
  }
  .site-nav .btn { width: 100%; min-height: 48px; font-size: 16px; }
}

/* Hero -------------------------------------------------------------------- */
.hero { padding-block: clamp(56px, 9vw, 104px) clamp(64px, 10vw, 120px); }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}
.hero .eyebrow { margin-bottom: var(--space-4); }
.hero h1 { max-width: 16ch; }
.lead {
  margin-top: var(--space-6);
  max-width: 52ch;
  font-size: 18px;
  line-height: 28px;
  color: var(--on-graphite-muted);
}
.hero .btn-row { margin-top: var(--space-10); }

.hero-card {
  border: 1px solid var(--graphite-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
  overflow: hidden;
}
.hero-card-bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 12px var(--space-4);
  border-bottom: 1px solid var(--graphite-line);
}
.hero-card-dots { display: flex; gap: 6px; }
.hero-card-dots i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--graphite-line);
}
.hero-card-url {
  flex: 1;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .06);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--on-graphite);
}
.hero-card-list { padding: var(--space-2) var(--space-6) var(--space-4); }
.hero-card-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 14px;
  font-weight: 600;
}
.hero-card-list li + li { border-top: 1px solid var(--graphite-line); }
.hero-card .icon { stroke: var(--steel-on-graphite); }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-card { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-card { animation-delay: .12s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero .btn-row .btn { flex: 1 1 100%; }
}

/* Cards / Serviços -------------------------------------------------------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}
.card {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.service .icon-lg { margin-bottom: var(--space-6); }
.service h3 { font-size: 24px; line-height: 30px; }
.service-for {
  margin-top: var(--space-2);
  color: var(--ink-muted);
}
.service-for strong { color: var(--ink); font-weight: 600; }

.check-list {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}
.check-list li {
  position: relative;
  padding: 6px 0 6px 26px;
  font-size: 14px;
  line-height: 20px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--steel);
  border-bottom: 2px solid var(--steel);
  transform: rotate(-45deg);
}

.service .check-list { margin-bottom: var(--space-6); }
.card-cta {
  margin-top: auto;
  align-self: flex-start;
}

@media (max-width: 960px) {
  .cards-3 { grid-template-columns: 1fr; max-width: 560px; }
}

/* Modelos ----------------------------------------------------------------- */
.models {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-10) var(--space-6);
}
.model {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.model-media {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--graphite);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.model-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .4s ease;
}
.model:hover .model-media img { transform: scale(1.02); }

.model-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  flex: 1;
  padding: var(--space-6);
}
.model-body h3 { font-size: 24px; line-height: 30px; }
.model-body > p:not(.tag) { color: var(--ink-muted); max-width: var(--measure); }
.model-body .btn { margin-top: auto; }
.model-body > p:not(.tag) + .btn { margin-top: var(--space-4); }

.tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--steel);
}

@media (max-width: 760px) {
  .models { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* Por que a Dolg ---------------------------------------------------------- */
.why {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--space-10) clamp(40px, 6vw, 96px);
  align-items: start;
}
.why-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + var(--space-10)); }
.why-list li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: var(--space-6);
  padding-block: var(--space-6);
  border-top: 1px solid var(--line);
}
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-list p {
  margin-top: var(--space-2);
  color: var(--ink-muted);
  max-width: var(--measure);
}

@media (max-width: 860px) {
  .why { grid-template-columns: 1fr; }
  .why-head { position: static; }
}

/* Como funciona ----------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-6);
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding-top: var(--space-6);
  border-top: 2px solid var(--ink);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: var(--space-4);
  font-size: 14px;
  line-height: 20px;
  font-weight: 800;
  color: var(--steel);
  letter-spacing: .04em;
}
.steps p {
  margin-top: var(--space-2);
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
}

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-10) var(--space-6); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; gap: var(--space-6); }
  .steps li {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: var(--space-4);
    padding-top: var(--space-4);
  }
  .steps li::before { grid-row: span 2; margin: 2px 0 0; }
  .steps p { grid-column: 2; }
}

/* Dúvidas ----------------------------------------------------------------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: var(--space-10) clamp(40px, 6vw, 96px);
  align-items: start;
}
.faq .section-head { margin-bottom: 0; }

.faq-list details {
  border-top: 1px solid var(--line);
}
.faq-list details:last-child { border-bottom: 1px solid var(--line); }

.faq-list summary {
  position: relative;
  display: block;
  padding: 20px 40px 20px 0;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 26px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--steel);
  border-bottom: 2px solid var(--steel);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: translateY(4px) rotate(-135deg); }
.faq-list summary:hover { color: var(--accent-text); }

.faq-answer {
  padding-bottom: var(--space-6);
  max-width: var(--measure);
  color: var(--ink-muted);
}
.faq-answer p + p { margin-top: var(--space-4); }

@media (max-width: 860px) {
  .faq { grid-template-columns: 1fr; }
}

/* Chamada final ----------------------------------------------------------- */
.cta { padding-block: clamp(64px, 9vw, 104px); }
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6) var(--space-10);
}
.cta h2 { max-width: 22ch; }

/* Rodapé ------------------------------------------------------------------ */
.site-footer {
  padding-block: var(--space-10);
  border-top: 1px solid var(--graphite-line);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-6) var(--space-10);
  align-items: start;
}
.footer-tag {
  margin-top: var(--space-2);
  font-size: 14px;
  line-height: 20px;
  color: var(--on-graphite-muted);
}
.footer-contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  gap: var(--space-2) var(--space-10);
  font-size: 14px;
  line-height: 20px;
}
.footer-contacts a { text-decoration: underline; text-underline-offset: 3px; }
.footer-contacts a:hover { color: var(--accent); }

.footer-label {
  display: block;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--on-graphite-muted);
}
.footer-copy {
  grid-column: 1 / -1;
  padding-top: var(--space-6);
  border-top: 1px solid var(--graphite-line);
  font-size: 14px;
  line-height: 20px;
  color: var(--on-graphite-muted);
}

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-contacts { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* Movimento reduzido ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
