/* =====================================================================
   IGEN Limited - igenltd.com
   Single page corporate site
   ===================================================================== */

:root {
  --navy-900: #0a1f38;
  --navy-800: #0e2c4d;
  --navy-700: #123a63;
  --blue-600: #1565c0;
  --blue-500: #1e77d8;
  --blue-050: #eef4fb;

  --ink: #16212e;
  --ink-muted: #55657a;
  --line: #dfe6ef;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;

  --wrap: 1180px;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(10, 31, 56, .08);
  --shadow-md: 0 10px 30px rgba(10, 31, 56, .10);

  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------------------------------------------------------- reset */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; border: 0; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-500); text-decoration: underline; }

h1, h2, h3 { margin: 0 0 .6em; line-height: 1.25; color: var(--navy-900); font-weight: 700; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

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

:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; }

/* ---------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.header-main { border-bottom: 1px solid var(--line); }

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo-cls a { display: inline-block; }
.logo-cls img { width: 200px; height: auto; }

.header-address {
  text-align: right;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-muted);
}
.header-address strong {
  display: block;
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--navy-900);
  margin-bottom: 2px;
}
.header-address p { margin: 0; }
.header-address a { color: var(--blue-600); }

/* nav toggle (mobile) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  padding: 9px 8px;
  background: var(--navy-800);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* main menu */
.main-menu { background: var(--navy-800); }

.menu-ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.menu-ul li { margin: 0; }
.menu-ul a {
  display: block;
  padding: 15px 26px;
  color: #dbe6f3;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.menu-ul a:hover,
.menu-ul a:focus,
.menu-ul a.is-active {
  background: var(--navy-700);
  color: #fff;
  border-bottom-color: var(--blue-500);
  text-decoration: none;
}

/* ---------------------------------------------------------- hero */
.main-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 55%, #17518c 100%);
  color: #fff;
  padding: 96px 0 104px;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px),
    radial-gradient(circle at 78% 25%, rgba(64, 150, 235, .55), transparent 55%);
  background-size: 56px 56px, 56px 56px, 100% 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .25) 100%);
          mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .25) 100%);
}

.banner-content { position: relative; max-width: 800px; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #86c0f5;
  margin-bottom: 18px;
}

.main-banner h1 {
  color: #fff;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.16;
  letter-spacing: -.01em;
  margin-bottom: 20px;
}

.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: #cfdff0;
  max-width: 660px;
  margin-bottom: 34px;
}

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

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.btn-primary:hover { background: var(--blue-500); border-color: var(--blue-500); color: #fff; }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

.btn-light { background: #fff; color: var(--navy-900); border-color: #fff; white-space: nowrap; }
.btn-light:hover { background: var(--blue-050); color: var(--navy-900); }

/* ---------------------------------------------------------- sections */
.section { padding: 82px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { margin-bottom: 44px; max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 12px;
}
.kicker::after {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  background: var(--blue-600);
  margin-top: 10px;
}
.section-head.center .kicker::after { margin-left: auto; margin-right: auto; }

.section-head h2 { font-size: clamp(25px, 3vw, 35px); margin-bottom: 14px; }
.section-sub { color: var(--ink-muted); font-size: 17px; margin: 0; }

/* ---------------------------------------------------------- about */
.two-col {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: start;
}
.two-col p { color: var(--ink-muted); }

.fact-list {
  list-style: none;
  margin: 0;
  padding: 26px 28px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue-600);
  border-radius: var(--radius);
}
.fact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.fact-list li:first-child { padding-top: 0; }
.fact-list li:last-child { padding-bottom: 0; border-bottom: 0; }

.fact-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 3px;
}
.fact-value { display: block; font-weight: 600; color: var(--navy-900); line-height: 1.5; }

/* ---------------------------------------------------------- cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #c6d8ec;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--blue-050);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }

.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--ink-muted); font-size: 15px; margin: 0; }

/* ---------------------------------------------------------- steps */
.step-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}

.step {
  position: relative;
  padding: 30px 26px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step-num {
  display: block;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: #c8d9ec;
  margin-bottom: 12px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--ink-muted); font-size: 15px; margin: 0; }

/* ---------------------------------------------------------- cta */
.cta-band {
  background: linear-gradient(120deg, var(--navy-800), var(--blue-600));
  color: #fff;
  padding: 56px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 8px; }
.cta-band p { color: #d5e5f6; margin: 0; }

/* ---------------------------------------------------------- contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { font-size: 18px; margin-bottom: 10px; }
.contact-card p { color: var(--ink-muted); font-size: 15px; margin: 0; }

.big-link { font-size: 17px; font-weight: 700; word-break: break-word; }

/* ---------------------------------------------------------- footer */
.footer-cls { background: var(--navy-900); color: #b9c9db; }

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: 40px;
  padding-top: 54px;
  padding-bottom: 44px;
}

.footer-brand img { width: 170px; margin-bottom: 16px; }
.footer-brand p { font-size: 15px; color: #91a6bd; margin: 0; }

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #b9c9db; font-size: 15px; }
.footer-links a:hover { color: #fff; text-decoration: none; }

.footer-address {
  font-style: normal;
  font-size: 15px;
  line-height: 1.8;
  color: #91a6bd;
}
.footer-address a { color: #7fb6ea; }

.footer-bar { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-bar p {
  margin: 0;
  padding: 18px 0;
  font-size: 13px;
  color: #8298b1;
  text-align: center;
}

/* ---------------------------------------------------------- back to top */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
  z-index: 90;
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--blue-500); text-decoration: none; color: #fff; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 34px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  /* fallback only - main.js measures the real header height and overrides this */
  html { scroll-padding-top: 250px; }

  .header-flex { flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
  .logo-cls { order: 1; }
  .nav-toggle { order: 2; display: flex; }
  .header-address {
    order: 3;
    width: 100%;
    text-align: left;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .logo-cls img { width: 165px; }

  .main-menu { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .main-menu.is-open { max-height: 340px; }
  .menu-ul { flex-direction: column; }
  .menu-ul a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  .menu-ul a:hover,
  .menu-ul a.is-active { background: transparent; border-bottom-color: rgba(255, 255, 255, .1); color: #fff; }

  .main-banner { padding: 62px 0 68px; }
  .section { padding: 58px 0; }
  .btn { padding: 13px 24px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 420px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
}

/* ---------------------------------------------------------- motion / print */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .card:hover, .btn:hover { transform: none; }
}

@media print {
  .site-header, .back-to-top, .btn-row, .cta-band { display: none !important; }
  body { color: #000; }
  .main-banner { background: none; color: #000; padding: 20px 0; }
  .main-banner h1, .lede, .eyebrow { color: #000; }
}
