/* =============================================
   TBCDA — Tri Border Capacity Development Advisory
   Stylesheet
   ============================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand — teal / sage palette to complement greenish-blueish logo */
  --primary-900: #062932;
  --primary-800: #0a3d4a;
  --primary-700: #0f5566;
  --primary-600: #136d7e;
  --primary-500: #1d8898;
  --primary-400: #2a9eaf;
  --primary-300: #5fb8c5;
  --primary-200: #9dd2d9;
  --primary-100: #d5ebee;

  --accent-700: #2d7e5e;
  --accent-600: #3a9c75;
  --accent-500: #4ab98f;
  --accent-400: #6dc9a4;
  --accent-300: #93d6b9;
  --accent-100: #e3f3eb;

  --ink-900: #0f2429;
  --ink-800: #1d3a40;
  --ink-700: #2d4f57;
  --ink-600: #4d6770;
  --ink-500: #6b7d83;
  --ink-400: #9aa9ad;
  --ink-300: #cfd9dc;
  --ink-200: #e5edee;
  --ink-100: #f4f9fa;
  --ink-50:  #fafcfc;
  --white:   #ffffff;

  --gradient-brand: linear-gradient(135deg, #0f5566 0%, #1d8898 45%, #4ab98f 100%);
  --gradient-soft:  linear-gradient(135deg, #f4f9fa 0%, #e3f3eb 100%);
  --gradient-hero:  linear-gradient(120deg, #062932 0%, #0f5566 50%, #1d8898 100%);

  /* Type */
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing & layout */
  --container: 1200px;
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(15, 36, 41, 0.05);
  --shadow-sm: 0 4px 12px rgba(15, 36, 41, 0.06);
  --shadow:    0 12px 32px rgba(15, 36, 41, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 36, 41, 0.12);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary-600); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent-600); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p  { margin: 0 0 1em; }

::selection { background: var(--accent-300); color: var(--ink-900); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--soft { background: var(--ink-100); }
.section--brand { background: var(--gradient-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-600);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--accent-500);
  border-radius: 2px;
}

.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head p { color: var(--ink-600); font-size: 1.06rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--gradient-brand);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(29, 136, 152, 0.32);
}
.btn--primary:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(29, 136, 152, 0.42);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.16); color: var(--white); }

.btn--outline {
  background: transparent;
  color: var(--primary-700);
  border: 1.5px solid var(--primary-200);
}
.btn--outline:hover { border-color: var(--primary-500); color: var(--primary-700); background: var(--primary-100); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--ink-200);
  box-shadow: var(--shadow-xs);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}
.brand:hover { color: var(--ink-900); }
.brand__mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.site-footer .brand__mark {
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
}
.brand__name { line-height: 1.1; }
.brand__name small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-500);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  display: inline-block;
  padding: 10px 16px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-700);
  border-radius: 8px;
  transition: all 0.2s var(--ease);
}
.nav__links a:hover { color: var(--primary-700); background: var(--primary-100); }
.nav__links a.is-active { color: var(--primary-700); background: var(--primary-100); }

.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__cta .btn { padding: 11px 22px; font-size: 0.9rem; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  align-items: center; justify-content: center;
  color: var(--ink-800);
  background: var(--ink-100);
}
.nav__toggle:hover { background: var(--primary-100); color: var(--primary-700); }
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
.nav.is-open .icon-menu  { display: none; }
.nav.is-open .icon-close { display: block; }

@media (max-width: 920px) {
  .nav__toggle { display: inline-flex; }
  .nav__cta .btn { display: none; }
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--ink-200);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0; pointer-events: none;
    transition: all 0.25s var(--ease);
  }
  .nav.is-open .nav__links {
    transform: translateY(0);
    opacity: 1; pointer-events: auto;
  }
  .nav__links a { padding: 14px 18px; border-radius: 10px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 12vw, 160px) 0 clamp(80px, 12vw, 140px);
  background: var(--gradient-hero);
  color: var(--white);
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 30%, rgba(74, 185, 143, 0.35), transparent 45%),
    radial-gradient(circle at 82% 70%, rgba(95, 184, 197, 0.32), transparent 50%),
    radial-gradient(circle at 60% 10%, rgba(157, 210, 217, 0.18), transparent 40%);
  z-index: -1;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.7), transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.7), transparent 75%);
  z-index: -1;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: center;
}
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
}

.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 .accent {
  background: linear-gradient(120deg, #93d6b9, #5fb8c5);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 580px;
  margin-bottom: 36px;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero__eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-400);
  box-shadow: 0 0 0 4px rgba(74, 185, 143, 0.25);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.15); opacity: 0.7; }
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin-left: auto;
}
.hero__card {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  color: var(--ink-800);
}
.hero__card h4 { color: var(--ink-900); margin-bottom: 4px; font-size: 1rem; }
.hero__card p  { font-size: 0.86rem; color: var(--ink-600); margin: 0; }
.hero__card--1 { top: 6%; left: 0; min-width: 240px; animation: float 6s ease-in-out infinite; }
.hero__card--2 { bottom: 14%; right: 0; min-width: 240px; animation: float 6s ease-in-out infinite 1.5s; }
.hero__card--3 {
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--gradient-brand);
  color: var(--white);
  text-align: center;
  padding: 32px 28px;
  min-width: 220px;
}
.hero__card--3 h4 { color: var(--white); font-size: 2.2rem; margin-bottom: 0; letter-spacing: -0.02em; }
.hero__card--3 p  { color: rgba(255,255,255,0.85); font-size: 0.85rem; }
.hero__icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--gradient-soft);
  color: var(--primary-700);
  display: grid; place-items: center;
  margin-bottom: 12px;
}
.hero__icon svg { width: 20px; height: 20px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.hero__card--3 { animation: none; }

@media (max-width: 920px) {
  .hero__visual { max-width: 420px; margin: 0 auto; }
}

/* Stack the floating cards vertically on small screens — absolute layout
   doesn't have room to breathe under ~720px and starts overlapping. */
@media (max-width: 720px) {
  .hero__visual {
    aspect-ratio: auto;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-left: 0;
  }
  .hero__card,
  .hero__card--1,
  .hero__card--2,
  .hero__card--3 {
    position: static;
    transform: none;
    animation: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    text-align: left;
  }
  .hero__card--3 {
    text-align: center;
    padding: 24px;
  }
  .hero__card--3 h4 { font-size: 1.9rem; }
}

/* ---------- Page Header (sub-pages) ---------- */
.page-header {
  position: relative;
  padding: clamp(80px, 11vw, 140px) 0 clamp(60px, 9vw, 100px);
  background: var(--gradient-hero);
  color: var(--white);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(74, 185, 143, 0.35), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(95, 184, 197, 0.3), transparent 50%);
  z-index: -1;
}
/* Image-backed page header */
.page-header--image { background: var(--ink-900); }
.page-header--image .page-header__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.95);
  opacity: 0.55;
  z-index: -2;
}
.page-header--image::before {
  background:
    linear-gradient(135deg, rgba(6, 41, 50, 0.85) 0%, rgba(15, 85, 102, 0.7) 50%, rgba(29, 136, 152, 0.65) 100%),
    radial-gradient(circle at 80% 70%, rgba(74, 185, 143, 0.35), transparent 55%);
  z-index: -1;
}
.page-header h1 { color: var(--white); margin-bottom: 14px; }
.page-header p { color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }
.breadcrumb {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 18px;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Stats Strip ---------- */
.stats {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 36px;
  margin-top: -60px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stats__item { text-align: center; padding: 8px; }
.stats__item + .stats__item { border-left: 1px solid var(--ink-200); }
.stats__num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}
.stats__label {
  font-size: 0.85rem;
  color: var(--ink-600);
  font-weight: 500;
}
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); padding: 24px; }
  .stats__item:nth-child(2) { border-left: none; }
  .stats__item:nth-child(3) { border-left: none; }
  .stats__item:nth-child(n+3) { border-top: 1px solid var(--ink-200); padding-top: 20px; }
}

/* ---------- Cards / Grid ---------- */
.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); }
@media (max-width: 920px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card:hover::after { transform: scaleX(1); }

.card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--gradient-soft);
  color: var(--primary-700);
  display: grid; place-items: center;
  margin-bottom: 22px;
  transition: all 0.3s var(--ease);
}
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon {
  background: var(--gradient-brand);
  color: var(--white);
}
.card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.card p { color: var(--ink-600); font-size: 0.96rem; margin-bottom: 0; }
.card__list { margin: 16px 0 0; padding: 0; list-style: none; }
.card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--ink-600);
  margin-bottom: 8px;
}
.card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent-100);
  border: 2px solid var(--accent-500);
}

/* ---------- About / Two-column ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 48px; } }
.split__media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--gradient-brand);
  aspect-ratio: 4/5;
  min-height: 380px;
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  color: var(--white);
  isolation: isolate;
}
.split__media--image { background: var(--ink-900); }
.split__media--image img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.split__media--image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 41, 50, 0) 35%, rgba(6, 41, 50, 0.85) 100%);
  z-index: 1;
}
.split__media--image .split__media-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 32px;
  z-index: 2;
  color: var(--white);
}
.split__media--image .split__media-caption h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.split__media--image .split__media-caption p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.82);
  margin: 0;
}
.split__media--image .badge {
  position: absolute;
  top: 22px; left: 22px;
  z-index: 2;
  padding: 6px 14px;
  background: rgba(255,255,255,0.92);
  color: var(--primary-700);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.split__media::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.15), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(74, 185, 143, 0.25), transparent 55%);
  z-index: -1;
}
.split__media-inner {
  text-align: center;
  padding: 32px;
  max-width: 320px;
}
.split__media-inner svg {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  opacity: 0.85;
}
.split__media-inner h3 { color: var(--white); }
.split__media-inner p { color: rgba(255,255,255,0.85); margin-bottom: 0; }

.feature-list { list-style: none; margin: 24px 0 0; padding: 0; }
.feature-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ink-200);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list__icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-100);
  color: var(--accent-700);
  display: grid; place-items: center;
}
.feature-list__icon svg { width: 18px; height: 18px; }
.feature-list h4 { font-size: 1rem; margin-bottom: 4px; }
.feature-list p { color: var(--ink-600); font-size: 0.9rem; margin: 0; }

/* ---------- Vision / Mission cards ---------- */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 720px) { .vm-grid { grid-template-columns: 1fr; } }
.vm-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.vm-card--vision { background: var(--gradient-brand); color: var(--white); }
.vm-card--mission {
  background: var(--white);
  border: 1px solid var(--ink-200);
  color: var(--ink-700);
}
.vm-card h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 14px; }
.vm-card--vision h3 { color: rgba(255,255,255,0.85); }
.vm-card--mission h3 { color: var(--primary-600); }
.vm-card p { font-size: 1.18rem; line-height: 1.55; margin: 0; font-weight: 500; }
.vm-card--vision p { color: var(--white); }
.vm-card--mission p { color: var(--ink-800); }
.vm-card__icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.vm-card--vision .vm-card__icon { background: rgba(255,255,255,0.16); color: var(--white); }
.vm-card--mission .vm-card__icon { background: var(--gradient-soft); color: var(--primary-700); }
.vm-card__icon svg { width: 24px; height: 24px; }

/* ---------- Approach pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 920px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: all 0.3s var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-200); }
.pillar__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-600);
  margin-bottom: 10px;
}
.pillar h4 { font-size: 1.05rem; margin-bottom: 8px; }
.pillar p { font-size: 0.88rem; color: var(--ink-600); margin: 0; }

/* ---------- Sectors chips ---------- */
.sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.sector {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  font-weight: 500;
  color: var(--ink-800);
  transition: all 0.25s var(--ease);
}
.sector:hover {
  border-color: var(--primary-300);
  background: var(--primary-100);
  transform: translateY(-2px);
}
.sector svg { width: 18px; height: 18px; color: var(--primary-600); }

/* ---------- Service detail rows ---------- */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
  padding: 56px 0;
  border-bottom: 1px solid var(--ink-200);
}
.service-row:last-child { border-bottom: none; }
.service-row:nth-child(even) { direction: rtl; }
.service-row:nth-child(even) > * { direction: ltr; }
@media (max-width: 920px) {
  .service-row, .service-row:nth-child(even) { grid-template-columns: 1fr; gap: 24px; direction: ltr; }
}
.service-row__visual {
  background: var(--gradient-soft);
  border-radius: var(--radius-lg);
  padding: 40px;
  aspect-ratio: 5/4;
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.service-row__visual svg {
  width: 100px; height: 100px;
  color: var(--primary-600);
}
.service-row__num {
  position: absolute;
  top: 24px; left: 28px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4.5rem;
  color: var(--primary-200);
  line-height: 1;
  letter-spacing: -0.04em;
}
.service-row h3 { font-size: 1.6rem; margin-bottom: 16px; }
.service-row__lead { color: var(--ink-600); font-size: 1.02rem; margin-bottom: 20px; }
.service-row__list {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px) { .service-row__list { grid-template-columns: 1fr; } }
.service-row__list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.94rem;
  color: var(--ink-700);
}
.service-row__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%233a9c75' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- Gallery / Our Work ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
  isolation: isolate;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery__item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 41, 50, 0) 50%, rgba(6, 41, 50, 0.78) 100%);
  opacity: 0.6;
  transition: opacity 0.3s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:hover::after { opacity: 0.85; }
.gallery__caption {
  position: absolute;
  left: 20px; right: 20px; bottom: 18px;
  z-index: 1;
  color: var(--white);
}
.gallery__caption .tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 8px;
  backdrop-filter: blur(8px);
}
.gallery__caption h4 {
  color: var(--white);
  font-size: 1rem;
  margin: 0;
  line-height: 1.3;
}

/* span layouts */
.gallery__item--wide { grid-column: span 4; grid-row: span 2; }
.gallery__item--tall { grid-column: span 2; grid-row: span 2; }
.gallery__item--square { grid-column: span 2; grid-row: span 1; }

@media (max-width: 920px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; }
  .gallery__item--wide { grid-column: span 4; grid-row: span 1; }
  .gallery__item--tall { grid-column: span 2; grid-row: span 2; }
  .gallery__item--square { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery__item, .gallery__item--wide, .gallery__item--tall, .gallery__item--square {
    grid-column: span 1; grid-row: span 1;
  }
}

/* ---------- CTA Strip ---------- */
.cta-strip {
  background: var(--gradient-hero);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-strip::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(74, 185, 143, 0.4), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(95, 184, 197, 0.35), transparent 50%);
  z-index: -1;
}
.cta-strip h2 { color: var(--white); margin-bottom: 12px; }
.cta-strip p { color: rgba(255, 255, 255, 0.85); margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-strip__actions { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-card {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  transition: all 0.25s var(--ease);
}
.contact-card:hover { border-color: var(--primary-200); box-shadow: var(--shadow-sm); }
.contact-card__icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--gradient-soft);
  color: var(--primary-700);
  display: grid; place-items: center;
}
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-500); margin-bottom: 6px; font-weight: 600; }
.contact-card p { margin: 0; color: var(--ink-800); font-weight: 500; }
.contact-card a { color: var(--ink-800); }
.contact-card a:hover { color: var(--primary-600); }

.form-card {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow);
}
.form { display: grid; gap: 18px; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-700);
}
.form__field label .req { color: var(--accent-600); }
.form__field input,
.form__field select,
.form__field textarea {
  font-family: var(--font-body);
  font-size: 0.97rem;
  padding: 13px 16px;
  border: 1.5px solid var(--ink-200);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink-800);
  transition: all 0.2s var(--ease);
  outline: none;
  width: 100%;
}
.form__field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(29, 136, 152, 0.12);
}
.form__field input::placeholder,
.form__field textarea::placeholder { color: var(--ink-400); }
.form__hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.form__submit {
  margin-top: 4px;
  padding: 15px 28px;
  width: 100%;
}

.form__notice {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.form__notice--success {
  background: var(--accent-100);
  color: var(--accent-700);
  border: 1px solid var(--accent-300);
}
.form__notice--error {
  background: #fdecec;
  color: #b32a2a;
  border: 1px solid #f5b8b8;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.78);
  padding: 80px 0 0;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}
@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: var(--white); margin-bottom: 18px; }
.site-footer .brand__name small { color: rgba(255,255,255,0.6); }
.footer-grid p { font-size: 0.92rem; color: rgba(255,255,255,0.65); }
.footer-grid h5 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-list a { color: rgba(255,255,255,0.7); font-size: 0.94rem; }
.footer-list a:hover { color: var(--accent-400); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact .item { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: rgba(255,255,255,0.78); }
.footer-contact .item svg { width: 18px; height: 18px; color: var(--accent-400); flex-shrink: 0; margin-top: 3px; }
.footer-contact a { color: rgba(255,255,255,0.78); }
.footer-contact a:hover { color: var(--accent-400); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.55);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .links { display: flex; gap: 22px; }
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--accent-400); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
