/* =========================================================
   BSF Advogados — Portfolio Design System
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  /* — Brand palette (extracted from the BSF swatch) — */
  --cyan:        #00C2DE;
  --cyan-soft:   #B9EBF2;
  --teal:        #0F4F5E;
  --teal-deep:   #082932;
  --cream:       #F2EEE3;
  --cream-warm:  #E9E3D2;
  --paper:       #F7F4EB;
  --ink:         #0E1012;
  --char:        #1F2225;
  --char-2:      #2D3134;
  --gray:        #6B6F73;
  --gray-soft:   #A8ACAF;
  --line:        rgba(14, 16, 18, 0.10);
  --line-light:  rgba(14, 16, 18, 0.06);
  --line-dark:   rgba(242, 238, 227, 0.12);

  /* — Type — */
  --serif: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --sans:  'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  --mono:  'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;

  /* — Motion — */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body { font-size: 16px; line-height: 1.55; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* — Type scale — */
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.015em;
  font-feature-settings: "ss01", "liga";
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--teal);
}
.kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
}

/* — Layout helpers — */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 56px; }
.wrap-tight { max-width: 1200px; margin: 0 auto; padding: 0 56px; }

/* — Top nav — */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 56px;
}
.nav .logo {
  height: 48px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex; gap: 28px;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-links a {
  color: var(--char);
  transition: color .2s var(--ease);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--cyan); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: var(--ink); color: var(--paper);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s var(--ease);
}
.nav-cta:hover { background: var(--teal); }
.nav-cta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0, 194, 222, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 194, 222, 0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(0, 194, 222, 0); }
}

/* — Buttons — */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: all .2s var(--ease);
  border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--teal); }
.btn-ghost   { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-cyan    { background: var(--cyan); color: var(--ink); }
.btn-cyan:hover { background: var(--teal); color: var(--paper); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* — Footer — */
.footer {
  background: var(--ink); color: var(--cream);
  padding: 96px 0 40px;
  margin-top: 0;
}
.footer .logo {
  height: 96px;
  width: auto;
  display: block;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line-dark);
}
.footer h4 {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gray-soft); margin-bottom: 18px;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; font-size: 14px; }
.footer li a { color: var(--cream); opacity: .85; transition: opacity .2s var(--ease); }
.footer li a:hover { opacity: 1; color: var(--cyan); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  font-family: var(--mono); font-size: 11px;
  color: var(--gray-soft); letter-spacing: 0.06em;
}

/* — Utility — */
.cyan { color: var(--cyan); }
.serif { font-family: var(--serif); }
.italic { font-style: italic; }
.divider { height: 1px; background: var(--line); }
.divider-dark { height: 1px; background: var(--line-dark); }

/* — Number marker (for service lists) — */
.num-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.1em;
}

/* — Marquee — */
@keyframes marq {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.marquee-track {
  display: flex; gap: 56px; width: max-content;
  animation: marq 38s linear infinite;
  font-family: var(--serif);
  font-size: 36px;
  white-space: nowrap;
}
.marquee-track span { display: flex; align-items: center; gap: 56px; }
.marquee-track .star { color: var(--cyan); font-size: 22px; }

/* — Sections — */
section { padding: 120px 0; }
.section-head {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 56px; margin-bottom: 64px;
}

/* — Card — */
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  transition: all .3s var(--ease);
}
.card:hover { transform: translateY(-2px); border-color: var(--teal); }

/* — Responsive (basic) — */
@media (max-width: 900px) {
  .wrap, .wrap-tight, .nav-inner { padding-left: 24px; padding-right: 24px; }
  .nav-links { display: none; }
  section { padding: 72px 0; }
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
