/* =========================================================
   RIMIR DIGITAL - STYLE.CSS
   Estrutura visual: premium, minimalista, responsiva.
========================================================= */

:root {
  --orange: #f59a17;
  --orange-dark: #d97904;
  --orange-soft: #fff1dd;
  --blue-gray: #6f819a;
  --blue-gray-dark: #172235;
  --text: #172033;
  --muted: #6b7c93;
  --soft: #f4f7fa;
  --soft-warm: #fff8ef;
  --line: #e7edf3;
  --white: #ffffff;
  --radius: 34px;
  --shadow: 0 22px 70px rgba(23,34,53,.10);
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #f7faf9;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(var(--container), calc(100% - 44px)); margin-inline: auto; }

/* ========================= HEADER ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(231,237,243,.82);
}
.header-inner { height: 86px; display: flex; align-items: center; justify-content: space-between; }
.brand img {
  height: 62px;
  width: auto;
  display: block;
  object-fit: contain;
}
.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-menu a {
  text-decoration: none;
  color: #4d5b70;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: .22s ease;
}
.nav-menu a:hover { color: var(--orange-dark); }
.nav-cta { background: var(--soft); padding: 14px 20px; border-radius: 999px; }
.menu-toggle { display: none; border: 0; background: var(--soft); width: 44px; height: 44px; border-radius: 14px; font-size: 22px; color: var(--text); }

/* ========================= HERO ========================= */
.hero {
  padding: 74px 0 70px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(245,154,23,.11), transparent 26%),
    radial-gradient(circle at 82% 10%, rgba(111,129,154,.10), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #fffaf2 42%, #f6f8fb 100%);
}
.hero::before {
  content: '';
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,154,23,.18) 0%, rgba(245,154,23,.06) 34%, transparent 70%);
  filter: blur(28px);
  right: -260px;
  top: -320px;
  opacity: .85;
}
.hero::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120,140,255,.08) 0%, transparent 70%);
  left: -140px;
  bottom: -180px;
  filter: blur(70px);
  opacity: .65;
}
.hero-grid { display: grid; grid-template-columns: 1.06fr .72fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.eyebrow, .section-label {
  display: inline-flex;
  color: var(--orange-dark);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 18px;
}
.section-label.light { color: var(--orange); }
h1, h2, h3 { color: var(--blue-gray-dark); letter-spacing: -.045em; }
h1 { font-size: clamp(46px, 6vw, 76px); line-height: .95; max-width: 760px; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1; }
h3 { font-size: 23px; line-height: 1.12; }
p { color: var(--muted); font-size: 17px; line-height: 1.75; }
.hero-copy p { font-size: 19px; max-width: 640px; margin-top: 24px; }
.hero-actions, .contact-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 900; font-size: 14px; letter-spacing: .02em;
  text-decoration: none; transition: .25s ease;
}
.btn.primary { background: var(--orange); color: white; box-shadow: 0 16px 40px rgba(245,154,23,.24); }
.btn.secondary { background: white; color: var(--blue-gray-dark); border: 1px solid var(--line); }
.btn:hover { transform: translateY(-2px); }
.hero-card {
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.hero-card-top { border-left: 4px solid var(--orange); padding-left: 18px; margin-bottom: 34px; }
.hero-card-top span { display: block; color: var(--blue-gray); font-weight: 900; margin-bottom: 10px; }
.hero-card-top strong { display: block; font-size: 31px; line-height: 1.05; letter-spacing: -.04em; color: var(--blue-gray-dark); }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.metric-grid div { background: rgba(244,247,250,.9); border-radius: 20px; padding: 22px; }
.metric-grid strong { display: block; color: var(--orange); font-size: 28px; margin-bottom: 8px; }
.metric-grid span { color: var(--muted); font-weight: 800; font-size: 14px; }

/* ========================= SECTIONS ========================= */
section { padding: 86px 0; }
.split { display: grid; grid-template-columns: .82fr 1fr; gap: 90px; align-items: start; }
.sticky-title { position: sticky; top: 120px; }
.text-column p { margin-bottom: 22px; }
.about { background: #ffffff; }
.method { background: rgba(255,255,255,.56); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head.centered { text-align: center; margin-inline: auto; }
.section-head p { margin-top: 16px; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps-grid article, .service-card {
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 26px;
  padding: 28px;
  box-shadow: 0 14px 36px rgba(22,45,74,.055), inset 0 1px 0 rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: .28s ease;
}
.steps-grid article:hover, .service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245,154,23,.35);
  box-shadow: 0 24px 58px rgba(22,45,74,.10), 0 6px 18px rgba(245,154,23,.08), inset 0 1px 0 rgba(255,255,255,.9);
}
.steps-grid span, .service-card span { color: var(--orange); font-weight: 950; letter-spacing: .12em; font-size: 12px; }
.steps-grid h3, .service-card h3 { margin: 18px 0 12px; }
.steps-grid p, .service-card p { font-size: 15px; line-height: 1.65; margin-bottom: 0; }
.services { background: linear-gradient(180deg, #fffaf3 0%, #ffffff 100%); }
.cards-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.service-card { min-height: 260px; display: flex; flex-direction: column; }
.service-card p { margin-top: auto; }

/* ========================= PROCESSO ========================= */
.audience { background: #ffffff; }
.audience-box {
  display: grid;
  grid-template-columns: .9fr 1fr;
  gap: 44px;
  background:
    radial-gradient(circle at 90% 0%, rgba(245,154,23,.20), transparent 34%),
    linear-gradient(135deg, #1b2434 0%, #27364b 100%);
  color: white;
  padding: 54px;
  border-radius: 34px;
  box-shadow: var(--shadow);
}
.audience-box h2 { color: white; }
.audience-box p { color: rgba(255,255,255,.76); margin-top: 18px; }
.audience-list { display: grid; gap: 14px; }
.audience-list div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 18px 20px; color: rgba(255,255,255,.86); font-weight: 700; }

/* ========================= FINAL CTA / FOOTER ========================= */
.final-cta { padding-top: 20px; }
.final-card { text-align: center; background: white; border: 1px solid var(--line); border-radius: 38px; padding: 72px 32px; box-shadow: var(--shadow); }
.final-card p { max-width: 640px; margin: 18px auto 0; }
.contact-actions { justify-content: center; }
.site-footer {
  padding: 70px 0 44px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 20px;
}

.footer-grid img {
  width: 92px;
  opacity: .82;
}

.footer-grid p {
  text-align: center;
  font-size: 15px;
  color: var(--blue-gray);
}

.footer-grid a:last-child {
  justify-self: end;
  color: var(--orange-dark);
  font-weight: 900;
  font-size: 13px;
  text-decoration: none;
}

@media (max-width: 780px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-grid img {
    margin-inline: auto;
  }

  .footer-grid a:last-child {
    justify-self: center;
  }
}
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 20px; }
.footer-inner img { width: 92px; opacity: .82; }
.footer-inner p { text-align: center; font-size: 15px; color: var(--blue-gray); }
.footer-inner a { justify-self: end; color: var(--orange-dark); font-weight: 900; font-size: 13px; text-decoration: none; }

/* ========================= COOKIE BANNER ========================= */
.cookie-banner { position: fixed; left: 24px; bottom: 24px; z-index: 99999; animation: cookieFade .4s ease; display: none; transition: opacity .25s ease; }
.cookie-box { width: 250px; background: #ffffff; border-radius: 20px; padding: 18px; box-shadow: 0 18px 60px rgba(0,0,0,.12); border: 1px solid rgba(0,0,0,.05); }
.cookie-box h3 { font-size: 1.15rem; line-height: 1.2; color: #162033; margin-bottom: 12px; font-weight: 800; }
.cookie-box p { font-size: .82rem; line-height: 1.6; color: #617086; margin-bottom: 18px; }
.cookie-box a { color: var(--orange-dark); text-decoration: none; font-weight: 800; }
.cookie-box button { width: 120px; height: 42px; border: none; border-radius: 12px; background: var(--orange); color: #fff; font-size: .92rem; font-weight: 800; cursor: pointer; transition: all .2s ease; }
.cookie-box button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(245,154,23,.25); }
@keyframes cookieFade { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ========================= REVEAL ANIMATION ========================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; } .delay-2 { transition-delay: .16s; } .delay-3 { transition-delay: .24s; } .delay-4 { transition-delay: .32s; }

/* ========================= RESPONSIVO ========================= */
@media (max-width: 1080px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .split, .audience-box { grid-template-columns: 1fr; }
  .sticky-title { position: static; }
}
@media (max-width: 780px) {
  .container { width: min(100% - 30px, var(--container)); }
  .header-inner { height: 74px; }
  .brand img {
  height: 52px;
  width: auto;
}
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-menu { position: fixed; top: 74px; left: 0; right: 0; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); display: none; flex-direction: column; align-items: flex-start; padding: 24px; gap: 18px; }
  .nav-menu.open { display: flex; }
  .hero { padding: 54px 0 56px; }
  h1 { font-size: 45px; }
  h2 { font-size: 34px; }
  .hero-card-top strong { font-size: 26px; }
  section { padding: 62px 0; }
  .cards-grid, .steps-grid { grid-template-columns: 1fr; }
  .audience-box { padding: 34px 24px; border-radius: 28px; }
  .final-card { padding: 48px 24px; border-radius: 30px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-inner img { margin-inline: auto; }
  .footer-inner a { justify-self: center; }
  .cookie-banner { left: 16px; right: 16px; bottom: 16px; }
  .cookie-box { width: 100%; }
  .cookie-box button { width: 100%; }
}
@media (max-width: 460px) {
  h1 { font-size: 38px; }
  .hero-copy p { font-size: 16px; }
  .btn { width: 100%; }
  .metric-grid { grid-template-columns: 1fr; }
}
