/* ─────────────────────────────────────────────────────────────────────
   ABC Advise — Design System
   Fonte oficial: marketing/03-site/design-system.md
   ───────────────────────────────────────────────────────────────────── */

:root {
  /* paleta primitiva */
  --abc-navy-50:  #F1F4F9;
  --abc-navy-100: #E2E8F0;
  --abc-navy-200: #CBD5E1;
  --abc-navy-300: #94A3B8;
  --abc-navy-500: #475569;
  --abc-navy-700: #1F2937;
  --abc-navy-900: #0F172A;
  --abc-navy-950: #020617;
  --abc-blue-100: #DBEAFE;
  --abc-blue-300: #93C5FD;
  --abc-blue-500: #3B82F6;
  --abc-blue-600: #2563EA;
  --abc-blue-700: #1D4ED8;
  --abc-green-50: #ECFDF5;
  --abc-green-500:#10B981;
  --abc-green-700:#047857;
  --abc-green-900:#064D3B;
  --abc-gold-500: #CA8A04;
  --abc-gold-700: #A16207;
  --abc-white:    #FFFFFF;
  --abc-off:      #F9FAFC;
  --abc-gray-200: #E5E7EB;
  --abc-gray-300: #D1D5DB;
  --abc-gray-500: #6B7280;

  /* tokens semânticos */
  --bg-authority:       var(--abc-navy-900);
  --bg-authority-deep:  var(--abc-navy-950);
  --bg-editorial:       var(--abc-off);
  --bg-soft:            var(--abc-navy-50);
  --bg-card:            var(--abc-white);
  --bg-governance:      var(--abc-green-900);
  --bg-cta:             var(--abc-blue-600);
  --bg-cta-hover:       var(--abc-blue-700);

  --text-on-dark:       var(--abc-white);
  --text-on-dark-soft:  var(--abc-navy-300);
  --text-headline:      var(--abc-navy-900);
  --text-body:          var(--abc-navy-700);
  --text-secondary:     var(--abc-navy-500);
  --text-accent:        var(--abc-blue-600);

  --border-subtle:      var(--abc-gray-200);
  --border-divider:     var(--abc-gray-300);
  --border-focus:       var(--abc-blue-600);

  --shadow-sm:   0 1px 2px 0 rgb(15 23 42 / 0.05);
  --shadow-md:   0 4px 6px -1px rgb(15 23 42 / 0.08), 0 2px 4px -2px rgb(15 23 42 / 0.04);
  --shadow-lg:   0 10px 15px -3px rgb(15 23 42 / 0.10), 0 4px 6px -4px rgb(15 23 42 / 0.06);
  --shadow-hover:0 20px 25px -5px rgb(15 23 42 / 0.10), 0 8px 10px -6px rgb(15 23 42 / 0.06);

  --ease:    cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:  150ms;
  --t-base:  200ms;
  --t-med:   300ms;
  --t-slow:  400ms;

  --max-page:    1280px;
  --max-prose:   65ch;
  --max-content: 72ch;
}

/* ───────────── reset & base ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--abc-white);
  font-feature-settings: 'ss01' on, 'cv11' on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: var(--text-accent); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

::selection { background: var(--abc-blue-600); color: white; }

/* ───────────── tipografia ───────────── */
.font-display { font-family: 'Manrope', system-ui, sans-serif; }
.font-body    { font-family: 'IBM Plex Sans', system-ui, sans-serif; }
.font-mono    { font-family: 'IBM Plex Mono', Menlo, monospace; }
.font-editorial { font-family: 'Cormorant', Georgia, serif; }

.eyebrow {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}
.eyebrow--accent { color: var(--text-accent); }
.eyebrow--on-dark { color: rgba(255,255,255,0.65); }

h1, h2, h3, h4, h5 {
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--text-headline);
  margin: 0;
  text-wrap: balance;
}
.h0 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; }
.h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
.h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.h3 { font-size: clamp(1.125rem, 1.8vw, 1.375rem); font-weight: 600; line-height: 1.3; }
.h4 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; }

.body-lg { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.55; }
.body    { font-size: 1rem; line-height: 1.6; }
.body-sm { font-size: 0.875rem; line-height: 1.55; }
.caption { font-size: 0.75rem; line-height: 1.5; color: var(--text-secondary); }

.number {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text-headline);
}

.quote {
  font-family: 'Cormorant', Georgia, serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.005em;
}

.muted { color: var(--text-secondary); }
.on-dark { color: var(--text-on-dark); }
.on-dark-soft { color: var(--text-on-dark-soft); }

/* ───────────── layout ───────────── */
.container {
  width: 100%;
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px)  { .container { padding: 0 40px; } }
@media (min-width: 1024px) { .container { padding: 0 64px; } }
@media (min-width: 1440px) { .container { padding: 0 80px; } }

.section { padding: 96px 0; }
.section--compact { padding: 64px 0; }
.section--major { padding: 128px 0; }
.section--dark { background: var(--bg-authority); color: var(--text-on-dark); }
.section--deep { background: var(--bg-authority-deep); color: var(--text-on-dark); }
.section--editorial { background: var(--bg-editorial); }
.section--soft { background: var(--bg-soft); }
.section--governance { background: var(--bg-governance); color: var(--text-on-dark); }

.section--dark .h0, .section--dark .h1, .section--dark .h2, .section--dark .h3,
.section--deep .h2, .section--deep .h3,
.section--governance .h2, .section--governance .h3 { color: var(--text-on-dark); }
.section--dark .eyebrow, .section--deep .eyebrow, .section--governance .eyebrow {
  color: rgba(255,255,255,0.65);
}

.prose { max-width: var(--max-prose); }
.prose p { margin: 0 0 1.25em; font-size: 1.0625rem; line-height: 1.7; color: var(--text-body); }
.prose p:last-child { margin-bottom: 0; }
.section--dark .prose p { color: rgba(255,255,255,0.85); }

.stack > * + * { margin-top: var(--stack-gap, 24px); }
.stack-sm { --stack-gap: 12px; }
.stack-md { --stack-gap: 24px; }
.stack-lg { --stack-gap: 40px; }
.stack-xl { --stack-gap: 64px; }

/* ───────────── header ───────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(15, 23, 42, 0.95);
  border-bottom-color: rgba(255,255,255,0.08);
}
.site-header.is-dark { background: rgba(15, 23, 42, 0.95); border-bottom-color: rgba(255,255,255,0.08); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  gap: 32px;
}
.brand {
  display: inline-flex; align-items: center; text-decoration: none;
  line-height: 0;
}
.brand img { display: block; height: 44px; width: auto; }
.brand .brand-dark { display: none; }
.site-header.is-scrolled .brand .brand-light,
.site-header.is-dark .brand .brand-light { display: none; }
.site-header.is-scrolled .brand .brand-dark,
.site-header.is-dark .brand .brand-dark { display: block; }
.footer-brand .brand .brand-light { display: none; }
.footer-brand .brand .brand-dark { display: block; }
.footer-brand .brand img { height: 56px; }

.nav-primary {
  display: none; gap: 32px; align-items: center;
}
@media (min-width: 960px) { .nav-primary { display: flex; } }
.nav-primary a {
  position: relative;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-headline);
  text-decoration: none;
  padding: 6px 0;
  transition: color var(--t-base) var(--ease);
}
.nav-primary a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--abc-blue-600);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.nav-primary a:hover::after, .nav-primary a.is-active::after { transform: scaleX(1); }
.nav-primary a:hover { color: var(--text-accent); }
.site-header.is-scrolled .nav-primary a, .site-header.is-dark .nav-primary a { color: var(--abc-white); }
.site-header.is-scrolled .nav-primary a:hover, .site-header.is-dark .nav-primary a:hover { color: var(--abc-blue-300); }

.nav-cta {
  display: none;
  font-size: 14px; font-weight: 600;
  color: var(--text-headline);
  border: 1px solid var(--abc-navy-900);
  padding: 10px 18px; border-radius: 8px;
  transition: all var(--t-base) var(--ease);
}
@media (min-width: 960px) { .nav-cta { display: inline-flex; align-items: center; gap: 8px; } }
.nav-cta:hover { background: var(--abc-navy-900); color: var(--abc-white); }
.site-header.is-scrolled .nav-cta, .site-header.is-dark .nav-cta {
  color: white; border-color: rgba(255,255,255,0.4);
}
.site-header.is-scrolled .nav-cta:hover, .site-header.is-dark .nav-cta:hover {
  background: var(--abc-blue-600); border-color: var(--abc-blue-600);
}

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 8px;
  color: var(--text-headline);
}
@media (min-width: 960px) { .menu-toggle { display: none; } }
.site-header.is-scrolled .menu-toggle, .site-header.is-dark .menu-toggle { color: white; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 49;
  background: var(--abc-navy-900);
  color: var(--abc-white);
  padding: 96px 32px 48px;
  transform: translateY(-100%);
  transition: transform var(--t-slow) var(--ease);
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu li { border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-menu a {
  display: block; padding: 22px 0;
  font-family: 'Manrope', sans-serif;
  font-size: 28px; font-weight: 700; letter-spacing: -0.01em;
  color: white;
}

.site-main { padding-top: 72px; }

/* ───────────── CTAs / links ───────────── */
.cta-inline {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px; font-weight: 600;
  color: var(--text-accent);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid currentColor;
  transition: gap var(--t-med) var(--ease), color var(--t-base) var(--ease);
}
.cta-inline:hover { gap: 14px; color: var(--abc-blue-700); }
.cta-inline.on-dark { color: var(--abc-blue-300); }
.cta-inline.on-dark:hover { color: white; }
.cta-inline.muted { color: var(--text-headline); border-color: var(--text-headline); }

.cta-primary {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px; font-weight: 600;
  background: var(--bg-cta); color: white;
  padding: 14px 24px; border-radius: 8px;
  text-decoration: none;
  transition: background var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.cta-primary:hover { background: var(--bg-cta-hover); transform: translateY(-1px); }

.cta-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px; font-weight: 600;
  background: transparent; color: var(--text-headline);
  padding: 14px 24px; border-radius: 8px;
  border: 1px solid var(--border-divider);
  text-decoration: none;
  transition: all var(--t-base) var(--ease);
}
.cta-ghost:hover { border-color: var(--abc-blue-600); color: var(--abc-blue-600); }
.section--dark .cta-ghost { color: white; border-color: rgba(255,255,255,0.3); }
.section--dark .cta-ghost:hover { background: white; color: var(--abc-navy-900); border-color: white; }

.arrow::after { content: '→'; }

/* ───────────── skip link ───────────── */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--abc-blue-600); color: white;
  padding: 12px 18px; border-radius: 8px;
  z-index: 100;
  transition: top var(--t-base) var(--ease);
}
.skip-link:focus { top: 16px; }

/* ───────────── diagonal element ───────────── */
.diagonal-divider {
  position: relative;
  background: currentColor;
  width: 1px;
  align-self: stretch;
  transform: skewX(-14deg) translateX(0);
  opacity: 0.35;
}

/* ───────────── footer ───────────── */
.site-footer { background: var(--abc-navy-950); color: var(--abc-white); padding: 96px 0 48px; }
.footer-top {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 768px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.footer-brand .brand { color: white; }
.footer-brand .brand .brand-suffix { color: white; }
.footer-brand p { margin-top: 16px; max-width: 36ch; color: var(--abc-navy-300); font-size: 14px; line-height: 1.55; }

.footer-col h4 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--abc-navy-300);
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-col a { color: rgba(255,255,255,0.85); font-size: 14px; transition: color var(--t-base) var(--ease); }
.footer-col a:hover { color: var(--abc-blue-300); }

.footer-mid {
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: var(--abc-navy-300);
  font-size: 14px;
}
.footer-mid a { color: rgba(255,255,255,0.85); }
.footer-mid a:hover { color: var(--abc-blue-300); }

.footer-bottom {
  padding-top: 32px;
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: flex-start;
  font-size: 12px; color: var(--abc-navy-300);
}
.footer-bottom ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.footer-bottom a { color: var(--abc-navy-300); }
.footer-bottom a:hover { color: white; }

/* ───────────── aerial photo (monocromática navy) ───────────── */
.aerial-photo {
  position: relative;
  width: 100%; height: 100%;
  min-height: 360px;
  overflow: hidden;
  background: var(--abc-navy-900);
}
.aerial-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.88) contrast(1.08);
}
.aerial-photo::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.58);
  z-index: 1;
}
.aerial-photo::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(37,99,234,0.18), transparent 55%),
    linear-gradient(120deg, transparent 45%, rgba(15,23,42,0.5) 100%);
  z-index: 2;
  pointer-events: none;
}
.aerial-photo .photo-label {
  position: absolute; bottom: 20px; left: 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  z-index: 3;
}

/* ───────────── aerial placeholder ───────────── */
.aerial-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 360px;
  background: var(--abc-navy-900);
  overflow: hidden;
  border-radius: 0;
}
.aerial-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    132deg,
    rgba(255,255,255,0.04) 0,
    rgba(255,255,255,0.04) 1px,
    transparent 1px,
    transparent 7px
  ),
  radial-gradient(ellipse at 30% 40%, rgba(37,99,234,0.22), transparent 55%),
  radial-gradient(ellipse at 75% 75%, rgba(255,255,255,0.06), transparent 60%);
}
.aerial-placeholder::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(120deg, transparent 40%, rgba(15,23,42,0.6) 100%);
}
.aerial-placeholder .placeholder-label {
  position: absolute; bottom: 20px; left: 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  z-index: 2;
}
.aerial-placeholder .placeholder-axes {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* aerial — variant with vector "interchange" silhouette */
.aerial-placeholder svg.placeholder-art {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; opacity: 0.55;
}

/* ───────────── reusable cards ───────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px;
  transition: box-shadow var(--t-med) var(--ease), transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: var(--abc-navy-100); }

.card-link { color: inherit; text-decoration: none; display: block; }

/* ───────────── utility ───────────── */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; } .mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; } .mt-16 { margin-top: 64px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 720px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
