/* ===== Microbrowse corporate site ===== */

:root {
  --navy-950: #060f1f;
  --navy-900: #0a1a30;
  --navy-800: #0d2340;
  --navy-700: #12305a;
  --navy-600: #1a3f73;
  --navy-500: #2a5590;
  --ink-300: #9fb2cc;
  --ink-200: #c4d1e3;
  --ink-100: #e8eef7;
  --teal-400: #5fe0cf;
  --teal-300: #8aeadf;
  --white: #ffffff;
  --max-w: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 60px -25px rgba(6, 15, 31, 0.55);
  --shadow-card: 0 12px 30px -18px rgba(6, 15, 31, 0.5);
}

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

body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--navy-950);
  color: var(--ink-100);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Sora", "Manrope", sans-serif;
  color: var(--white);
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--ink-200); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--teal-400);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal-400);
  color: var(--navy-950);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(95, 224, 207, 0.55); }
.btn-ghost {
  background: transparent;
  border-color: rgba(232, 238, 247, 0.25);
  color: var(--ink-100);
}
.btn-ghost:hover { border-color: var(--teal-400); color: var(--teal-400); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(6, 15, 31, 0.78);
  border-bottom: 1px solid rgba(232, 238, 247, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 26px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-200);
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal-400); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(232,238,247,0.25);
  border-radius: 8px;
  color: var(--ink-100);
  width: 42px;
  height: 38px;
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(232,238,247,0.08);
    max-height: 0; overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links a { padding: 14px 24px; width: 100%; border-top: 1px solid rgba(232,238,247,0.06); }
  .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 120px;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(6,15,31,0.55) 0%, rgba(6,15,31,0.88) 55%, var(--navy-950) 100%),
    url("../images/hero-office.jpg") center 30% / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95,224,207,0.16), transparent 70%);
  top: -220px; right: -160px;
}
.hero-content { max-width: 680px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero .lead { font-size: 1.15rem; color: var(--ink-200); max-width: 560px; }
.hero-cta { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }

.hero-stats {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 900px;
}
.hero-stats .stat-num {
  font-family: "Sora", sans-serif;
  font-size: 2rem;
  color: var(--white);
  font-weight: 700;
}
.hero-stats .stat-label { font-size: 0.82rem; color: var(--ink-300); }
@media (max-width: 720px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 76px 0 56px;
  border-bottom: 1px solid rgba(232,238,247,0.08);
  background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero .lead { max-width: 640px; font-size: 1.05rem; }
.breadcrumb { font-size: 0.85rem; color: var(--ink-300); margin-bottom: 18px; }
.breadcrumb a { color: var(--teal-400); }

/* ---------- Sections generic ---------- */
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.alt-bg { background: var(--navy-900); }

/* ---------- Logo strip ---------- */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
}
.logo-chip {
  padding: 10px 18px;
  border: 1px solid rgba(232,238,247,0.14);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-300);
  letter-spacing: 0.02em;
}

/* ---------- About split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.split.reverse { grid-template-columns: 0.95fr 1.05fr; }
.split.reverse .split-media { order: 2; }
@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }
}

/* ---------- Stat grid ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card {
  background: var(--navy-900);
  border: 1px solid rgba(232,238,247,0.08);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.stat-card .stat-num {
  font-family: "Sora", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--teal-400);
}
.stat-card .stat-label { color: var(--ink-300); font-size: 0.9rem; margin-top: 4px; }
@media (max-width: 860px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

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

.card {
  background: var(--navy-900);
  border: 1px solid rgba(232,238,247,0.08);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(95,224,207,0.4); }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(95,224,207,0.12);
  color: var(--teal-400);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

/* ---------- Service card (with image) ---------- */
.service-card {
  background: var(--navy-900);
  border: 1px solid rgba(232,238,247,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(95,224,207,0.35); }
.service-card .media { height: 190px; overflow: hidden; position: relative; }
.service-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service-card:hover .media img { transform: scale(1.06); }
.service-card .tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(6,15,31,0.75);
  border: 1px solid rgba(95,224,207,0.4);
  color: var(--teal-400);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.service-card .body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.service-card p { flex: 1; font-size: 0.94rem; }
.service-card .meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid rgba(232,238,247,0.08);
  font-size: 0.8rem; color: var(--ink-300);
}
.service-card .meta .link { color: var(--teal-400); font-weight: 700; text-decoration: none; }
.service-card .meta a.link:hover { text-decoration: underline; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 40px; }
.timeline::before {
  content: "";
  position: absolute; left: 18px; top: 6px; bottom: 6px;
  width: 2px; background: rgba(232,238,247,0.14);
}
.timeline-item { position: relative; padding-left: 56px; margin-bottom: 36px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute; left: 10px; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--navy-950);
  border: 3px solid var(--teal-400);
}
.timeline-year {
  font-family: "Sora", sans-serif;
  color: var(--teal-400);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.timeline-item h4 { margin-bottom: 6px; font-size: 1.05rem; }
.timeline-item p { margin-bottom: 0; font-size: 0.92rem; }

/* ---------- Team ---------- */
.team-card { text-align: left; }
.team-card .photo {
  width: 100%; aspect-ratio: 1/1; border-radius: var(--radius);
  overflow: hidden; margin-bottom: 18px;
  background: var(--navy-800);
}
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4 { margin-bottom: 2px; }
.team-card .role { color: var(--teal-400); font-size: 0.85rem; font-weight: 700; margin-bottom: 10px; }
.team-card p { font-size: 0.9rem; }

/* ---------- Values ---------- */
.value-row { display: flex; gap: 20px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid rgba(232,238,247,0.08); }
.value-row:last-child { border-bottom: none; }
.value-row .num { font-family: "Sora", sans-serif; color: var(--teal-400); font-weight: 700; font-size: 1.1rem; width: 40px; flex-shrink: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  border-radius: 24px;
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute; right: -80px; top: -80px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(95,224,207,0.22), transparent 70%);
}
.cta-band h2 { margin-bottom: 8px; font-size: 1.8rem; }
.cta-band p { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 8px; color: var(--ink-200); }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--navy-900);
  border: 1px solid rgba(232,238,247,0.16);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  color: var(--ink-100);
  font-family: inherit;
  font-size: 0.95rem;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--teal-400);
}
.office-card {
  display: flex; gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(232,238,247,0.08);
}
.office-card:last-child { border-bottom: none; }
.office-card .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(95,224,207,0.12); color: var(--teal-400);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.office-card h4 { margin-bottom: 4px; font-size: 1rem; }
.office-card p { margin-bottom: 0; font-size: 0.9rem; }
.form-note { font-size: 0.8rem; color: var(--ink-300); margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(232,238,247,0.08); padding: 64px 0 32px; background: var(--navy-950); }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
@media (max-width: 860px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; max-width: 280px; }
.footer-col h5 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-300); margin-bottom: 16px;
}
.footer-col a, .footer-col li { display: block; margin-bottom: 10px; font-size: 0.9rem; color: var(--ink-200); }
.footer-col a:hover { color: var(--teal-400); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  padding-top: 28px; border-top: 1px solid rgba(232,238,247,0.08);
  font-size: 0.82rem; color: var(--ink-300);
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--teal-400); }

/* Content is always visible on load; ".reveal" is kept only as a harmless hook
   for any future purely-additive enhancement (nothing hides on it). */
