/* Think Tech Solutions — modern theme */
:root {
  --navy: #0b1730;
  --navy-2: #12213f;
  --teal: #17c3b2;
  --teal-dark: #0ea89b;
  --ink: #0b1730;
  --muted: #5b6b8c;
  --bg: #f7f9fc;
  --white: #ffffff;
  --border: #e6eaf2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 23, 48, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 23, 48, 0.14);
  --lav: #eaf1fb;
  --lav-2: #dbe8fa;
  --violet: #1f5fbf;
  --navy: #0e2a4d;
  --navy-2: #143a68;
}

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

body {
  margin: 0;
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4,
.hero h1, .page-hero h1,
.section-head h2, .split h2, .card h3, .team-card h3, .leader-name,
.cta-band h2 {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}

.logo img.mark {
  height: 68px;
  width: auto;
  border-radius: 0;
  display: block;
}

.footer-logo img.mark {
  height: 44px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 1.08rem;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

/* Services dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav-dropdown-toggle svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s;
}
.nav-dropdown:hover .nav-dropdown-toggle svg,
.nav-dropdown.open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -18px;
  min-width: 300px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 50;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  white-space: normal;
  line-height: 1.3;
}
.dropdown-menu li a:hover {
  background: var(--lav);
  color: var(--violet);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--violet);
  color: var(--white) !important;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: transform 0.2s, background 0.2s;
}

.nav-cta:hover { background: #5a48d6; transform: translateY(-1px); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--lav) 0%, var(--white) 75%);
  color: var(--ink);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 10%, rgba(108,92,231,0.14), transparent 45%),
    radial-gradient(circle at 5% 70%, rgba(23,195,178,0.12), transparent 45%);
}

.hero-inner {
  position: relative;
  padding: 90px 24px 80px;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--violet);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero p.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 520px;
  margin-bottom: 34px;
}

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--violet);
  color: var(--white);
}
.btn-primary:hover { background: #5a48d6; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(108,92,231,0.28); }

.btn-outline {
  border-color: var(--border);
  color: var(--ink);
  background: var(--white);
}
.btn-outline:hover { background: var(--lav); transform: translateY(-2px); }

.hero-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, var(--lav-2), var(--lav));
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.stat-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.stat-card .num { font-size: 1.5rem; font-weight: 800; color: var(--violet); }
.stat-card .label { font-size: 0.78rem; color: var(--muted); }

/* Sections */
section { padding: 90px 0; }
.section-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .eyebrow { color: var(--teal-dark); }
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 10px 0 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--muted); font-size: 1.02rem; }

.section-alt { background: var(--white); }

/* Cards grid */
.grid {
  display: grid;
  gap: 26px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  scroll-margin-top: 100px;
}
.card:target {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(31,95,191,0.15);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.icon svg { width: 22px; height: 22px; color: var(--violet); }

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(31,95,191,0.12), rgba(23,195,178,0.14));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card h3 { font-size: 1.15rem; margin: 0 0 4px; font-weight: 700; }
.card .subtitle { font-size: 0.88rem; font-weight: 600; color: var(--violet); margin: 0 0 12px; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0 0 14px; }
.card .outcome {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--ink);
}
.card .outcome strong { color: var(--violet); font-weight: 700; }
.card ul { margin-top: 10px; }
.card ul li {
  font-size: 0.9rem;
  color: var(--muted);
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

/* Mission / About split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split img {
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.split h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; margin: 0 0 18px; }
.split p { color: var(--muted); margin-bottom: 16px; }

/* Team */
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 30px;
  text-align: left;
}
.team-card .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), #4f7cff);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.team-card h3 { margin: 0 0 4px; font-size: 1.1rem; }
.team-card .role { color: var(--teal-dark); font-size: 0.85rem; font-weight: 600; margin-bottom: 12px; }
.team-card p { color: var(--muted); font-size: 0.92rem; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy), #163156);
  color: var(--white);
  border-radius: 24px;
  padding: 60px;
  text-align: center;
  margin: 0 24px;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 14px; font-weight: 800; }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 540px; margin: 0 auto 30px; }

/* Values row */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value-item { text-align: center; }
.value-item .icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(31,95,191,0.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.value-item .icon svg { width: 24px; height: 24px; }
.value-item h4 { margin: 0 0 8px; font-size: 1rem; }
.value-item p { color: var(--muted); font-size: 0.88rem; margin: 0; }

/* Careers form */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.perk {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.perk .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(31,95,191,0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.perk .icon svg { width: 20px; height: 20px; }
.perk h4 { margin: 0 0 6px; font-size: 0.98rem; }
.perk p { margin: 0; color: var(--muted); font-size: 0.88rem; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin: 0 0 18px; }
.footer-grid p, .footer-grid a { font-size: 0.9rem; color: rgba(255,255,255,0.62); }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a:hover { color: var(--teal); }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--white); font-weight: 700; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.social-links a:hover { background: var(--teal); }

/* Leadership team (Finergic-style) */
.leader-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.leader-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 24px 30px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.leader-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.leader-photo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--violet), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 2.1rem;
  overflow: hidden;
  border: 4px solid var(--lav);
}
.leader-photo img { width: 100%; height: 100%; object-fit: cover; }
.leader-name { font-size: 1.1rem; font-weight: 700; margin: 0 0 4px; color: var(--ink); }
.leader-role { font-size: 0.85rem; color: var(--muted); margin: 0 0 18px; text-transform: uppercase; letter-spacing: 0.05em; }
.leader-links { display: flex; justify-content: center; gap: 10px; }
.leader-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--lav);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--violet);
  transition: background 0.2s, color 0.2s;
}
.leader-links a:hover { background: var(--violet); color: var(--white); }
.leader-links a.disabled { opacity: 0.4; pointer-events: none; }

@media (max-width: 720px) {
  .leader-grid { grid-template-columns: 1fr; }
}

/* Testimonials */
.testimonial-card {
  background: var(--lav);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--border);
}
.testimonial-card .quote-mark {
  font-size: 2.2rem;
  color: var(--violet);
  line-height: 1;
  margin-bottom: 10px;
  font-weight: 800;
}
.testimonial-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.testimonial-card .person { display: flex; align-items: center; gap: 12px; }
.testimonial-card .person .dot {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--teal));
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}
.testimonial-card .person .name { font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.testimonial-card .person .title { font-size: 0.8rem; color: var(--muted); }

/* Client logo marquee */
.logo-marquee {
  padding: 50px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.logo-marquee .marquee-label {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 30px;
}
.marquee-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 72px;
  animation: marquee-scroll 30s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 14px;
  color: var(--muted);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0.75;
  filter: grayscale(1);
  transition: opacity 0.2s, filter 0.2s;
}
.logo-chip:hover { opacity: 1; filter: grayscale(0); color: var(--navy); }
.logo-chip img { height: 32px; width: auto; display: block; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(180deg, var(--lav) 0%, var(--white) 85%);
  color: var(--ink);
  padding: 90px 0 70px;
  text-align: center;
}
.page-hero .eyebrow { color: var(--violet); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 12px 0 0; font-weight: 800; color: var(--ink); }
.page-hero p { color: var(--muted); max-width: 560px; margin: 16px auto 0; }

/* Utility */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 130px; }
  .hero-media { order: -1; max-width: 480px; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .perks { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .nav-cta { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; margin: 0 16px; }
}

@media (max-width: 720px) {
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 20px 24px;
    gap: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .nav-dropdown-toggle svg { color: rgba(255,255,255,0.7); }

  .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,0.04);
    margin-top: 10px;
    min-width: 0;
  }
  .nav-dropdown.open .dropdown-menu {
    display: block;
  }
  .dropdown-menu li a {
    color: rgba(255,255,255,0.75);
  }
  .dropdown-menu li a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--white);
  }
}
