/* ==========================================================
   FirstLink Research & Analytics — Shared Stylesheet
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --navy:       #0d1b2a;
  --dark:       #111827;
  --card-dark:  #1a2744;
  --blue:       #2563eb;
  --blue-light: #3b82f6;
  --blue-pale:  #dbeafe;
  --white:      #ffffff;
  --off-white:  #f8fafc;
  --text-dark:  #1e293b;
  --text:       #475569;
  --muted:      #94a3b8;
  --border:     #e2e8f0;
  --radius:     12px;
  --shadow:     0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- NAV ---- */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.nav-logo span { color: #60a5fa; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { background: rgba(255,255,255,0.1); color: #fff; }
.nav-links .btn-dashboard {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  padding: 8px 18px;
  margin-left: 8px;
  border-radius: 8px;
}
.nav-links .btn-dashboard:hover { background: var(--blue-light); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: 0.2s; }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #1a2744 55%, #0d2137 100%);
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(37,99,235,0.14) 0%, transparent 70%);
  top: -150px; right: -100px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(14,165,233,0.09) 0%, transparent 70%);
  bottom: -80px; left: 0;
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  position: relative;
  z-index: 1;
}
.hero-tag {
  display: inline-block;
  background: rgba(37,99,235,0.18);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(37,99,235,0.28);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -1.5px;
  max-width: 680px;
  margin-bottom: 22px;
}
.hero h1 span { color: #60a5fa; }
.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.62);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff;
  font-size: 15px; font-weight: 600;
  padding: 13px 28px; border-radius: 10px;
  border: none; cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: var(--blue-light); transform: translateY(-1px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: rgba(255,255,255,0.85);
  font-size: 15px; font-weight: 600;
  padding: 13px 28px; border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.22); cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }
.btn-blue-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--blue);
  font-size: 15px; font-weight: 600;
  padding: 13px 28px; border-radius: 10px;
  border: 1.5px solid var(--blue); cursor: pointer;
  transition: background 0.15s;
}
.btn-blue-outline:hover { background: var(--blue-pale); }

/* ---- STATS ---- */
.stats-bar {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.stat-item {
  text-align: center;
  padding: 36px 20px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  display: block;
  font-size: 2.6rem; font-weight: 800;
  color: var(--blue); letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 14px; color: var(--muted); font-weight: 500; }

/* ---- SECTION LAYOUT ---- */
.section { padding: 96px 24px; }
.section-dark { background: var(--navy); color: #fff; }
.section-grey { background: var(--off-white); }
.container { max-width: 1200px; margin: 0 auto; }

.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
}
.section-label.light { color: #93c5fd; }
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; color: var(--text-dark);
  letter-spacing: -0.5px; line-height: 1.2; margin-bottom: 16px;
}
.section-title.light { color: #fff; }
.section-sub {
  font-size: 17px; color: var(--text); max-width: 580px;
  line-height: 1.75; margin-bottom: 52px;
}
.section-sub.light { color: rgba(255,255,255,0.6); }

/* ---- TESTIMONIAL HERO ---- */
.testimonial-hero {
  background: linear-gradient(135deg, #1a2744 0%, #0d1b2a 100%);
  padding: 80px 24px;
}
.testimonial-card {
  max-width: 780px; margin: 0 auto; text-align: center;
}
.quote-mark {
  font-size: 5rem; color: rgba(96,165,250,0.25);
  font-family: Georgia, serif; line-height: 1;
  margin-bottom: 12px;
}
.testimonial-text {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: rgba(255,255,255,0.88); font-style: italic;
  line-height: 1.75; margin-bottom: 28px;
}
.testimonial-author { font-size: 15px; font-weight: 700; color: #60a5fa; }
.testimonial-role { font-size: 13px; color: rgba(255,255,255,0.38); margin-top: 4px; }

/* ---- SERVICE CARDS (numbered) ---- */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px; margin-top: 16px;
}
.report-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.report-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.report-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: var(--blue-pale); color: var(--blue);
  font-size: 12px; font-weight: 800; letter-spacing: 0.5px;
  border-radius: 9px; margin-bottom: 20px;
}
.report-card h3 { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.report-card .by { font-size: 12px; color: var(--muted); font-style: italic; margin-top: 10px; }

/* ---- EINSTEIN QUOTE ---- */
.quote-banner {
  background: var(--blue);
  padding: 72px 24px; text-align: center;
}
.einstein-quote {
  max-width: 680px; margin: 0 auto;
}
.einstein-quote blockquote {
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  font-weight: 600; color: #fff;
  font-style: italic; line-height: 1.65; margin-bottom: 18px;
}
.einstein-attr { font-size: 14px; color: rgba(255,255,255,0.65); font-weight: 600; letter-spacing: 1px; }

/* ---- FAQ ---- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px; margin-bottom: 10px; overflow: hidden;
}
.faq-q {
  width: 100%; background: #fff; border: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  font-size: 15px; font-weight: 600; color: var(--text-dark);
  cursor: pointer; text-align: left; gap: 16px;
  font-family: inherit;
}
.faq-q:hover { background: var(--off-white); }
.faq-icon {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue-pale); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 400; transition: transform 0.2s, background 0.15s;
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq-a {
  display: none;
  padding: 16px 24px 22px;
  font-size: 15px; color: var(--text); line-height: 1.75;
  border-top: 1px solid var(--border);
}
.faq-item.open .faq-a { display: block; }

/* ---- CTA BANNER ---- */
.cta-section {
  background: linear-gradient(135deg, #0d1b2a 0%, #1a2744 100%);
  padding: 96px 24px; text-align: center;
}
.cta-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800; color: #fff; max-width: 560px;
  margin: 0 auto 18px; line-height: 1.22; letter-spacing: -0.5px;
}
.cta-section p {
  font-size: 17px; color: rgba(255,255,255,0.58);
  max-width: 460px; margin: 0 auto 36px;
}
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- TEAM ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px; margin-top: 52px;
}
.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  background: linear-gradient(135deg, #1a2744, #0d2137);
}
.team-info { padding: 22px 20px; }
.team-name { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 3px; }
.team-role { font-size: 12px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 12px; }
.team-bio { font-size: 13px; color: var(--text); line-height: 1.65; }

/* ---- ABOUT SPLIT ---- */
.about-blocks { display: flex; flex-direction: column; gap: 80px; margin-bottom: 80px; }
.about-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.about-split.reverse { direction: rtl; }
.about-split.reverse > * { direction: ltr; }
.about-content h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800; color: var(--text-dark);
  margin-bottom: 20px; line-height: 1.25; letter-spacing: -0.5px;
}
.about-content p { font-size: 16px; color: var(--text); line-height: 1.82; }
.about-img-wrap {
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #1a2744, #0d2137);
  aspect-ratio: 4/3;
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* ---- SERVICES LIST (full) ---- */
.services-full-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px; margin-top: 16px;
}
.svc-item {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 20px 22px;
  transition: background 0.15s;
}
.svc-item:hover { background: rgba(255,255,255,0.09); }
.svc-icon {
  flex-shrink: 0; width: 38px; height: 38px;
  background: rgba(37,99,235,0.2); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.svc-item h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.svc-item p { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.55; }

/* ---- TESTIMONIALS (services page) ---- */
.testi-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; margin-top: 52px;
}
.testi-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px;
  position: relative;
}
.testi-card::before {
  content: '\201C';
  position: absolute; top: 14px; right: 22px;
  font-size: 4.5rem; color: var(--blue-pale);
  font-family: Georgia, serif; line-height: 1;
}
.testi-card p { font-size: 15px; color: var(--text); font-style: italic; line-height: 1.72; margin-bottom: 22px; }
.testi-name { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.testi-role { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ---- CONTACT ---- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 400px;
  gap: 56px; align-items: start;
}
.contact-form-box {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px;
  box-shadow: var(--shadow);
}
.contact-form-box h3 { font-size: 20px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.contact-form-box > p { font-size: 14px; color: var(--text); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit; color: var(--text-dark);
  background: var(--off-white); transition: border-color 0.15s, background 0.15s; outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,0.08); }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  width: 100%; background: var(--blue); color: #fff;
  font-size: 15px; font-weight: 600; padding: 14px;
  border: none; border-radius: 10px; cursor: pointer;
  transition: background 0.15s; font-family: inherit;
}
.btn-submit:hover { background: var(--blue-light); }
.form-success {
  display: none;
  background: rgba(22,163,74,0.1); border: 1px solid #16a34a;
  color: #15803d; border-radius: 8px; padding: 14px 16px;
  font-size: 14px; font-weight: 600; margin-top: 12px;
}
.contact-info-panel { display: flex; flex-direction: column; gap: 20px; }
.info-card {
  background: var(--navy); border-radius: var(--radius); padding: 28px;
}
.info-card h4 { font-size: 15px; font-weight: 700; color: #60a5fa; margin-bottom: 20px; }
.info-row {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px;
}
.info-row:last-child { margin-bottom: 0; }
.info-ico {
  flex-shrink: 0; width: 36px; height: 36px;
  background: rgba(37,99,235,0.2); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.info-txt { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.5; }
.info-txt strong { display: block; color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.map-placeholder {
  background: linear-gradient(135deg, #1a2744, #0d2137);
  border-radius: var(--radius); height: 200px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
  color: rgba(255,255,255,0.3); font-size: 14px;
  border: 1px solid rgba(255,255,255,0.08);
}
.map-placeholder .pin { font-size: 2rem; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #1a2744 100%);
  padding: 80px 24px 60px;
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.breadcrumb {
  font-size: 13px; color: rgba(255,255,255,0.38); margin-bottom: 18px;
}
.breadcrumb a { color: rgba(255,255,255,0.55); transition: color 0.15s; }
.breadcrumb a:hover { color: #60a5fa; }
.breadcrumb span { margin: 0 8px; }
.page-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800; color: #fff;
  letter-spacing: -0.5px; margin-bottom: 12px;
}
.page-hero p { font-size: 16px; color: rgba(255,255,255,0.58); max-width: 520px; }

/* ---- POLICY BODY ---- */
.policy-body { max-width: 800px; margin: 0 auto; padding: 64px 24px; }
.policy-body h2 {
  font-size: 19px; font-weight: 700; color: var(--text-dark);
  margin: 40px 0 12px; padding-top: 8px;
  border-top: 1px solid var(--border);
}
.policy-body h2:first-child { border-top: none; margin-top: 0; }
.policy-body p { font-size: 15px; color: var(--text); line-height: 1.82; margin-bottom: 14px; }
.policy-body ul { margin: 10px 0 14px 22px; }
.policy-body ul li { font-size: 15px; color: var(--text); line-height: 1.8; margin-bottom: 6px; }

/* ---- FOOTER ---- */
footer {
  background: #070d18;
  color: rgba(255,255,255,0.65);
  padding: 72px 24px 32px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 32px;
}
.footer-brand .nav-logo { font-size: 21px; margin-bottom: 16px; }
.footer-desc {
  font-size: 14px; color: rgba(255,255,255,0.42);
  line-height: 1.75; max-width: 270px; margin-bottom: 22px;
}
.footer-contact-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.42);
  margin-bottom: 10px; transition: color 0.15s;
}
.footer-contact-row:hover { color: #60a5fa; }
.footer-col h4 {
  font-size: 11px; font-weight: 700; color: #fff;
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px;
}
.footer-col a {
  display: block; font-size: 14px; color: rgba(255,255,255,0.45);
  margin-bottom: 11px; transition: color 0.15s;
}
.footer-col a:hover { color: #60a5fa; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.28); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,0.32); transition: color 0.15s; }
.footer-legal a:hover { color: #60a5fa; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .about-split { grid-template-columns: 1fr; gap: 32px; }
  .about-split.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #0d1b2a; padding: 12px 16px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links .btn-dashboard { margin-left: 0; margin-top: 6px; }
  .nav-toggle { display: flex; }
  nav { position: relative; }
  .stats-inner { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .reports-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .services-full-list { grid-template-columns: 1fr; }
  .cta-btns { flex-direction: column; align-items: center; }
  .testi-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .reports-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-inner { padding: 72px 20px 60px; }
  .section { padding: 64px 20px; }
}
