/* =========================================================
   EVOLOGIC — Logo-matched design system
   Palette sampled from EVOLOGIC_LOGO_copy.png
   ========================================================= */
:root {
  --blue:       #4A9DC0;
  --blue-dark:  #2E7A9A;
  --blue-deep:  #1A4F63;
  --blue-deeper:#0F3344;
  --teal:       #2A9D7C;
  --green:      #72C142;
  --green-dark: #4A8A28;
  --blue-light: #E6F4FA;
  --blue-mid:   #C8E6F2;
  --teal-light: #E1F5EE;
  --sand:       #F7FBFD;
  --rule:       #D4E8F0;
  --ink:        #1A2E38;
  --ink-soft:   #4A6470;
  --ink-muted:  #7A9AA8;
  --white:      #FFFFFF;
  --max:        1160px;
  --radius:     8px;
  --radius-lg:  12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
h1,h2,h3,h4 { margin: 0; line-height: 1.2; color: var(--ink); }

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

/* =========================================================
   TYPOGRAPHY UTILITIES
   ========================================================= */
.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-block;
  padding: 13px 26px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn-primary { background: var(--green); color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.28); }
.btn-outline { background: transparent; color: var(--blue-dark); border: 1.5px solid var(--blue-mid); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 36px; width: auto; }
.nav { display: flex; gap: 4px; }
.nav a {
  font-size: 0.88rem; font-weight: 500;
  color: var(--ink-soft); padding: 7px 14px; border-radius: 6px;
}
.nav a:hover { color: var(--blue); background: var(--blue-light); }
.nav a.active { color: var(--blue-dark); background: var(--blue-light); font-weight: 600; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; border-radius: 1px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: linear-gradient(135deg, var(--blue-deeper) 0%, var(--blue-dark) 55%, var(--teal) 100%);
  padding-top: 72px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 380px; height: 380px;
  border: 60px solid rgba(255,255,255,0.05);
  border-radius: 50%;
}
.hero::after {
  content: "";
  position: absolute; right: 80px; bottom: 40px;
  width: 180px; height: 180px;
  border: 32px solid rgba(114,193,66,0.12);
  border-radius: 50%;
}
.hero-inner {
  padding-top: 60px; padding-bottom: 56px;
  position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22);
  border-radius: 20px; padding: 5px 14px;
  font-size: 0.76rem; font-weight: 600; color: rgba(255,255,255,0.85);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 22px;
}
.hero-badge::before {
  content: ""; width: 7px; height: 7px;
  background: var(--green); border-radius: 50%;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 700; color: #fff; line-height: 1.1;
  max-width: 600px; margin-bottom: 18px;
}
.hero h1 span { color: #A8E063; }
.hero-sub {
  font-size: 1.05rem; color: rgba(255,255,255,0.72);
  max-width: 520px; line-height: 1.7; margin-bottom: 30px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-photo {
  margin-top: 48px;
  height: 280px;
  background: rgba(0,0,0,0.22);
  border-radius: 12px 12px 0 0;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px 12px 0 0; }
.hero-photo-placeholder {
  font-size: 0.82rem; color: rgba(255,255,255,0.3);
  border: 1.5px dashed rgba(255,255,255,0.2);
  padding: 8px 18px; border-radius: 6px;
}

/* =========================================================
   PROOF STRIP
   ========================================================= */
.proof-strip {
  display: grid; grid-template-columns: repeat(4,1fr);
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}
.proof-cell {
  padding: 24px 20px;
  border-right: 1px solid var(--rule);
}
.proof-cell:last-child { border-right: none; }
.proof-number {
  font-size: 2.2rem; font-weight: 700;
  color: var(--blue); display: block; line-height: 1;
}
.proof-label {
  font-size: 0.84rem; color: var(--ink-soft);
  margin-top: 6px; display: block; line-height: 1.45;
}
.proof-bar {
  height: 3px; background: var(--green);
  border-radius: 2px; width: 32px; margin-top: 12px;
}

/* =========================================================
   SECTION SHARED
   ========================================================= */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-alt { background: var(--sand); }
.section h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700; margin-bottom: 16px;
}
.section-lead {
  font-size: 1.02rem; color: var(--ink-soft);
  max-width: 580px; line-height: 1.7;
}

/* =========================================================
   PROGRAMME LEDGER
   ========================================================= */
.ledger-table {
  margin-top: 32px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ledger-head {
  display: grid; grid-template-columns: 180px 130px 1fr;
  gap: 16px; padding: 12px 20px;
  background: var(--blue-light);
  border-bottom: 1px solid var(--rule);
}
.ledger-head span {
  font-size: 0.72rem; font-weight: 700;
  color: var(--blue-dark); text-transform: uppercase; letter-spacing: 0.08em;
}
.ledger-row {
  display: grid; grid-template-columns: 180px 130px 1fr;
  gap: 16px; padding: 16px 20px;
  border-bottom: 1px solid #F2F8FB;
  align-items: center; transition: background 0.12s;
}
.ledger-row:last-child { border-bottom: none; }
.ledger-row:hover { background: #FAFEFF; }
.ledger-country { font-size: 0.94rem; font-weight: 600; color: var(--ink); }
.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 600;
  padding: 4px 10px; border-radius: 20px;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.status-complete { color: var(--teal); background: var(--teal-light); }
.status-complete::before { background: var(--teal); }
.status-active { color: var(--blue-dark); background: var(--blue-light); }
.status-active::before { background: var(--blue); }
.status-pipeline { color: #7A5C00; background: #FFF8E1; }
.status-pipeline::before { background: #F5A623; }
.ledger-note { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.5; }
.ledger-photo-slot {
  margin-top: 20px; height: 180px;
  border: 1.5px dashed var(--blue-mid);
  border-radius: var(--radius); display: flex;
  align-items: center; justify-content: center;
  background: var(--sand);
}
.ledger-photo-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.ledger-photo-slot span { font-size: 0.84rem; color: var(--blue); opacity: 0.55; }

/* =========================================================
   ABOUT / TWO-COL
   ========================================================= */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.two-col h2 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); margin-bottom: 14px; }

/* =========================================================
   CAPABILITIES GRID
   ========================================================= */
.cap-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 12px;
  margin-top: 32px;
}
.cap-card {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); padding: 24px;
  transition: border-color 0.15s, transform 0.15s;
}
.cap-card:hover { border-color: var(--blue-mid); transform: translateY(-2px); }
.cap-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--blue-light); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 14px;
}
.cap-card h3 { font-size: 1rem; font-weight: 600; color: var(--blue-dark); margin-bottom: 8px; }
.cap-card p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.65; margin: 0; }

/* =========================================================
   PROJECTS PIPELINE (NEW)
   ========================================================= */
.pipeline-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 16px;
  margin-top: 32px;
}
.pipeline-card {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.15s, transform 0.15s;
}
.pipeline-card:hover { border-color: var(--blue-mid); transform: translateY(-2px); }
.pipeline-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 20px;
  width: fit-content;
}
.tag-development { background: #FFF8E1; color: #7A5C00; }
.tag-development::before { content: ""; width: 5px; height: 5px; background: #F5A623; border-radius: 50%; }
.tag-pipeline { background: var(--blue-light); color: var(--blue-dark); }
.tag-pipeline::before { content: ""; width: 5px; height: 5px; background: var(--blue); border-radius: 50%; }
.tag-active { background: var(--teal-light); color: var(--teal); }
.tag-active::before { content: ""; width: 5px; height: 5px; background: var(--teal); border-radius: 50%; }
.pipeline-card h3 { font-size: 0.98rem; font-weight: 700; color: var(--ink); }
.pipeline-card p { font-size: 0.87rem; color: var(--ink-soft); line-height: 1.6; margin: 0; }
.pipeline-meta {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px;
}
.pipeline-meta span {
  font-size: 0.75rem; background: var(--sand);
  border: 1px solid var(--rule); border-radius: 4px;
  padding: 3px 9px; color: var(--ink-soft); font-weight: 500;
}
.pipeline-note {
  font-size: 0.8rem; color: var(--ink-muted);
  font-style: italic; margin-top: auto; padding-top: 8px;
  border-top: 1px solid var(--rule);
}

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-dark));
  padding: 64px 0;
}
.cta-band-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: #fff; max-width: 480px;
}
.cta-band .btn-primary { background: var(--green); color: #fff; font-size: 0.95rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); padding: 48px 0 32px; }
.footer-inner {
  display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap; gap: 32px;
}
.footer-logo-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.footer-logo-img { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; }
.footer-logo-text { font-size: 1rem; font-weight: 700; color: #fff; letter-spacing: 0.04em; }
.footer-tagline { font-size: 0.86rem; color: rgba(255,255,255,0.42); }
.footer-meta { text-align: right; }
.footer-meta p { font-size: 0.82rem; color: rgba(255,255,255,0.38); margin-bottom: 4px; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 28px 0 20px; }
.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.28); margin: 0; }

/* =========================================================
   INNER PAGE HERO
   ========================================================= */
.page-hero {
  background: linear-gradient(135deg, var(--blue-deeper), var(--blue-dark) 60%, var(--teal));
  padding: 100px 0 56px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -40px; bottom: -40px;
  width: 220px; height: 220px;
  border: 36px solid rgba(114,193,66,0.1); border-radius: 50%;
}
.page-hero .eyebrow { color: rgba(255,255,255,0.6); margin-bottom: 12px; }
.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #fff; max-width: 600px; margin-bottom: 14px; position: relative;
}
.page-hero p {
  font-size: 1.02rem; color: rgba(255,255,255,0.7);
  max-width: 520px; line-height: 1.7; position: relative; margin: 0;
}

/* =========================================================
   SERVICES LIST (What We Do page)
   ========================================================= */
.service-list { border-top: 1px solid var(--rule); margin-top: 32px; }
.service-row {
  display: grid; grid-template-columns: 240px 1fr;
  gap: 40px; padding: 28px 0; border-bottom: 1px solid var(--rule);
}
.service-row h3 { font-size: 1rem; font-weight: 700; color: var(--blue-dark); }
.service-row p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.7; margin: 0; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-form h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--ink-soft); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.form-field input, .form-field textarea {
  width: 100%; background: var(--white);
  border: 1px solid var(--rule); padding: 11px 14px;
  font-family: inherit; font-size: 0.94rem; color: var(--ink);
  border-radius: var(--radius);
}
.form-field input:focus, .form-field textarea:focus {
  outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.contact-details h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.detail-row { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.detail-row:last-child { border-bottom: none; }
.detail-label {
  display: block; font-size: 0.72rem; font-weight: 700;
  color: var(--teal); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px;
}
.detail-value { font-size: 0.94rem; color: var(--ink-soft); }

/* =========================================================
   PHOTO SLOT
   ========================================================= */
.photo-slot {
  height: 200px; border: 1.5px dashed var(--blue-mid);
  border-radius: var(--radius); display: flex;
  align-items: center; justify-content: center;
  background: var(--sand); margin-top: 20px;
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.photo-slot span { font-size: 0.84rem; color: var(--blue); opacity: 0.5; }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal {  }
.reveal.visible {  }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .proof-strip { grid-template-columns: repeat(2,1fr); }
  .proof-cell:nth-child(2) { border-right: none; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .cap-grid { grid-template-columns: 1fr; }
  .pipeline-grid { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 8px; }
  .contact-grid { grid-template-columns: 1fr; }
  .ledger-head, .ledger-row { grid-template-columns: 140px 110px 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--rule); gap: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 24px; border-top: 1px solid var(--rule); border-radius: 0; }
  .nav-toggle { display: flex; }
  .pipeline-grid { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .ledger-head, .ledger-row { grid-template-columns: 1fr; }
  .ledger-head { display: none; }
  .footer-meta { text-align: left; }
}
