/* ============================================================
   DATUMVISTA RESEARCH LTD — Global Stylesheet
   Fonts: Fraunces (display serif) + Outfit (body sans)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;1,9..144,300;1,9..144,400&display=swap');

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #2563eb;
  --blue-light:  #60a5fa;
  --blue-pale:   #93c5fd;
  --dark:        #0a0f1e;
  --dark-mid:    #0d1a33;
  --cream:       #f8fafc;
  --slate:       #f1f5f9;
  --border:      #e8edf3;
  --text:        #1e293b;
  --text-mid:    #475569;
  --text-muted:  #64748b;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--cream);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }

/* ── NAVIGATION ───────────────────────────────────────────── */
.nav-bar {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 68px;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 68px;
  width: auto;
}

/* Hamburger – hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #475569;
  border-radius: 2px;
  transition: all 0.25s;
}

.nav-links-bar {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links-bar a {
  color: #475569;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links-bar a:hover,
.nav-links-bar a.active { color: var(--blue); }

.nav-cta {
  background: var(--blue);
  color: #ffffff;
  border: 1px solid var(--blue);
  padding: 8px 22px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  background: var(--dark);
  padding: 100px 40px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #fff;
}

/* Subtle grid texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Blue glow orb */
.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.13) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
}

.hero-overline {
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--blue-light);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 22px;
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.12;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
  color: #fff;
}

.hero h1 em {
  color: var(--blue-light);
  font-style: italic;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.45);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
  font-weight: 300;
}

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 740px;
  margin: 0 auto;
  border: 1px solid rgba(37,99,235,0.22);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(37,99,235,0.06);
}

.stat-cell {
  padding: 22px 16px;
  text-align: center;
  border-right: 1px solid rgba(37,99,235,0.18);
}
.stat-cell:last-child { border-right: none; }

.stat-val {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--blue-light);
  line-height: 1;
}

.stat-lbl {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 6px;
  font-weight: 400;
}

/* Hero buttons */
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  padding: 13px 30px;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.03em;
  transition: background 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: #1d4ed8; }

.btn-secondary {
  background: transparent;
  color: rgba(255,255,255,0.65);
  padding: 13px 30px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 7px;
  font-size: 13px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}

/* ── SECTION BASE ─────────────────────────────────────────── */
.sec { padding: 72px 40px; }
.sec.bg-slate { background: var(--slate); }
.sec.bg-white { background: #fff; }
.sec.bg-dark  { background: var(--dark); }

.inner { max-width: 1060px; margin: 0 auto; }

.sec-eyebrow {
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--blue);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}

.sec-h {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.2rem);
  font-weight: 300;
  color: var(--dark);
  line-height: 1.18;
  margin-bottom: 18px;
}
.sec-h em { color: var(--blue); font-style: italic; }
.sec-h.light { color: #fff; }
.sec-h.light em { color: var(--blue-light); }

.sec-rule {
  width: 36px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  margin-bottom: 24px;
}

.sec-p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.8;
  font-weight: 300;
}

/* Section header centered block */
.sec-header-center {
  text-align: center;
  margin-bottom: 40px;
}
.sec-header-center .sec-rule {
  margin: 0 auto 0;
}

/* ── ABOUT GRID ───────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}

/* Timeline */
.tl {
  background: var(--dark);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid rgba(37,99,235,0.2);
}

.tl-row {
  display: flex;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tl-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.tl-yr {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--blue-light);
  min-width: 42px;
  padding-top: 2px;
  flex-shrink: 0;
}

.tl-body {
  color: rgba(255,255,255,0.55);
  font-size: 12.5px;
  line-height: 1.65;
  font-weight: 300;
}
.tl-body b {
  color: rgba(255,255,255,0.85);
  display: block;
  margin-bottom: 3px;
  font-weight: 500;
  font-size: 13px;
}

/* ── SERVICE CARDS ────────────────────────────────────────── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.svc {
  background: #fff;
  border-radius: 10px;
  padding: 24px 20px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: default;
}
.svc:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.08);
}

.svc-icon {
  width: 36px;
  height: 36px;
  background: #eff6ff;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 17px;
}

.svc h3 {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 8px;
}
.svc p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}

/* ── SPECIALISATIONS ──────────────────────────────────────── */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.spec {
  background: #fff;
  border-left: 3px solid var(--blue);
  padding: 18px 20px;
  border-radius: 0 8px 8px 0;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.spec:hover { box-shadow: 0 4px 16px rgba(37,99,235,0.07); }

.spec h4 {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 5px;
}
.spec p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}

/* ── SECTORS GRID ─────────────────────────────────────────── */
.sect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 28px;
}

.sect-cell {
  background: var(--dark);
  padding: 22px 14px;
  text-align: center;
  cursor: default;
  transition: background 0.18s;
}
.sect-cell:hover { background: rgba(37,99,235,0.09); }

.sect-cell .ic {
  font-size: 20px;
  display: block;
  margin-bottom: 8px;
}
.sect-cell .nm {
  font-size: 11.5px;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
}

/* ── CONFIDENTIALITY BAR ──────────────────────────────────── */
.conf-bar {
  background: var(--dark-mid);
  padding: 26px 40px;
  border-top: 1px solid rgba(37,99,235,0.2);
  border-bottom: 1px solid rgba(37,99,235,0.2);
}

.conf-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1060px;
  margin: 0 auto;
}

.conf-icon {
  width: 38px;
  height: 38px;
  background: rgba(37,99,235,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.conf-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  line-height: 1.65;
}
.conf-copy b {
  color: var(--blue-pale);
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
  font-size: 13.5px;
}

/* ── REACH ────────────────────────────────────────────────── */
.reach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}

.reach-panel {
  background: var(--dark);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid rgba(37,99,235,0.2);
}

.reach-panel-label {
  font-size: 10px;
  letter-spacing: 0.17em;
  color: var(--blue-light);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
}

.c-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
}
.c-row:last-child { border-bottom: none; }

.c-pip {
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Method tags */
.method-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.mtag {
  border: 1px solid #dde3ec;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 11.5px;
  color: var(--text-mid);
  background: #fff;
  font-weight: 400;
}

/* ── CONTACT FORM ─────────────────────────────────────────── */
.contact-wrap {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.cform {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.cform input,
.cform textarea,
.cform select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 13.5px;
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background: var(--cream);
  font-weight: 300;
  transition: border-color 0.2s;
  outline: none;
}
.cform input:focus,
.cform textarea:focus { border-color: var(--blue); }
.cform textarea { resize: vertical; }

.cform button {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 7px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}
.cform button:hover { background: #1d4ed8; }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  padding: 44px 40px;
  text-align: center;
  border-top: 1px solid rgba(37,99,235,0.25);
}

.footer-logo-img {
  height: 50px;
  width: auto;
  margin: 0 auto 14px;
  opacity: 0.85;
}

.footer-name {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.footer-name span { color: var(--blue-light); }

.footer-tag {
  font-size: 10.5px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.footer-nav a {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
  font-weight: 300;
}
.footer-nav a:hover { color: var(--blue-light); }

.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.18);
  font-weight: 300;
}

/* ── INDUSTRIES PAGE — LIGHT VARIANT ─────────────────────── */
.sect-grid.light .sect-cell {
  background: #fff;
}
.sect-grid.light .sect-cell:hover {
  background: var(--slate);
}
.sect-grid.light .sect-cell .nm {
  color: var(--text);
}

/* ── THANK YOU PAGE ───────────────────────────────────────── */
.thankyou-wrap {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
}

.thankyou-icon {
  width: 64px;
  height: 64px;
  background: #eff6ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 28px;
}

/* ── MOBILE HAMBURGER MENU OPEN STATE ─────────────────────── */
.nav-bar.menu-open .nav-links-bar {
  display: flex;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ── TABLET (≤ 900px) ─────────────────────────────────────── */
@media (max-width: 900px) {

  /* Nav */
  .nav-bar {
    padding: 0 24px;
    height: auto;
    flex-wrap: wrap;
    gap: 0;
  }

  .nav-logo { padding: 14px 0; }

  .nav-toggle {
    display: flex;
    margin-left: auto;
    padding: 14px 0;
  }

  .nav-links-bar {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    padding: 12px 0 18px;
    border-top: 1px solid #e2e8f0;
  }

  .nav-links-bar a {
    padding: 10px 0;
    width: 100%;
    text-align: center;
    font-size: 13.5px;
  }

  .nav-links-bar .nav-cta {
    margin-top: 8px;
  }

  /* Hero */
  .hero { padding: 70px 24px 56px; }
  .hero h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }

  /* Stats strip — 2×2 on tablet */
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(3) {
    border-right: 1px solid rgba(37,99,235,0.18);
    border-top: 1px solid rgba(37,99,235,0.18);
  }
  .stat-cell:nth-child(4) {
    border-top: 1px solid rgba(37,99,235,0.18);
    border-right: none;
  }

  /* Sections */
  .sec { padding: 56px 24px; }

  /* Grids — 2 columns on tablet */
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: 1fr; }
  .sect-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .reach-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Conf bar */
  .conf-bar { padding: 20px 24px; }

  /* Footer */
  .footer { padding: 36px 24px; }
  .footer-nav { gap: 16px; }
}

/* ── MOBILE (≤ 540px) ─────────────────────────────────────── */
@media (max-width: 540px) {

  /* Hero */
  .hero { padding: 56px 20px 48px; }
  .hero h1 { font-size: 1.95rem; }
  .hero-desc { font-size: 0.92rem; }

  /* Stats — single column */
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }

  /* Sections */
  .sec { padding: 44px 20px; }

  /* All grids → single column */
  .svc-grid,
  .spec-grid,
  .sect-grid,
  .about-grid,
  .reach-grid { grid-template-columns: 1fr !important; }

  /* Sector grid */
  .sect-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Timeline rows */
  .tl-row { flex-direction: column; gap: 4px; }
  .tl-yr  { min-width: unset; }

  /* Typography scale-down */
  .sec-h { font-size: 1.65rem; }

  /* Footer */
  .footer { padding: 32px 20px; }
  .footer-nav { gap: 14px; }
  .footer-nav a { font-size: 11.5px; }

  /* Conf bar */
  .conf-bar { padding: 18px 20px; }
  .conf-inner { flex-direction: column; align-items: flex-start; }

  /* Buttons */
  .hero-btns { flex-direction: column; gap: 10px; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; }
}
