/* =========================================================
   BESTWAY SOLUCOES LTDA — identidade do portfólio
   Papel creme · grafite · dourado · Playfair Display / Instrument Sans
   ========================================================= */
:root {
  --paper: #FBFAF6;
  --paper-2: #F3F0E6;
  --ink: #17191B;
  --ink-2: #222528;
  --slate: #51565A;
  --gold: #D7B928;
  --gold-soft: #F1E5A8;
  --gold-deep: #B8991A;
  --line: #D7D3C6;
  --line-dark: rgba(215, 211, 198, .18);

  --f-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-accent: "Playfair Display", Georgia, serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px -24px rgba(23, 25, 27, .35);
  --container: 1200px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
em { font-family: var(--f-accent); font-style: italic; font-weight: 400; color: var(--gold-deep); }
::selection { background: var(--gold); color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; margin-top: 56px; }

/* ---------- Eyebrow (traço dourado + caixa alta, como no portfólio) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); flex: none; }
.eyebrow--light { color: var(--paper); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: var(--paper); box-shadow: var(--shadow); }
.btn--dark:hover { background: var(--gold); color: var(--ink); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--lg { padding: 18px 36px; font-size: 16px; }
.link-arrow { font-weight: 600; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}
.header.is-scrolled {
  background: rgba(251, 250, 246, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  --header-h: 72px;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 58px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) {
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--slate);
  position: relative; transition: color .2s;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--gold); transition: width .25s;
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn):hover::after { width: 100%; }
.nav__cta { padding: 11px 20px; font-size: 13px; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; padding: calc(var(--header-h) + 40px) 0 80px;
  display: flex; align-items: center; overflow: hidden;
}
.hero__texture {
  position: absolute; inset: 0;
  background: url("../assets/textura-dourada.jpg") center / cover no-repeat;
  opacity: .9;
}
.hero__texture::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(251,250,246,.96) 0%, rgba(251,250,246,.88) 45%, rgba(251,250,246,.25) 100%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 76px); margin-bottom: 26px; }
.hero h1 em { display: inline; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--slate); max-width: 560px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.hero__pillars {
  list-style: none; margin: 0; padding: 26px 0 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 600px;
}
.hero__pillars strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 20px; }
.hero__pillars span { font-size: 14px; color: var(--slate); }

.hero__media { position: relative; justify-self: center; width: 100%; max-width: 470px; }
.hero__frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 240px 240px var(--radius-lg) var(--radius-lg);
  background: radial-gradient(120% 80% at 50% 10%, #2b2e31 0%, var(--ink) 70%);
  overflow: hidden; box-shadow: 0 40px 80px -30px rgba(23,25,27,.55);
  border: 1px solid rgba(215,185,40,.5);
}
.hero__frame::before {
  content: ""; position: absolute; inset: 14px; border-radius: inherit;
  border: 1px solid rgba(215,185,40,.35); z-index: 2; pointer-events: none;
}
.hero__frame img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 94%; width: auto; max-width: none; }
.hero__badge {
  position: absolute; left: -28px; bottom: 44px; z-index: 3;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow);
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.hero__badge-num { font-family: var(--f-display); color: var(--gold-deep); font-size: 24px; letter-spacing: 0; }

/* Emblema da marca no hero */
.hero h1 { margin-bottom: 24px; font-size: clamp(36px, 5vw, 68px); text-transform: uppercase; letter-spacing: -.01em; }
.hero__lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--slate); max-width: 540px; margin: 0 0 40px; padding-left: 18px; border-left: 2px solid var(--gold); }
.hero__lead .gold { color: var(--gold-deep); font-weight: 600; }
.footer__slogan { font-style: italic; opacity: .75; margin-top: 8px; font-size: 14px; }
.hero__emblem {
  justify-self: center; width: 100%; max-width: 440px; aspect-ratio: 1;
  display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.95) 0%, rgba(251,250,246,.7) 60%, rgba(251,250,246,0) 72%);
  position: relative;
}
.hero__emblem::before, .hero__emblem::after {
  content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(215,185,40,.45);
}
.hero__emblem::before { inset: 4%; }
.hero__emblem::after { inset: 10%; border-color: rgba(215,185,40,.22); }
.hero__emblem img { width: 66%; filter: drop-shadow(0 18px 30px rgba(23,25,27,.18)); }

/* ---------- Quem somos / contador ---------- */
.about__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.about .hero__media { max-width: 440px; }
.nameplate { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 24px; padding-left: 20px; border-left: 3px solid var(--gold); }
.nameplate__role { font-size: 13px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-deep); }
.section .nameplate__name { font-size: clamp(40px, 5vw, 64px); margin: 0; line-height: 1.05; }
.nameplate__crc { font-size: 15px; font-weight: 600; letter-spacing: .12em; color: var(--slate); }
.about .section__intro { margin-bottom: 32px; }

/* ---------- Seções ---------- */
.section { padding: 120px 0; position: relative; }
.section--paper { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark em { color: var(--gold); }
.section__head { max-width: 760px; margin-bottom: 64px; position: relative; }
.section__head--split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.section__num {
  display: block; font-family: var(--f-display); font-size: 15px; color: var(--gold-deep);
  margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); width: 48px;
}
.section--dark .section__num { color: var(--gold); border-color: var(--line-dark); }
.section h2 { font-size: clamp(34px, 4.2vw, 56px); margin-bottom: 22px; }
.section__intro { font-size: 18px; color: var(--slate); max-width: 620px; }
.section--dark .section__intro { color: rgba(251,250,246,.7); }

/* ---------- Soluções ---------- */
.solutions { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.solution {
  padding: 36px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: transparent; transition: background .3s;
}
.solution:hover { background: var(--paper); }
.solution__n { font-family: var(--f-display); color: var(--gold-deep); font-size: 15px; display: block; margin-bottom: 26px; }
.solution h3 { font-size: 24px; margin-bottom: 10px; }
.solution p { color: var(--slate); font-size: 15px; }

/* ---------- Cases ---------- */
.cases { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 980px; margin: 0 auto; }
.case {
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--ink-2); display: grid; grid-template-columns: 330px minmax(0, 1fr);
}
.case .case__body { justify-content: center; padding: 40px 44px; }
.case__media { position: relative; background: #0b0d12; min-height: 360px; }
.case__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.case__media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(215,185,40,.25); }
.case__body { padding: 36px 34px; display: flex; flex-direction: column; gap: 14px; }
.case__tag {
  align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(215,185,40,.5); border-radius: 999px; padding: 6px 12px;
}
.case h3 { font-size: 38px; }
.case__handle { font-family: var(--f-accent); font-style: italic; font-size: 20px; color: var(--gold); margin-top: -8px; }
.case__body > p { color: rgba(251,250,246,.75); font-size: 15.5px; }
.case__list { list-style: none; margin: 6px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line-dark); display: grid; gap: 10px; }
.case__list li { font-size: 14.5px; display: flex; gap: 10px; color: rgba(251,250,246,.88); }
.case__list li::before { content: ""; width: 14px; height: 2px; background: var(--gold); margin-top: 11px; flex: none; }
.case__logo {
  position: relative; display: grid; place-items: center; padding: 48px 34px; min-height: 300px;
  background: radial-gradient(90% 90% at 50% 40%, #2c2f33 0%, #101214 100%);
}
.case__logo::after { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(215,185,40,.3); border-radius: var(--radius); pointer-events: none; }
/* logo preta em fundo branco → invertida e mesclada para ficar branca sobre o grafite */
.case__logo img { width: 70%; max-width: 220px; filter: invert(1); mix-blend-mode: screen; }

.statement {
  margin: 80px auto 0; max-width: 900px; text-align: center; padding: 0 12px;
}
.statement p { font-family: var(--f-display); font-size: clamp(26px, 3vw, 40px); line-height: 1.2; }

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.contact__address { font-style: normal; font-size: 18px; color: var(--slate); line-height: 1.7; margin: 8px 0 32px; padding-left: 18px; border-left: 2px solid var(--gold); }
.contact__address strong { display: block; color: var(--ink); letter-spacing: .08em; font-size: 15px; margin-bottom: 4px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact__map {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--paper);
}
.contact__map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.35) contrast(1.05); }

/* ---------- CTA final ---------- */
.final-cta { position: relative; padding: 130px 0; overflow: hidden; text-align: center; }
.final-cta__texture { position: absolute; inset: 0; background: url("../assets/textura-dourada.jpg") center / cover no-repeat; }
.final-cta__texture::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(251,250,246,.95) 30%, rgba(251,250,246,.6) 100%); }
.final-cta__inner { position: relative; max-width: 820px; }
.final-cta h2 { font-size: clamp(34px, 4.4vw, 58px); margin-bottom: 18px; }
.final-cta p { color: var(--slate); font-size: 18px; margin-bottom: 36px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(251,250,246,.72); padding: 72px 0 0; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 36px; padding-bottom: 48px; }
.footer__logo { width: 150px; height: auto; }
.footer__tag { margin-top: 16px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.footer h4 { font-family: var(--f-body); font-weight: 700; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--paper); margin-bottom: 16px; }
.footer a { display: block; margin-bottom: 8px; transition: color .2s; }
.footer a:hover { color: var(--gold); }
.footer__insta { display: inline-flex !important; align-items: center; gap: 8px; margin-top: 6px; color: var(--paper); font-weight: 600; }
.footer__insta svg { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 1.8; }
a.case__handle { align-self: flex-start; border-bottom: 1px solid transparent; transition: border-color .2s; }
a.case__handle:hover { border-color: var(--gold); }
.footer__bottom { border-top: 1px solid var(--line-dark); padding-top: 22px; padding-bottom: 28px; font-size: 13px; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 12px 30px -8px rgba(0,0,0,.45);
  transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366;
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Revelação ao rolar ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float::before { animation: none; }
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1080px) {
  .cases { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 24px;
    transform: translateY(-120%); transition: transform .35s ease; box-shadow: var(--shadow);
  }
  .nav.is-open { transform: none; }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 18px; }
  .header { background: rgba(251, 250, 246, .94); box-shadow: 0 1px 0 var(--line); }
  .brand img { height: 44px; }

  .hero { min-height: auto; padding-top: calc(var(--header-h) + 40px); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media, .about .hero__media { max-width: 380px; }
  .hero__emblem { max-width: 260px; order: -1; }
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .about .hero__media { justify-self: center; }
  .hero__texture::after { background: linear-gradient(180deg, rgba(251,250,246,.95) 0%, rgba(251,250,246,.85) 100%); }
  .section { padding: 88px 0; }
  .section__head--split { grid-template-columns: 1fr; gap: 0; }
  .solutions { grid-template-columns: repeat(2, 1fr); }
  .case { grid-template-columns: 1fr; }
  .case .case__body { padding: 30px 26px; }
  .case__media { min-height: 0; aspect-ratio: 900 / 738; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .hero__actions .btn { width: 100%; }
  .hero__pillars { grid-template-columns: 1fr; gap: 14px; }
  .hero__badge { left: 0; bottom: 18px; }
  .solutions { grid-template-columns: 1fr; }
  .solution { padding: 28px 22px; }
  .case__body { padding: 28px 22px; }
  .case h3 { font-size: 32px; }
  .footer__grid { grid-template-columns: 1fr; }
  .contact__actions .btn, .final-cta .btn { width: 100%; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}