/* ============================================================
   Fincon Research - styles.css
   ============================================================ */

:root {
  /* Brand blues */
  --blue-900: #223a63;
  --blue-700: #305496;   /* dominant anchor */
  --blue-400: #8EA9DB;
  --blue-300: #B4C6E7;
  --blue-100: #D9E1F2;   /* light backgrounds */

  /* Accent gold */
  --gold: #FFD60A;
  --gold-deep: #FFBF1C;

  /* Neutrals */
  --ink: #16233f;
  --body: #46536b;
  --white: #ffffff;
  --bg-soft: #f6f8fc;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(48, 84, 150, 0.08);
  --shadow-md: 0 14px 40px rgba(48, 84, 150, 0.12);
  --shadow-lg: 0 24px 60px rgba(48, 84, 150, 0.18);
  --maxw: 1160px;
  --nav-h: 76px;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { color: var(--ink); line-height: 1.2; font-weight: 800; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  will-change: transform;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(255, 191, 28, 0.35);
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(255, 191, 28, 0.5);
}
.btn-block { width: 100%; text-align: center; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  transition: height .3s ease, box-shadow .3s ease, background .3s ease;
}
.navbar.scrolled {
  height: 62px;
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.95);
}
.nav-inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 34px; transition: height .3s ease; }
.navbar.scrolled .nav-logo img { height: 30px; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-weight: 600; font-size: .95rem; color: var(--ink);
  position: relative; transition: color .2s ease;
}
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--gold-deep); transition: width .25s ease;
}
.nav-links a:not(.nav-cta):hover { color: var(--blue-700); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  background: var(--blue-700); color: #fff !important;
  padding: 10px 22px; border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.nav-cta:hover { background: var(--blue-900); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 3px; background: var(--blue-700); border-radius: 3px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #eaf0fb 0%, #d9e1f2 45%, #b4c6e7 100%);
  background-size: 200% 200%;
  animation: gradientShift 16s ease infinite;
  padding: calc(var(--nav-h) + 30px) 20px 80px;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(255,255,255,.55), rgba(255,255,255,0) 60%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 820px; }
.hero-logo { height: 72px; margin: 0 auto 28px; }
.hero-title { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -.5px; }
.hero-sub {
  margin: 22px auto 34px; max-width: 620px;
  font-size: clamp(1.02rem, 2vw, 1.2rem); color: var(--blue-900);
}
.hero-btn { font-size: 1.05rem; padding: 16px 40px; }

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--blue-700); border-radius: 14px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px;
  background: var(--blue-700); border-radius: 3px; transform: translateX(-50%);
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot { 0%,100% { top: 8px; opacity: 1; } 50% { top: 22px; opacity: .3; } }

/* ---------- Stats strip ---------- */
.stats { background: var(--blue-700); color: #fff; }
.stats-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 46px 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.stat-num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; color: #fff; }
.stat-num .count { color: var(--gold); }
.stat-label { font-size: .95rem; color: var(--blue-100); margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section:nth-of-type(even) { background: var(--bg-soft); }
.about { background: #fff; }
.services { background: var(--bg-soft); }
.value { background: #fff; }
.engagement { background: var(--bg-soft); }
.clients { background: #fff; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--blue-700);
  background: var(--blue-100); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 14px; }
.section-intro, .about-lead { max-width: 760px; font-size: 1.08rem; }
.about-lead { font-size: 1.18rem; color: var(--body); line-height: 1.8; }

/* ---------- Grid + cards ---------- */
.grid { display: grid; gap: 24px; margin-top: 46px; }
.services-grid { grid-template-columns: repeat(4, 1fr); }
.value-grid { grid-template-columns: repeat(4, 1fr); }
.engagement-grid { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff; border: 1px solid var(--blue-100); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-300);
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { font-size: .96rem; }

.icon-wrap {
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-300));
  color: var(--blue-700); margin-bottom: 18px;
  transition: transform .3s ease, background .3s ease, color .3s ease;
}
.icon-wrap svg { width: 26px; height: 26px; }
.card:hover .icon-wrap {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--ink);
  transform: rotate(-6deg) scale(1.06);
}

/* Value cards slightly bolder */
.value-card { text-align: left; }

/* Engagement cards */
.engage-card { position: relative; padding-top: 40px; }
.engage-num {
  position: absolute; top: 22px; right: 26px;
  font-size: 2.4rem; font-weight: 900; color: var(--blue-100); line-height: 1;
}

/* ---------- Who we serve ---------- */
.clients-grid {
  grid-template-columns: repeat(3, 1fr);
}
.badge {
  background: linear-gradient(135deg, #fff, var(--bg-soft));
  border: 1px solid var(--blue-100); border-radius: var(--radius);
  padding: 26px 20px; text-align: center; font-weight: 700; color: var(--ink);
  font-size: 1.08rem; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease, color .3s ease;
}
.badge:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  color: #fff; box-shadow: var(--shadow-md);
}

/* ---------- Contact ---------- */
.section.contact { background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); color: #fff; }
.contact .section-title, .contact .eyebrow { color: #fff; }
.contact .eyebrow { background: rgba(255,255,255,.15); }
.contact-solo { max-width: 640px; margin: 0 auto; text-align: center; }
.contact-solo p { color: var(--blue-100); margin: 16px 0 26px; font-size: 1.12rem; }
.contact-email {
  display: inline-block; font-weight: 700; font-size: 1.15rem; color: var(--gold);
  border-bottom: 2px solid transparent; transition: border-color .2s ease;
}
.contact-email:hover { border-color: var(--gold); }

.contact-form {
  background: #fff; border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow-lg);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; font: inherit; color: var(--ink);
  border: 1.5px solid var(--blue-100); border-radius: var(--radius-sm);
  background: var(--bg-soft); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-700); background: #fff;
  box-shadow: 0 0 0 4px rgba(48, 84, 150, .12);
}
.field textarea { resize: vertical; }
.form-status { margin-top: 14px; font-weight: 600; font-size: .96rem; text-align: center; }
.form-status.success { color: #1c8a4d; }
.form-status.error { color: #c0392b; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--blue-100); padding: 40px 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-logo { height: 40px; filter: brightness(0) invert(1); opacity: .95; }
.footer-meta { text-align: right; }
.footer-meta a { color: var(--gold); font-weight: 600; }
.footer-meta a:hover { text-decoration: underline; }
.copyright { font-size: .88rem; margin-top: 6px; color: var(--blue-300); }

/* ---------- Force multiplier ---------- */
.section.multiplier {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
  color: #fff; text-align: center; position: relative; overflow: hidden;
}
.multiplier::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,214,10,.12), transparent 45%);
  pointer-events: none;
}
.multiplier .section-title { color: #fff; }
.multiplier .eyebrow { background: rgba(255,255,255,.15); color: #fff; }
.multiplier .section-intro {
  color: var(--blue-100); margin: 0 auto; text-align: center;
}
.multiplier-chart {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  align-items: end; max-width: 820px; margin: 56px auto 0;
}
.mbar { display: flex; flex-direction: column; align-items: center; }
.mbar-value { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 900; color: #fff; margin-bottom: 14px; }
.mbar-track {
  width: 78px; height: 240px; border-radius: 14px;
  background: rgba(255,255,255,.10); display: flex; align-items: flex-end;
  overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.mbar-fill {
  width: 100%; height: 0; border-radius: 14px;
  background: linear-gradient(180deg, var(--blue-300), var(--blue-400));
  transition: height 1.3s cubic-bezier(.17,.67,.3,1);
}
.mbar-label { margin-top: 16px; font-weight: 700; font-size: 1.05rem; color: #fff; }
.mbar-note { font-size: .88rem; color: var(--blue-100); margin-top: 4px; max-width: 180px; }

/* Highlighted hero bar */
.mbar-hero .mbar-value { color: var(--gold); }
.mbar-hero .mbar-track {
  width: 92px; box-shadow: inset 0 0 0 1px rgba(255,214,10,.4), 0 0 40px rgba(255,214,10,.25);
}
.mbar-hero .mbar-fill { background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%); }
.mbar-badge {
  font-size: .72rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink); background: var(--gold); padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.multiplier-caption {
  position: relative; z-index: 1;
  max-width: 640px; margin: 46px auto 0; font-size: 1.12rem; color: #fff; font-weight: 500;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services-grid, .value-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: #fff; width: min(78vw, 300px); height: calc(100vh - var(--nav-h));
    padding: 26px; box-shadow: var(--shadow-lg);
    transform: translateX(110%); transition: transform .35s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { width: 100%; padding: 12px 4px; font-size: 1.05rem; }
  .nav-cta { text-align: center; margin-top: 10px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .engagement-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-meta { text-align: center; }
}
@media (max-width: 520px) {
  .section { padding: 66px 0; }
  .services-grid, .value-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .multiplier-chart { gap: 12px; }
  .mbar-track { width: 100%; max-width: 68px; height: 180px; }
  .mbar-hero .mbar-track { width: 100%; max-width: 76px; }
  .mbar-note { font-size: .78rem; }
  .mbar-badge { font-size: .62rem; padding: 4px 8px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
