/* Site institucional — usa colors_and_type.css + components.css */

.site {
  background: var(--surface);
  min-height: 100vh;
}

/* ── Skip link (visible on focus only) ───────────────── */
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--jet-navy);
  color: var(--jet-cream);
  padding: 10px 18px;
  border-radius: 99px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: top 180ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.skip-link:focus { top: 16px; outline: 2px solid var(--jet-champagne); outline-offset: 2px; }

/* ── Top bar — pattern shared with apps/proposals/proposta.html ─────── */
.site__topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Solid fallback for browsers without backdrop-filter (Firefox <103,
     older Edge). Without this the bar would be near-transparent and
     content would scroll visibly behind it. */
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site__topbar {
    background: rgba(244, 241, 235, 0.82);
    backdrop-filter: saturate(140%) blur(16px);
    -webkit-backdrop-filter: saturate(140%) blur(16px);
  }
}

/* 3-column flex: brand · nav · CTA (+ hamburger collapsed at desktop) */
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

/* Inline brand mark — glyph + Jet[em]sites[/em] (no SVG dependency) */
.topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--jet-navy);
  text-decoration: none;
  background-image: none;
}
.topbar__brand:hover { color: var(--jet-navy); }
.topbar__brand .glyph {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--jet-champagne);
  color: var(--jet-navy);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  flex: 0 0 auto;
}
.topbar__brand em {
  font-style: italic;
  font-weight: 300;
  color: var(--jet-champagne);
}

/* Center nav */
.topbar__nav {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-left: auto;
}
.topbar__nav .nav__link {
  background-image: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--jet-ink-400);
  text-decoration: none;
  transition: color 160ms ease;
  position: relative;
  padding: 4px 0;
}
.topbar__nav .nav__link:hover { color: var(--jet-navy); opacity: 1; }
.topbar__nav .nav__link.is-active { color: var(--jet-navy); }
.topbar__nav .nav__link.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -22px;
  height: 2px;
  background: var(--jet-champagne);
}

/* CTA at the right edge */
.topbar__cta { margin-left: 8px; flex: 0 0 auto; }

.site__hero {
  background: var(--jet-navy);
  color: var(--jet-cream);
  padding: 120px 0 96px;
  position: relative;
  overflow: hidden;
}
.site__hero .display-xl { max-width: 14ch; }
.site__hero .lead { max-width: 56ch; margin-top: 28px; color: rgba(244,241,235,0.72); }
.site__hero .cta-row { display: flex; gap: 14px; margin-top: 40px; align-items: center; }

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212,178,122,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,178,122,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 50%, black 30%, transparent 90%);
}

.hero-mockup {
  position: absolute;
  right: -60px;
  top: 80px;
  width: 540px;
  height: 360px;
  background: linear-gradient(180deg, #13284F 0%, #0A1F44 100%);
  border-radius: 14px;
  border: 1px solid rgba(212,178,122,0.28);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,0.6);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.hero-mockup__bar { height: 32px; border-bottom: 1px solid rgba(244,241,235,0.08); display:flex; align-items:center; gap: 6px; padding: 0 14px; }
.hero-mockup__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(244,241,235,0.18); display:inline-block; }
.hero-mockup__body { flex:1; padding: 28px 32px; display:flex; flex-direction:column; justify-content: space-between; }
.hero-mockup__title { font-family: var(--font-display); font-weight: 800; font-size: 36px; line-height: 1.05; color: var(--jet-cream); letter-spacing: -0.02em; }
.hero-mockup__title em { font-style: italic; font-weight: 300; color: var(--jet-champagne); }
.hero-mockup__row { display:flex; gap: 8px; flex-wrap: wrap; }
.hero-mockup__chip { height: 24px; border: 1px solid rgba(244,241,235,0.18); border-radius: 99px; padding: 0 10px; font-family: var(--font-body); font-size: 11px; color: rgba(244,241,235,0.72); display:flex; align-items:center; }

/* ── Hero word-stack — animated headline (vendem/impressionam/conquistam) ──
   3 italic-champagne words occupy the same grid cell so the stack auto-sizes
   to the longest word ("impressionam"). overflow:hidden clips them as they
   slide vertically; vertical-align nudges the stack to keep its baseline
   aligned with "Sites que" (overflow:hidden inline-blocks use bottom margin
   edge as their baseline, which sits below the natural text baseline). */
.hero-word-stack {
  display: inline-grid;
  grid-template-areas: 'cell';
  vertical-align: 0.04em;
  overflow: hidden;
  padding: 0 0.35em 0.25em 0.04em;
  margin: 0 -0.18em -0.25em -0.04em;
  min-height: 0.95em;
}
.hero-word-stack .w {
  grid-area: cell;
  font-style: italic;
  font-weight: 300;
  color: var(--jet-champagne);
  white-space: nowrap;
  will-change: transform;
}

/* ── Logo strip ─────────────────────────────────────── */
.logo-strip {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.logo-strip__wrap {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px; align-items: center;
}
.logo-strip__item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--jet-ink-400);
  text-align: center;
  opacity: 0.78;
}

/* ── Section ────────────────────────────────────────── */
.sect { padding: 112px 0; }
.sect__head { display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 56px; }
.sect__eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--jet-ink-400);
}
.sect__title { max-width: 18ch; }

/* ── Cases grid — text-only animated cards ──────────────
   Plain meta + KPI counter + title, plus champagne trails drifting in the
   background. No browser chrome, no mock-pages — typography is the focus.  */
.cases-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.case {
  grid-column: span 3;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 4/3;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  isolation: isolate;
  border: 1px solid var(--border);
}
.case--lg   { grid-column: span 6; aspect-ratio: 16/7; padding: 56px; }
.case--navy { background: var(--jet-navy); color: var(--jet-cream); border-color: rgba(244,241,235,0.08); }

/* Children render above the motion layer */
.case > *:not(.case__motion) { position: relative; z-index: 1; }

/* Drifting champagne hairlines — subtle background motion */
.case__motion {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.case__motion span {
  position: absolute;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--jet-champagne) 50%, transparent 100%);
  opacity: 0;
  will-change: transform, opacity;
}
.case__motion span:nth-child(1) { top: 22%; width: 55%; animation: case-drift-cream  9s linear infinite; }
.case__motion span:nth-child(2) { top: 55%; width: 42%; animation: case-drift-cream 13s linear infinite -4s; }
.case__motion span:nth-child(3) { top: 81%; width: 68%; animation: case-drift-cream 17s linear infinite -8s; }
.case--navy .case__motion span:nth-child(1) { animation-name: case-drift-navy; }
.case--navy .case__motion span:nth-child(2) { animation-name: case-drift-navy; }
.case--navy .case__motion span:nth-child(3) { animation-name: case-drift-navy; }

@keyframes case-drift-cream {
  0%   { transform: translateX(-110%); opacity: 0; }
  12%  { opacity: 0.42; }
  88%  { opacity: 0.42; }
  100% { transform: translateX(180%);  opacity: 0; }
}
@keyframes case-drift-navy {
  0%   { transform: translateX(-110%); opacity: 0; }
  12%  { opacity: 0.65; }
  88%  { opacity: 0.65; }
  100% { transform: translateX(180%);  opacity: 0; }
}

/* Text content */
.case__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--jet-ink-400);
  margin-bottom: 12px;
}
.case--navy .case__meta { color: rgba(244,241,235,0.55); }

.case__kpi {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--jet-navy);
  margin-bottom: 0;
}
.case--lg .case__kpi { font-size: 96px; }
.case--navy .case__kpi { color: var(--jet-cream); }
.case__kpi em { font-style: italic; font-weight: 300; color: var(--jet-champagne); }
.case__kpi-num { display: inline-block; }

/* Trailing text after the unit (e.g. "mais leads") — smaller weight */
.case__kpi { white-space: normal; }
.case__kpi::after { content: ''; }

/* Champagne hairline drawn under the KPI on entry */
.case__rule {
  height: 2px;
  width: 64px;
  background: var(--jet-champagne);
  margin: 14px 0 18px;
  transform: scaleX(0);
  transform-origin: left center;
}
.case--lg .case__rule { width: 96px; margin: 20px 0 24px; }

.case__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--jet-navy);
  margin: 0;
}
.case--lg .case__title { font-size: 32px; max-width: 18ch; }
.case--navy .case__title { color: var(--jet-cream); }
.case__title em { font-style: italic; font-weight: 300; color: var(--jet-champagne); }

/* Hover effect — subtle lift + brighter trails */
.case { transition: transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1),
                    border-color 220ms ease; }
.case:hover { transform: translateY(-2px); border-color: var(--jet-champagne); }

@media (prefers-reduced-motion: reduce) {
  .case__motion span { animation: none; }
  .case { transition: none; }
}

/* ── Method timeline ────────────────────────────────── */
.method { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.method__step { padding-top: 24px; border-top: 1px solid var(--border); }
.method__num { font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: 32px; color: var(--jet-champagne); line-height: 1; margin-bottom: 16px; }
.method__title { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; margin: 0 0 8px 0; }
.method__desc { font-family: var(--font-body); font-size: 14px; color: var(--fg-2); margin: 0; line-height: 1.55; }

/* ── KPI bar ────────────────────────────────────────── */
.kpi-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 56px 0; border-top: 1px solid var(--border-on-navy); border-bottom: 1px solid var(--border-on-navy); }
.kpi-bar .metric + .metric { border-left: 1px solid var(--border-on-navy); padding-left: 32px; }
.kpi-bar .metric .value { font-size: 56px; }

/* ── Quote ──────────────────────────────────────────── */
.quote {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 40px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--jet-cream);
  max-width: 22ch;
}
.quote em { font-style: italic; color: var(--jet-champagne); font-weight: 300; }
.quote__attrib { font-family: var(--font-body); font-size: 13px; color: rgba(244,241,235,0.6); margin-top: 32px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ── Signature strip (between ContactCta and Footer) ──
   Cream-bg motion that bridges the cream sections into the navy footer. */
.signature-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: block;
}
.signature-strip iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 1;        /* matches motion stage 1280×320 */
  max-height: 280px;
  border: 0;
  margin: 0 auto;
}

/* ── Footer ─────────────────────────────────────────── */
.footer { background: var(--jet-navy); color: var(--jet-cream); padding: 96px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer__col h4 { font-family: var(--font-body); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(244,241,235,0.5); font-weight: 500; margin: 0 0 16px 0; }
.footer__col a { display:block; font-size: 14px; color: var(--jet-cream); margin-bottom: 8px; background-image: none; }
.footer__col a:hover { color: var(--jet-champagne); opacity: 1; }
.footer__bottom { margin-top: 80px; padding-top: 24px; border-top: 1px solid rgba(244,241,235,0.12); display:flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: rgba(244,241,235,0.5); }

/* ── Mobile nav toggle (hidden on desktop) ──────────── */
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  border-radius: 8px;
}
.nav__toggle:hover { background: rgba(10,31,68,0.06); }
.nav__toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--jet-navy);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 160ms ease;
}
.nav__toggle-bar.is-x-1 { transform: translateY(10px) rotate(45deg); }
.nav__toggle-bar.is-x-2 { opacity: 0; }
.nav__toggle-bar.is-x-3 { transform: translateY(-10px) rotate(-45deg); }

/* Drawer collapses to zero height on desktop, expands on mobile via media query */
.nav__drawer {
  display: none;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   - 1024px: tablet/laptop adjustments (stack hero mockup below,
     reduce paddings, collapse some grids to 2 columns)
   - 768px: mobile (single column, drawer nav, hidden mockup)
   - 480px: small mobile (tighter spacing, smaller display sizes)
   ============================================================ */

/* ── Tablet / small laptop (≤1024px) ─────────────────── */
@media (max-width: 1024px) {
  /* Nav: collapse links + show hamburger; CTA stays visible */
  .topbar__nav { display: none; }
  .nav__toggle { display: flex; }

  .site__hero { padding: 88px 0 72px; }
  .site__hero .display-xl { max-width: 16ch; }

  /* Hero mockup: drop into normal flow below the copy */
  .hero-mockup {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    max-width: 540px;
    height: auto;
    aspect-ratio: 540 / 360;
    margin: 56px auto 0;
  }

  .sect { padding: 88px 0; }
  .sect__head { margin-bottom: 40px; }

  .logo-strip__wrap { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }

  /* Cases: 4 columns; lg spans full, others go 2 per row */
  .cases-grid { grid-template-columns: repeat(4, 1fr); }
  .case { grid-column: span 2; }
  .case--lg { grid-column: span 4; aspect-ratio: 16/8; }

  .method { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
}

/* ── Mobile (≤768px) ─────────────────────────────────── */
@media (max-width: 768px) {
  /* Hide topbar CTA — it lives inside the drawer at this size */
  .topbar__cta { display: none; }
  .topbar__inner { padding: 12px var(--gutter); }

  /* Drawer reveal */
  .nav__drawer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px var(--gutter) 32px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    transition: max-height 280ms cubic-bezier(0.22, 0.61, 0.36, 1),
                padding 280ms cubic-bezier(0.22, 0.61, 0.36, 1),
                opacity 200ms ease;
  }
  .nav__drawer.is-open {
    max-height: 480px;
    padding-top: 24px;
    padding-bottom: 32px;
    opacity: 1;
  }
  .nav__drawer a {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    color: var(--jet-navy);
    text-decoration: none;
    background-image: none;
    letter-spacing: -0.01em;
  }
  .nav__drawer .btn { align-self: flex-start; margin-top: 8px; }

  /* Hero */
  .site__hero { padding: 64px 0 56px; }
  .site__hero .display-xl { max-width: 100%; font-size: 56px; }
  .site__hero .lead { font-size: 16px; }
  .site__hero .cta-row { flex-wrap: wrap; gap: 12px; margin-top: 32px; }
  .site__hero .cta-row .btn { flex: 1 1 auto; justify-content: center; }
  .hero-mockup { margin-top: 40px; max-width: 100%; }
  .hero-mockup__title { font-size: 28px; }

  /* Sections */
  .sect { padding: 64px 0; }
  .sect__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
  }
  .sect__title { max-width: 100%; }

  /* Logo strip */
  .logo-strip { padding: 40px 0; }
  .logo-strip__wrap { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  /* Cases — single column, all uniform height */
  .cases-grid { grid-template-columns: 1fr; gap: 16px; }
  .case,
  .case--lg { grid-column: span 1; aspect-ratio: 4/3; }
  .case__chrome { padding: 10px 14px; }
  .case__url { font-size: 10px; }
  .case__badge { display: none; } /* tight in mobile */

  /* Method — single column, no top borders stacking */
  .method { grid-template-columns: 1fr; row-gap: 28px; }

  /* KPI bar — 2x2 grid, swap vertical borders for top borders */
  .kpi-bar {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 32px 0;
  }
  .kpi-bar .metric {
    padding: 20px 16px;
  }
  .kpi-bar .metric + .metric { border-left: none; padding-left: 16px; }
  .kpi-bar .metric:nth-child(odd) { border-right: 1px solid var(--border-on-navy); }
  .kpi-bar .metric:nth-child(n+3) { border-top: 1px solid var(--border-on-navy); }
  .kpi-bar .metric .value { font-size: 40px; }

  /* Quote + cards */
  .quote { font-size: 28px; max-width: 100%; }

  /* ContactCta card stacks */
  .footer { padding: 64px 0 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 8px; margin-top: 48px; }
}

/* ── Small mobile (≤480px) ───────────────────────────── */
@media (max-width: 480px) {
  .site__hero .display-xl { font-size: 44px; }
  .display-m { font-size: 36px; }
  .case-page__h { font-size: 24px; }
  .case-page__sub { font-size: 11px; }
  .quote { font-size: 22px; }
  .kpi-bar .metric .value { font-size: 32px; }
  .hero-mockup__title { font-size: 22px; }
  .hero-mockup__body { padding: 20px 22px; }
}

/* ── ContactCta + ProofKpis grids: forced via attribute selectors ──
   These components use inline grid styles, so we override with !important
   only at the breakpoints where the inline style would otherwise persist. */
@media (max-width: 1024px) {
  /* ProofKpis quote+cards row */
  section[data-screen-label="Proof"] > .container > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    margin-top: 56px !important;
  }
  /* ContactCta card */
  section[data-screen-label="ContactCTA"] .card {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding: 56px 40px !important;
  }
}
@media (max-width: 768px) {
  section[data-screen-label="ContactCTA"] .card {
    padding: 40px 24px !important;
  }
}

