/* =========================================================
   Lithium Springs Limited - modern static rebuild
   Design system + components
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --blue: #0050bf;
  --blue-dark: #003a8c;
  --blue-deep: #022a63;
  --cyan: #41e0f2;
  --ink: #1a1b1d;
  --ink-soft: #3a3d42;
  --muted: #5b626d;
  --light: #f5f7fa;
  --gray-bg: #eef2f7;
  --white: #ffffff;
  --border: #e2e8f0;

  --grad: linear-gradient(120deg, #41e0f2 0%, #0050bf 100%);
  --grad-deep: linear-gradient(120deg, #0050bf 0%, #022a63 100%);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-head: "Manrope", var(--font-body);

  --container: 1180px;
  --container-narrow: 820px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(2, 28, 70, 0.06);
  --shadow: 0 14px 40px rgba(2, 28, 70, 0.10);
  --shadow-lg: 0 24px 54px rgba(2, 28, 70, 0.14);

  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--blue-dark); }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.08rem; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: 0.45em; }

strong { color: var(--ink); font-weight: 600; }

sub, sup { font-size: 0.7em; }

::selection { background: var(--cyan); color: var(--ink); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--tight { padding: clamp(40px, 5vw, 70px) 0; }
.section--gray { background: var(--gray-bg); }
.section--ink { background: var(--ink); color: rgba(255, 255, 255, 0.82); }
.section--ink h1,
.section--ink h2,
.section--ink h3,
.section--ink h4,
.section--ink h5 { color: #fff; }

.lede { font-size: 1.18rem; color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.section--ink .eyebrow,
.hero .eyebrow { color: var(--cyan); }

.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 16px 30px;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn i { font-size: 0.9em; transition: transform 0.25s var(--ease); }
.btn:hover i { transform: translateX(4px); }

/* solid brand button (.btn--gradient retained for existing markup) */
.btn--primary,
.btn--gradient {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 80, 191, 0.28);
}
.btn--primary:hover,
.btn--gradient:hover {
  color: #fff;
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 80, 191, 0.34);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--ghost:hover { color: var(--ink); background: #fff; border-color: #fff; transform: translateY(-2px); }

.btn--outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn--outline:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), height 0.3s var(--ease);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 40px; width: auto; transition: opacity 0.3s var(--ease); }
.brand .logo-dark { display: none; }

/* transparent state (over hero) shows white logo */
.site-header .logo-light { display: block; }
.site-header .logo-dark { display: none; }

/* scrolled / solid state */
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.06), 0 10px 30px rgba(16, 24, 40, 0.06);
  height: 72px;
}
.site-header.is-solid .logo-light { display: none; }
.site-header.is-solid .logo-dark { display: block; }

/* pages without a dark hero always use solid header */
body.has-light-top .site-header { position: fixed; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav > ul > li { position: relative; margin: 0; }

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.92);
  padding: 12px 16px;
  border-radius: 8px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.main-nav .has-sub > a::after {
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.7em;
  opacity: 0.7;
  transition: transform 0.2s var(--ease);
}
.main-nav .has-sub:hover > a::after { transform: rotate(180deg); }

.site-header.is-solid .main-nav a { color: var(--ink); }
.main-nav a:hover,
.main-nav .current > a { color: var(--cyan); }
.site-header.is-solid .main-nav a:hover,
.site-header.is-solid .main-nav .current > a { color: var(--blue); }

.main-nav .nav-cta {
  margin-left: 10px;
  background: var(--blue);
  color: #fff !important;
  padding: 11px 24px;
  border-radius: 100px;
  box-shadow: 0 8px 20px rgba(0, 80, 191, 0.3);
}
.main-nav .nav-cta:hover { background: var(--blue-dark); }
.main-nav .nav-cta:hover { transform: translateY(-2px); color: #fff !important; }

/* dropdown */
.sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 250px;
  list-style: none;
  margin: 0;
  padding: 10px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.sub-menu::before {
  content: "";
  position: absolute;
  top: -10px; left: 0; right: 0; height: 12px;
}
.main-nav .has-sub:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-menu li { margin: 0; }
.sub-menu a {
  display: block;
  color: var(--ink-soft) !important;
  font-weight: 500;
  font-size: 0.94rem;
  padding: 10px 14px;
  border-radius: 9px;
}
.sub-menu a:hover { background: var(--gray-bg); color: var(--blue) !important; }
.sub-menu .sub-sub { padding-left: 14px; }
.sub-menu .sub-sub a { color: var(--muted) !important; font-size: 0.88rem; }

/* burger */
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 0; background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 110;
}
.nav-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), background 0.3s;
}
.site-header.is-solid .nav-toggle span { background: var(--ink); }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 30px; }
body.nav-open .nav-toggle span,
body.nav-open .site-header.is-solid .nav-toggle span { background: #fff; }
body.nav-open .nav-toggle span:nth-child(1) { top: 23px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero .swiper { position: absolute; inset: 0; z-index: 0; }
.hero .swiper-slide {
  background-size: cover;
  background-position: center;
}
.hero .swiper-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(75deg, rgba(2, 28, 70, 0.88) 0%, rgba(2, 28, 70, 0.55) 45%, rgba(2, 28, 70, 0.2) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding: 120px 0 90px; }
.hero__content { max-width: 760px; }
.hero h1 {
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.08;
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.2);
}
.hero h1 .grad-text {
  background: linear-gradient(120deg, #7ff0ff, #41e0f2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub { font-size: 1.2rem; max-width: 580px; margin-bottom: 2rem; color: rgba(255,255,255,0.88); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}
.hero__scroll i { animation: bob 1.8s infinite; }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }

/* swiper bullets */
.hero .swiper-pagination { bottom: 30px !important; left: auto !important; right: 30px !important; width: auto !important; }
.hero .swiper-pagination-bullet { width: 10px; height: 10px; background: #fff; opacity: 0.45; transition: all 0.3s; }
.hero .swiper-pagination-bullet-active { opacity: 1; width: 28px; border-radius: 6px; background: var(--cyan); }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 56vh;
  padding-top: var(--header-h);
  color: #fff;
  background-size: cover;
  background-position: center;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2,28,70,0.55) 0%, rgba(2,28,70,0.35) 40%, rgba(2,28,70,0.85) 100%);
}
.page-hero__inner { position: relative; z-index: 2; width: 100%; padding-bottom: 56px; }
.page-hero h1 { color: #fff; margin-bottom: 0.4rem; font-weight: 800; letter-spacing: -0.02em; }
.breadcrumb {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.78); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: 0.55; }

/* ---------- Content typography blocks ---------- */
.prose { font-size: 1.06rem; }
.prose a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose h2 { margin: 1.8em 0 0.6em; }
.prose h3 { margin: 1.6em 0 0.5em; }
.prose h4 { margin: 1.4em 0 0.4em; color: var(--blue); }
.prose h5 { margin: 1.4em 0 0.3em; color: var(--blue); }
.prose > :first-child { margin-top: 0; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li {
  position: relative;
  padding-left: 1.7em;
}
.prose ul li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.15em;
  font-size: 0.85em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.prose ol { padding-left: 1.25em; }
.prose a { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0,80,191,0.3); }
.prose a:hover { text-decoration-color: var(--blue); }

/* layout: content + sidebar */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.content-layout--reverse { grid-template-columns: 300px 1fr; }

/* sidebar */
.sidebar { position: sticky; top: calc(var(--header-h) + 16px); }
.side-nav {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.side-nav h4 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav li { margin: 0; }
.side-nav > ul > li > a,
.side-nav a {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--ink-soft);
  padding: 11px 14px;
  border-radius: 10px;
  transition: all 0.2s var(--ease);
}
.side-nav a:hover { background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); }
.side-nav .current > a { background: var(--blue); color: #fff; box-shadow: 0 8px 18px rgba(0,80,191,0.25); }
.side-nav .children { padding-left: 12px; margin-top: 2px; border-left: 2px solid var(--border); }
.side-nav .children a { font-size: 0.88rem; color: var(--muted); padding: 8px 12px; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.two-col.align-top { align-items: start; }

/* allow grid items to shrink below their content's intrinsic width so
   wide tables can scroll and long strings can wrap instead of overflowing */
.content-layout > *,
.content-layout--reverse > *,
.two-col > *,
.grid > *,
.grid-2 > *,
.grid-3 > *,
.grid-4 > * { min-width: 0; }

/* long, unbreakable strings (emails, phone numbers) wrap on small screens */
a[href^="mailto:"],
a[href^="tel:"],
.contact-list .cv { overflow-wrap: anywhere; word-break: break-word; }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__body h3 { font-size: 1.3rem; }
.card__body p { color: var(--muted); font-size: 0.98rem; margin: 0; }
.card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--blue);
  padding-top: 8px;
}
.card__link i { transition: transform 0.25s var(--ease); }
.card:hover .card__link i { transform: translateX(5px); }

/* project teaser card (image w/ overlay title) */
.teaser {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  box-shadow: var(--shadow);
}
.teaser img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.teaser::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,28,70,0) 30%, rgba(2,28,70,0.85) 100%); }
.teaser:hover img { transform: scale(1.07); }
.teaser__title {
  position: relative;
  z-index: 2;
  padding: 26px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
}
.teaser__title i { transition: transform 0.25s var(--ease); }
.teaser:hover .teaser__title i { transform: translateX(5px); }

/* ---------- Stats band ---------- */
.stats {
  position: relative;
  background: var(--grad-deep);
  color: #fff;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(65, 224, 242, 0.28), transparent 42%),
    radial-gradient(circle at 88% 90%, rgba(65, 224, 242, 0.18), transparent 45%);
}
.stats .container { position: relative; z-index: 2; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.stat { text-align: center; padding: 14px; }
.stat__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff, #9ff3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.4rem;
}
.stat__num small { font-size: 0.45em; -webkit-text-fill-color: #9ff3ff; }
.stat__label { font-size: 0.95rem; color: rgba(255, 255, 255, 0.82); max-width: 230px; margin: 0 auto; }

/* ---------- Feature (image + text) ---------- */
.feature-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.feature-img img { width: 100%; }

/* ---------- Figure / caption ---------- */
figure { margin: 1.8em 0; }
figure img { border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
figcaption {
  margin-top: 0.7em;
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}
.zoom { display: block; position: relative; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.6em 0; border-radius: var(--radius-sm); border: 1px solid var(--border); }
table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 0.96rem;
  background: #fff;
}
table.data thead th {
  background: var(--blue-deep);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  text-align: left;
  padding: 14px 18px;
  font-size: 0.9rem;
}
table.data td {
  padding: 13px 18px;
  border-top: 1px solid var(--border);
}
table.data tbody tr:nth-child(even) { background: var(--light); }
table.data tbody tr:hover { background: #e7f0ff; }
table.data tr.is-total { font-weight: 700; }
table.data tr.is-total td { border-top: 2px solid var(--blue); color: var(--ink); }

/* ---------- ESG columns ---------- */
.icon-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  height: 100%;
}
.icon-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.icon-card__icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--grad);
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 18px;
  box-shadow: 0 10px 22px rgba(0,80,191,0.28);
}
.icon-card h4 { margin-bottom: 0.6rem; }
.icon-card ul { margin-bottom: 0; }

/* ---------- Team ---------- */
.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid transparent;
  border-image: var(--grad) 1;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-card__name { font-family: var(--font-head); font-size: 1.35rem; color: var(--ink); font-weight: 600; }
.team-card__role {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.team-card p:last-child { margin-bottom: 0; }

/* ---------- Directory / definition blocks ---------- */
.dir-block { margin-bottom: 2rem; }
.dir-block h4 {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.7rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}
.dir-block p { margin-bottom: 0; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); margin: 0; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ci {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: #fff;
  color: var(--blue);
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
}
.contact-list .cl { font-family: var(--font-head); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-list .cv { color: var(--ink); }
.contact-list .cv a { color: var(--ink); }
.contact-list .cv a:hover { color: var(--blue); }

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  background: var(--grad-deep);
  color: #fff;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(65,224,242,0.25), transparent 50%);
}
.cta .container { position: relative; z-index: 2; text-align: center; }
.cta h2 { color: #fff; margin-bottom: 0.6rem; }
.cta p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 1.8rem; }

/* ---------- Empty state ---------- */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--light);
  color: var(--muted);
}
.empty-state i { font-size: 2.4rem; color: var(--blue); opacity: 0.6; margin-bottom: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.66); }
.footer-main { padding: 72px 0 48px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand img { height: 42px; margin-bottom: 20px; }
.footer-brand p { font-size: 0.96rem; max-width: 300px; color: rgba(255,255,255,0.6); }
.footer-col h5 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: rgba(255, 255, 255, 0.66); font-size: 0.96rem; }
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-bottom p { margin: 0; font-size: 0.88rem; color: rgba(255, 255, 255, 0.5); }
.social { display: flex; gap: 10px; }
.social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: all 0.25s var(--ease);
}
.social a:hover { background: var(--blue); transform: translateY(-3px); color: #fff; }

/* ---------- Scroll reveal ---------- */
/* Hidden state only applies when JS is available (html.js), so content
   stays visible for no-JS users and crawlers. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.in-view { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Mobile drawer + responsive ---------- */
@media (max-width: 992px) {
  .content-layout,
  .content-layout--reverse { grid-template-columns: 1fr; }
  .sidebar { position: static; order: 2; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: flex-start;
    background: var(--blue-deep);
    padding: calc(var(--header-h) + 20px) 24px max(40px, env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    align-items: stretch;
  }
  body.nav-open .main-nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }

  /* The solid header applies backdrop-filter, which makes it the containing
     block for the fixed drawer and clips the open menu to the header height
     once the page is scrolled. Neutralise it while the menu is open so the
     drawer is measured against the viewport and every item stays reachable. */
  body.nav-open .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .main-nav > ul > li { width: 100%; }
  .main-nav a { color: #fff; font-size: 1.06rem; padding: 14px 12px; justify-content: space-between; }
  .site-header.is-solid .main-nav a { color: #fff; }
  .main-nav a:hover { color: var(--cyan); }
  .site-header.is-solid .main-nav a:hover { color: var(--cyan); }

  /* accordion submenus */
  .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    min-width: 0;
    padding: 0 4px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s var(--ease);
  }
  .main-nav .has-sub.open > .sub-menu { max-height: 520px; padding: 4px; margin: 2px 0 6px; }
  .main-nav .has-sub > a::after { transition: transform 0.3s var(--ease); }
  .main-nav .has-sub.open > a::after { transform: rotate(180deg); }
  .sub-menu a { color: rgba(255,255,255,0.82) !important; font-size: 0.98rem; }
  .sub-menu a:hover { background: rgba(255,255,255,0.08); color: #fff !important; }
  .sub-menu .sub-sub a { color: rgba(255,255,255,0.6) !important; }
  .main-nav .nav-cta { margin: 14px 0 0; text-align: center; justify-content: center; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero { min-height: 48vh; }
  .footer-bottom .container { flex-direction: column-reverse; text-align: center; }
}
