/* ============================================================
   Corpshore Kenya — Main Stylesheet
   Design tokens + layout + components (mobile-first)
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@700&display=swap');

/* ── Design Tokens ── */
:root {
  --green:       #006600;
  --green-dark:  #004d00;
  --green-light: #e8f5e8;
  --red:         #BB0000;
  --red-light:   #f9e8e8;
  --black:       #0A0A0A;
  --sand:        #F5F0E8;
  --sand-dark:   #EDE7DA;
  --gold:        #C9A84C;
  --gold-light:  #f7f0de;
  --white:       #FFFFFF;
  --grey-mid:    #6B7280;
  --grey-light:  #F3F4F6;
  --border:      #E8E2D6;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --max-w:        1280px;
  --gutter:       clamp(20px, 5vw, 48px);
  --section-y:    clamp(72px, 10vw, 140px);

  --radius-card:  20px;
  --radius-btn:   10px;
  --radius-sm:    8px;

  --shadow-card:  0 4px 24px rgba(0,0,0,0.07);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.12);

  --transition:   0.25s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Skip to content ── */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  padding: 10px 20px;
  background: var(--green);
  color: var(--white);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700;
  z-index: 10000;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

/* ── Focus ring ── */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

/* ── Typography ── */
h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.12;
}
h3 {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
}
h4 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.caption {
  font-size: 13px;
  line-height: 1.5;
  color: var(--grey-mid);
}

/* ── Kenya flag stripe ── */
.flag-stripe {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.flag-stripe span {
  display: block;
  width: 100%;
}
.flag-stripe .stripe-green { height: 4px; background: var(--green); }
.flag-stripe .stripe-white { height: 3px; background: var(--white); }
.flag-stripe .stripe-red   { height: 4px; background: var(--red);   }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--green-dark);
}
.nav-logo img { height: 36px; width: auto; }
.nav-links {
  display: none;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--green); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-cta {
  display: none;
  padding: 10px 22px;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background var(--transition);
}
.nav-cta:hover { background: var(--green-dark); }
.nav-lang {
  display: flex;
  gap: 6px;
  align-items: center;
}
.lang-btn {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-mid);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.lang-btn.active,
.lang-btn:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  overflow-y: auto;
  padding: 24px var(--gutter);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer .nav-drawer-links { display: flex; flex-direction: column; gap: 0; }
.nav-drawer .nav-drawer-links a {
  font-size: 18px;
  font-weight: 500;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--black);
}
.nav-drawer .nav-drawer-links a:hover { color: var(--green); }
.nav-drawer .nav-drawer-cta {
  margin-top: 28px;
  display: block;
  padding: 16px;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nav-drawer .nav-lang { margin-top: 24px; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-cta { display: block; }
  .nav-hamburger { display: none; }
  .nav-drawer { display: none !important; }
}

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--section-y) 0; }
.section-sand { background: var(--sand); }
.section-dark {
  background: var(--black);
  color: var(--white);
}
.section-green {
  background: var(--green);
  color: var(--white);
}

/* ── Page offset for fixed nav ── */
main { padding-top: 72px; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: clamp(560px, 80vh, 800px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-nairobi-skyline-operations.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}
.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-lead {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
  margin-bottom: 40px;
  max-width: 600px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition);
  min-height: 44px;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}
.btn-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-red {
  background: var(--red);
  color: var(--white);
}
.btn-red:hover { background: #990000; }

/* ── Trust bar ── */
.trust-bar {
  background: var(--sand);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  overflow: hidden;
}
.trust-bar-inner {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.trust-item .trust-icon {
  width: 36px;
  height: 36px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 16px;
  flex-shrink: 0;
}
.trust-item .trust-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
}

/* ── Ranking badge ── */
.rank-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px;
  border-radius: var(--radius-card);
  border: 2px solid var(--gold);
  text-align: center;
}
.rank-badge .rank-num {
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.rank-badge .rank-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--grey-mid);
  margin-top: 4px;
}
.rank-badge .rank-source {
  font-size: 11px;
  color: var(--grey-mid);
  margin-top: 2px;
}

/* ── Section headers ── */
.section-header { margin-bottom: clamp(40px, 6vw, 72px); }
.section-header.centered { text-align: center; }
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 16px; }
.section-rule {
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin: 16px 0;
}
.section-header.centered .section-rule { margin: 16px auto; }
.section-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--grey-mid);
  max-width: 620px;
}
.section-header.centered .section-lead { margin: 0 auto; }

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.card-body { padding: 28px; }
.card-dark {
  background: #161616;
  border-color: #2a2a2a;
  color: var(--white);
}

/* ── Stats grid ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-cell {
  background: var(--white);
  padding: 32px 24px;
  text-align: center;
}
.section-dark .stat-cell { background: #161616; }
.stat-cell .stat-label {
  display: block;
  font-size: 14px;
  color: var(--grey-mid);
  margin-top: 8px;
}
.stat-cell .stat-source {
  display: block;
  font-size: 11px;
  color: var(--grey-mid);
  margin-top: 4px;
}

/* ── Grid layouts ── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ── Service cards ── */
.service-card {
  padding: 32px;
  border-radius: var(--radius-card);
  background: var(--white);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--green);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition);
}
.service-card:hover::before { transform: scaleY(1); }
.service-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--green-light);
}
.service-icon {
  width: 52px;
  height: 52px;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.service-card h3 { margin-bottom: 12px; font-size: 19px; }
.service-card p { color: var(--grey-mid); font-size: 15px; margin: 0; }

/* ── Tabs ── */
.tabs { margin-bottom: 40px; }
.tab-list {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.tab-list::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 10px 20px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--grey-mid);
  border: 1px solid var(--border);
  background: var(--white);
  transition: all var(--transition);
  min-height: 44px;
}
.tab-btn:hover { border-color: var(--green); color: var(--green); }
.tab-btn.active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── FAQ accordion ── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  text-align: left;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  background: var(--white);
  transition: background var(--transition);
  min-height: 44px;
}
.faq-question:hover { background: var(--sand); }
.faq-question[aria-expanded="true"] { background: var(--green-light); color: var(--green-dark); }
.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  transition: all var(--transition);
}
.faq-question[aria-expanded="true"] .faq-icon {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--grey-mid);
  line-height: 1.75;
}

/* ── Testimonial carousel ── */
.testimonial-wrapper { position: relative; overflow: hidden; }
.testimonial-track {
  display: flex;
  transition: transform 0.4s ease;
}
.testimonial-slide {
  min-width: 100%;
  padding: 0 4px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 24px);
  font-style: italic;
  line-height: 1.5;
  color: var(--black);
  margin-bottom: 28px;
}
.testimonial-quote::before {
  content: '"';
  display: block;
  font-size: 60px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
  font-style: normal;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-author-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-light);
  border: 2px solid var(--green);
  overflow: hidden;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 15px; }
.testimonial-role { font-size: 13px; color: var(--grey-mid); }
.testimonial-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  justify-content: center;
}
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all var(--transition);
}
.carousel-btn:hover { border-color: var(--green); color: var(--green); }
.carousel-dots {
  display: flex;
  gap: 6px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background var(--transition);
}
.carousel-dot.active { background: var(--green); }

/* ── CTA banner ── */
.cta-banner {
  background: var(--green-dark);
  color: var(--white);
  padding: var(--section-y) 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    60deg,
    transparent,
    transparent 30px,
    rgba(187,0,0,0.04) 30px,
    rgba(187,0,0,0.04) 32px
  ),
  repeating-linear-gradient(
    -60deg,
    transparent,
    transparent 30px,
    rgba(0,102,0,0.06) 30px,
    rgba(0,102,0,0.06) 32px
  );
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.8); font-size: 18px; margin-bottom: 36px; }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 36px;
  padding-left: 28px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--green);
}
.timeline-year {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}
.timeline-item h4 { margin-bottom: 6px; }
.timeline-item p { font-size: 15px; color: var(--grey-mid); margin: 0; }

/* ── Pillar cards (scroll reveal) ── */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pillars-grid { grid-template-columns: repeat(5, 1fr); } }
.pillar-card {
  padding: 28px 24px;
  border-radius: var(--radius-card);
  background: var(--white);
  border: 1px solid var(--border);
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.pillar-card.revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .pillar-card { opacity: 1; transform: none; }
}
.pillar-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.pillar-icon { font-size: 36px; margin-bottom: 12px; }
.pillar-card h4 { margin-bottom: 8px; }
.pillar-card p { font-size: 14px; color: var(--grey-mid); margin: 0; }

/* ── Language pill cloud ── */
.lang-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  background: var(--white);
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: default;
}
.lang-pill:hover {
  border-color: var(--green);
  background: var(--green-light);
  color: var(--green-dark);
}
.lang-pill.featured {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.lang-pill .lang-flag { font-size: 18px; }

/* ── Calculator ── */
.calculator {
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  padding: 36px;
  box-shadow: var(--shadow-card);
}
.calc-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
}
.form-control {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: border-color var(--transition);
  min-height: 44px;
  width: 100%;
  background: var(--white);
}
.form-control:focus { border-color: var(--green); outline: none; }
.calc-result {
  background: var(--green-light);
  border-radius: var(--radius-sm);
  padding: 24px;
  border: 1px solid rgba(0,102,0,0.15);
  display: none;
}
.calc-result.show { display: block; }
.calc-result-num {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
}
.calc-disclaimer { font-size: 12px; color: var(--grey-mid); margin-top: 12px; }

/* ── Forms ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .contact-form .form-row { grid-template-columns: 1fr 1fr; }
}
textarea.form-control { min-height: 120px; resize: vertical; }
.form-note { font-size: 13px; color: var(--grey-mid); }
.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--grey-mid);
}
.form-consent input { margin-top: 2px; flex-shrink: 0; }
.form-success {
  display: none;
  background: var(--green-light);
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 20px;
  color: var(--green-dark);
  font-weight: 600;
}
.form-error {
  display: none;
  background: var(--red-light);
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 16px;
  color: var(--red);
  font-size: 14px;
}

/* ── Blog cards ── */
.blog-card { display: flex; flex-direction: column; }
.blog-card-img {
  aspect-ratio: 16/9;
  background: var(--sand);
  overflow: hidden;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.blog-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.blog-card h3 { font-size: 18px; line-height: 1.4; }
.blog-card-meta { font-size: 13px; color: var(--grey-mid); }
.blog-card-excerpt { font-size: 15px; color: var(--grey-mid); flex: 1; }
.blog-read-more {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.blog-card:hover .blog-read-more { gap: 8px; }

/* ── Case study cards ── */
.cs-card {
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  padding: 28px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cs-card:hover { box-shadow: var(--shadow-hover); border-color: var(--green-light); }
.cs-sector {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
}
.cs-card h3 { font-size: 18px; line-height: 1.4; }
.cs-highlight {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
}
.cs-card p { font-size: 15px; color: var(--grey-mid); margin: 0; flex: 1; }
.cs-results { display: flex; flex-direction: column; gap: 6px; }
.cs-result-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
}
.cs-result-item::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Jobs ── */
.job-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--grey-mid);
  border: 1px solid var(--border);
  background: var(--white);
  transition: all var(--transition);
  min-height: 44px;
}
.filter-btn:hover { border-color: var(--green); color: var(--green); }
.filter-btn.active { background: var(--green); color: var(--white); border-color: var(--green); }
.job-card {
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition);
}
.job-card:hover { box-shadow: var(--shadow-hover); border-color: var(--green-light); }
.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.job-dept {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
}
.job-card h3 { font-size: 19px; margin-top: 4px; }
.job-salary {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}
.job-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.job-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--grey-mid);
}
.job-langs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.job-lang-tag {
  padding: 3px 10px;
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}
.job-card p { font-size: 15px; color: var(--grey-mid); margin: 0; }

/* ── Map section ── */
.map-section {
  background: var(--black);
  color: var(--white);
  padding: var(--section-y) 0;
  overflow: hidden;
}
.map-wrapper {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}
.map-wrapper svg { width: 100%; height: auto; display: block; }

/* ── Cookie consent ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--black);
  color: var(--white);
  padding: 20px var(--gutter);
  z-index: 9999;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-text { font-size: 14px; color: rgba(255,255,255,0.8); flex: 1; min-width: 200px; }
.cookie-text a { color: var(--gold); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-accept {
  padding: 10px 22px;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 14px;
  transition: background var(--transition);
  min-height: 44px;
}
.cookie-accept:hover { background: var(--green-dark); }
.cookie-decline {
  padding: 10px 16px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  min-height: 44px;
}
.cookie-decline:hover { color: var(--white); }

/* ── WhatsApp float ── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 9000;
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}

/* ── Footer ── */
.footer {
  background: #0D0D0D;
  color: rgba(255,255,255,0.7);
  padding: 80px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 16px; }
.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 14px;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: 13px; }
.footer-bottom a { color: var(--gold); }
.footer-rank-links { display: flex; gap: 16px; }
.footer-rank-link {
  font-size: 12px;
  color: var(--gold);
  text-decoration: underline;
}

/* ── Breadcrumb ── */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--grey-mid);
}
.breadcrumb ol {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
}
.breadcrumb li + li::before { content: '›'; }
.breadcrumb a { color: var(--green); }

/* ── Industry selector ── */
.industry-selector { display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 768px) {
  .industry-selector { flex-direction: row; }
}
.industry-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
}
.industry-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
  background: transparent;
  text-align: left;
  transition: all var(--transition);
  border: 1px solid transparent;
  min-height: 44px;
}
.industry-btn:hover { background: var(--sand); }
.industry-btn.active {
  background: var(--green-light);
  color: var(--green-dark);
  border-color: rgba(0,102,0,0.2);
  font-weight: 700;
}
.industry-content { flex: 1; }
.industry-panel { display: none; }
.industry-panel.active { display: block; }

/* ── Page hero (inner pages) ── */
.page-hero {
  background: var(--black);
  color: var(--white);
  padding: clamp(60px, 10vw, 120px) 0 clamp(40px, 6vw, 80px);
}
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p { font-size: 18px; color: rgba(255,255,255,0.75); max-width: 600px; margin: 0; }

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ── Utility ── */
.text-center { text-align: center; }
.text-green  { color: var(--green); }
.text-gold   { color: var(--gold); }
.text-grey   { color: var(--grey-mid); }
.text-white  { color: var(--white); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ── Loading spinner ── */
.loading {
  display: flex;
  justify-content: center;
  padding: 60px;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── No jobs empty state ── */
.no-results {
  text-align: center;
  padding: 60px;
  color: var(--grey-mid);
}
.no-results h3 { margin-bottom: 12px; color: var(--black); }
