/* ==========================================================
   ARROBA — estilos
   Paleta extraída da logo: azul-marinho, dourado, azul-petróleo
   ========================================================== */

:root {
  --bg: #0b141b;
  --bg-alt: #0f1b24;
  --surface: #14232e;
  --surface-2: #1a2d3a;
  --line: rgba(233, 238, 241, 0.1);

  --gold: #dca42c;
  --gold-light: #f0c04f;
  --gold-deep: #9a6f0e;
  --blue: #2e7a9c;
  --blue-deep: #1d4e63;

  --text: #e9eef1;
  --muted: #a3b3bd;
  --cream: #f5f0e6;
  --ink: #12222d;
  --ink-muted: #48606f;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);

  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.01em; }

:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; text-decoration: none;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1b1405; box-shadow: 0 8px 24px rgba(220, 164, 44, 0.28);
}
.btn-gold:hover { box-shadow: 0 12px 32px rgba(220, 164, 44, 0.42); }
.btn-ghost { border-color: rgba(233, 238, 241, 0.28); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(11, 20, 27, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(11, 20, 27, 0.94); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-block; flex-shrink: 0; }
.brand img { height: 50px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 6px; }
.main-nav ul a {
  display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  font-size: .93rem; font-weight: 500; color: var(--muted); transition: color .2s, background .2s;
}
.main-nav ul a:hover, .main-nav ul a.active { color: var(--text); background: rgba(233, 238, 241, 0.07); }
.main-nav ul a.active { color: var(--gold-light); }

.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 12px;
  background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Tipografia de seção ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; }

.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; margin-top: 14px; }
.section-lead { color: var(--muted); font-size: 1.06rem; margin-top: 18px; max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: 56px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 88px);
  background:
    radial-gradient(900px 500px at 82% 12%, rgba(46, 122, 156, 0.22), transparent 65%),
    radial-gradient(700px 420px at 8% 92%, rgba(220, 164, 44, 0.10), transparent 65%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; margin: 20px 0 24px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 460px; width: 100%; margin-inline: auto; }
.hero-visual img { position: relative; width: 78%; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)); }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(220, 164, 44, 0.3); }
.ring-1 { inset: 0; background: radial-gradient(circle, rgba(220, 164, 44, 0.09), transparent 68%); }
.ring-2 { inset: 9%; border-style: dashed; border-color: rgba(46, 122, 156, 0.45); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }


/* ---------- Faixa fotográfica ---------- */
.photo-band { background: var(--bg); }
.photo-frame {
  position: relative; margin: 0; overflow: hidden;
  min-height: clamp(420px, 52vw, 720px); display: flex; align-items: center;
  border-block: 2px solid rgba(220, 164, 44, 0.55);
}
.slide {
  position: absolute; inset: 0; margin: 0; display: flex; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 0s linear 1.2s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.2s ease; }
.slide > picture, .slide > picture img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
}
.slide > picture img { transform: scale(1.08); transition: transform 8s ease-out; }
.slide.is-active > picture img { transform: scale(1); }
.slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 20, 27, 0.92) 0%, rgba(11, 20, 27, 0.6) 42%, rgba(11, 20, 27, 0) 72%),
    linear-gradient(0deg, rgba(11, 20, 27, 0.75) 0%, rgba(11, 20, 27, 0) 45%);
}
.slide .photo-caption { opacity: 0; transform: translateY(16px); transition: opacity .8s ease .3s, transform .8s ease .3s; }
.slide.is-active .photo-caption { opacity: 1; transform: none; }

.carousel-ctrl {
  position: absolute; z-index: 2; bottom: 24px; right: max(20px, (100% - 1180px) / 2);
  display: flex; align-items: center; gap: 14px;
}
.carousel-dots { display: flex; gap: 8px; }
.dot {
  width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(233, 238, 241, 0.45); transition: width .3s, background .3s;
}
.dot:hover { background: rgba(233, 238, 241, 0.8); }
.dot.is-active { width: 34px; background: var(--gold); }
.carousel-pause {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 50%; cursor: pointer;
  background: rgba(11, 20, 27, 0.6); border: 1px solid rgba(233, 238, 241, 0.3); color: var(--text);
}
.carousel-pause:hover { border-color: var(--gold); color: var(--gold-light); }
.carousel-pause svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.carousel-pause .i-play { display: none; fill: currentColor; }
.carousel-pause.is-paused .i-play { display: block; }
.carousel-pause.is-paused .i-pause { display: none; }
.photo-caption {
  position: relative; z-index: 1; box-sizing: content-box; max-width: 520px;
  padding: clamp(40px, 6vw, 72px) 20px; padding-left: max(20px, (100% - 1180px) / 2);
}
.photo-caption h2 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); font-weight: 800; margin: 14px 0 16px; }
.photo-caption h2 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.photo-caption p:last-child { color: #d3dde3; font-size: 1.05rem; }

/* ---------- Como trabalhamos (fundo claro) ---------- */
.section-cream { background: var(--cream); color: var(--ink); }
.section-cream .eyebrow { color: var(--gold-deep); }
.section-cream h2 { color: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; counter-reset: s; }
.step { position: relative; padding-top: 28px; border-top: 2px solid rgba(18, 34, 45, 0.15); }
.step::before { content: ""; position: absolute; top: -2px; left: 0; width: 56px; height: 2px; background: var(--gold-deep); }
.step-n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; margin-bottom: 18px;
  background: var(--ink); color: var(--gold-light); font-family: var(--font-head); font-weight: 800;
}
.step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.step h3 small { display: block; margin-top: 4px; font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--gold-deep); }
.step p { color: var(--ink-muted); font-size: .96rem; }

/* ---------- Artigos ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post {
  display: flex; flex-direction: column; gap: 14px; padding: 30px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.tag {
  align-self: flex-start; padding: 5px 12px; border-radius: 999px; font-size: .72rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; background: rgba(46, 122, 156, 0.2); color: #7cc0dd;
}
.post h3 { font-size: 1.2rem; font-weight: 700; }
.post p { color: var(--muted); font-size: .96rem; flex: 1; }
.soon { font-size: .85rem; font-weight: 600; color: var(--gold); }

/* ---------- Cotações da arroba ---------- */
.quotes {
  margin-bottom: 40px; padding: clamp(22px, 3.5vw, 36px); border-radius: 24px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid rgba(220, 164, 44, 0.3); box-shadow: var(--shadow);
}
.quotes-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.quotes-head h3 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); font-weight: 800; margin-top: 12px; }
.quotes-meta { color: var(--muted); font-size: .92rem; margin-top: 6px; }
.quotes-meta strong { color: var(--gold-light); font-weight: 600; }
.quotes-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.quotes-stats div { padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(11, 20, 27, 0.55); border: 1px solid var(--line); display: grid; gap: 2px; }
.quotes-stats span { font-size: .8rem; color: var(--muted); font-weight: 500; }
.quotes-stats strong { font-family: var(--font-head); font-size: 1.45rem; font-weight: 800; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.quotes-stats small { font-size: .8rem; color: var(--muted); }
.quotes-table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.quotes-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.quotes-table th, .quotes-table td { padding: 12px 16px; text-align: left; white-space: nowrap; }
.quotes-table th {
  position: sticky; top: 0; z-index: 1; background: var(--bg); color: var(--muted);
  font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.quotes-table th:nth-child(n+2), .quotes-table td:nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; }
.quotes-table th:last-child, .quotes-table td:last-child { text-align: center; }
.quotes-table tbody tr { border-top: 1px solid var(--line); }
.quotes-table tbody tr:hover { background: rgba(220, 164, 44, 0.06); }
.quotes-table td:nth-child(2) { color: var(--gold-light); font-weight: 700; font-size: 1.02rem; }
.quotes-table td:nth-child(3) { color: var(--muted); }
.uf-name { margin-left: 10px; }
.var { display: inline-block; min-width: 72px; padding: 3px 8px; border-radius: 6px; font-size: .85rem; font-weight: 600; text-align: center; }
.var-up { background: rgba(84, 190, 120, 0.15); color: #7fd6a0; }
.var-down { background: rgba(226, 120, 106, 0.15); color: #f0a094; }
.var-flat { background: rgba(233, 238, 241, 0.07); color: var(--muted); }
.spark { width: 120px; height: 32px; vertical-align: middle; }
.spark polyline { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: var(--gold-light); }
.uf-chip {
  display: inline-block; min-width: 38px; padding: 3px 8px; border-radius: 6px; text-align: center;
  font-family: var(--font-head); font-weight: 700; font-size: .78rem; background: rgba(46, 122, 156, 0.22); color: #7cc0dd;
}
.unit-note { color: var(--muted); font-size: .78rem; font-weight: 400; margin-left: 4px; }
.quotes-source { margin-top: 16px; font-size: .84rem; color: var(--muted); }
.quotes-source a { color: var(--gold-light); }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-list { margin-top: 36px; display: grid; gap: 22px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.c-ico {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: rgba(220, 164, 44, 0.12); color: var(--gold-light); border: 1px solid rgba(220, 164, 44, 0.3);
}
.c-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-list strong { display: block; font-family: var(--font-head); font-size: .85rem; color: var(--muted); font-weight: 600; }
.contact-list a { text-decoration: none; font-size: 1.1rem; font-weight: 500; overflow-wrap: anywhere; }
.contact-list li > div { min-width: 0; }
.contact-list a:hover { color: var(--gold-light); }

.form { padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { font-size: .88rem; font-weight: 600; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid rgba(233, 238, 241, 0.16);
  background: var(--bg); color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(220, 164, 44, 0.22); }
input[aria-invalid="true"] { border-color: #e2786a; }
.form-note { min-height: 1.4em; font-size: .9rem; color: var(--muted); text-align: center; }
.form-note.error { color: #f0a094; }

/* ---------- Rodapé ---------- */
.site-footer { background: #080f14; border-top: 1px solid var(--line); padding-top: 56px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 40px; }
.site-footer .brand img { height: 56px; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.site-footer nav a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.site-footer nav a:hover { color: var(--gold-light); }
.footer-bottom { padding: 22px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }

/* ---------- Animação de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1000px) {
  .posts { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 16px;
    padding: 20px; background: rgba(11, 20, 27, 0.98); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; }
  .main-nav ul a { padding: 14px 16px; font-size: 1.05rem; }
  .nav-cta { width: 100%; }

  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 260px; }
  .hero-grid { gap: 36px; }
}

@media (max-width: 600px) {
  :root { --header-h: 68px; }
  .brand img { height: 42px; }
  .posts, .steps, .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .quotes-stats { grid-template-columns: 1fr; }
  .photo-frame { min-height: 560px; }
  .slide { align-items: flex-end; }
  .slide > picture img { object-position: 30% center; }
  .photo-caption { padding-bottom: 72px; }
  .carousel-ctrl { bottom: 20px; left: 20px; right: auto; }
  .slide::after { background: linear-gradient(0deg, rgba(11, 20, 27, 0.95) 0%, rgba(11, 20, 27, 0.7) 45%, rgba(11, 20, 27, 0.05) 80%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring-2 { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
  .slide, .slide > picture img, .slide .photo-caption { transform: none; transition: none; }
}

/* ---------- Botão flutuante de WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; text-decoration: none;
  background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #1b1405;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(220, 164, 44, 0.5);
  transition: transform .2s, box-shadow .2s;
}
.wa-float .ico { width: 26px; height: 26px; }
.wa-float:hover { transform: translateY(-3px) scale(1.04); }
@media (min-width: 861px) { .wa-float { display: none; } }
