/* ============================================================
   BR Cell Imports — Base (reset, tipografia, utilitários)
   ============================================================ */

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--grafite);
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

input, button, textarea, select { font: inherit; }

p, h1, h2, h3, h4 { overflow-wrap: break-word; }

ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

a { color: inherit; }
a:not([class]) { color: var(--petroleo); text-underline-offset: 3px; }

/* ── Fontes (Google Fonts CDN — substituir por woff2 self-hosted) ── */
/* [PENDÊNCIA] Baixar woff2 de Sora e Manrope e referenciar via @font-face */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Manrope:wght@400;500;600;700&display=swap');

/* ── Tipografia base ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
  margin: 0;
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }

p { margin: 0; }
p + p { margin-top: var(--sp-4); }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ── Grid 12 colunas ── */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  transition:
    background-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

.btn:focus-visible { box-shadow: var(--focus-ring); outline: none; }
.btn:active { transform: scale(.97); }

/* Turquesa (CTA primário) */
.btn--turquesa {
  background: var(--turquesa);
  color: var(--preto-verde);
  border-color: var(--turquesa);
}
.btn--turquesa:hover {
  background: var(--ciano);
  border-color: var(--ciano);
  box-shadow: var(--shadow-tq);
}

/* Outline claro (sobre fundo escuro) */
.btn--outline-light {
  background: transparent;
  color: var(--branco);
  border-color: rgba(255,255,255,.45);
}
.btn--outline-light:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.8);
}

/* Outline escuro (sobre fundo claro) */
.btn--outline-dark {
  background: transparent;
  color: var(--grafite);
  border-color: rgba(41,48,48,.30);
}
.btn--outline-dark:hover {
  background: var(--cinza-verde);
  border-color: var(--petroleo);
}

/* Petróleo (iPhone CTA) */
.btn--petroleo {
  background: var(--petroleo);
  color: var(--branco);
  border-color: var(--petroleo);
}
.btn--petroleo:hover {
  background: var(--grafite);
  border-color: var(--grafite);
}

.btn--lg { padding: var(--sp-4) var(--sp-8); font-size: var(--text-base); min-height: 52px; }
.btn--sm { padding: var(--sp-2) var(--sp-5); font-size: var(--text-xs); min-height: 36px; }

/* ── Link destaque ── */
.link-destaque {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--petroleo);
  text-decoration: none;
  transition: gap var(--dur-fast) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.link-destaque::after { content: '→'; transition: transform var(--dur-fast) var(--ease-out); }
.link-destaque:hover { color: var(--turquesa); }
.link-destaque:hover::after { transform: translateX(4px); }
.link-destaque:focus-visible { box-shadow: var(--focus-ring-dark); border-radius: 4px; outline: none; }

/* ── Reveal no scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--left  { transform: translateX(-28px); }
.reveal--right { transform: translateX(28px); }
.reveal--left.is-visible, .reveal--right.is-visible { transform: none; }

.reveal--delay-1 { transition-delay: .10s; }
.reveal--delay-2 { transition-delay: .20s; }
.reveal--delay-3 { transition-delay: .30s; }
.reveal--delay-4 { transition-delay: .40s; }
.reveal--delay-5 { transition-delay: .50s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Visualmente oculto (acessibilidade) ── */
.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;
}

/* ── Seções: padrão de padding ── */
.section {
  padding-block: clamp(var(--sp-16), 8vw, var(--sp-32));
}
.section--sm { padding-block: clamp(var(--sp-10), 5vw, var(--sp-20)); }
.section--lg { padding-block: clamp(var(--sp-20), 10vw, 7rem); }

/* ── Scroll margin para header fixo ── */
[id] { scroll-margin-top: calc(var(--header-h) + var(--sp-6)); }

/* ── Âncoras internas ── */
address { font-style: normal; }
