/* =========================================================
   Apex Mídia — Landing page
   Estático: HTML + CSS + JS (sem framework)
   ========================================================= */

:root {
  --bg:        #1b1916;
  --bg-soft:   #221f1b;
  --bg-alt:    #1f1d19;
  --surface:   #2a2622;
  --surface-2: #332e28;
  --text:      #f6f2ea;
  --muted:     #b6ad9d;
  --line:      rgba(255,255,255,.09);
  --brand:     #c99a3b;   /* dourado da logo */
  --brand-2:   #e0b85f;   /* dourado claro   */
  --brand-deep:#9a6f24;   /* dourado escuro  */
  --accent:    #e0b85f;
  --whats:     #25d366;
  --radius:    16px;
  --maxw:      1140px;
  --shadow:    0 18px 50px rgba(0,0,0,.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.grad {
  background: linear-gradient(90deg, var(--brand), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ---------------- Botões ---------------- */
.btn {
  --pad: 14px 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad);
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm  { --pad: 9px 16px; font-size: .9rem; }
.btn-lg  { --pad: 16px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #1b1916;
  box-shadow: 0 10px 30px rgba(201,154,59,.35);
}
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--brand); }
.btn-whats { background: var(--whats); color: #04210f; }
.btn-whats:hover { box-shadow: 0 10px 30px rgba(37,211,102,.4); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,16,32,.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.logo { display: flex; align-items: center; gap: 10px; font-size: 1.18rem; }
.logo-mark { color: var(--brand); display: inline-flex; }
.logo-text { font-weight: 600; letter-spacing: .5px; }
.logo-text strong { font-weight: 800; }
.logo-img { height: 40px; width: auto; display: block; }
.logo-img-footer { height: 46px; margin-bottom: 12px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); font-weight: 600; font-size: .95rem; transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav .nav-cta { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; padding: clamp(70px, 12vw, 130px) 0 clamp(60px, 9vw, 100px); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 480px at 80% -10%, rgba(201,154,59,.28), transparent 60%),
    radial-gradient(760px 460px at 0% 10%, rgba(224,184,95,.14), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero-sub { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-stats {
  list-style: none; display: flex; flex-wrap: wrap; gap: 38px;
  margin-top: 54px; padding-top: 30px; border-top: 1px solid var(--line);
}
.hero-stats strong { display: block; font-size: 1.7rem; font-weight: 800; }
.hero-stats span { color: var(--muted); font-size: .92rem; }

/* ---------------- Seções ---------------- */
.section { padding: clamp(64px, 10vw, 110px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.5px; }
.section-lead { color: var(--muted); margin-top: 14px; font-size: 1.08rem; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Cards de serviço */
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(91,140,255,.5); box-shadow: var(--shadow); }
.card-ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(201,154,59,.28), rgba(224,184,95,.16));
  border: 1px solid var(--line); margin-bottom: 18px;
}
.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; }

/* Diferenciais */
.features { gap: 26px; }
.feature { display: flex; gap: 20px; align-items: flex-start; }
.feature-num {
  font-size: 1.4rem; font-weight: 800; color: var(--brand);
  border: 1px solid var(--line); border-radius: 12px;
  min-width: 56px; height: 56px; display: grid; place-items: center;
  background: var(--surface);
}
.feature h3 { font-size: 1.15rem; margin-bottom: 6px; }
.feature p { color: var(--muted); }

/* ---------------- CTA Band ---------------- */
.cta-band {
  background: linear-gradient(120deg, var(--brand), var(--brand-deep));
  color: #1b1916;
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: clamp(44px, 7vw, 72px) 22px; flex-wrap: wrap;
}
.cta-inner h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; }
.cta-inner p { opacity: .92; margin-top: 8px; max-width: 520px; }

/* ---------------- Contato ---------------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; display: grid; gap: 24px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.25rem; background: var(--surface); border: 1px solid var(--line);
}
.contact-list strong { display: block; margin-bottom: 2px; }
.contact-list a, .contact-list span { color: var(--muted); }
.contact-list a:hover { color: var(--brand); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 10px; color: var(--text); font: inherit; font-size: .98rem;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.field textarea { resize: vertical; }
.form-note { margin-top: 12px; font-size: .9rem; color: var(--accent); min-height: 1.2em; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-top: 50px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; }
.footer-brand p { color: var(--muted); margin-top: 10px; max-width: 320px; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.footer-nav a { color: var(--muted); font-weight: 600; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 20px 22px;
  color: var(--muted); font-size: .88rem; text-align: center;
}

/* ---------------- WhatsApp flutuante ---------------- */
.whats-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--whats); color: #04210f;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(37,211,102,.45);
  transition: transform .2s ease;
}
.whats-float:hover { transform: scale(1.08); }

/* ---------------- Responsivo ---------------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 70px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--line);
    padding: 10px 22px 22px;
    transform: translateY(-130%); transition: transform .3s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: 12px; text-align: center; border-bottom: 0; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
