/* ============================================================
   WorldLinx Alliance — shared stylesheet
   ============================================================ */

:root {
  --brand-navy: #0f2a45;
  --brand-blue: #1d4261;
  --brand-accent: #2f8fe0;
  --brand-accent-light: #eaf4fd;
  --text-main: #1a2433;
  --text-muted: #5b6a7c;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f6f9fc;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(15, 42, 69, 0.08);
  --max-width: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text-main);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brand-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--brand-navy); margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--text-main); }
.lead { font-size: 1.15rem; color: var(--text-muted); }

section { padding: 4.5rem 0; }
section.tight { padding: 2.5rem 0; }
.bg-alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-accent);
  background: var(--brand-accent-light);
  padding: 0.3em 0.8em;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75em 1.6em;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}
.btn-primary { background: var(--brand-accent); color: #fff; }
.btn-primary:hover { background: var(--brand-blue); text-decoration: none; }
.btn-outline { border-color: #ffffff66; color: #fff; }
.btn-outline:hover { background: #ffffff1a; text-decoration: none; }
.btn-outline-dark { border-color: var(--brand-accent); color: var(--brand-blue); }
.btn-outline-dark:hover { background: var(--brand-accent-light); text-decoration: none; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffffee;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo { display: flex; align-items: center; gap: 0.65rem; }
.logo img { height: 54px; width: auto; }
.logo-text { display: flex; line-height: 1.15; }
.logo-text .name { font-size: 1.25rem; font-weight: 800; color: var(--brand-navy); white-space: nowrap; }
.logo-text .name span { color: var(--brand-accent); font-weight: 800; }
@media (max-width: 480px) {
  .logo img { height: 44px; }
  .logo-text .name { font-size: 1.05rem; }
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brand-navy);
  margin: 5px 0;
  transition: 0.2s;
}
nav.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  display: block;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5em 0.15em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
nav.main-nav li { margin: 0 0.6rem; }
nav.main-nav a:hover {
  color: var(--brand-accent);
}
nav.main-nav a[aria-current="page"] {
  color: var(--brand-navy);
  border-bottom-color: var(--brand-accent);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  nav.main-nav {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1.5rem 1.25rem;
    gap: 0.1rem;
  }
  nav.main-nav li { margin: 0; }
  nav.main-nav a {
    padding: 0.7em 0.2em;
    border-bottom: 1px solid var(--border);
  }
  nav.main-nav a[aria-current="page"] { border-bottom: 1px solid var(--border); border-left: 3px solid var(--brand-accent); padding-left: 0.6em; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue));
  color: #fff;
  padding: 5rem 0;
}
.hero--split .container { grid-template-columns: 0.8fr 1.4fr !important; align-items: center; }
.hero-logo-cell { display: flex; justify-content: center; }
.hero-logo-cell img {
  width: 100%;
  max-width: 240px;
  height: auto;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.35));
}
@media (max-width: 860px) {
  .hero--split .container { grid-template-columns: 1fr !important; }
  .hero-logo-cell { max-width: 140px; margin: 0 auto 1.5rem; }
  .hero-logo-cell img { max-width: 140px; }
}
.hero .container { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; }
.hero p.lead { color: #cfe0f2; }
.hero .actions { display: flex; gap: 1rem; margin-top: 1.6rem; flex-wrap: wrap; }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
}

.hero--bleed {
  position: relative;
  background-image: url("../assets/images/aircraft-king-air-wide.png");
  background-size: cover;
  background-position: center;
  background-color: var(--brand-navy);
}
.hero--bleed::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(100deg, rgba(8,22,42,0.94) 0%, rgba(8,22,42,0.86) 28%, rgba(8,22,42,0.45) 52%, rgba(8,22,42,0.08) 72%);
}
.hero--bleed .container {
  position: relative;
  z-index: 1;
  min-height: 460px;
  display: flex;
  align-items: center;
}
.hero--bleed .hero-copy { max-width: 560px; min-width: 0; width: 100%; }
@media (max-width: 860px) {
  .hero--bleed { background-position: 68% center; }
  .hero--bleed .container { min-height: 380px; }
  .hero--bleed .hero-copy { max-width: 100%; }
}

.hero--circles {
  background-image: url("../assets/images/trace-wide-gts.png");
  background-position: right 40%;
}
.hero--circles::before {
  background-image: linear-gradient(100deg, rgba(8,22,42,0.92) 0%, rgba(8,22,42,0.82) 28%, rgba(8,22,42,0.4) 46%, rgba(8,22,42,0) 62%);
}
.hero--circles .hero-copy { max-width: 620px; }
@media (max-width: 860px) {
  /* text on navy, photo (dishes) along the bottom */
  .hero.page-hero.hero--circles {
    padding-bottom: 14rem;
    background-size: auto 300px;
    background-repeat: no-repeat;
    background-position: 58% bottom;
  }
  .hero--circles::before {
    background-image: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy) calc(100% - 300px), rgba(15,42,69,0) calc(100% - 150px));
  }
}

/* Photo on its own layer, pinned right at hero height, blending into the navy on its left edge */
.hero--marseille { background-image: none; }
.hero--marseille::before,
.hero--marseille::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  height: 110%;
  aspect-ratio: 4 / 3;
}
.hero--marseille::before {
  background-image: url("../assets/images/marseille.jpg");
  background-size: cover;
  background-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.55) 22%, #000 50%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.55) 22%, #000 50%);
}
.hero--marseille::after {
  background-image: linear-gradient(90deg, rgba(15,42,69,0.6) 0%, rgba(15,42,69,0.3) 30%, rgba(15,42,69,0) 55%);
}
.hero--marseille .hero-copy { max-width: 640px; }
@media (max-width: 860px) {
  .hero.page-hero.hero--marseille { padding-bottom: 17rem; }
  .hero--marseille::after { display: none; }
  .hero--marseille::before {
    inset: auto 0 0 0;
    width: 100%;
    height: 300px;
    aspect-ratio: auto;
    background-position: 70% 30%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
  }
}

.hero--oo-asl {
  background-image: url("../assets/images/oo-asl-wide.png");
  background-size: cover;
  background-position: center center;
}
.hero--oo-asl::before {
  background-image: linear-gradient(100deg, rgba(8,22,42,0.92) 0%, rgba(8,22,42,0.8) 28%, rgba(8,22,42,0.35) 52%, rgba(8,22,42,0.05) 72%);
}
@media (max-width: 860px) {
  .hero--oo-asl { background-position: 78% center; }
}

.hero--vendee {
  background-image: url("../assets/images/vendeeglobe.jpg");
  background-size: cover;
  background-position: center center;
}
.hero--vendee::before {
  background-image: linear-gradient(100deg, rgba(8,22,42,0.92) 0%, rgba(8,22,42,0.8) 28%, rgba(8,22,42,0.35) 52%, rgba(8,22,42,0.05) 72%);
}
@media (max-width: 860px) {
  .hero--vendee { background-position: 68% center; }
}

.hero.page-hero { padding: 3.4rem 0; }
.hero.page-hero .container { grid-template-columns: 1fr; text-align: left; }
.hero.page-hero.hero--compact { padding: 1.7rem 0; }
.hero.page-hero.hero--compact h1 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: 0.3em; }
.hero.page-hero.hero--compact .lead { font-size: 1rem; margin-bottom: 0; }

/* ---------- grids / cards ---------- */
.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.4em; }
.card .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--brand-accent-light);
  color: var(--brand-accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}
.card .icon svg {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
/* image strip bleeding to the card edges; navy tint keeps the screenshot atmospheric rather than readable */
.card-media {
  position: relative;
  margin: -1.75rem -1.75rem 1.25rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--brand-navy);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
/* device shot: small product image centred on the navy strip, with faint "searching" rings behind it */
.card-media--device {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(47,143,224,0.30) 0%, rgba(47,143,224,0) 62%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,0) 0 26px, rgba(255,255,255,0.06) 26px 27px),
    var(--brand-navy);
}
.card-media--device img {
  width: 82%; height: auto; opacity: 1;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.45), 0 0 44px rgba(47,143,224,0.35);
}
.card-media--device::after { background: linear-gradient(180deg, rgba(255,255,255,0) 72%, #fff 100%); }
/* light product render: no dark tint, just a fade into the white card */
.card-media--light { background: #dfe9f5; }
.card-media--light img { opacity: 1; }
.card-media--light::after { background: linear-gradient(180deg, rgba(255,255,255,0) 72%, #fff 100%); }
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,42,69,0.35) 0%, rgba(15,42,69,0.15) 45%, #fff 100%);
}

.stat-row { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 2rem; }
.stat-row .stat b { display: block; font-size: 2rem; color: var(--brand-navy); }
.stat-row .stat span { color: var(--text-muted); font-size: 0.9rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
/* ---------- linked capability tiles ---------- */
.card--link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card--link:hover {
  text-decoration: none;
  transform: translateY(-3px);
  border-color: var(--brand-accent);
  box-shadow: 0 10px 28px rgba(15, 42, 69, 0.14);
}
.card--link:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 3px; }
.card-more { margin-top: auto; padding-top: 0.5rem; font-weight: 600; color: var(--brand-accent); }
.card-more span { display: inline-block; transition: transform 0.18s ease; }
.card--link:hover .card-more span { transform: translateY(3px); }

/* ---------- detail sections (targets of the tiles) ---------- */
#capabilities, .detail { scroll-margin-top: 85px; }   /* clears the sticky header */
.detail { padding: 4rem 0; }
.detail .split { align-items: center; }
.detail .split > * { min-width: 0; }
.detail-media img { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow); }
.split--reverse .detail-media, .split--reverse > img { order: -1; }
@media (max-width: 900px) { .split--reverse .detail-media, .split--reverse > img { order: 0; } }
.detail-media--device {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 50% 50%, rgba(47,143,224,0.30) 0%, rgba(47,143,224,0) 62%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,0) 0 34px, rgba(255,255,255,0.06) 34px 35px),
    var(--brand-navy);
}
.detail-media--device img { width: 78%; box-shadow: 0 10px 28px rgba(0,0,0,0.45), 0 0 44px rgba(47,143,224,0.35); border-radius: 10px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.5rem; margin: 1.25rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--border); font-size: 0.95rem; }
.facts dt { color: var(--text-muted); font-weight: 600; }
.facts dd { margin: 0; }
.detail-back { margin: 1.4rem 0 0; font-size: 0.9rem; }

.image-placeholder {
  background: var(--bg-alt);
  border: 1px dashed #c7d3e0;
  border-radius: var(--radius);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 1.5rem;
}

table.specs { width: 100%; border-collapse: collapse; margin-top: 1rem; }
table.specs th, table.specs td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
table.specs th { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }

table.specs--fleet { table-layout: fixed; }
table.specs--fleet thead th { text-transform: none; letter-spacing: 0; font-size: 1.1rem; color: var(--brand-navy); vertical-align: bottom; }
table.specs--fleet thead img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 0.75rem;
}
table.specs--fleet tbody th[scope="row"] { width: 22%; }
@media (max-width: 600px) {
  table.specs--fleet th, table.specs--fleet td { padding: 0.6rem 0.5rem; }
}

.cta-band {
  background: var(--brand-navy);
  color: #fff;
  text-align: center;
  padding: 3.5rem 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe0f2; }

/* ---------- team ---------- */
.team-card { text-align: left; }
.team-card small { color: var(--text-muted); display: block; margin: 0.2em 0 0.6em; }
.team-card a { display: block; font-size: 0.92rem; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--brand-navy);
  color: #b9c8d9;
  padding: 2.2rem 0 1.1rem;
  margin-top: 3rem;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.footer-brand img { height: 40px; width: auto; }
.footer-brand .name { font-size: 1.05rem; font-weight: 800; color: #fff; }
.footer-brand .name span { color: #9db3c9; font-weight: 700; }
.footer-address { margin: 0; line-height: 1.45; font-size: 0.88rem; color: #9fb3c8; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.5em; }
.site-footer a { color: #b9c8d9; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.3em; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 1.4rem auto 0;
  padding: 0.9rem 1.5rem 0;
  border-top: 1px solid #ffffff1f;
  font-size: 0.85rem;
  color: #8ea1b6;
}
@media (max-width: 700px) {
  .site-footer .container { grid-template-columns: 1fr; }
}

/* ---------- placeholder note ---------- */
.draft-note {
  background: #fff8e6;
  border: 1px solid #f0dca0;
  color: #6b5314;
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
