/* ==========================================================================
   Techfinity Inc — Site Stylesheet
   ========================================================================== */

:root {
  /* Brand palette */
  --navy-900: #081426;
  --navy-800: #0B1E39;
  --navy-700: #12294F;
  --navy-600: #1B3865;
  --blue-500: #2F6FED;
  --teal-500: #14B8A6;
  --teal-400: #2DD4BF;
  --amber-500: #F5A623;
  --amber-400: #FFC24D;

  --ink-900: #0E1522;
  --ink-700: #33405A;
  --ink-500: #5B677E;
  --ink-300: #90A0B7;
  --ink-100: #E7ECF3;
  --surface-0: #FFFFFF;
  --surface-50: #F6F8FB;
  --surface-100: #EEF2F8;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(8, 20, 38, 0.06), 0 1px 3px rgba(8, 20, 38, 0.08);
  --shadow-md: 0 8px 24px rgba(8, 20, 38, 0.10);
  --shadow-lg: 0 20px 48px rgba(8, 20, 38, 0.16);

  --max-width: 1200px;
  --header-h: 84px;
}

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

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink-700);
  background: var(--surface-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: "Sora", "Inter", sans-serif;
  color: var(--navy-800);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--blue-500); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }
ul { padding-left: 1.2em; }

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

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

.lede {
  font-size: 1.15rem;
  color: var(--ink-500);
  max-width: 700px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--amber-500); color: var(--navy-900); }
.btn-primary:hover { background: var(--amber-400); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); box-shadow: var(--shadow-md); }
.btn-ghost { background: var(--surface-100); color: var(--navy-800); }
.btn-ghost:hover { background: var(--ink-100); }
.btn-sm { padding: 9px 18px; font-size: .85rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #081426;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand svg { height: 34px; width: auto; }
.brand-word { font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.25rem; color: #fff; }
.brand-word span { color: var(--teal-400); }

.main-nav { display: flex; align-items: center; height: 100%; }
.main-nav > ul { display: flex; align-items: center; height: 100%; list-style: none; margin: 0; padding: 0; gap: 0; }
.main-nav > ul > li { position: relative; height: 100%; display: flex; align-items: center; }
.main-nav > ul > li > a {
  color: #E9EEF7;
  font-weight: 600;
  font-size: .87rem;
  padding: 10px 9px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.open > a { background: rgba(255,255,255,.08); text-decoration: none; color: #fff; }
.main-nav .caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; opacity: .7; }

/* Dropdown panel */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 50;
}
.main-nav li.has-dropdown:hover > .dropdown,
.main-nav li.has-dropdown.open > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown.mega { display: flex; min-width: 560px; padding: 18px; gap: 8px; }
.dropdown.mega .mega-col { flex: 1; min-width: 220px; padding: 0 10px; }
.dropdown.mega .mega-col h5 {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-300); margin: 4px 10px 8px; font-weight: 700;
}

.dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-700);
  font-size: .9rem;
  font-weight: 500;
}
.dropdown a:hover { background: var(--surface-50); color: var(--blue-500); text-decoration: none; }

.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-toggle { display: none; }

/* Mobile nav */
@media (max-width: 1300px) {
  .header-cta .btn-outline { display: none; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--navy-900); overflow-y: auto;
    display: none; height: auto; padding: 10px 0 40px;
  }
  .main-nav.mobile-open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; height: auto; gap: 0; padding: 10px 16px; }
  .main-nav > ul > li { height: auto; display: block; border-bottom: 1px solid rgba(255,255,255,.06); }
  .main-nav > ul > li > a { padding: 16px 8px; justify-content: space-between; }
  .dropdown, .dropdown.mega { position: static; display: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; background: rgba(255,255,255,.03); flex-wrap: wrap; min-width: 0; }
  .main-nav li.open > .dropdown { display: flex; }
  .dropdown a { color: #cfd8e6; }
  .dropdown a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; background: transparent; border: none; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px; }
}
@media (min-width: 1301px) {
  .nav-toggle { display: none; }
}
@media (max-width: 480px) {
  .header-inner { padding: 0 16px; gap: 8px; }
  .header-cta { gap: 8px; }
  .header-cta .btn-primary { padding: 10px 14px; font-size: .78rem; }
  .brand-word { font-size: 1.05rem; }
}
@media (max-width: 340px) {
  .header-inner { padding: 0 12px; gap: 6px; }
  .header-cta .btn-primary { padding: 9px 10px; font-size: .72rem; }
  .brand-word { font-size: .92rem; }
  .brand svg { height: 28px; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb-bar { background: var(--surface-50); border-bottom: 1px solid var(--surface-100); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0; font-size: .85rem; color: var(--ink-500); }
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--blue-500); }
.breadcrumb .sep { color: var(--ink-300); }
.breadcrumb .current { color: var(--navy-800); font-weight: 600; }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: radial-gradient(1200px 500px at 15% -10%, #16305a 0%, transparent 60%), linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: 64px 0 68px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; right: -80px; bottom: -120px; width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,184,166,.35), transparent 70%);
}
.page-hero .eyebrow { color: var(--teal-400); }
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero .lede { color: #C7D2E3; max-width: 680px; }

/* ---------- Home Hero ---------- */
.home-hero {
  background: radial-gradient(1400px 600px at 80% -20%, #163a63 0%, transparent 55%), linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #fff;
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.home-hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.home-hero h1 { color: #fff; }
.home-hero .lede { color: #C7D2E3; font-size: 1.2rem; }
.home-hero .hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.home-hero .hero-stats { display: flex; gap: 30px; margin-top: 46px; flex-wrap: wrap; }
.home-hero .hero-stats div strong { display: block; font-family: "Sora", sans-serif; font-size: 1.7rem; color: #fff; }
.home-hero .hero-stats div span { font-size: .82rem; color: var(--ink-300); }

.hero-art {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
}
.hero-art svg { width: 78%; height: 78%; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--surface-50); }
.section-navy { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .lede { color: #C7D2E3; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin: 0 0 44px; text-align: left; }

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

.card {
  background: #fff;
  border: 1px solid var(--surface-100);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-500), var(--blue-500));
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  color: #fff;
}
.card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card p { color: var(--ink-500); font-size: .95rem; margin-bottom: 0; }
.card a.card-link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: .88rem; }

.capability-card {
  background: var(--navy-800);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
}
.capability-card:hover { background: var(--navy-700); }
.capability-card h3 { color: #fff; font-size: 1.05rem; margin-bottom: 8px; }
.capability-card p { color: var(--ink-300); font-size: .88rem; }
.capability-card .num { font-family: "Sora", sans-serif; font-size: .78rem; color: var(--teal-400); font-weight: 700; letter-spacing: .06em; }

.pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--surface-100); color: var(--navy-700); font-size: .8rem; font-weight: 600;
}

.logo-strip { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: center; }
.logo-chip {
  display: flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 22px; border-radius: var(--radius-sm);
  background: var(--surface-50); border: 1px solid var(--surface-100);
  color: var(--ink-500); font-weight: 700; font-size: .85rem; letter-spacing: .03em;
}

.testimonial {
  background: #fff; border-radius: var(--radius-md); padding: 28px 26px;
  border: 1px solid var(--surface-100); box-shadow: var(--shadow-sm);
}
.testimonial p.quote { font-size: 1rem; color: var(--ink-700); font-style: italic; }
.testimonial .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testimonial .avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-500), var(--teal-500));
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700;
}
.testimonial .who strong { display: block; font-size: .9rem; color: var(--navy-800); }
.testimonial .who span { font-size: .8rem; color: var(--ink-500); }

.stat-row { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; text-align: center; }
.stat-row strong { display: block; font-family: "Sora", sans-serif; font-size: 2.1rem; color: var(--navy-800); }
.stat-row span { color: var(--ink-500); font-size: .9rem; }

.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { display: flex; gap: 12px; padding: 8px 0; align-items: flex-start; }
.list-check li::before {
  content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px;
  background: linear-gradient(135deg, var(--teal-500), var(--blue-500));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.media-block {
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--navy-800), var(--navy-600));
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.media-block svg { width: 62%; height: 62%; opacity: .95; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700) 60%, #14304f);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; left: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,.25), transparent 70%);
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { color: var(--ink-300); margin-bottom: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sidebar / detail layout used on leaf pages */
.detail-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
.side-card { background: var(--surface-50); border-radius: var(--radius-md); padding: 24px; border: 1px solid var(--surface-100); margin-bottom: 20px; }
.side-card h4 { margin-bottom: 12px; }
.side-card ul { padding-left: 0; list-style: none; }
.side-card ul li { padding: 7px 0; border-bottom: 1px dashed var(--surface-100); font-size: .92rem; }
.side-card ul li a { color: var(--ink-700); font-weight: 600; }
.side-card ul li a.active, .side-card ul li a:hover { color: var(--blue-500); }

table.info-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.info-table th, table.info-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--surface-100); }
table.info-table th { color: var(--ink-500); font-weight: 600; width: 40%; }

/* Forms */
.form-card { background: #fff; border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); border: 1px solid var(--surface-100); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--navy-800); }
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--ink-100);
  font-family: inherit; font-size: .95rem; color: var(--ink-700); background: var(--surface-50);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue-500); background: #fff;
}
.form-note { font-size: .8rem; color: var(--ink-500); margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--ink-300); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-grid h5 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 9px; }
.footer-grid ul li a { color: var(--ink-300); font-size: .9rem; }
.footer-grid ul li a:hover { color: #fff; }
.footer-about p { font-size: .9rem; color: var(--ink-300); max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.footer-social a:hover { background: var(--teal-500); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 22px 0; font-size: .82rem; color: var(--ink-300);
}
.footer-bottom a { color: var(--ink-300); }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Sitemap page ---------- */
.sitemap-grid { columns: 3; column-gap: 40px; }
.sitemap-grid .sm-block { break-inside: avoid; margin-bottom: 28px; }
.sitemap-grid .sm-block h4 { border-bottom: 2px solid var(--surface-100); padding-bottom: 8px; }
.sitemap-grid ul { list-style: none; padding-left: 0; }
.sitemap-grid ul li { padding: 4px 0; font-size: .9rem; }
.sitemap-grid ul ul { padding-left: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .home-hero .container { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .two-col { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .sitemap-grid { columns: 2; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { padding: 36px 24px; flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .sitemap-grid { columns: 1; }
  .section { padding: 56px 0; }
}
