/* ==========================================================
   CounselCore — Website stylesheet
   Brand palette & typography per "Manual de marca" v1.0
   ========================================================== */
:root {
  --navy: #09284C;      /* Azul marino — brand & backgrounds */
  --steel: #496B80;     /* Azul acero — second ink */
  --ink: #243641;       /* Tinta — body text */
  --mist: #E8EFF2;      /* Niebla — light backgrounds */
  --white: #FFFFFF;
  --line: #D3DDE2;
  --navy-2: #0F335C;
  --muted: #5C6F7A;

  --serif: "Noto Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Open Sans", Arial, Helvetica, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 112px);
  --radius: 2px;
  --shadow: 0 18px 40px -24px rgba(9, 40, 76, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--steel); }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.65; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1.1rem;
}
.on-dark .eyebrow, .eyebrow.light { color: #A9C0CE; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: #DCE6EC; }
.section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  letter-spacing: .02em;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 1.5px solid var(--navy);
  background: var(--navy); color: var(--white);
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--navy-2); color: #fff; transform: translateY(-1px); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: var(--mist); color: var(--navy); border-color: var(--mist); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link {
  font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--navy);
  border-bottom: 1.5px solid var(--steel); padding-bottom: 2px;
}
.text-link:hover { color: var(--steel); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(9,40,76,.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 1.9vw, 28px); }
.nav a.nav-link {
  font-size: .9rem; font-weight: 600; color: var(--ink); text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap;
}
.nav a.nav-link:hover { color: var(--navy); border-bottom-color: var(--line); }
.nav a.nav-link[aria-current="page"] { color: var(--navy); border-bottom-color: var(--steel); }
.lang-switch {
  display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; overflow: hidden;
}
.lang-switch a, .lang-switch span { padding: 6px 10px; text-decoration: none; color: var(--muted); }
.lang-switch span[aria-current] { background: var(--navy); color: #fff; }
.lang-switch a:hover { background: var(--mist); color: var(--navy); }
.nav .btn { padding: 11px 18px; font-size: .88rem; white-space: nowrap; }
.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 10px; margin-right: -10px;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .25s, opacity .25s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1240px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: 84px; left: 0; right: 0; height: calc(100vh - 84px); height: calc(100dvh - 84px); background: #fff; z-index: 60; border-top: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 12px var(--gutter) 40px; overflow-y: auto;
    opacity: 0; transform: translateY(-10px); transition: opacity .25s ease, transform .25s ease, visibility .25s; visibility: hidden;
  }
  .menu-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav a.nav-link { width: 100%; font-size: 1.05rem; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav a.nav-link[aria-current="page"] { border-bottom-color: var(--line); color: var(--steel); }
  .nav .lang-switch { margin: 24px 0 16px; }
  .nav .btn { width: 100%; justify-content: center; padding: 15px 20px; }
  .menu-open .nav { overscroll-behavior: contain; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  min-height: min(620px, calc(100vh - 84px)); background: var(--navy); overflow: hidden;
}
.hero-copy {
  position: relative; z-index: 2; color: #DCE6EC;
  padding: clamp(48px, 6vw, 84px) clamp(24px, 3.5vw, 56px) clamp(48px, 6vw, 84px) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  display: flex; flex-direction: column; justify-content: center;
}
.hero-copy h1 { color: #fff; max-width: 15ch; font-size: clamp(2.4rem, 4vw, 3.6rem); }
.hero-copy .lead { color: #D2DEE5; max-width: 34em; margin-bottom: 2rem; }
.hero-media { position: relative; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(9,40,76,.35) 0%, rgba(9,40,76,0) 18%);
}
.hero-mark {
  position: absolute; z-index: 1; width: 620px; right: 40%; bottom: -170px; opacity: .06; pointer-events: none;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { height: auto; aspect-ratio: 1376 / 768; order: -1; }
  .hero-media img { object-position: center; }
  .hero-media::before { background: linear-gradient(0deg, rgba(9,40,76,.35) 0%, rgba(9,40,76,0) 25%); }
  .hero-mark { width: 420px; right: -120px; bottom: -120px; }
}

/* ---------- Trust bar ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 28px 24px; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: var(--navy); line-height: 1.2; }
.trust-item span { font-size: .88rem; color: var(--muted); line-height: 1.5; display: block; margin-top: 4px; }
@media (max-width: 900px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 22px 16px; border-top: 1px solid var(--line); }
  .trust-item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .trust-item:nth-child(-n+2) { border-top: 0; }
}

/* ---------- Page hero (interior) ---------- */
.page-hero { position: relative; background: var(--navy); color: #D2DEE5; overflow: hidden; }
.page-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(9,40,76,.97) 0%, rgba(9,40,76,.9) 45%, rgba(9,40,76,.45) 100%);
}
.page-hero .wrap { position: relative; z-index: 2; padding-top: clamp(72px, 10vw, 132px); padding-bottom: clamp(64px, 8vw, 112px); }
.page-hero h1 { color: #fff; max-width: 17ch; }
.page-hero .lead { max-width: 40em; color: #D2DEE5; margin-bottom: 0; }
.crumbs { font-size: .8rem; letter-spacing: .06em; color: #A9C0CE; margin-bottom: 1.4rem; }
.crumbs a { color: #A9C0CE; text-decoration: none; }
.crumbs a:hover { color: #fff; }
@media (max-width: 700px) {
  .page-hero::after { background: linear-gradient(180deg, rgba(9,40,76,.85), rgba(9,40,76,.96)); }
}

/* ---------- Layout helpers ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split--wide-text { grid-template-columns: 1.15fr .85fr; }
.split--top { align-items: start; }
.media-frame { position: relative; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.media-frame.tall img { aspect-ratio: 4 / 5; }
.media-frame.wide img { aspect-ratio: 4 / 3; }
.media-frame .accent {
  position: absolute; z-index: -1; width: 60%; height: 60%; background: var(--mist);
  right: -24px; bottom: -24px;
}
.section--mist .media-frame .accent { background: #fff; }
.media-badge {
  position: absolute; left: -28px; bottom: 36px; background: var(--navy); color: #fff;
  padding: 22px 26px; max-width: 250px; box-shadow: var(--shadow);
}
.media-badge strong { font-family: var(--serif); font-weight: 400; font-size: 2.4rem; line-height: 1; display: block; }
.media-badge span { font-size: .85rem; line-height: 1.45; color: #D2DEE5; display: block; margin-top: 8px; }
@media (max-width: 900px) {
  .split, .split--wide-text { grid-template-columns: 1fr; }
  .media-badge { left: 16px; bottom: 16px; }
  .media-frame .accent { right: -12px; bottom: -12px; }
}

/* ---------- Lists ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.check-list li { position: relative; padding: 14px 0 14px 34px; border-top: 1px solid var(--line); }
.check-list li:last-child { border-bottom: 1px solid var(--line); }
.check-list li::before {
  content: ""; position: absolute; left: 4px; top: 22px; width: 10px; height: 10px;
  background: var(--steel); transform: rotate(45deg);
}
.section--navy .check-list li { border-color: rgba(255,255,255,.14); }
.section--navy .check-list li::before { background: #A9C0CE; }

/* ---------- Service cards ---------- */
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); }
.service-card {
  background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.service-card .body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; flex: 1; }
.service-card p { flex: 1; }
@media (max-width: 800px) { .cards-2 { grid-template-columns: 1fr; } }

/* ---------- Numbered grid (values, areas) ---------- */
.num-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.num-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.num-item { padding: 32px 28px 32px 0; border-bottom: 1px solid var(--line); }
.num-grid > .num-item:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.num-grid.cols-2 > .num-item { padding-left: 0; border-left: 0; }
.num-grid.cols-2 > .num-item:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
.num-item .n { font-size: .78rem; font-weight: 600; letter-spacing: .14em; color: var(--steel); display: block; margin-bottom: 14px; }
.num-item h3 { font-size: 1.35rem; margin-bottom: .4em; }
.num-item p { font-size: .96rem; margin: 0; color: var(--ink); }
.section--mist .num-grid, .section--mist .num-item { border-color: #C9D6DD; }
@media (max-width: 900px) {
  .num-grid, .num-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .num-grid > .num-item, .num-grid > .num-item:not(:nth-child(3n+1)), .num-grid.cols-2 > .num-item:nth-child(even) { padding: 26px 20px 26px 0; border-left: 0; }
  .num-grid > .num-item:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .num-grid, .num-grid.cols-2 { grid-template-columns: 1fr; }
  .num-grid > .num-item, .num-grid > .num-item:nth-child(even) { padding: 24px 0; border-left: 0; }
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; position: relative; }
.step { padding: 0 22px 0 0; position: relative; }
.step .dot {
  width: 48px; height: 48px; display: grid; place-items: center; background: var(--navy); color: #fff;
  font-family: var(--serif); font-size: 1.2rem; margin-bottom: 22px; position: relative; z-index: 2;
  transform: rotate(45deg);
}
.step .dot span { transform: rotate(-45deg); }
.steps::before { content: ""; position: absolute; top: 24px; left: 24px; right: 10%; height: 1px; background: var(--line); }
.step h3 { font-size: 1.25rem; }
.step p { font-size: .95rem; margin: 0; }
.section--navy .step .dot { background: #fff; color: var(--navy); }
.section--navy .steps::before { background: rgba(255,255,255,.2); }
.section--navy .step p { color: #C9D7DF; }
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 24px; bottom: 24px; left: 24px; right: auto; width: 1px; height: auto; }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 24px; padding: 0 0 32px; }
  .step .dot { grid-row: span 2; margin: 0; }
}

/* Detailed steps (How it works page) */
.step-rows { border-top: 1px solid var(--line); }
.step-row { display: grid; grid-template-columns: 110px 1fr 1.2fr; gap: 32px; padding: 36px 0; border-bottom: 1px solid var(--line); align-items: start; }
.step-row .big { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--steel); }
.step-row h3 { margin: 0; }
.step-row p { margin: 0; }
@media (max-width: 800px) { .step-row { grid-template-columns: 1fr; gap: 10px; } .step-row .big { font-size: 2.2rem; } }

/* ---------- Tables ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.data-table th {
  background: var(--navy); color: #fff; text-align: left; font-size: .74rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; padding: 16px 20px;
}
.data-table td { padding: 18px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tr:nth-child(even) td { background: #F4F7F9; }
.data-table td:first-child { font-weight: 600; color: var(--navy); width: 34%; }
@media (max-width: 640px) {
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { border-bottom: 1px solid var(--line); padding: 14px 0; }
  .data-table td { border: 0; padding: 4px 0; background: none !important; }
  .data-table td:first-child { width: 100%; }
}

/* ---------- Profiles ---------- */
.profiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.profile {
  background: #fff; border: 1px solid var(--line); padding: 28px; position: relative;
  border-top: 3px solid var(--navy);
}
.profile h3 { font-size: 1.3rem; margin-bottom: .35em; }
.profile p { font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .profiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .profiles { grid-template-columns: 1fr; } }

/* ---------- Roles (3 columns) ---------- */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.role { background: #fff; padding: 34px 30px; border: 1px solid var(--line); }
.role.featured { background: var(--navy); color: #D2DEE5; border-color: var(--navy); }
.role.featured h3 { color: #fff; }
.role .tag { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); display: block; margin-bottom: 14px; }
.role.featured .tag { color: #A9C0CE; }
.role p { margin: 0; font-size: .98rem; }
@media (max-width: 900px) { .roles { grid-template-columns: 1fr; } }

/* ---------- Callouts ---------- */
.callout {
  border-left: 3px solid var(--steel); background: var(--mist); padding: 26px 30px; font-size: .98rem;
}
.callout h4 { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); margin-bottom: .7em; }
.callout p:last-child { margin: 0; }
.section--mist .callout { background: #fff; }

.quote-band { text-align: center; max-width: 900px; margin: 0 auto; }
.quote-band blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.3; color: #fff; }

/* ---------- Mission/Vision ---------- */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.mv > div { padding: clamp(32px, 4vw, 56px); }
.mv > div:first-child { background: var(--navy); color: #D2DEE5; }
.mv > div:first-child h3 { color: #fff; }
.mv > div:last-child { background: var(--mist); }
.mv p { margin: 0; font-size: 1.06rem; }
@media (max-width: 800px) { .mv { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--navy); color: #D2DEE5; overflow: hidden; }
.cta-band .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; filter: grayscale(1); }
.cta-band .mark { position: absolute; right: -80px; top: 50%; width: 520px; transform: translateY(-50%); opacity: .07; }
.cta-band .wrap { position: relative; z-index: 2; padding-top: var(--section); padding-bottom: var(--section); }
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { max-width: 38em; font-size: 1.1rem; margin-bottom: 2rem; }

/* ---------- Heritage band ---------- */
.heritage { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.heritage .years { font-family: var(--serif); font-size: clamp(4.5rem, 10vw, 8rem); line-height: .9; color: var(--navy); }
.heritage .years small { display: block; font-family: var(--sans); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); margin-top: 14px; font-weight: 600; }
@media (max-width: 700px) { .heritage { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.form { background: #fff; border: 1px solid var(--line); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; align-items: end; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .82rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; letter-spacing: .02em; padding: 0; }
.field .req { color: var(--steel); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .98rem; color: var(--ink); background: #fff;
  border: 1px solid #BFCCD4; border-radius: var(--radius); padding: 13px 14px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(73,107,128,.18); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 8px 14px; border: 1px solid #BFCCD4; border-radius: 999px;
  font-size: .86rem; cursor: pointer; transition: all .15s; user-select: none;
}
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--steel); outline-offset: 2px; }
.form-note { font-size: .82rem; color: var(--muted); margin: 18px 0 0; }
.form-success { display: none; border-left: 3px solid var(--steel); background: var(--mist); padding: 20px 24px; margin-top: 20px; }
.form.sent .form-success { display: block; }
.contact-aside .info { border-top: 1px solid var(--line); }
.contact-aside .info div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-aside .info > div > span { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); margin-bottom: 4px; }
.contact-aside .info a, .contact-aside .info p { margin: 0; color: var(--navy); font-weight: 600; text-decoration: none; }
.placeholder { background: #FFF6D6; padding: 0 4px; border-radius: 2px; }
.next-steps { counter-reset: ns; list-style: none; padding: 0; margin: 0; }
.next-steps li { counter-increment: ns; position: relative; padding: 0 0 18px 44px; font-size: .96rem; }
.next-steps li::before {
  content: counter(ns, decimal-leading-zero); position: absolute; left: 0; top: 0;
  font-family: var(--serif); color: var(--steel); font-size: 1.15rem;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #071F3B; color: #AFC2CE; font-size: .92rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding: 72px 0 48px; }
.site-footer .brand img { height: 34px; margin-bottom: 22px; }
.site-footer h4 { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #D2DEE5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .tagline { font-family: var(--serif); color: #fff; font-size: 1.15rem; margin-bottom: 12px; }
.footer-disclaimer { border-top: 1px solid rgba(255,255,255,.12); padding: 28px 0; font-size: .8rem; line-height: 1.65; color: #8FA6B5; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .8rem; color: #8FA6B5; }
.site-footer .placeholder { background: rgba(255,246,214,.14); color: #F3E3A8; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; padding-top: 56px; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* Utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-l { margin-top: clamp(40px, 5vw, 64px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Careers ---------- */
.jobs { display: grid; gap: 20px; }
.job { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--navy); padding: clamp(24px, 3vw, 36px); }
.job-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.job-head h3 { margin-bottom: .3em; }
.job-head .eyebrow { margin-bottom: .6rem; }
.job-meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.job-meta li { font-size: .8rem; font-weight: 600; color: var(--steel); background: var(--mist); padding: 4px 12px; border-radius: 999px; }
.job-summary { margin: 18px 0 8px; max-width: 62em; }
.job details summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--navy); padding: 8px 0; list-style: none; }
.job details summary::-webkit-details-marker { display: none; }
.job details summary::before { content: "+"; display: inline-block; width: 1.2em; font-weight: 700; color: var(--steel); }
.job details[open] summary::before { content: "–"; }
.job-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding-top: 14px; }
.job-detail h4 { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); margin: 10px 0 10px; }
.job-detail .check-list { font-size: .95rem; }
.job-detail .check-list li { padding-top: 10px; padding-bottom: 10px; }
.job-detail .check-list li::before { top: 18px; }
@media (max-width: 800px) { .job-detail { grid-template-columns: 1fr; gap: 0; } .job-head .btn { width: 100%; justify-content: center; } }
.form-section { font-size: 1.25rem; margin: 34px 0 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 22px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; grid-column: 1 / -1; }
.consent input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--navy); }
.field input[type="file"] { padding: 11px; background: var(--mist); cursor: pointer; }
.contact-aside .info p a { color: var(--navy); }
.contact-aside .info p a:hover { color: var(--steel); }
