/* ============================================================
   Bridge Digital — Design System
   Clean & premium · warm whites · orange #F3751F accent
   ============================================================ */

:root {
  /* Brand */
  --orange: #F3751F;
  --orange-deep: #D75E11;
  --orange-soft: #FCEADB;
  --orange-tint: #FDF4EC;

  /* Ink + neutrals (warm) */
  --ink: #1A1714;
  --ink-2: #4B4641;
  --gray: #606062;
  --muted: #8C857D;
  --line: #EBE7E0;
  --line-2: #E0DBD2;

  /* Surfaces */
  --bg: #FFFFFF;
  --bg-soft: #F8F6F2;
  --bg-cream: #FBF9F5;
  --ink-bg: #16130F;

  /* Type */
  --display: "Sora", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;

  /* Metrics */
  --maxw: 1200px;
  --gut: 40px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(26,23,20,.04), 0 2px 8px rgba(26,23,20,.04);
  --shadow-md: 0 8px 30px rgba(26,23,20,.08);
  --shadow-lg: 0 24px 60px rgba(26,23,20,.12);

  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }

.grid { display: grid; gap: 28px; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body);
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange-deep);
}
.eyebrow::before {
  content: ""; width: 22px; height: 22px; flex: none;
  background: no-repeat center/contain
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F3751F' stroke-width='2.4' stroke-linecap='round'><path d='M3 18 A9 9 0 0 1 21 18'/></svg>");
}
.eyebrow.on-dark { color: #FFB877; }

/* ---------- Headings scale ---------- */
.h-display { font-size: clamp(40px, 5.6vw, 76px); }
.h-1 { font-size: clamp(34px, 4.4vw, 56px); }
.h-2 { font-size: clamp(27px, 3vw, 40px); }
.h-3 { font-size: clamp(20px, 1.6vw, 24px); }

.lead {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
}
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-family: var(--body); font-weight: 700; font-size: 15.5px;
  border: 1.5px solid transparent; line-height: 1;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(243,117,31,.28); }
.btn-primary:hover { background: var(--orange-deep); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(243,117,31,.34); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost.on-dark:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-lg { padding: 18px 32px; font-size: 16.5px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--ink); font-size: 15.5px;
}
.link-arrow svg { width: 17px; height: 17px; transition: transform .25s var(--ease); color: var(--orange); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.92); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
.nav-logo img { height: 51px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: 10px;
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-links a.active { color: var(--orange-deep); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink-bg); color: #cfc9c1; padding: 80px 0 36px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo img { height: 68px; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { color: #9a948c; margin-top: 18px; max-width: 280px; font-size: 15px; }
.footer-col h4 { color: #fff; font-family: var(--body); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col a { display: block; padding: 6px 0; color: #b5afa7; font-size: 15px; transition: color .2s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 13.5px; color: #837d75; flex-wrap: wrap; gap: 12px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); display: grid; place-items: center; color: #cfc9c1; transition: all .2s; }
.footer-social a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.footer-social svg { width: 17px; height: 17px; }

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  display: inline-flex; align-items: center; gap: 11px;
  background: #25D366; color: #fff;
  padding: 14px 20px 14px 16px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
  box-shadow: 0 10px 30px rgba(37,211,102,.4);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  background: #25D366; z-index: -1;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(37,211,102,.5); }
.wa-float svg { width: 24px; height: 24px; transform-origin: center; }
.wa-float .wa-label { white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .wa-float::before { animation: waPulse 2.6s ease-out infinite; }
  .wa-float svg { animation: waWiggle 4s ease-in-out infinite; }
}
@keyframes waPulse { 0% { transform: scale(1); opacity: .55; } 70% { transform: scale(1.55); opacity: 0; } 100% { opacity: 0; } }
@keyframes waWiggle { 0%, 84%, 100% { transform: rotate(0); } 87% { transform: rotate(-13deg); } 91% { transform: rotate(11deg); } 95% { transform: rotate(-7deg); } }

/* ============================================================
   PLACEHOLDER (imagens que o cliente vai enviar)
   ============================================================ */
.ph {
  position: relative; overflow: hidden;
  background-color: var(--bg-soft);
  background-image: repeating-linear-gradient(135deg, rgba(243,117,31,.07) 0 12px, rgba(243,117,31,.02) 12px 24px);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--muted);
}
.ph span {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12.5px; letter-spacing: .04em;
  background: rgba(255,255,255,.78); padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line);
}
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* ---------- Decorative arch ---------- */
.arch-deco { position: absolute; pointer-events: none; }

/* ---------- Floating arch field (hero ambient) ---------- */
.arch-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.arch-field .arch { position: absolute; }
.arch-field .arch-i {
  display: block; width: 100%; height: 100%;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 62'%3E%3Cpath d='M8 56 A42 42 0 0 1 92 56' fill='none' stroke='%23F3751F' stroke-width='9' stroke-linecap='round'/%3E%3C/svg%3E");
  will-change: transform;
}
.arch-field .a1 { width: 520px; height: 322px; top: -96px; left: -70px; opacity: .11; --d: 30s; --s: 92s; --dx: 26px; --dy: 20px; }
.arch-field .a2 { width: 300px; height: 186px; top: 36%; right: 5%;   opacity: .08; --d: 25s; --s: 74s; --dx: -24px; --dy: -28px; }
.arch-field .a3 { width: 168px; height: 104px; top: 14%; left: 32%;   opacity: .07; --d: 21s; --s: 60s; --dx: 18px; --dy: 26px; }
.arch-field .a4 { width: 700px; height: 434px; bottom: -190px; right: -140px; opacity: .06; --d: 36s; --s: 116s; --dx: -22px; --dy: 16px; }
.arch-field .a5 { width: 118px; height: 74px;  bottom: 16%; left: 12%;  opacity: .10; --d: 18s; --s: 52s; --dx: 14px; --dy: -20px; }
@media (prefers-reduced-motion: no-preference) {
  .arch-field .arch { animation: archDrift2 var(--d, 28s) ease-in-out infinite alternate; }
  .arch-field .arch-i { animation: archSpin var(--s, 80s) linear infinite; }
  .arch-field .arch.rev .arch-i { animation-direction: reverse; }
}
@keyframes archSpin { to { transform: rotate(360deg); } }
@keyframes archDrift2 { from { transform: translate3d(0,0,0); } to { transform: translate3d(var(--dx, 20px), var(--dy, -24px), 0); } }

/* ============================================================
   REUSABLE: section header
   ============================================================ */
.sec-head { max-width: 720px; }
.sec-head .h-1, .sec-head .h-2 { margin-top: 18px; }
.sec-head .lead { margin-top: 20px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ============================================================
   PILLARS / SERVICE CARDS
   ============================================================ */
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }

.svc-card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 28px;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.svc-num { font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--orange); letter-spacing: .04em; }
.svc-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--orange-tint); display: grid; place-items: center; margin: 18px 0 22px; }
.svc-icon svg { width: 26px; height: 26px; color: var(--orange-deep); }
.svc-card h3 { font-size: 21px; margin-bottom: 10px; }
.svc-card p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; flex: 1; }
.svc-card .link-arrow { margin-top: 22px; font-size: 14.5px; }

/* ============================================================
   STAT STRIP
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stat .num { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 4vw, 54px); letter-spacing: -.03em; color: var(--ink); }
.stat .num .u { color: var(--orange); }
.stat .lbl { color: var(--ink-2); font-size: 15px; margin-top: 6px; }

/* ============================================================
   LOGOS STRIP
   ============================================================ */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 44px; }
.logo-chip {
  height: 30px; padding: 0 6px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.02em;
  color: #b3ada4; transition: color .25s var(--ease);
}
.logo-chip:hover { color: var(--gray); }

/* ============================================================
   CASE CARDS
   ============================================================ */
.case-card {
  border-radius: var(--radius); overflow: hidden; background: var(--bg);
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.case-card .ph { aspect-ratio: 16/11; border: 0; border-bottom: 1px solid var(--line); }
.case-body { padding: 26px 26px 30px; }
.case-tag { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.case-body h3 { font-size: 22px; margin: 12px 0 14px; }
.case-metric { display: flex; align-items: baseline; gap: 8px; }
.case-metric .big { font-family: var(--display); font-weight: 700; font-size: 34px; color: var(--orange-deep); letter-spacing: -.02em; }
.case-metric .desc { color: var(--ink-2); font-size: 14.5px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.quote-card {
  background: var(--bg-cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 32px;
  display: flex; flex-direction: column; gap: 24px;
}
.quote-card .stars { color: var(--orange); letter-spacing: 2px; font-size: 15px; }
.quote-card blockquote { margin: 0; font-size: 18.5px; line-height: 1.55; color: var(--ink); font-weight: 500; }
.quote-author { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.quote-author .av { width: 46px; height: 46px; border-radius: 999px; }
.quote-author .nm { font-weight: 700; font-size: 15px; }
.quote-author .rl { color: var(--muted); font-size: 13.5px; }

/* ============================================================
   BLOG CARDS
   ============================================================ */
.post-card { display: flex; flex-direction: column; }
.post-card .ph { aspect-ratio: 16/10; border-radius: var(--radius); margin-bottom: 20px; transition: transform .3s var(--ease); }
.post-card:hover .ph { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.post-meta { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.post-card h3 { font-size: 21px; margin: 12px 0 10px; line-height: 1.18; }
.post-card p { color: var(--ink-2); font-size: 15px; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { background: var(--ink-bg); color: #fff; border-radius: var(--radius-lg); padding: 72px 64px; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c7c1b8; margin-top: 18px; max-width: 460px; }
.cta-band .btn-ghost { color: #fff; }

/* ============================================================
   FORMS
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.field input, .field textarea, .field select {
  font-family: var(--body); font-size: 16px; color: var(--ink);
  padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: 12px;
  background: var(--bg); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft);
}
.field textarea { resize: vertical; min-height: 130px; }

/* ============================================================
   PAGE HERO (internal pages)
   ============================================================ */
.page-hero { padding: 80px 0 64px; background: var(--bg-cream); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.crumbs { font-size: 13.5px; color: var(--muted); font-weight: 600; margin-bottom: 22px; }
.crumbs a:hover { color: var(--orange-deep); }

/* ============================================================
   MOTION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* staggered children (card grids) */
.reveal.stagger { opacity: 1; transform: none; }
.reveal.stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.stagger.in > * { opacity: 1; transform: none; }
.reveal.stagger.in > *:nth-child(1) { transition-delay: .00s; }
.reveal.stagger.in > *:nth-child(2) { transition-delay: .08s; }
.reveal.stagger.in > *:nth-child(3) { transition-delay: .16s; }
.reveal.stagger.in > *:nth-child(4) { transition-delay: .24s; }
.reveal.stagger.in > *:nth-child(5) { transition-delay: .12s; }
.reveal.stagger.in > *:nth-child(6) { transition-delay: .20s; }

/* hero entrance */
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes archDrift { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-14px); } }

/* image hover zoom on cards */
.case-card .ph, .post-card .ph, .svc-block .ph { overflow: hidden; }
.case-card .ph > img, .post-card .ph > img { transition: transform .6s var(--ease); }
.case-card:hover .ph > img, .post-card:hover .ph > img { transform: scale(1.06); }

@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow, .hero h1, .hero .lead, .hero-cta, .hero-trust { animation: heroIn .7s var(--ease) both; }
  .hero h1 { animation-delay: .06s; }
  .hero .lead { animation-delay: .12s; }
  .hero-cta { animation-delay: .18s; }
  .hero-trust { animation-delay: .24s; }
  .hero-visual { animation: heroIn .8s var(--ease) .12s both; }
  .hero-arch { animation: archDrift 9s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) { .reveal, .reveal.stagger > * { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   CURTAIN FOOTER
   ============================================================ */
body.curtain .page-shell {
  position: relative; z-index: 2; background: var(--bg);
  box-shadow: 0 50px 70px -28px rgba(22,19,15,.45);
}
body.curtain .site-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1; }
@media (max-width: 880px) { body.curtain .site-footer { position: static; } body.curtain .page-shell { box-shadow: none; margin-bottom: 0 !important; } }

/* ============================================================
   MARQUEE (client logos)
   ============================================================ */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 0; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .logo-chip { padding: 0 44px; height: 34px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 880px) {
  :root { --gut: 24px; }
  .section { padding: 80px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 78px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px var(--gut) 24px; gap: 2px; box-shadow: var(--shadow-md);
  }
  .nav-links.open a { padding: 13px 12px; font-size: 16px; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 28px; }
  .wa-float .wa-label { display: none; }
  .wa-float { padding: 15px; }
}
@media (max-width: 560px) {
  .cards-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* Google Fonts (Sora + Manrope), hosted locally under OFL-1.1. */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/SoraVariable.ttf") format("truetype"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/ManropeVariable.ttf") format("truetype"); }
