/* Mex Clearing — mexclearing.org
   Theme: "Port ops, light & structured" */

:root {
  --mist: #EFF4F7;
  --navy: #0B2A4A;
  --teal: #14919B;
  --sand: #E8DFC9;
  --ink: #1B2733;
  --line: #C9D6DF;
  --paper: #FFFFFF;
  --muted: #51677C;
  --radius: 10px;
  --shadow: 0 10px 26px rgba(11, 42, 74, 0.09);
  --shadow-sm: 0 3px 12px rgba(11, 42, 74, 0.07);
  --font-body: 'Archivo', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-head: 'Archivo Narrow', 'Arial Narrow', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', 'Courier New', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--mist);
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
.container { max-width: 1140px; margin: 0 auto; padding: 0 22px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); }
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: #B9CEDF;
}
.topbar__inner a { color: #EAF2F8; text-decoration: none; }
.topbar__inner a:hover { color: #7FD1D7; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(11, 42, 74, 0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.logo-mark {
  width: 42px; height: 42px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.logo-mark svg { width: 26px; height: 26px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; list-style: none; }
.site-nav ul a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav ul a:hover,
.site-nav ul a[aria-current="page"] { border-bottom-color: var(--teal); color: var(--teal); }
.btn-pill {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 10px 24px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.btn-pill:hover { background: #0F7E87; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 13px 28px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn--primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #0F7E87; }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: rgba(11, 42, 74, 0.06); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: #123759; }

/* ---------- Hero ---------- */
.hero { background: var(--mist); }
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
  padding: 66px 0 60px;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
}
.hero h1 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  font-size: clamp(2.3rem, 4.8vw, 3.5rem);
  line-height: 1.05;
  margin: 16px 0 18px;
}
.hero__lead { max-width: 54ch; color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--paper);
  border: 1px solid var(--teal);
  border-radius: 999px;
  padding: 7px 17px;
}

/* ---------- Image frames + caption strips ---------- */
.frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.frame img { width: 100%; height: auto; }
.frame--standalone { border-radius: var(--radius); }
.caption-strip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.13em;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 11px 18px;
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--white { background: var(--paper); }
.section--sand { background: var(--sand); }
.section--mist { background: var(--mist); }
.section--tight { padding: 54px 0; }
.section-head { max-width: 660px; margin-bottom: 40px; }
.section-head h2 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  font-size: clamp(1.75rem, 3.1vw, 2.35rem);
  line-height: 1.12;
  margin-top: 10px;
}
.section-head p { margin-top: 12px; color: var(--ink); }
.lede { font-size: 1.06rem; }

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-sm);
}
.card__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--teal);
  font-weight: 500;
}
.card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.28rem;
  line-height: 1.2;
  margin: 10px 0 8px;
}
.card p { font-size: 0.96rem; color: var(--ink); }

/* ---------- Two-image band ---------- */
.band { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* ---------- Corridor rows ---------- */
.corridors {
  background: var(--paper);
  border: 1px solid rgba(11, 42, 74, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.corridor-row {
  display: grid;
  grid-template-columns: 90px 250px 1fr;
  gap: 22px;
  align-items: baseline;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}
.corridor-row:last-child { border-bottom: none; }
.corridor-row__tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--teal);
}
.corridor-row__name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--navy);
  line-height: 1.2;
}
.corridor-row__desc { font-size: 0.98rem; color: var(--ink); }

/* ---------- Steps ---------- */
.steps-split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 52px;
  align-items: center;
}
.steps { list-style: none; }
.step {
  display: flex;
  gap: 18px;
  padding: 19px 0;
  border-bottom: 1px dashed var(--line);
}
.step:last-child { border-bottom: none; }
.step__num {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 3px;
}
.step p { font-size: 0.96rem; }

/* ---------- Split figures ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 34px; }

/* ---------- Note box ---------- */
.note-box {
  background: var(--sand);
  border: 1px solid rgba(11, 42, 74, 0.14);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-top: 26px;
  font-size: 0.95rem;
}
.note-box strong { color: var(--navy); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--teal); }
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 50px 0;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
}
.cta-band p { color: #08333F; margin-top: 6px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 56px 0 48px; }
.page-hero h1 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.1;
  margin-top: 12px;
}
.page-hero p { margin-top: 14px; max-width: 68ch; }

/* ---------- Prose (policies / about) ---------- */
.prose {
  max-width: 780px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 46px 50px;
}
.prose h2 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.4rem;
  margin: 30px 0 10px;
  line-height: 1.25;
}
.prose h2:first-of-type { margin-top: 18px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 7px; }
.prose a { color: var(--teal); }
.updated {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 8px;
}
.cookie-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.9rem; }
.cookie-table th, .cookie-table td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; vertical-align: top; }
.cookie-table th {
  background: var(--mist);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ---------- About / content grids ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}
.about-copy h2 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.5rem;
  margin: 26px 0 10px;
}
.about-copy h2:first-child { margin-top: 0; }
.about-copy p { margin-bottom: 14px; }

/* ---------- Services page ---------- */
.svc-list { display: flex; flex-direction: column; gap: 22px; }
.svc {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
}
.svc__index {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--teal);
  padding-top: 4px;
}
.svc h2 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.svc p { font-size: 0.98rem; margin-bottom: 8px; }
.svc p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  align-items: start;
}
.info-card, .form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.info-card h2, .form-card h2 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.info-list { list-style: none; }
.info-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--mist);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  font-size: 0.97rem;
}
.info-list li:last-child { border-bottom: none; }
.info-list .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  padding-top: 3px;
}
.info-list a { color: var(--navy); }
.info-list a:hover { color: var(--teal); }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 7px;
}
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
  padding: 12px 15px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  background: var(--paper);
}
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }
.map-wrap { margin-top: 44px; }
.map-embed { width: 100%; border: 0; min-height: 360px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C4D4E2; margin-top: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 1.2fr;
  gap: 38px;
  padding: 58px 0 44px;
}
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7FA3BF;
  margin-bottom: 16px;
}
.footer-brand .brand__name { color: #fff; }
.footer-brand p { font-size: 0.92rem; margin-top: 14px; max-width: 34ch; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer ul a, .footer-contact a {
  color: #E2ECF4;
  text-decoration: none;
  font-size: 0.95rem;
}
.site-footer ul a:hover, .footer-contact a:hover { color: #7FD1D7; }
.footer-contact p { font-size: 0.95rem; margin-bottom: 9px; }
.footer-small {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 22px 0 26px;
  font-size: 0.85rem;
  color: #8FA9BE;
}
.footer-small .disclaimer { margin-top: 8px; font-size: 0.8rem; max-width: 960px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: var(--navy);
  color: #EAF2F8;
  box-shadow: 0 -6px 24px rgba(11, 42, 74, 0.3);
}
.cookie-banner__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cookie-banner p { font-size: 0.88rem; max-width: 820px; }
.cookie-banner a { color: #7FD1D7; }
.cookie-banner__actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 24px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}
.cookie-btn--accept { background: var(--teal); color: #fff; }
.cookie-btn--accept:hover { background: #0F7E87; }
.cookie-btn--decline { background: transparent; color: #EAF2F8; border: 1px solid rgba(255, 255, 255, 0.45); }
.cookie-btn--decline:hover { border-color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 38px; padding: 48px 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .band, .split, .steps-split, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .corridor-row { grid-template-columns: 80px 1fr; }
  .corridor-row__desc { grid-column: 2; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 22px 22px;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; width: 100%; }
  .site-nav ul li { width: 100%; }
  .site-nav ul a { display: block; padding: 13px 0; border-bottom: 1px solid var(--mist); }
  .site-nav .btn-pill { margin-top: 16px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding: 44px 0 36px; }
  .svc { grid-template-columns: 1fr; gap: 10px; }
  .info-list li { grid-template-columns: 1fr; gap: 4px; }
  .topbar__loc { font-size: 10px; letter-spacing: 0.08em; }
  .prose { padding: 30px 24px; }
  .cookie-banner__inner { flex-direction: column; align-items: flex-start; }
  .section { padding: 56px 0; }
}
