/* ═══════════════════════════════════════════════════════════
   RF Soluções Telecom
   Claro, editorial, muito respiro. A fotografia carrega o peso
   visual — não há gradiente, brilho nem ícone decorativo aqui.
   O manual da marca pede preferência à assinatura em cores
   institucionais sobre fundo branco, que é o que se faz.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Padrão cromático oficial (manual da identidade visual) */
  --azul:    #4d74b2;   /* PANTONE 7683C */
  --ardosia: #3d4c57;   /* PANTONE 7477C */
  --cinza:   #61696f;   /* PANTONE 431C  */

  --azul-escuro: #3a5c92;   /* só para hover/foco, mantendo a família */

  --papel:      #ffffff;
  --papel-alt:  #f4f6f8;
  --tinta:      #1f2a33;
  --tinta-suave:#57646f;
  --risco:      #e1e6ea;
  --risco-forte:#c9d1d8;

  --wrap: 1120px;
  --gutter: clamp(22px, 6vw, 56px);
  --secao-y: clamp(76px, 10vw, 148px);
  --raio-foto: 26px;

  /* Marca d'água do folder impresso: hairlines diagonais a 45°, esparsas e de
     contraste baixíssimo. Reproduzida com gradiente repetido — sem arquivo. */
  --trama-linhas: repeating-linear-gradient(
      135deg,
      transparent 0 74px,
      rgba(61, 76, 87, .05) 74px 75px);

  /* A tipografia institucional é a AvantGarde Bk BT. Esta pilha busca o
     parente mais próximo já instalado em cada sistema — URW Gothic é
     literalmente um clone da Avant Garde Gothic — evitando servir uma fonte
     comercial sem licença de webfont. */
  --font: "Avenir Next", Avenir, "Century Gothic", "URW Gothic",
          Questrial, Futura, ui-sans-serif, system-ui, -apple-system,
          "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
strong { font-weight: 600; }

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

.skip-link {
  position: absolute;
  left: 50%; top: 10px;
  translate: -50% -200%;
  z-index: 200;
  padding: 10px 18px;
  background: var(--azul);
  color: #fff;
  font-weight: 600;
  transition: translate .2s ease;
}
.skip-link:focus-visible { translate: -50% 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Trama e réguas ─────────────────────────────────────────
   Duas peças emprestadas do folder impresso: a marca d'água diagonal e as
   linhas verticais que delimitam a coluna de conteúdo. Servem para dar
   estrutura ao espaço vazio em vez de apenas reduzi-lo. */
.trama {
  position: relative;
  isolation: isolate;
}
.trama::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--trama-linhas);
  pointer-events: none;
}

/* As réguas só aparecem quando há folga fora da coluna — abaixo disso elas
   encostariam no texto. */
.reguas { position: relative; }
@media (min-width: 1240px) {
  .reguas::before,
  .reguas::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--risco);
    pointer-events: none;
  }
  .reguas::before { left: 0; }
  .reguas::after { right: 0; }
}

/* ── Tipografia ─────────────────────────────────────────── */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.032em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); letter-spacing: -.042em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.12rem; letter-spacing: -.02em; }

.kicker {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--azul);
  margin-bottom: 22px;
}

.lead {
  font-size: clamp(1.1rem, 1.9vw, 1.34rem);
  line-height: 1.5;
  color: var(--tinta-suave);
  max-width: 54ch;
  text-wrap: pretty;
}

.texto-grande {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.62;
  color: var(--tinta-suave);
  max-width: 56ch;
  text-wrap: pretty;
}
.texto-grande + .texto-grande { margin-top: 20px; }
.texto-grande.destaque { color: var(--tinta); }

/* ── Botão e link ───────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 15px 30px;
  background: var(--azul);
  color: #fff;
  font-size: .96rem;
  font-weight: 600;
  border: 1px solid var(--azul);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--azul-escuro); border-color: var(--azul-escuro); }
.btn-sm { padding: 10px 20px; font-size: .89rem; }
.btn-bloco { width: 100%; }

.link-seta {
  font-weight: 600;
  font-size: .96rem;
  color: var(--tinta);
  border-bottom: 1px solid var(--risco-forte);
  padding-bottom: 3px;
  transition: border-color .18s ease, color .18s ease;
}
.link-seta::after { content: " →"; }
.link-seta:hover { color: var(--azul); border-bottom-color: var(--azul); }

/* ── Cabeçalho ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.site-header.rolado { border-bottom-color: var(--risco); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}
/* Ícone e nome vêm de dois arquivos: cada um tem a própria altura, então o
   nome pode crescer sem esticar o ícone junto. */
/* flex-end, não center: no arquivo original o ícone e o texto já nascem
   com a mesma base (o ponto mais baixo de ambos é o mesmo Y na arte-fonte) —
   isso reconstrói essa base, não inventa uma nova. */
.brand { display: flex; align-items: flex-end; gap: 12px; }
.marca-simbolo { height: 52px; width: auto; }
.marca-nome { height: 30px; width: auto; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav > a:not(.btn) {
  font-size: .95rem;
  color: var(--tinta-suave);
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav > a:not(.btn):hover { color: var(--tinta); border-bottom-color: var(--tinta); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--risco);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 50%; translate: -50% 0;
  width: 18px; height: 1.5px;
  background: var(--tinta);
  transition: .25s ease;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; rotate: 45deg; }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; rotate: -45deg; }

/* ── Banner de abertura ─────────────────────────────────────
   Full-bleed: ocupa a largura inteira da tela, sem o container de
   conteúdo — é a primeira coisa que a página mostra. A trilha é o mesmo
   carrossel de scroll-snap de sempre: arrasta e rola sem JS, e o JS só
   acrescenta setas, pontos e avanço automático (ver main.js). */
.hero-banner {
  position: relative;
  isolation: isolate;
  height: min(78vh, 720px);
  min-height: 480px;
  background: var(--ardosia);
}

.carrossel { position: relative; height: 100%; }

.trilha {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.trilha::-webkit-scrollbar { display: none; }

.slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  scroll-snap-align: center;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--ardosia);
}

/* Sombreado no topo (onde fica o selo) e na base (onde fica a frase) —
   a foto respira sem escurecer no meio. */
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(31, 42, 51, .55) 0%, rgba(31, 42, 51, 0) 24%,
    rgba(31, 42, 51, 0) 56%, rgba(31, 42, 51, .88) 100%);
}

.banner-selo {
  position: absolute;
  z-index: 2;
  top: clamp(20px, 3vw, 32px);
  left: var(--gutter);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: #fff;
}

.banner-marca {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: clamp(20px, 3vw, 30px);
  width: 18px;
  height: auto;
  opacity: .72;
}
.banner-marca path { fill: #fff; }

.banner-frase {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(52px, 7vw, 76px);
  max-width: 15ch;
  font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -.032em;
  color: #fff;
  text-wrap: balance;
}

.carrossel-seta {
  position: absolute;
  z-index: 3;
  top: 50%;
  translate: 0 -50%;
  display: none;
  place-items: center;
  width: 46px; height: 46px;
  padding: 0;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background-color .18s ease;
}
.carrossel-seta svg { width: 20px; height: 20px; }
.carrossel-seta:hover { background: rgba(255, 255, 255, .3); }
.carrossel-seta.anterior { left: 18px; }
.carrossel-seta.proxima { right: 18px; }
.carrossel.tem-js .carrossel-seta { display: grid; }

.carrossel-pontos {
  position: absolute;
  z-index: 3;
  left: 50%;
  translate: -50% 0;
  bottom: clamp(18px, 3vw, 28px);
  display: flex;
  gap: 9px;
  margin: 0;
}
.carrossel-pontos button {
  width: 8px; height: 8px;
  padding: 0;
  background: rgba(255, 255, 255, .42);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .2s ease, scale .2s ease;
}
.carrossel-pontos button[aria-selected="true"] { background: #fff; scale: 1.25; }
.carrossel-pontos button:hover { background: rgba(255, 255, 255, .7); }

/* ── Faixa fixa, abaixo do banner ───────────────────────────
   Parágrafo de apoio e chamada para ação: não giram com o carrossel, e
   continuam um alvo de clique estável qualquer que seja a foto em tela. */
.subhero { padding-block: clamp(40px, 6vw, 60px) clamp(56px, 8vw, 96px); }
.subhero .lead { margin-bottom: 32px; }
.hero-acoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 34px;
}

/* ── Seções ─────────────────────────────────────────────── */
.secao { padding-block: var(--secao-y); }

/* Sem a faixa de foto separando os blocos, duas seções seguidas somavam o
   respiro das duas e abriam um vão. O fio marca a divisão e o topo encurtado
   fecha o excesso. */
.secao + .secao {
  border-top: 1px solid var(--risco);
  padding-top: calc(var(--secao-y) * .62);
}
.secao-clara { background: var(--papel-alt); }
.secao-abre { max-width: 62ch; margin-bottom: clamp(48px, 6vw, 78px); }
.secao-abre h2 { margin-bottom: 24px; }

.duas-colunas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.duas-colunas h2 { margin-bottom: 24px; }
.colunas-invertidas .foto-lateral { order: -1; }

.foto-lateral { margin: 0; }
.foto-lateral img { width: 100%; border-radius: var(--raio-foto); }

/* ── Empresa ────────────────────────────────────────────── */
.empresa-grade {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 4vw, 60px);
  padding-block: 36px;
  border-block: 1px solid var(--risco);
}
.frase-larga {
  margin-top: clamp(40px, 5vw, 64px);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  line-height: 1.32;
  letter-spacing: -.028em;
  font-weight: 500;
  max-width: 26ch;
  text-wrap: pretty;
}

/* ── Lista de serviços ──────────────────────────────────── */
.lista-servicos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 0 clamp(32px, 5vw, 72px);
  border-top: 1px solid var(--risco);
}
.lista-servicos > div {
  padding-block: 26px;
  border-bottom: 1px solid var(--risco);
}
.lista-servicos dt {
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -.018em;
  margin-bottom: 7px;
}
.lista-servicos dd {
  color: var(--tinta-suave);
  font-size: .95rem;
  max-width: 42ch;
}

/* ── Contato ────────────────────────────────────────────── */
.contato-dados {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  border-top: 1px solid var(--risco-forte);
}
.contato-dados li {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 16px;
  padding-block: 18px;
  border-bottom: 1px solid var(--risco);
}
.rotulo {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tinta-suave);
  padding-top: 4px;
}
.contato-dados a { border-bottom: 1px solid var(--risco-forte); }
.contato-dados a:hover { color: var(--azul); border-bottom-color: var(--azul); }

/* Os dois números ficam um sob o outro; `align-items: start` impede que a
   sublinha do link se estique pela largura toda da célula. */
.lista-telefones {
  display: grid;
  justify-items: start;
  gap: 9px;
}

form { display: grid; gap: 18px; }
.campo { display: grid; gap: 8px; }
.campo label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tinta-suave);
}
.campo input,
.campo textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--papel);
  border: 1px solid var(--risco-forte);
  border-radius: 2px;
  font-size: .98rem;
  resize: vertical;
  transition: border-color .18s ease;
}
.campo input:focus,
.campo textarea:focus { outline: none; border-color: var(--azul); }
.campo input[aria-invalid="true"],
.campo textarea[aria-invalid="true"] { border-color: #c0392b; }

.nota { font-size: .84rem; color: var(--tinta-suave); text-align: center; min-height: 1.4em; }
.nota.erro { color: #c0392b; }
.nota.ok { color: #1e7a52; }

/* ── Rodapé ─────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--risco); padding-top: clamp(48px, 6vw, 76px); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-logo { height: 74px; width: auto; }
.footer-inner p { margin-top: 18px; color: var(--tinta-suave); font-size: .92rem; max-width: 32ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 30px; align-content: start; }
.footer-nav a { font-size: .93rem; color: var(--tinta-suave); }
.footer-nav a:hover { color: var(--tinta); }

.footer-fim {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 22px;
  font-size: .82rem;
  color: var(--tinta-suave);
}
/* A linha vai no pseudo-elemento recuado pelo gutter: a borda direto no
   elemento avançaria sobre o padding e desalinharia do conteúdo acima. */
.footer-fim::before {
  content: "";
  position: absolute;
  top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px;
  background: var(--risco);
}

/* ── Balão do WhatsApp ──────────────────────────────────── */
.zap {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: grid;
  justify-items: end;
  gap: 12px;
}
.zap[hidden] { display: none; }

.zap-bolha {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .5);
  transition: transform .18s ease, background-color .18s ease;
}
.zap-bolha:hover { transform: translateY(-2px); background: #1fb457; }
.zap-marca { width: 32px; height: 32px; }
.zap-fechar { width: 24px; height: 24px; display: none; }
/* Com o cartão aberto a bolha vira o botão de fechar. */
.zap-bolha[aria-expanded="true"] .zap-marca { display: none; }
.zap-bolha[aria-expanded="true"] .zap-fechar { display: block; }

.zap-cartao {
  width: min(300px, calc(100vw - 44px));
  padding: 22px;
  background: var(--papel);
  border: 1px solid var(--risco-forte);
  border-radius: 14px;
  box-shadow: 0 24px 54px -22px rgba(31, 42, 51, .45);
}
.zap-cartao[hidden] { display: none; }
.zap-titulo { font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
.zap-texto {
  font-size: .92rem;
  line-height: 1.5;
  color: var(--tinta-suave);
  margin-bottom: 18px;
  text-wrap: pretty;
}
.zap-cta {
  display: block;
  padding: 13px 20px;
  background: #25d366;
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  text-align: center;
  border-radius: 2px;
  transition: background-color .18s ease;
}
.zap-cta:hover { background: #1fb457; }
.zap-dispensar {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 6px;
  background: none;
  border: none;
  font-size: .84rem;
  color: var(--tinta-suave);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.zap-dispensar:hover { color: var(--tinta); }

/* ── Responsivo ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .duas-colunas { grid-template-columns: 1fr; }
  .colunas-invertidas .foto-lateral { order: 0; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 88px; }
  .nav-toggle { display: block; }
  .marca-simbolo { height: 44px; }
  .marca-nome { height: 25px; }

  :root { --raio-foto: 16px; }
  .hero-banner { height: min(64vh, 560px); min-height: 400px; }
  .banner-frase { font-size: clamp(1.5rem, 6.6vw, 2.3rem); max-width: 13ch; bottom: 60px; }
  .banner-marca { width: 14px; }
  /* No toque o arrasto já resolve, e as setas cobririam a foto. */
  .carrossel.tem-js .carrossel-seta { display: none; }

  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--papel);
    border-bottom: 1px solid var(--risco);
    display: none;
  }
  .nav.aberto { display: flex; }
  .nav > a:not(.btn) {
    padding-block: 15px;
    border-bottom: 1px solid var(--risco);
    font-size: 1rem;
  }
  .nav .btn { margin-top: 18px; text-align: center; }

  .contato-dados li { grid-template-columns: 1fr; gap: 4px; }
  .rotulo { padding-top: 0; }

  .zap { right: 16px; bottom: 16px; }
  .zap-bolha { width: 54px; height: 54px; }
}

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

@media print {
  .site-header, .nav-toggle, .zap { display: none; }
}
