/* Bluecoltan: shared site styles (tokens, base, nav, footer, contact form, effects) */

/* ---------- Fonts (self-hosted variable fonts) ---------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #021229;
  --navy-deep: #010B1A;
  --card: #0A2138;
  --card-2: #06182E;
  --blue: #2E71FE;
  --blue-600: #105AF8;
  --blue-800: #053799;
  --sky: #66BFFC;
  --gold: #E8C268;
  --violet: #546CBC;
  --tag: #CFE3FF;
  --paper: #F4F6FA;
  --paper-line: #E2E6EE;
  --paper-slot: #E3E8F1;
  --ink-2: #3A4356;
  --ink-3: #5A6478;

  --sans: 'Archivo', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.16,.84,.24,1);
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1280px;
  --skew: skewX(-14deg);
  --brand-line: linear-gradient(90deg, var(--gold), var(--blue));
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; background: var(--navy); overflow-x: clip; }
body {
  font-family: var(--sans);
  color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--sky); text-decoration: none; }
a:hover { color: #FFFFFF; }
::selection { background: var(--blue); color: #FFFFFF; }
img { display: block; max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }

.container {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--gold); color: var(--navy); font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--navy); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  color: var(--sky);
  margin: 0 0 22px;
}
.on-light .eyebrow { color: var(--blue-800); }

.h-section {
  font-weight: 700;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.lede {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.65;
  color: rgba(255,255,255,0.68);
  margin: 0;
  text-wrap: pretty;
}
.on-light .lede { color: var(--ink-2); }

/* ---------- Links & buttons ---------- */
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px;
  color: var(--sky);
  transition: color .2s ease;
}
.link-arrow:hover { color: #FFFFFF; }
.on-light .link-arrow { color: var(--blue); }
.on-light .link-arrow:hover { color: var(--blue-800); }
.link-arrow .arr { transition: transform .25s var(--ease); }
.link-arrow:hover .arr { transform: translateX(4px); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 15.5px;
  cursor: pointer;
  border: 0;
}
.btn-gold {
  background: var(--gold); color: var(--navy); font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-gold:hover { color: var(--navy); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(232,194,104,0.28); }
.btn-ghost {
  border: 1px solid rgba(255,255,255,0.22); color: #FFFFFF; font-weight: 600;
  transition: border-color .2s ease, background .2s ease;
}
.btn-ghost:hover { color: #FFFFFF; border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.04); }
.btn-blue {
  padding: 10px 18px; font-size: 14px; font-weight: 600;
  background: var(--blue); color: #FFFFFF;
  transition: background .2s ease;
}
.btn-blue:hover { background: var(--blue-600); color: #FFFFFF; }

/* ---------- Decorative skewed bars ---------- */
.bar { position: absolute; pointer-events: none; }
.bar > div, .bar > div > div { width: 100%; height: 100%; }
.skew { width: 100%; height: 100%; transform: var(--skew); }

/* Cursor-reactive glow overlay; parent carries [data-glow] */
[data-glow] { --go: 0; }
.glow {
  position: absolute; inset: 0; pointer-events: none;
  opacity: var(--go);
  transition: opacity .5s ease;
}

/* ---------- Scroll reveal ---------- */
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translate3d(0,34px,0); }
.js [data-reveal]:not(.is-done) {
  transition: opacity 1s var(--ease) var(--d, 0ms), transform 1.2s var(--ease) var(--d, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
}

/* ---------- Nav ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0);
  transition: background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
}
.site-nav.is-scrolled, .site-nav.is-open {
  background: rgba(2,18,41,0.78);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: rgba(255,255,255,0.08);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 16px; padding-bottom: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #FFFFFF; }
.brand:hover { color: #FFFFFF; }
.brand img { width: 30px; height: 30px; }
.brand span { font-weight: 600; font-size: 19px; letter-spacing: 0.005em; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  position: relative; padding: 6px 0;
  font-size: 14.5px; font-weight: 500;
  color: rgba(255,255,255,0.78);
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #FFFFFF; }
.nav-links a[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: var(--brand-line);
}

.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  position: relative; display: flex; padding: 3px;
  border: 1px solid rgba(255,255,255,0.16); border-radius: 999px;
}
.lang-toggle::before {
  content: ''; position: absolute; top: 3px; left: 3px; width: 38px; height: 28px;
  border-radius: 999px; background: var(--blue);
  transition: transform .35s var(--ease);
}
html[lang="es"] .lang-toggle::before { transform: translateX(38px); }
.lang-toggle button {
  position: relative; width: 38px; height: 28px; padding: 0;
  border: 0; border-radius: 999px; background: transparent; color: #FFFFFF;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  cursor: pointer;
}

.nav-burger {
  display: none;
  width: 44px; height: 44px; padding: 0;
  border-radius: 8px; border: 1px solid rgba(255,255,255,0.16); background: transparent;
  place-content: center; gap: 5px; cursor: pointer;
}
.nav-burger span { display: block; width: 18px; height: 1.5px; background: #FFFFFF; transition: transform .3s var(--ease), opacity .2s ease; }
.nav-burger span:last-child { width: 12px; }
.site-nav.is-open .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.site-nav.is-open .nav-burger span:nth-child(2) { opacity: 0; }
.site-nav.is-open .nav-burger span:nth-child(3) { width: 18px; transform: translateY(-6.5px) rotate(-45deg); }

.nav-menu {
  display: none;
  background: rgba(2,18,41,0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 12px var(--gutter) 24px;
  gap: 4px;
}
.nav-menu a {
  display: block; padding: 14px 0;
  font-size: 20px; font-weight: 600; color: #FFFFFF;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-menu .btn-blue { margin-top: 14px; padding: 14px 18px; font-size: 15px; text-align: center; border-bottom: 0; }

@media (max-width: 939px) {
  .nav-links, .nav-actions > .btn-blue { display: none; }
  .nav-burger { display: grid; }
  .site-nav.is-open .nav-menu { display: grid; }
}

/* ---------- Contact form ---------- */
.contact-card {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px;
  padding: clamp(24px, 3.4vw, 40px);
  overflow: hidden;
}
.contact-card .glow { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(46,113,254,0.14), transparent 65%); }
.contact-form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 20px 16px;
}
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field > span {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  color: rgba(255,255,255,0.6);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  color: #FFFFFF;
  font-family: var(--sans); font-size: 15px;
  outline: none;
  transition: border-color .2s, background .2s;
}
.field textarea { line-height: 1.55; resize: vertical; }
.field textarea::placeholder { color: rgba(255,255,255,0.35); }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2366BFFC' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 40px;
}
.field select option { background: var(--card); color: #FFFFFF; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  background-color: rgba(46,113,254,0.08);
}
.form-foot {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 4px;
}
.form-foot .note { font-size: 13px; color: rgba(255,255,255,0.5); }
.form-foot .btn { padding: 15px 26px; font-size: 15px; }
.form-foot .btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(232,194,104,0.25); }

.form-thanks {
  position: relative; min-height: 420px;
  display: grid; place-content: center; text-align: center; gap: 18px; padding: 24px;
}
.form-thanks .check {
  margin: 0 auto; width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgba(102,191,252,0.4);
  display: grid; place-items: center; color: var(--sky); font-size: 22px;
}
.form-thanks h3 { margin: 0; font-weight: 700; font-size: 28px; letter-spacing: -0.02em; }
.form-thanks p { margin: 0 auto; max-width: 380px; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,0.65); }
.form-thanks button {
  margin: 8px auto 0; padding: 10px 18px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18); background: transparent; color: #FFFFFF;
  font-size: 14px; cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
}
.footer-inner { padding-top: 72px; padding-bottom: 36px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px 32px;
  padding-bottom: 56px;
}
.footer-brand { display: grid; gap: 18px; align-content: start; min-width: 0; }
.footer-logo { display: flex; align-items: center; gap: 14px; }
.footer-logo img { width: 38px; height: 38px; }
.footer-logo .name { font-weight: 600; font-size: 22px; color: #FFFFFF; line-height: 1; }
.footer-logo .tag { font-weight: 500; font-size: 10px; letter-spacing: 0.26em; color: var(--blue); margin-top: 7px; }
.footer-brand p {
  font-size: 15px; line-height: 1.65; color: rgba(255,255,255,0.55);
  margin: 0; max-width: 360px; text-wrap: pretty;
}
.footer-col { display: grid; gap: 12px; align-content: start; }
.footer-col h2 {
  margin: 0 0 6px;
  font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.2em; color: var(--sky);
}
.footer-col a { font-size: 14.5px; color: rgba(255,255,255,0.72); }
.footer-col a:hover { color: #FFFFFF; }
.footer-col .tel { font-family: var(--mono); font-size: 13px; color: rgba(255,255,255,0.72); }
.footer-col .tel span { color: rgba(255,255,255,0.4); }
.footer-base {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: var(--mono); font-size: 11.5px; color: rgba(255,255,255,0.45);
}
.footer-cities { display: flex; align-items: center; gap: 14px; letter-spacing: 0.14em; }
.footer-cities i { width: 36px; height: 3px; background: var(--brand-line); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Page building blocks (shared across pages) ---------- */
.section { position: relative; overflow: clip; }
.section-pad { padding-top: clamp(96px, 12vw, 150px); padding-bottom: clamp(96px, 12vw, 150px); }
.on-light { background: var(--paper); color: var(--navy); }
.bg-deep { background: var(--card-2); }
.rule-top { border-top: 1px solid rgba(255,255,255,0.07); }
.on-light.rule-top { border-top-color: var(--paper-line); }

/* two-column split that stacks on narrow screens */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.split--end { gap: 24px clamp(40px, 6vw, 96px); align-items: end; }
.split--center { align-items: center; }

.h-sub {
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.lede--sm { font-size: clamp(17px, 1.3vw, 19px); }

/* Page heroes */
.page-hero {
  position: relative;
  display: flex;
  overflow: hidden;
  background: var(--navy);
}
.page-hero > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.page-hero .hero-wash { position: absolute; inset: 0; pointer-events: none; }
.page-hero > .glow {
  background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 40%), rgba(46,113,254,0.15), transparent 60%);
  transition: opacity .6s ease;
}
.page-hero .hero-copy { position: relative; z-index: 2; }
.hero-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.hero-eyebrow i { width: 40px; height: 3px; background: var(--brand-line); flex: none; }
.hero-eyebrow .eyebrow { margin: 0; }
.page-hero h1 {
  font-weight: 700;
  font-size: clamp(42px, 6.2vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  margin: 0 0 44px;
  max-width: 600px;
  text-wrap: pretty;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* Closing call-to-action band */
.cta-band { position: relative; overflow: hidden; }
.cta-band .container {
  padding-top: clamp(88px, 10vw, 130px); padding-bottom: clamp(88px, 10vw, 130px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
}
.cta-band h2 {
  font-weight: 700; font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.04; letter-spacing: -0.03em;
  margin: 0; max-width: 720px; text-wrap: balance;
}
.cta-band .btn { padding: 16px 28px; }

/* Dark card with cursor glow */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
}
.card > .glow { background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(46,113,254,0.17), transparent 65%); transition: opacity .4s ease; }
.card > *:not(.glow) { position: relative; }

/* White card on light sections */
.light-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--paper-line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.light-card:hover { border-color: #9BB4F0; transform: translateY(-3px); }
.light-card > .glow { background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(46,113,254,0.10), transparent 65%); transition: opacity .4s ease; }
.light-card > *:not(.glow) { position: relative; }

/* Pills */
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags li {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--tag);
  padding: 7px 12px;
  border: 1px solid rgba(102,191,252,0.25); border-radius: 999px;
  background: rgba(46,113,254,0.08);
}

/* Outlined index numerals */
.outline-n {
  font-family: var(--mono); font-weight: 700; line-height: 0.9;
  color: transparent; -webkit-text-stroke: 1px rgba(102,191,252,0.55);
}

/* Contact detail rows */
.contact-lines { margin: 0; max-width: 480px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.contact-lines div {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.contact-lines dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; color: rgba(255,255,255,0.5); }
.contact-lines dd { margin: 0; font-family: var(--mono); font-size: 14px; color: #FFFFFF; }
.contact-lines dd a { color: #FFFFFF; }
.contact-lines dd a:hover { color: var(--sky); }

/* Headshots / photos */
.photo {
  position: relative; aspect-ratio: 4 / 5;
  border-radius: 14px; overflow: hidden;
  background: var(--paper-slot);
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo .initials {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-weight: 700; font-size: 56px; letter-spacing: -0.02em; color: #B3C0D6;
  background: linear-gradient(160deg, #E8ECF3, #D9E0EC);
}
.photo--dark { background: var(--card); border: 1px solid rgba(255,255,255,0.08); }
.photo--dark .initials { color: rgba(102,191,252,0.45); background: linear-gradient(160deg, var(--card), var(--card-2)); }
