/* ============================================================
   TemiCore — Global Stylesheet
   Design System: Navy + Institutional Blue
   Font: Inter (Google Fonts)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

:root {
  --tc-navy:       #0D1F3C;
  --tc-navy-mid:   #1E3A5F;
  --tc-blue:       #1A56DB;
  --tc-blue-dark:  #1548C0;
  --tc-accent:     #0EA5E9;
  --tc-green:      #059669;
  --tc-slate:      #475569;
  --tc-mid:        #94A3B8;
  --tc-border:     #CBD5E1;
  --tc-light:      #F8FAFC;
  --tc-white:      #FFFFFF;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm:  4px;
  --radius-md:  7px;
  --radius-lg:  12px;
  --radius-xl:  16px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--tc-navy);
  background: var(--tc-white);
  -webkit-font-smoothing: antialiased;
}

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

/* ── Typography ───────────────────────────────────────────── */
h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(26px, 3.5vw, 34px); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.35; }
h4 { font-size: 15px; font-weight: 600; }

p { color: var(--tc-slate); line-height: 1.75; }

/* ── Utility ──────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tc-blue);
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 700;
  color: var(--tc-navy);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 16.5px;
  color: var(--tc-slate);
  line-height: 1.75;
  max-width: 580px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
  white-space: nowrap;
  text-decoration: none;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--tc-blue);
  color: var(--tc-white);
}
.btn-primary:hover { background: var(--tc-blue-dark); }

.btn-ghost {
  background: transparent;
  color: var(--tc-white);
  border: 1px solid rgba(255,255,255,0.30);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.65); }

.btn-outline {
  background: transparent;
  color: var(--tc-blue);
  border: 1.5px solid var(--tc-blue);
}
.btn-outline:hover { background: rgba(26,86,219,0.05); }

.btn-white {
  background: var(--tc-white);
  color: var(--tc-blue);
}
.btn-white:hover { background: #f0f4ff; }

.btn-lg {
  font-size: 15px;
  padding: 13px 28px;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--tc-navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.nav-logo {
  font-size: 19px;
  font-weight: 700;
  color: var(--tc-white);
  letter-spacing: -0.025em;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo span { color: var(--tc-accent); }

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

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color 0.15s;
  position: relative;
}
.nav-link:hover,
.nav-link.active { color: var(--tc-white); }

.nav-ctas {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mobile nav toggle */
.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: var(--tc-white);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: var(--tc-navy);
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 80% 50%, rgba(14,165,233,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(26,86,219,0.10) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner { position: relative; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--tc-accent);
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--tc-accent);
}

.hero h1 {
  color: var(--tc-white);
  max-width: 700px;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--tc-accent);
}

.hero-sub {
  font-size: 17.5px;
  color: rgba(255,255,255,0.60);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 38px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  padding-top: 44px;
  border-top: 1px solid rgba(255,255,255,0.10);
  flex-wrap: wrap;
}

.hero-stat-num {
  display: block;
  font-size: 30px;
  font-weight: 700;
  color: var(--tc-white);
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.hero-stat-label {
  font-size: 12.5px;
  color: var(--tc-mid);
}

/* ── Trust Bar ────────────────────────────────────────────── */
.trust-bar {
  background: var(--tc-white);
  border-bottom: 1px solid var(--tc-border);
  padding: 18px 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.trust-bar-inner::-webkit-scrollbar { display: none; }

.trust-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tc-mid);
  white-space: nowrap;
  flex-shrink: 0;
}

.trust-divider {
  width: 1px;
  height: 20px;
  background: var(--tc-border);
  flex-shrink: 0;
}

.trust-logos {
  display: flex;
  gap: 36px;
  align-items: center;
}

.trust-logo {
  font-size: 13px;
  font-weight: 600;
  color: #B8C4D4;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* ── Divisions ────────────────────────────────────────────── */
.divisions {
  background: var(--tc-light);
  padding: 80px 0;
}

.divisions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--tc-border);
  border: 1px solid var(--tc-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 48px;
}

.division-card {
  background: var(--tc-white);
  padding: 36px 30px;
  transition: background 0.15s;
}
.division-card:hover { background: #FDFEFF; }

.division-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
}
.division-icon.consulting { background: rgba(26,86,219,0.08); }
.division-icon.solutions  { background: rgba(14,165,233,0.10); }
.division-icon.labs       { background: rgba(5,150,105,0.10); }

.division-icon svg {
  width: 22px;
  height: 22px;
}
.division-icon.consulting svg { stroke: var(--tc-blue); }
.division-icon.solutions  svg { stroke: var(--tc-accent); }
.division-icon.labs       svg { stroke: var(--tc-green); }

.division-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--tc-navy);
  margin-bottom: 8px;
}

.division-model {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.division-model.consulting { background: rgba(26,86,219,0.08); color: var(--tc-blue); }
.division-model.solutions  { background: rgba(14,165,233,0.10); color: #0077AA; }
.division-model.labs       { background: rgba(5,150,105,0.10);  color: #047857; }

.division-desc {
  font-size: 14.5px;
  color: var(--tc-slate);
  line-height: 1.68;
  margin-bottom: 24px;
}

.division-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tc-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.15s;
}
.division-link:hover { gap: 8px; }

/* ── Why TemiCore ─────────────────────────────────────────── */
.why {
  background: var(--tc-white);
  padding: 80px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 48px;
}

.why-features {
  display: flex;
  flex-direction: column;
}

.why-feature {
  display: flex;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--tc-border);
}
.why-feature:first-child { padding-top: 0; }
.why-feature:last-child  { border-bottom: none; padding-bottom: 0; }

.why-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tc-blue);
  margin-top: 8px;
  flex-shrink: 0;
}

.why-feature-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--tc-navy);
  margin-bottom: 6px;
}

.why-feature-desc {
  font-size: 14.5px;
  color: var(--tc-slate);
  line-height: 1.68;
}

.why-callout {
  background: var(--tc-navy);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  position: sticky;
  top: 80px;
}

.why-callout-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tc-accent);
  margin-bottom: 16px;
  display: block;
}

.why-callout-quote {
  font-size: 19px;
  font-weight: 400;
  color: var(--tc-white);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 28px;
}

.why-callout-sig {
  font-size: 13px;
  color: var(--tc-mid);
}

/* ── Solutions Strip ──────────────────────────────────────── */
.solutions-strip {
  background: var(--tc-light);
  padding: 80px 0;
}

.solutions-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.product-card {
  background: var(--tc-white);
  border: 1px solid var(--tc-border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #A8C4E8;
}

.product-icon {
  font-size: 26px;
  margin-bottom: 16px;
  display: block;
}

.product-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--tc-navy);
  margin-bottom: 8px;
}

.product-desc {
  font-size: 13.5px;
  color: var(--tc-slate);
  line-height: 1.65;
  margin-bottom: 18px;
}

.product-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.status-live  .status-dot { background: var(--tc-green); }
.status-live  { color: var(--tc-green); }
.status-dev   .status-dot { background: var(--tc-accent); }
.status-dev   { color: #0077AA; }

/* ── Social Proof ─────────────────────────────────────────── */
.proof {
  background: var(--tc-navy);
  padding: 80px 0;
}

.proof-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 56px;
}

.proof-stat {
  background: rgba(255,255,255,0.03);
  padding: 36px 28px;
  text-align: center;
}

.proof-stat-num {
  display: block;
  font-size: 44px;
  font-weight: 700;
  color: var(--tc-white);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  line-height: 1;
}
.proof-stat-num em {
  font-style: normal;
  color: var(--tc-accent);
}

.proof-stat-label {
  font-size: 13.5px;
  color: var(--tc-mid);
}

.proof-quote {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.proof-quote-text {
  font-size: 19px;
  font-weight: 400;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}

.proof-quote-attr {
  font-size: 13px;
  color: var(--tc-mid);
}

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: var(--tc-blue);
  padding: 72px 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--tc-white);
  margin-bottom: 14px;
}

.cta-banner p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--tc-navy);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--tc-white);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.footer-brand-name span { color: var(--tc-accent); }

.footer-brand-tagline {
  font-size: 13.5px;
  color: var(--tc-mid);
  line-height: 1.65;
  margin-bottom: 22px;
  max-width: 240px;
}

.footer-contact-email {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.footer-col-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.58);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--tc-white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 12.5px;
  color: rgba(255,255,255,0.28);
}

.footer-legal {
  display: flex;
  gap: 22px;
}

.footer-legal a {
  font-size: 12.5px;
  color: rgba(255,255,255,0.32);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.65); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links,
  .nav-ctas .btn-ghost { display: none; }

  .nav-toggle { display: flex; }

  .divisions-grid { grid-template-columns: 1fr; }
  .why-grid       { grid-template-columns: 1fr; }
  .products-grid  { grid-template-columns: repeat(2, 1fr); }
  .proof-stats    { grid-template-columns: 1fr; }
  .footer-top     { grid-template-columns: 1fr 1fr; }

  .hero { padding: 60px 0 72px; }
  .hero-stats { gap: 28px; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .products-grid { grid-template-columns: 1fr; }
  .footer-top    { grid-template-columns: 1fr; }
  .hero-ctas     { flex-direction: column; }
  .cta-banner-btns { flex-direction: column; align-items: center; }
  .proof-stats   { grid-template-columns: 1fr; }
}

/* ── Mobile Nav Overlay ───────────────────────────────────── */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--tc-navy);
  z-index: 300;
  flex-direction: column;
  padding: 24px 28px 40px;
  overflow-y: auto;
}

.nav-mobile.open { display: flex; }

.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.nav-mobile-close {
  background: none;
  border: none;
  color: var(--tc-white);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-mobile-link {
  font-size: 22px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-mobile-link:hover { color: var(--tc-white); }

.nav-mobile-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 40px;
}
.nav-mobile-ctas .btn { justify-content: center; font-size: 15px; padding: 14px; }

/* ── Page-specific: Inner Pages ───────────────────────────── */
.page-hero {
  background: var(--tc-navy);
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 90% 50%, rgba(14,165,233,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-inner { position: relative; }

.page-hero h1 {
  color: var(--tc-white);
  max-width: 640px;
  margin-bottom: 18px;
}

.page-hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.60);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 32px;
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.40);
  margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,0.50); text-decoration: none; }
.breadcrumb a:hover { color: var(--tc-white); }
.breadcrumb span { color: rgba(255,255,255,0.30); }
