/* ============================================
   KARPA INTERNATIONAL GROUP — Bold Blue theme
   High-contrast, image-led construction aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --night:     #050b18;
  --deep:      #0a1428;
  --panel:     #0f1c36;
  --panel-2:   #15264a;
  --line:      rgba(255,255,255,0.08);
  --line-2:    rgba(255,255,255,0.16);
  --text:      #f5f7fa;
  --text-dim:  #9aa6bf;
  --text-mute: #5f6b85;
  --blue:      #2d7eff;
  --blue-2:    #4d94ff;
  --blue-deep: #1a5bd6;
  --cyan:      #5bd3ff;
  --white:     #ffffff;

  --display: 'Anton', 'Bebas Neue', 'Impact', sans-serif;
  --body:    'Inter', -apple-system, system-ui, sans-serif;

  --container: 1340px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease, background .2s ease; }
::selection { background: var(--blue); color: var(--white); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--white);
}
h1 { font-size: clamp(3rem, 9vw, 8rem); }
h2 { font-size: clamp(2.2rem, 5.2vw, 4.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); letter-spacing: 0.02em; }

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue-2);
}
.lead {
  font-family: var(--body);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 60ch;
}

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(4rem, 8vw, 7rem) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.05rem 1.7rem;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all .25s cubic-bezier(.2,.7,.2,1);
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.4); }
.btn-secondary:hover { background: var(--white); color: var(--night); border-color: var(--white); }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Site Header (two-tier) ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}

/* === Top utility bar === */
.top-bar {
  background: rgba(5,11,24,0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.65rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Brand (logo + text) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.brand-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}
.brand-mark-text {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--white);
}
.brand-sub {
  font-family: var(--body);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-2);
}

/* Language switcher in the top bar — always visible */
.lang-switch-top {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.lang-switch-top a.lang-pill {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-mute);
  padding: 4px 6px;
  transition: color .2s ease;
  text-decoration: none;
}
.lang-switch-top a.lang-pill:hover { color: var(--white); }
.lang-switch-top a.lang-pill.active { color: var(--blue-2); }
.lang-switch-top .lang-sep {
  color: var(--text-mute);
  font-size: 0.72rem;
  opacity: 0.5;
}

/* === Main navigation === */
.nav {
  background: rgba(5,11,24,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  list-style: none;
  margin: 0 auto;
}
.nav-links a {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 4px 0;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active,
.nav-links li.current-menu-item > a,
.nav-links li.current_page_item > a { color: var(--blue-2); }

.nav-cta-btn {
  background: var(--blue);
  color: var(--white);
  padding: 0.7rem 1.2rem;
  font-family: var(--body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background .25s ease;
}
.nav-cta-btn:hover { background: var(--blue-deep); color: var(--white); }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--white);
  padding: 0.55rem 0.85rem;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  padding-top: 10rem;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--night);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(5,11,24,0.55) 0%, rgba(5,11,24,0.85) 60%, rgba(5,11,24,0.96) 100%),
    url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?w=2000&q=80');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  top: -10%;
  right: 8%;
  width: 2px;
  height: 130%;
  background: var(--blue);
  transform: rotate(8deg);
  transform-origin: top right;
  z-index: 1;
  opacity: 0.9;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hero .eyebrow { margin-bottom: 1.5rem; display: block; }
.hero h1 {
  font-size: clamp(3.5rem, 11vw, 9.5rem);
  line-height: 0.92;
  margin-bottom: 2rem;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.hero h1 .accent { color: var(--blue-2); display: block; }
.hero h1 .line { display: block; }
.hero-lead {
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  color: var(--text-dim);
  max-width: 52ch;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.hero-cta-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 3;
  font-family: var(--body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.scroll-hint::before { content: ''; width: 1px; height: 40px; background: var(--text-mute); }

/* ---------- Section header ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  align-items: end;
}
.section-head h2 { margin-top: 1rem; }
.section-head .eyebrow { margin-bottom: 0; }

/* ---------- Services / Pillars (image cards) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  cursor: pointer;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .8s ease, filter .4s ease;
  z-index: 0;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,11,24,0.05) 0%, rgba(5,11,24,0.45) 50%, rgba(5,11,24,0.92) 100%);
  z-index: 1;
}
.service-card:hover::before { transform: scale(1.05); }
.service-card > * { position: relative; z-index: 2; }
.service-card.sc-residential::before { background-image: url('../img/svc-residential.jpg'); }
.service-card.sc-civil::before       { background-image: url('../img/svc-civil.jpg'); }
.service-card.sc-industrial::before  { background-image: url('../img/svc-industrial.jpg'); }
.service-num {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--blue-2);
  z-index: 2;
}
.service-card h3 {
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}
.service-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 32ch;
}

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 4rem 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat { padding-left: 1.5rem; border-left: 2px solid var(--blue); }
.stat-num {
  font-family: var(--display);
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  line-height: 1;
  color: var(--white);
  display: block;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  line-height: 1.4;
}

/* ---------- Pipeline (future projects) — asymmetric mosaic ---------- */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}
.pipeline-card {
  position: relative;
  background: var(--panel);
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.pipeline-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .8s ease;
  z-index: 0;
}
.pipeline-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,11,24,0.15) 0%, rgba(5,11,24,0.55) 50%, rgba(5,11,24,0.95) 100%);
  z-index: 1;
}
.pipeline-card:hover { transform: translateY(-4px); }
.pipeline-card:hover::before { transform: scale(1.05); }
.pipeline-card > * { position: relative; z-index: 2; }

.pc-1 { grid-column: span 7; min-height: 460px; }
.pc-1::before { background-image: url('../img/conakry-financial-district.jpg'); opacity: 0.7; }
.pc-1::after  { background: linear-gradient(180deg, rgba(5,11,24,0.05) 0%, rgba(5,11,24,0.35) 50%, rgba(5,11,24,0.95) 95%); }
.pc-2 { grid-column: span 5; min-height: 460px; }
.pc-2::before { background-image: url('https://images.unsplash.com/photo-1486325212027-8081e485255e?w=1200&q=80'); }
.pc-3 { grid-column: span 5; }
.pc-3::before { background-image: url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?w=1200&q=80'); }
.pc-4 { grid-column: span 7; }
.pc-4::before { background-image: url('https://images.unsplash.com/photo-1611273426858-450d8e3c9fce?w=1600&q=80'); }

.pipeline-card .pipeline-eyebrow {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin-bottom: 0.5rem;
  display: block;
}
.pipeline-card h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  margin-bottom: 0.6rem;
}
.pipeline-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 42ch;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--panel);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-band::before {
  content: '';
  position: absolute;
  top: 0;
  right: -10%;
  width: 2px;
  height: 200%;
  background: var(--blue);
  transform: rotate(20deg);
  transform-origin: top right;
}
.cta-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.cta-grid h2 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  max-width: 18ch;
}
.cta-grid .accent { color: var(--blue-2); }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative;
  padding: 12rem 0 5rem;
  background: var(--night);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  z-index: 0;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,11,24,0.55), rgba(5,11,24,0.95));
  z-index: 1;
}
.page-hero > * { position: relative; z-index: 2; }
.page-hero.ph-about::before    { background-image: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?w=2000&q=80'); }
.page-hero.ph-projects::before { background-image: url('https://images.unsplash.com/photo-1429497419816-9ca5cfb4571a?w=2000&q=80'); }
.page-hero.ph-contact::before  { background-image: url('https://images.unsplash.com/photo-1515263487990-61b07816b324?w=2000&q=80'); }

.breadcrumb {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 1.5rem;
}
.breadcrumb span { color: var(--blue-2); }
.breadcrumb a { color: var(--text-mute); }
.breadcrumb a:hover { color: var(--blue-2); }
.page-hero h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.92;
  margin-bottom: 1.5rem;
}
.page-hero .accent { color: var(--blue-2); }
.page-hero .lead { font-size: clamp(1rem, 1.4vw, 1.2rem); max-width: 60ch; }

/* ---------- About body ---------- */
.about-body {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 4rem;
  align-items: start;
}
.about-body h2 { margin-bottom: 1.5rem; }
.about-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}
.about-aside {
  background: var(--panel);
  border-left: 2px solid var(--blue);
  padding: 2.5rem;
  position: sticky;
  top: 6rem;
}
.about-aside h4 {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin-bottom: 1rem;
}
.about-aside p {
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

.vision-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.vv-block {
  padding: 3rem 2.5rem 3rem 0;
  border-right: 1px solid var(--line);
}
.vv-block:last-child { padding-right: 0; padding-left: 2.5rem; border-right: none; }
.vv-block .eyebrow { margin-bottom: 1.5rem; display: block; }
.vv-block h3 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.vv-block p { color: var(--text-dim); }

/* ---------- Team ---------- */
.team-section { background: var(--deep); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.team-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 2rem;
  transition: all .3s ease;
}
.team-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
}
.team-avatar {
  width: 60px; height: 60px;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}
.team-card h3 {
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
  color: var(--white);
}
.team-role {
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin-bottom: 1rem;
  display: block;
}
.team-bio {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-dim);
}

/* ---------- Principles ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 3rem;
}
.principle {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 2rem;
}
.principle:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.principle-num { font-family: var(--display); font-size: 1.5rem; color: var(--blue-2); }
.principle h3 {
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
}
.principle p { font-size: 0.95rem; color: var(--text-dim); line-height: 1.6; }

/* ---------- Projects (mosaic for portfolio page) ---------- */
.projects-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.mosaic-item {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  cursor: pointer;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.mosaic-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .8s ease;
  z-index: 0;
}
.mosaic-item img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
  z-index: 0;
}
.mosaic-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,11,24,0.1) 0%, rgba(5,11,24,0.4) 50%, rgba(5,11,24,0.95) 100%);
  z-index: 1;
}
.mosaic-item:hover { transform: translateY(-4px); }
.mosaic-item:hover img { transform: scale(1.05); }
.mosaic-item > .mosaic-content { position: relative; z-index: 2; }
.mi-1 { grid-column: span 7; min-height: 460px; }
.mi-2 { grid-column: span 5; min-height: 460px; }
.mi-3 { grid-column: span 5; min-height: 420px; }
.mi-4 { grid-column: span 7; min-height: 420px; }
.mi-5 { grid-column: span 4; }
.mi-6 { grid-column: span 4; }
.mi-7 { grid-column: span 4; }
.mosaic-eyebrow {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin-bottom: 0.4rem;
  display: block;
}
.mosaic-item h3 {
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}
.mosaic-item p {
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 40ch;
  line-height: 1.5;
}
.mosaic-tag {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: var(--blue);
  color: var(--white);
  padding: 0.35rem 0.7rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  z-index: 3;
}

/* ---------- Other works list ---------- */
.country-group { margin-top: 3rem; }
.country-group:first-child { margin-top: 2rem; }
.country-heading {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--blue);
  display: inline-block;
  margin-bottom: 0.5rem;
}
.works-list { list-style: none; margin-top: 0; }
.works-list li {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  transition: all .3s ease;
}
.country-group .works-list li:last-child { border-bottom: 1px solid var(--line); }
.works-list li:hover { padding-left: 1rem; background: linear-gradient(90deg, rgba(45,126,255,0.06), transparent); }
.work-num { font-family: var(--display); color: var(--blue-2); font-size: 1.05rem; }
.work-name {
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  letter-spacing: 0.03em;
  color: var(--white);
  text-transform: uppercase;
}
.work-loc {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 700;
}
@media (max-width: 560px) {
  .works-list li { grid-template-columns: 40px 1fr; row-gap: 0.4rem; }
  .work-loc { grid-column: 2 / 3; }
}

/* ---------- Contact page ---------- */
.contact-page {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  margin-top: 3rem;
}
.contact-info h3 {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin-bottom: 0.75rem;
  margin-top: 2.5rem;
}
.contact-info h3:first-child { margin-top: 0; }
.contact-info p, .contact-info a {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
}
.contact-info a:hover { color: var(--blue-2); }

.contact-form { background: var(--panel); border: 1px solid var(--line); padding: 2.5rem; }
.contact-form h3 { font-size: 1.8rem; letter-spacing: 0.03em; margin-bottom: 0.5rem; }
.contact-form > p { color: var(--text-dim); margin-bottom: 2rem; }
.form-row { margin-bottom: 1.25rem; }
.form-row label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 0.6rem;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--white);
  transition: border-color .2s ease;
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--text-mute); }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--blue);
}
.form-submit {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 1.15rem 2rem;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s ease;
  width: 100%;
}
.form-submit:hover { background: var(--blue-deep); }

/* ---------- Footer ---------- */
footer {
  background: var(--night);
  color: var(--text-dim);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .brand-mark-text { font-size: 2rem; margin-bottom: 4px; }
.footer-brand .brand-sub { margin-bottom: 1.5rem; display: block; }
.footer-brand p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 32ch;
  margin-bottom: 1.5rem;
}
.footer-socials { display: flex; gap: 0.5rem; }
.footer-socials a {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  color: var(--text);
  transition: all .25s ease;
}
.footer-socials a:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.footer-socials svg { width: 14px; height: 14px; }

.footer-grid h4 {
  color: var(--blue-2);
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.7rem; }
.footer-grid a:hover { color: var(--white); }

.contact-detail {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.85rem;
  align-items: start;
  margin-bottom: 0.8rem;
}
.contact-detail svg { width: 14px; height: 14px; color: var(--blue-2); margin-top: 4px; flex-shrink: 0; }
.contact-detail span, .contact-detail a { color: var(--text); font-size: 0.92rem; line-height: 1.5; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-mute);
}
.footer-bottom a:hover { color: var(--blue-2); }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .9s cubic-bezier(.2,.7,.2,1) both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .25s; }
.delay-3 { animation-delay: .4s; }
.delay-4 { animation-delay: .55s; }

/* ---------- WordPress overrides ---------- */
.nav-links li { list-style: none; }
.nav-links li.menu-item a {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.nav-links li.current-menu-item > a,
.nav-links li.current_page_item > a { color: var(--blue-2); }

footer .footer-grid ul li.menu-item { list-style: none; margin-bottom: 0.7rem; }
footer .footer-grid ul li.menu-item a { color: var(--text-dim); font-size: 0.9rem; }
footer .footer-grid ul li.menu-item a:hover { color: var(--white); }

.alignleft  { float: left;  margin: 0.5em 1.5em 1em 0; max-width: 50%; }
.alignright { float: right; margin: 0.5em 0 1em 1.5em; max-width: 50%; }
.aligncenter { display: block; margin: 1.5em auto; }
.wp-caption .wp-caption-text {
  font-size: 0.85rem;
  color: var(--text-mute);
  margin-top: 0.5rem;
  font-style: italic;
}
.pagination { display: flex; justify-content: center; gap: 0.75rem; margin-top: 3rem; }
.pagination .page-numbers {
  font-family: var(--display);
  font-size: 1rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--line-2);
  color: var(--text);
  background: var(--panel);
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.entry-content p { font-size: 1rem; line-height: 1.7; color: var(--text-dim); margin-bottom: 1.2rem; }
.entry-content h2, .entry-content h3 { margin-top: 2rem; margin-bottom: 1rem; color: var(--white); }
.entry-content blockquote {
  border-left: 3px solid var(--blue);
  padding-left: 1.5rem;
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  color: var(--white);
  margin: 2rem 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 960px) {
  /* Mobile main-nav: shrink to just menu toggle + CTA. The lang switcher stays in the top bar. */
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--night);
    padding: 1.5rem var(--gutter);
    border-bottom: 1px solid var(--line);
    gap: 1.2rem;
    z-index: 5;
  }
  .nav-inner { justify-content: space-between; position: relative; }
  .menu-toggle { display: inline-block; }

  /* Shrink brand text on mobile so logo + brand + lang switcher all fit on one line */
  .brand-mark-text { font-size: 1.25rem; }
  .brand-sub { font-size: 0.52rem; letter-spacing: 0.18em; }
  .brand-logo { width: 32px; height: 32px; }

  .hero h1 { font-size: clamp(2.8rem, 14vw, 5rem); }
  .hero::after { display: none; }
  .section-head, .about-body, .cta-grid, .contact-page, .vision-values, .principles { grid-template-columns: 1fr !important; gap: 2.5rem; }
  .vv-block { padding: 2rem 0 !important; border-right: none !important; border-bottom: 1px solid var(--line); }
  .vv-block:last-child { border-bottom: none; }
  .services-grid { grid-template-columns: 1fr; }
  .pipeline-grid, .projects-mosaic { grid-template-columns: 1fr; }
  .pc-1, .pc-2, .pc-3, .pc-4,
  .mi-1, .mi-2, .mi-3, .mi-4, .mi-5, .mi-6, .mi-7 { grid-column: span 1; min-height: 320px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .about-aside { position: static; }
}

@media (max-width: 480px) {
  /* On very small screens, hide the brand sub-text but keep logo + KARPA */
  .brand-sub { display: none; }
  .top-bar-inner { padding: 0.55rem var(--gutter); }
  .nav-cta-btn { padding: 0.55rem 0.85rem; font-size: 0.7rem; }
}

@media (max-width: 560px) {
  .stats-grid, .team-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   PROJECT GALLERY (single project page)
   ============================================ */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0;
}
.project-gallery-item {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  margin: 0;
}
.project-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.project-gallery-item:hover img { transform: scale(1.03); }

@media (max-width: 560px) {
  .project-gallery { grid-template-columns: 1fr; }
}

/* ============================================
   TEAM PAGE (Meet the team)
   ============================================ */
.team-grid-rich {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.team-card-rich {
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
}
.team-card-rich:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
}
.team-photo {
  aspect-ratio: 4/5;
  background: var(--panel-2);
  position: relative;
  overflow: hidden;
}
.team-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.team-card-rich:hover .team-photo-img { transform: scale(1.03); }

/* Placeholder when no photo is set yet */
.team-photo-empty {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background:
    linear-gradient(135deg, var(--panel-2) 0%, var(--panel) 100%);
  border-bottom: 2px dashed rgba(45,126,255,0.18);
}
.team-photo-empty::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  pointer-events: none;
}
.team-photo-initials {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--blue-2);
  letter-spacing: 0.05em;
  line-height: 1;
}
.team-photo-hint {
  font-family: var(--body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.team-body {
  padding: 1.5rem 1.75rem 1.75rem;
}
.team-name {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.team-card-rich .team-role {
  display: block;
  font-family: var(--body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin-bottom: 1rem;
}
.team-card-rich .team-bio {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-dim);
}

@media (max-width: 560px) {
  .team-grid-rich { grid-template-columns: 1fr; }
}
