/* custom.css — Soarce (soarceusa.org) */
/* Accent: #3b82f6 | Industry: Advanced Materials / Nanofiber */

:root {
  --accent: #3b82f6;
  --accent-dark: #2563eb;
  --accent-light: #93c5fd;
  --bg: #f8f9fa;
  --surface: #ffffff;
  --surface2: #f0f4f8;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: rgba(0,0,0,0.08);
  --radius: 10px;
  --nav-height: 70px;
}

/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  color: var(--text);
  line-height: 1.8;
  background: var(--bg);
}

h1, h2, h3, h4 {
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--text);
}

h1 { font-size: 58px; font-weight: 700; line-height: 1.15; }
h2 { font-size: 40px; font-weight: 700; line-height: 1.2; }
h3 { font-size: 22px; font-weight: 600; line-height: 1.4; }

p { font-size: 18px; line-height: 1.8; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

/* ── Accent overrides ─────────────────────────── */
.tm-text-primary { color: var(--accent) !important; }
.tm-btn-primary {
  background: var(--accent) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 12px 28px !important;
  border-radius: var(--radius) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
  display: inline-block;
}
.tm-btn-primary:hover {
  background: var(--accent-dark) !important;
  color: #ffffff !important;
  text-decoration: none;
}

/* ── Navbar overrides ─────────────────────────── */
.tm-navbar {
  background: rgba(0,0,0,0.75) !important;
  backdrop-filter: blur(8px);
  padding: 14px 0 !important;
}
.tm-navbar.scroll {
  background: #0d1a2b !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.tm-navbar .navbar-brand {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.tm-navbar .nav-link,
.tm-navbar .tm-nav-link {
  font-size: 15px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,0.85) !important;
  padding: 8px 14px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  transition: color 0.2s !important;
}
.tm-navbar .nav-link:hover,
.tm-navbar .tm-nav-link:hover,
.tm-navbar .nav-link.active,
.tm-navbar .tm-nav-link.active {
  color: var(--accent-light) !important;
}

/* ── Page-level nav (non-hero pages) ──────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #0d1a2b;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

/* ── Page hero (sub-pages) ────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #0d1a2b 0%, #1a3050 100%);
  color: #ffffff;
  padding: 100px 0 70px;
  text-align: center;
}
.page-hero h1 {
  color: #ffffff;
  font-size: 52px;
  margin-bottom: 16px;
}
.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 20px;
  max-width: 640px;
  margin: 0 auto;
}

/* ── Section ──────────────────────────────────── */
.section {
  padding: 80px 0;
  background: var(--bg);
  color: var(--text);
}
.section.alt-bg {
  background: var(--surface2);
}
.section h2 { margin-bottom: 40px; }

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

/* ── Container narrow ─────────────────────────── */
.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Feature grid ─────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  color: var(--text);
  transition: box-shadow 0.2s;
}
.feature-card:hover {
  box-shadow: 0 6px 30px rgba(59,130,246,0.12);
}
.feature-card .feature-icon {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}
.feature-card h3 {
  margin-bottom: 12px;
  color: var(--text);
}
.feature-card p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 10px;
}

/* ── Steps grid ───────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.step {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  color: var(--text);
}
.step-num {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 14px;
}
.step h3 { color: var(--text); margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 16px; line-height: 1.7; }

/* ── Metrics bar ──────────────────────────────── */
.metrics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 40px;
}
.metric-item {
  flex: 1;
  min-width: 180px;
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.2);
  color: #ffffff;
}
.metric-item:last-child { border-right: none; }
.metric-item .metric-val {
  font-size: 38px;
  font-weight: 700;
  color: #ffffff;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.metric-item .metric-label {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}

/* ── Team grid ────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  color: var(--text);
}
.team-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 10%;
  margin: 0 auto 20px;
  display: block;
  border: 3px solid var(--accent-light);
}
.team-card h3 { color: var(--text); margin-bottom: 6px; }
.team-role {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}
.team-bio { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 14px; }
.team-email { color: var(--accent); font-size: 14px; word-break: break-all; }

/* ── Blog grid ────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
  color: var(--text);
}
.blog-card:hover { box-shadow: 0 6px 28px rgba(59,130,246,0.12); }
.blog-card a { color: inherit; text-decoration: none; display: block; }
.blog-card-img {
  height: 200px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  font-style: italic;
}
.blog-card-body { padding: 24px; }
.blog-card-body time {
  font-size: 13px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 10px;
}
.blog-card-body h3 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
}
.blog-card-body p { color: var(--text-muted); font-size: 15px; line-height: 1.65; }

/* ── Contact page ─────────────────────────────── */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
}
.contact-list li i {
  color: var(--accent);
  font-size: 18px;
  margin-top: 2px;
  min-width: 20px;
}
.contact-form .form-control {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 16px;
  width: 100%;
  margin-bottom: 16px;
  outline: none;
}
.contact-form .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

/* ── CTA section ──────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #0d1a2b 0%, #1a3050 100%);
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}
.cta-section h2 {
  color: #ffffff;
  margin-bottom: 16px;
}
.cta-section p {
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto 32px;
}
.btn-primary-white {
  display: inline-block;
  background: #ffffff;
  color: #0d1a2b !important;
  padding: 14px 36px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-primary-white:hover {
  background: var(--accent-light);
  color: #0d1a2b !important;
}

/* ── About values ─────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  color: var(--text);
}
.value-card i {
  font-size: 26px;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}
.value-card h3 { color: var(--text); margin-bottom: 10px; }
.value-card p { color: var(--text-muted); font-size: 16px; line-height: 1.7; }

/* ── Backed by section ────────────────────────── */
.investor-box {
  background: var(--surface2);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 32px;
  max-width: 640px;
  color: var(--text);
}
.investor-box h3 { color: var(--text); margin-bottom: 8px; }
.investor-box p { color: var(--text-muted); font-size: 16px; margin: 0; }

/* ── Footer ───────────────────────────────────── */
.site-footer {
  background: #0d1a2b;
  color: #ffffff;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h3 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 16px;
  font-weight: 600;
}
.site-footer p {
  color: rgba(255,255,255,0.65);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 8px;
}
.footer-address {
  color: rgba(255,255,255,0.5) !important;
  font-size: 14px !important;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer ul li a:hover { color: var(--accent-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
}
.footer-bottom p {
  color: rgba(255,255,255,0.45);
  font-size: 14px;
  margin: 0;
}

/* ── Cookie banner ────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0d1a2b;
  color: #ffffff;
  z-index: 9999;
  padding: 20px 24px;
  border-top: 2px solid var(--accent);
}
.cookie-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-text strong { color: #ffffff; font-size: 16px; display: block; margin-bottom: 4px; }
.cookie-text p { color: rgba(255,255,255,0.75); font-size: 14px; margin: 0; line-height: 1.5; }
.cookie-text p a { color: var(--accent-light); }
.cookie-buttons { display: flex; gap: 12px; flex-shrink: 0; }
#cookie-accept {
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
#cookie-accept:hover { background: var(--accent-dark); }
#cookie-decline {
  background: transparent;
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}
#cookie-decline:hover { color: #ffffff; border-color: rgba(255,255,255,0.6); }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 768px) {
  h1 { font-size: 36px !important; }
  h2 { font-size: 28px !important; }
  .page-hero h1 { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .metrics-row { flex-direction: column; }
  .metric-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .cookie-content { flex-direction: column; align-items: flex-start; }
}

/* Hero fix: background + text colors */
.tm-hero-title {
    color: #ffffff !important;
}
.tm-hero-subtitle {
    color: #c8d6e5 !important;
}

/* Hero background image */
#infinite {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)), url('../images/hero-bg.jpg') center/cover no-repeat !important;
}

/* Fix: template overlay blocks clicks */
.tm-bg-overlay {
    pointer-events: none !important;
}
