/* =====================================================================
   Europasat — shared stylesheet
   Used by every page on the site.
   ===================================================================== */

/* ---------- Fonts (hosted on this site, no Google connection) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-700.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/space-grotesk-500.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/space-grotesk-600.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-700.woff2") format("woff2");
}

/* ---------- Colours & sizes ---------- */
:root {
  /* Brand colours (blue -> green), taken from the Europasat logo */
  --blue: #0172e0;
  --green: #4fc77a;
  --brand-gradient: linear-gradient(90deg, #0172e0 0%, #02a5dc 50%, #62cb63 100%);

  --navy: #0a0818;
  --navy-2: #120d26;
  --panel: #1b1535;
  --line: rgba(255, 255, 255, 0.1);
  --text: #eee9f7;
  --muted: #b3a8cc;
  --accent: #3fcf96; /* green used for text and highlights on dark backgrounds */
  --accent-dark: #0563c1; /* deeper blue used on light backgrounds */
  --light: #f7f4fb;
  --light-text: #1e1433;
  --light-muted: #5d5275;
  --radius: 14px;
  --max: 1180px;
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 720px;
}

/* ---------- Header & navigation ---------- */
header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(10, 8, 24, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-logo {
  width: auto;
  height: 40px; /* logo size: raise or lower this number */
  display: block;
}

@media (max-width: 560px) {
  .brand-logo {
    height: 32px;
  }
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 22px;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: #fff;
}

/* The page you are on is highlighted in the menu */
.nav-links a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.25s;
}

.menu-toggle::before {
  top: 14px;
}
.menu-toggle span {
  top: 21px;
}
.menu-toggle::after {
  top: 28px;
}
.menu-toggle[aria-expanded="true"]::before {
  top: 21px;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"]::after {
  top: 21px;
  transform: rotate(-45deg);
}
.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

/* ---------- Buttons ---------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(2, 165, 220, 0.35);
}

.btn.ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn.ghost:hover {
  box-shadow: none;
  border-color: #fff;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* ---------- Home page hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(10, 8, 24, 0.55) 0%, rgba(10, 8, 24, 0.85) 70%),
    url("../images/photo-1708738793054-32b71e3fc822.jpeg") center / cover no-repeat;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.4rem, 6.4vw, 5rem);
  max-width: 1000px;
  margin-bottom: 2.4rem;
}

/* Gradient text for the highlighted words */
.hero h1 em,
.page-hero h1 em {
  font-style: normal;
  background: var(--brand-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 em {
  animation: shimmer 6s linear 2.2s infinite;
}

/* Words rise into place one after another */
.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.9em) scale(0.96);
  filter: blur(10px);
  animation: word-in 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(0.3s + var(--i) * 0.18s);
}

.hero h1 em .word {
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
}

/* Pulsing "signal" dot in place of the full stop */
.signal {
  display: inline-block;
  position: relative;
  width: 0.2em;
  height: 0.2em;
  margin-left: 0.12em;
  border-radius: 50%;
  background: var(--green);
  opacity: 0;
  animation: fade-in 0.5s ease 1.9s forwards;
}

.signal::before,
.signal::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--green);
  animation: ping 2.4s ease-out 2.1s infinite;
}

.signal::after {
  animation-delay: 2.6s;
}

.hero-buttons {
  justify-content: center;
  opacity: 0;
  animation: rise-in 0.9s ease 2s forwards;
}

@keyframes word-in {
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

@keyframes ping {
  from {
    transform: scale(1);
    opacity: 0.9;
  }
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

/* ---------- Inner page hero (Services, Maritime, etc.) ---------- */
.page-hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: flex-end;
  padding: 150px 0 80px;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  max-width: 820px;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.15rem;
  color: #c7d3e8;
  max-width: 640px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb span {
  margin: 0 8px;
  opacity: 0.5;
}

/* Each inner page's hero photo */
.hero-services {
  background-image:
    linear-gradient(90deg, rgba(10, 8, 24, 0.81) 0%, rgba(10, 8, 24, 0.51) 60%, rgba(10, 8, 24, 0.26) 100%),
    url("../images/photo-1676944229914-2194fdafd024.jpeg");
}
.hero-maritime {
  background-image:
    linear-gradient(90deg, rgba(10, 8, 24, 0.78) 0%, rgba(10, 8, 24, 0.47) 60%, rgba(10, 8, 24, 0.17) 100%),
    url("../images/photo-1722083854850-4a24185465ac.jpeg");
}
.hero-land {
  background-image:
    linear-gradient(90deg, rgba(10, 8, 24, 0.78) 0%, rgba(10, 8, 24, 0.47) 60%, rgba(10, 8, 24, 0.17) 100%),
    url("../images/photo-1451188502541-13943edb6acb.jpeg");
}
.hero-about {
  background-image:
    linear-gradient(90deg, rgba(10, 8, 24, 0.81) 0%, rgba(10, 8, 24, 0.51) 60%, rgba(10, 8, 24, 0.26) 100%),
    url("../images/photo-1710267224241-ded50105028e.jpeg");
}
.hero-broadcast {
  background-image:
    linear-gradient(90deg, rgba(10, 8, 24, 0.81) 0%, rgba(10, 8, 24, 0.51) 60%, rgba(10, 8, 24, 0.21) 100%),
    url("../images/photo-1481697943534-ea55b5ce970b.jpeg");
}
.hero-enterprise {
  background-image:
    linear-gradient(90deg, rgba(10, 8, 24, 0.78) 0%, rgba(10, 8, 24, 0.47) 60%, rgba(10, 8, 24, 0.17) 100%),
    url("../images/photo-1446776899648-aa78eefe8ed0.jpeg");
}

/* ---------- Sections ---------- */
section {
  padding: 110px 0;
}

section.light {
  background: var(--light);
  color: var(--light-text);
}

section.light .lead,
section.light p {
  color: var(--light-muted);
}

section.light .eyebrow {
  color: var(--accent-dark);
}

section.dark {
  background: var(--navy-2);
}

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.split + .split {
  margin-top: 96px;
}

.split.reverse .media {
  order: -1;
}

.split p + p {
  margin-top: 1rem;
}

.media img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 4 / 3;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.5);
}

/* Bullet list with glowing dots */
.ticks {
  list-style: none;
  margin-top: 1.6rem;
  display: grid;
  gap: 12px;
}

.ticks li {
  padding-left: 30px;
  position: relative;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 35%, rgba(2, 165, 220, 0.2) 36%);
}

/* ---------- Service cards (photo on top) ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(2, 165, 220, 0.45);
}

.card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.card-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body .tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

.card-body p {
  color: var(--muted);
  font-size: 0.96rem;
}

.card-body .more {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- Feature boxes (numbered, no photo) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature {
  padding: 30px 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid #e1e7f0;
  box-shadow: 0 18px 40px -30px rgba(20, 32, 58, 0.35);
}

.feature .num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-dark);
  background: rgba(2, 165, 220, 0.12);
}

section.light .feature p {
  font-size: 0.95rem;
}

/* =====================================================================
   Numbered box variations — one per sector page
   (the Services page "How we deliver" boxes use the default style above)
   ===================================================================== */

/* ---------- Maritime: zig-zag timeline along a centre line ---------- */
.features--timeline {
  display: block;
  position: relative;
  max-width: 940px;
  margin: 0 auto;
}

.features--timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(var(--blue), var(--green));
  opacity: 0.35;
}

.features--timeline .feature {
  position: relative;
  width: calc(50% - 48px);
  margin-bottom: 28px;
}

.features--timeline .feature:nth-child(even) {
  margin-left: auto;
  margin-top: -40px;
}

.features--timeline .feature:nth-child(odd):not(:first-child) {
  margin-top: -40px;
}

.features--timeline .num {
  position: absolute;
  top: 26px;
  margin: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: 0 0 0 6px var(--light);
}

.features--timeline .feature:nth-child(odd) .num {
  right: -71px;
}

.features--timeline .feature:nth-child(even) .num {
  left: -71px;
}

/* ---------- Land Mobile: open list with large outlined numbers ---------- */
.features--list {
  grid-template-columns: repeat(2, 1fr);
  column-gap: 56px;
  row-gap: 0;
}

.features--list .feature {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: start;
  padding: 30px 0;
  background: none;
  border: 0;
  border-top: 1px solid #ddd5ea;
  border-radius: 0;
  box-shadow: none;
}

.features--list .num {
  width: auto;
  height: auto;
  margin: 0;
  background: none;
  font-size: 3.2rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent-dark);
}

.features--list .feature:hover .num {
  color: var(--accent-dark);
  transition: color 0.3s;
}

/* ---------- Broadcast: rounded "signal" tabs with ringed numbers ---------- */
.features--signal {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
}

.features--signal .feature {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  align-items: center;
  padding: 22px 30px 22px 22px;
  border-radius: 999px 22px 22px 999px;
}

.features--signal .num {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0;
  border-radius: 50%;
  background: #fff;
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--brand-gradient) border-box;
  font-size: 1.05rem;
}

.features--signal .num::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(2, 165, 220, 0.35);
}

.features--signal .feature-text h3 {
  margin-bottom: 0.2rem;
}

/* ---------- Enterprise & Government: bento grid with cut corners ---------- */
.features--bento {
  grid-template-columns: repeat(3, 1fr);
}

.features--bento .feature {
  position: relative;
  padding: 34px 30px 30px;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
}

.features--bento .num {
  position: absolute;
  top: 26px;
  right: 46px;
  width: auto;
  height: auto;
  margin: 0;
  background: none;
  font-size: 2.4rem;
  line-height: 1;
  color: rgba(5, 99, 193, 0.18);
}

.features--bento .feature-text {
  position: relative;
  padding-right: 40px;
}

/* First box is a large gradient feature tile */
.features--bento .feature:first-child {
  grid-row: span 2;
  display: flex;
  align-items: flex-end;
  min-height: 300px;
  background: var(--brand-gradient);
  border: 0;
}

.features--bento .feature:first-child h3 {
  font-size: 1.7rem;
  color: #fff;
}

section.light .features--bento .feature:first-child p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

.features--bento .feature:first-child .num {
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.25);
}

/* Last box stretches across the full width */
.features--bento .feature:last-child {
  grid-column: 1 / -1;
}

/* =====================================================================
   Sector pages: photo behind the "What it supports" boxes
   Photos are free-to-use images from Unsplash (unsplash.com), saved in the
   images folder as sector-*.jpg. To swap one, replace that file or change
   the url(...) below. The first colour line darkens the photo so text reads.
   ===================================================================== */
section.features-photo {
  position: relative;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

section.photo-timeline {
  background-image:
    linear-gradient(rgba(10, 8, 24, 0.53), rgba(10, 8, 24, 0.68)),
    url("../images/photo-1446776877081-d282a0f896e2.jpeg");
}
section.photo-list {
  background-image:
    linear-gradient(rgba(10, 8, 24, 0.61), rgba(10, 8, 24, 0.73)),
    url("../images/photo-1710267224241-ded50105028e.jpeg");
}
section.photo-signal {
  background-image:
    linear-gradient(rgba(10, 8, 24, 0.42), rgba(10, 8, 24, 0.64)),
    url("../images/sector-broadcast.jpg");
}
section.photo-bento {
  background-image:
    linear-gradient(rgba(10, 8, 24, 0.63), rgba(10, 8, 24, 0.71)),
    url("../images/sector-enterprise-government.jpg");
}

/* Gentle parallax on larger screens */
@media (min-width: 861px) and (hover: hover) {
  section.features-photo {
    background-attachment: fixed;
  }
}

/* Heading text turns light over the photo */
section.features-photo .section-head h2 {
  color: #fff;
}
section.features-photo .section-head .lead {
  color: #d9d1ea;
}
section.features-photo .section-head .eyebrow {
  color: var(--accent);
}

/* Maritime timeline: brighter line, dark ring around numbers */
section.features-photo .features--timeline::before {
  opacity: 0.7;
}
section.features-photo .features--timeline .num {
  box-shadow: 0 0 0 6px rgba(10, 8, 24, 0.85);
}

/* Land Mobile list sits directly on the photo, so its text is light */
section.features-photo .features--list .feature {
  border-top-color: rgba(255, 255, 255, 0.18);
}
section.features-photo .features--list h3 {
  color: #fff;
}
section.features-photo .features--list .feature p {
  color: #d9d1ea;
}
section.features-photo .features--list .num {
  -webkit-text-stroke-color: var(--accent);
}
section.features-photo .features--list .feature:hover .num {
  color: var(--accent);
}

/* White boxes get a stronger shadow so they lift off the photo */
section.features-photo .features--timeline .feature,
section.features-photo .features--signal .feature,
section.features-photo .features--bento .feature {
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.7);
  border-color: transparent;
}

/* ---------- S-band page ---------- */
.hero-sband {
  background-image:
    linear-gradient(90deg, rgba(10, 8, 24, 0.81) 0%, rgba(10, 8, 24, 0.51) 60%, rgba(10, 8, 24, 0.26) 100%),
    url("../images/photo-1712512161479-3d78afd4d2ce.jpeg");
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.spec {
  padding: 28px 26px;
  background: var(--navy-2);
}

.spec-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.spec strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
  line-height: 1.2;
  margin-bottom: 0.4rem;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.spec p {
  color: var(--muted);
  font-size: 0.9rem;
}

.spec-note {
  margin-top: 28px;
  color: var(--muted);
  max-width: 760px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.why {
  padding: 28px 24px;
  background: #fff;
  border-radius: var(--radius);
  border-top: 4px solid transparent;
  border-image: var(--brand-gradient) 1;
  box-shadow: 0 18px 40px -30px rgba(20, 32, 58, 0.35);
}

.why h3 {
  font-size: 1.1rem;
}

section.light .why p {
  font-size: 0.93rem;
}

.use-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.use-tags li {
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 500;
}

.use-tags a {
  text-decoration: none;
}

.use-tags a::after {
  content: " \2192";
  color: var(--accent);
}

.use-tags li:has(a):hover {
  border-color: var(--accent);
}

@media (max-width: 1020px) {
  .spec-grid,
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .spec-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- "Our role" banner & pillars ---------- */
.banner {
  position: relative;
  padding: 130px 0;
  text-align: center;
  background:
    linear-gradient(rgba(10, 8, 24, 0.7), rgba(10, 8, 24, 0.77)),
    url("../images/photo-1702485665912-0c79685081e1.jpeg") center / cover no-repeat;
}

.banner .lead {
  margin: 0 auto;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
  text-align: left;
}

.pillar {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 13, 38, 0.6);
  backdrop-filter: blur(4px);
}

.pillar .num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
  display: block;
}

.pillar p {
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- "Explore other sectors" strip ---------- */
.sector-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.sector-link {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  text-decoration: none;
  color: #fff;
}

.sector-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.sector-link:hover img {
  transform: scale(1.06);
}

.sector-link span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 18px 16px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.sector-link span::after {
  content: " \2192";
  color: var(--accent);
}

/* ---------- Call-to-action band (inner pages) ---------- */
.cta {
  padding: 110px 0;
  text-align: center;
  background:
    linear-gradient(rgba(10, 8, 24, 0.72), rgba(10, 8, 24, 0.72)),
    url("../images/photo-1593007295397-19bf5e6126b0.jpeg") center 75% / cover no-repeat;
}

.cta .lead {
  margin: 0 auto 2rem;
}

.cta .btn-row {
  justify-content: center;
}

/* ---------- Contact (home page) ---------- */
section.contact-bg {
  padding: 130px 0 150px;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(10, 8, 24, 0.78) 0%, rgba(10, 8, 24, 0.59) 50%, rgba(10, 8, 24, 0.3) 100%),
    url("../images/photo-1593007295397-19bf5e6126b0.jpeg") center 75% / cover no-repeat;
}

/* On the dedicated Contact page the section fills the screen below the menu */
section.contact-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 150px;
}

section.contact-page .wrap {
  width: 100%;
}

section.contact-bg p {
  color: #c7d3e8;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}

.contact-info .phone {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  color: var(--accent);
  margin: 1.4rem 0 0.4rem;
}

.contact-info small {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 14px;
  background: #fff;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  font: inherit;
  padding: 14px 16px;
  border: 1px solid #d6deea;
  border-radius: 10px;
  background: #f9fbfe;
  color: var(--light-text);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.contact-form button {
  font: inherit;
  font-weight: 600;
  padding: 15px;
  border: 0;
  border-radius: 999px;
  background: var(--navy-2);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover {
  background: var(--accent-dark);
}

/* Hidden spam-trap field */
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

/* ---------- Contact page extras ---------- */
.contact-info .email {
  margin-bottom: 1rem;
}

.contact-info .email a {
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.form-note {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--light-muted) !important;
  text-align: center;
}

.form-note a {
  color: var(--accent-dark);
}

/* ---------- Office card (contact page) ---------- */
.office-contact-card {
  margin-top: 2rem;
  max-width: 360px;
}

.office {
  padding: 26px 28px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
}

.office-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand-gradient);
  margin-bottom: 1rem;
}

.office h4,
.office h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.office p {
  color: var(--muted);
  font-size: 0.92rem;
}

.office .office-contact {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

/* ---------- Legal pages (privacy, cookies, terms) ---------- */
.hero-legal {
  min-height: 46vh;
  background-image:
    radial-gradient(ellipse at 80% 20%, rgba(2, 165, 220, 0.25), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(1, 114, 224, 0.3), transparent 50%);
}

.legal {
  max-width: 820px;
}

.legal-updated {
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.35rem;
  margin: 2.4rem 0 0.8rem;
}

.legal p,
.legal li {
  font-size: 1rem;
}

.legal p + p {
  margin-top: 0.8rem;
}

.legal ul {
  margin: 0.6rem 0 0.8rem 1.2rem;
  display: grid;
  gap: 6px;
  color: var(--light-muted);
}

.legal a {
  color: var(--accent-dark);
}

.legal strong {
  color: var(--light-text);
}

/* ---------- Page not found (404) ---------- */
.hero-404 {
  background:
    radial-gradient(ellipse at center, rgba(10, 8, 24, 0.6) 0%, rgba(10, 8, 24, 0.9) 70%),
    url("../images/photo-1676944229914-2194fdafd024.jpeg") center / cover no-repeat;
}

.lead-404 {
  margin: -1rem auto 2rem;
}

.hero-404 .btn-row {
  justify-content: center;
}

/* ---------- Footer ---------- */
footer {
  background: var(--navy);
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

footer strong {
  color: #fff;
  display: block;
  margin-bottom: 0.5rem;
  font-family: "Space Grotesk", sans-serif;
}

/* Footer logo mark (the "e") */
.foot-mark {
  display: block;
  width: auto;
  height: 44px;
  margin-bottom: 14px;
}

/* Phone number link on the contact page */
.contact-info .phone a {
  color: inherit;
  text-decoration: none;
}

.contact-info .phone a:hover {
  text-decoration: underline;
}

.foot-links {
  list-style: none;
  display: grid;
  gap: 6px;
}

.foot-links a {
  text-decoration: none;
}

.foot-links a:hover {
  color: #fff;
}

.foot-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.legal-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.legal-links a {
  text-decoration: none;
}

.legal-links a:hover {
  color: #fff;
}

/* ---------- Fade-in on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  /* If the computer has animations turned down, the title still fades in gently */
  .hero-title .word {
    transform: none;
    filter: none;
    animation-name: fade-in;
  }
  .hero-buttons {
    animation-name: fade-in;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .nav-links {
    gap: 16px;
  }
  .nav-links a {
    font-size: 0.82rem;
  }
}

@media (max-width: 1020px) {
  .services,
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .features--signal,
  .features--list {
    grid-template-columns: 1fr;
  }
  .features--bento .feature:first-child {
    grid-row: auto;
    grid-column: 1 / -1;
    min-height: 220px;
  }
  .pillars,
  .sector-links {
    grid-template-columns: repeat(2, 1fr);
  }
  .foot {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Mobile menu ---------- */
@media (max-width: 960px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 8, 24, 0.97);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav-links.open {
    max-height: 560px;
  }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    border-top: 1px solid var(--line);
    border-bottom: 0;
    font-size: 0.95rem;
  }
  .nav-links a[aria-current="page"] {
    color: var(--accent);
  }
}

/* ---------- Phone ---------- */
@media (max-width: 860px) {
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .split.reverse .media {
    order: 0;
  }
  /* Timeline: line moves to the left, all boxes on one side */
  .features--timeline::before {
    left: 22px;
  }
  .features--timeline .feature,
  .features--timeline .feature:nth-child(even),
  .features--timeline .feature:nth-child(odd):not(:first-child) {
    width: auto;
    margin: 0 0 20px 64px;
  }
  .features--timeline .feature:nth-child(odd) .num,
  .features--timeline .feature:nth-child(even) .num {
    left: -64px;
    right: auto;
  }
  section {
    padding: 80px 0;
  }
}

@media (max-width: 560px) {
  .wrap,
  nav {
    padding: 0 16px;
  }
  .services,
  .features,
  .pillars,
  .foot {
    grid-template-columns: 1fr;
  }
  .features--list .feature {
    grid-template-columns: 72px 1fr;
  }
  .features--list .num {
    font-size: 2.6rem;
  }
  .features--signal .feature {
    grid-template-columns: 52px 1fr;
    gap: 16px;
    border-radius: 999px 18px 18px 999px;
  }
  .features--signal .num {
    width: 52px;
    height: 52px;
  }
  .sector-links {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .page-hero {
    min-height: 60vh;
    padding: 130px 0 60px;
  }
}

/* ---------- Home page intro ---------- */

.link-more {
  display: inline-block;
  margin-top: 1.8rem;
  font-weight: 600;
  text-decoration: none;
}

.link-more::after {
  content: " \2192";
  color: var(--accent);
}

section.light .link-more {
  color: var(--light-text);
}



/* ---------- Photos shown at their natural proportions ---------- */
.media.natural img {
  aspect-ratio: auto;
  height: auto;
}

.media.portrait img {
  max-width: 440px;
  margin-inline: auto;
}


/* ---------- Dark-section variants of the card components ---------- */
section.dark .feature {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: none;
}

section.dark .feature .num {
  color: var(--accent);
  background: rgba(63, 207, 150, 0.14);
}

section.dark .why {
  background: var(--panel);
  box-shadow: none;
}

/* ---------- S-Band page ---------- */
section.sat-bg {
  background:
    linear-gradient(rgba(10, 8, 24, 0.73), rgba(10, 8, 24, 0.78)),
    url("../images/photo-1710267224241-ded50105028e.jpeg") center / cover no-repeat;
}

.split + .spec-grid {
  margin-top: 56px;
}

.features--stack {
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 28px;
}

.features--stack .feature {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 22px;
}

.features--stack .feature .num {
  flex: none;
  margin-bottom: 0;
}

.features--stack .feature-text h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.features--stack .feature-text p {
  margin: 0;
  font-size: 0.93rem;
}

.tech-panel {
  padding: 30px 30px 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid #e1e7f0;
  box-shadow: 0 18px 40px -30px rgba(20, 32, 58, 0.35);
}

.tech-panel h3 {
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
  color: var(--light-text);
}

.tech-list > div {
  padding: 14px 0;
  border-top: 1px solid #e8e3f1;
}

.tech-list dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.tech-list dd {
  margin: 4px 0 0;
  font-size: 0.97rem;
  color: var(--light-text);
}

/* ---------- Text-only sections ---------- */
.text-block {
  max-width: 760px;
}


/* ---------- Centred text blocks ---------- */
.text-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.text-center .lead {
  margin-left: auto;
  margin-right: auto;
}

.text-center .ticks {
  display: inline-grid;
  text-align: left;
}

.text-center .btn-row,
.use-tags.text-center {
  justify-content: center;
}

/* ---------- Image sized to the text beside it ---------- */
.split .media.proportional {
  align-self: stretch;
  display: flex;
}

.media.proportional img {
  aspect-ratio: auto;
  height: auto;
  min-height: 320px;
  max-height: 520px;
  margin-block: auto;
  align-self: stretch;
  object-fit: cover;
}

/* ---------- Body typography ----------
   Two typefaces only:
   - Space Grotesk: headings, page titles, homepage greeting (unchanged)
   - Inter: everything else (body text, menu, buttons, labels, forms)
   Inter is already self-hosted for the menu and buttons (fonts/inter-*.woff2).
   Body text uses Regular (400); emphasis uses Semibold (600). */
:root {
  --font-body: Inter, system-ui, sans-serif;
}

/* Body text and bullet points */
section p:not(.breadcrumb),
footer p,
section dd,
section ul:not(.use-tags) li {
  font-family: var(--font-body);
  font-weight: 400;
}

/* Emphasis */
section p strong,
section li strong,
section dd strong,
footer p strong {
  font-family: var(--font-body);
  font-weight: 600;
}
