/* ═══════════════════════════════════════════════════════
   Forte Project Engineering · shared.css
   Brand tokens + components shared across all pages
   ═══════════════════════════════════════════════════════ */

/* ─── Brand tokens ─── */
:root {
  --navy:     #12324A;
  --navy-700: #0D2538;
  --navy-50:  #E8EDF1;
  --teal:     #137F7C;
  --teal-500: #1A9692;
  --teal-50:  #E0F1F0;
  --gray:     #6F747A;
  --gray-300: #C6C9CD;
  --gray-100: #E9EBED;
  --paper:    #F6F4F0;
  --bone:     #F2EFE9;
  --white:    #FFFFFF;
  --ink:      #0B1820;

  --sans: 'Inter', 'Calibri', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', 'Consolas', 'Menlo', monospace;

  --maxw:     1280px;
  --pad:      clamp(20px, 4vw, 56px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--navy);
  background: var(--white);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--teal); color: #fff; }

/* ─── Language switching ─── */
html[lang="es"] .en { display: none !important; }
html[lang="en"] .es { display: none !important; }

/* ─── Typography ─── */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0;
}
.eyebrow.on-navy { color: var(--teal-500); }
.eyebrow .num { color: var(--gray); margin-right: 10px; }
.eyebrow.on-navy .num { color: rgba(224, 241, 240, 0.55); }

.label-mono {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--navy);
  margin: 0;
  text-wrap: balance;
}
h2.section-title {
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.025em;
}
h3.subtitle {
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.012em;
}
.lede {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.5;
  font-weight: 400;
  color: var(--navy);
  max-width: 56ch;
  margin: 0;
}
.body-copy {
  color: var(--gray);
  font-size: 16px;
  line-height: 1.65;
  max-width: 62ch;
  margin: 0;
}
.body-copy + .body-copy { margin-top: 14px; }
.rule {
  width: 64px; height: 2px; background: var(--teal);
  border: 0; display: block;
}
.rule.gray { background: var(--gray-300); }

/* ─── Layout helpers ─── */
.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section.tight { padding: clamp(56px, 6vw, 80px) 0; }
.section.paper { background: var(--paper); }
.section.bone  { background: var(--bone); }
.section.navy  { background: var(--navy); color: #fff; }
.section.navy h2.section-title,
.section.navy h3.subtitle,
.section.navy h4 { color: #fff; }
.section.navy .body-copy { color: rgba(224, 241, 240, 0.75); }
.section.navy .lede { color: #fff; }

/* ─── Section header pattern ─── */
.sec-head {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.sec-head .eyebrow { padding-top: 6px; }
.sec-head h2 { margin: 0 0 16px; }
@media (max-width: 720px) {
  .sec-head { grid-template-columns: 1fr; gap: 16px; }
}

/* ─── Anchor offset for sticky header ─── */
.anchor { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ─── Accent helpers ─── */
.accent-bar {
  display: inline-block;
  width: 48px; height: 2px;
  background: var(--teal);
  vertical-align: middle;
  margin-right: 14px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-500); border-color: var(--teal-500); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.25); }
.btn-ghost:hover { border-color: var(--teal-500); color: var(--teal-500); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--gray-300); }
.btn-outline:hover { border-color: var(--navy); }
.btn .arrow { display: inline-block; transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(3px); }


/* ══════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════ */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--gray-100);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 52px; width: auto; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}



/* Language toggle */
.lang-toggle {
  background: transparent;
  border: 1px solid var(--gray-300);
  color: var(--navy);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  padding: 7px 12px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.lang-toggle:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Hamburger — visible on ALL screen sizes */
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--navy);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.18s ease;
}
.menu-btn:hover { background: var(--navy-700); }
.menu-btn span {
  display: block;
  width: 16px; height: 1.5px;
  background: #fff;
  position: relative;
  transition: background 0.18s ease;
}
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0; width: 16px; height: 1.5px;
  background: #fff;
  transition: transform 0.22s ease, top 0.22s ease;
}
.menu-btn span::before { top: -5px; }
.menu-btn span::after  { top: 5px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }


/* ══════════════════════════════════════════════════════
   SIDEBAR DRAWER NAV
   ══════════════════════════════════════════════════════ */

/* Overlay backdrop */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 24, 32, 0.55);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

/* Drawer panel — slides in from right */
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 88vw);
  background: var(--navy);
  z-index: 210;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.drawer.is-open {
  transform: translateX(0);
}

/* Drawer header */
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.drawer-head img { height: 36px; width: auto; }
.drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px;
  cursor: pointer;
  color: rgba(224,241,240,0.8);
  font-size: 18px;
  line-height: 1;
  transition: all 0.18s ease;
  flex-shrink: 0;
}
.drawer-close:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* Nav links inside drawer */
.drawer-nav {
  flex: 1;
  padding: 12px 0;
}
.drawer-nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(224,241,240,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.18s ease, background 0.18s ease;
  gap: 16px;
}
.drawer-nav a:last-child { border-bottom: 0; }
.drawer-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.04);
}
.drawer-nav a.active {
  color: var(--teal-500);
}
.drawer-nav a .link-num {
  font-size: 10px;
  color: rgba(224,241,240,0.28);
  letter-spacing: 0.18em;
  flex-shrink: 0;
}
.drawer-nav a:hover .link-num {
  color: rgba(224,241,240,0.5);
}

/* Section divider inside drawer */
.drawer-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 8px 28px;
}

/* Drawer footer — coordinates/meta */
.drawer-foot {
  padding: 20px 28px 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.drawer-foot .df-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(224,241,240,0.3);
  margin-bottom: 10px;
}
.drawer-foot .df-val {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(224,241,240,0.55);
  line-height: 1.7;
}
.drawer-foot .df-val a {
  color: var(--teal-500);
  transition: color 0.18s;
}
.drawer-foot .df-val a:hover { color: #fff; }


/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
footer.site-footer {
  background: var(--ink);
  color: rgba(224, 241, 240, 0.55);
  padding: 32px var(--pad);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.foot-left, .foot-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.foot-left img { height: 22px; }
.footer-inner .sep {
  width: 1px; height: 14px;
  background: rgba(224, 241, 240, 0.18);
  display: inline-block;
}
.footer-inner .sep.dot {
  width: 3px; height: 3px;
  background: var(--teal-500);
  border-radius: 50%;
}
.to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid rgba(224,241,240,0.18);
  color: rgba(224,241,240,0.7);
  font-family: var(--sans);
  font-size: 14px;
  transition: all 0.18s ease;
  margin-left: 6px;
}
.to-top:hover { border-color: var(--teal-500); color: var(--teal-500); }
@media (max-width: 640px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}
