﻿/* ============================================================
   RouteBrain — main.css
   autoWeb4.0 v5.3 | Dark theme | Accent: #f97316
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --accent:       #f97316;
  --accent-dark:  #ea6c0d;
  --bg:           #0a0d14;
  --surface:      #111622;
  --surface-2:    #1a1f2e;
  --border:       rgba(255,255,255,0.08);
  --text:         #e8eaf0;
  --text-muted:   #8892a4;
  --nav-height:   72px;
  --radius:       8px;
  --transition:   0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 18px !important;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }

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

ul { list-style: none; }

/* ---------- Typography ---------- */
h1 { font-size: 61px !important; line-height: 1.1; font-weight: 700; color: var(--text); }
h2 { font-size: 43px !important; line-height: 1.2; font-weight: 700; color: var(--text); }
h3 { font-size: 28px !important; line-height: 1.3; font-weight: 600; color: var(--text); }
h4 { font-size: 22px; line-height: 1.4; font-weight: 600; color: var(--text); }
p  { margin-bottom: 1em; color: var(--text-muted); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.page-top {
  padding-top: var(--nav-height, 72px);
}

section { padding: 80px 0; }

.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 48px;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ---------- Funding Bar ---------- */
#funding-bar {
  display: none;
  background: linear-gradient(90deg, #1a1f2e 0%, #111622 100%);
  border-bottom: 1px solid var(--accent);
  padding: 10px 24px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text);
  position: fixed;
  top: 0; left: 0; right: 0;
  top: 0;
  z-index: 10000;
  text-align: center;
  flex-wrap: wrap;
}

#funding-bar .funding-text { color: var(--text); }
#funding-bar .funding-text strong { color: var(--accent); }
#funding-bar .funding-cta {
  background: var(--accent);
  color: #fff;
  padding: 4px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
#funding-bar .funding-cta:hover { background: var(--accent-dark); color: #fff; }
#funding-bar .funding-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  padding: 0 4px;
  margin-left: 8px;
  line-height: 1;
}
#funding-bar .funding-close:hover { color: var(--text); }

/* ---------- Navbar ---------- */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  height: var(--nav-height);
  background: rgba(10,13,20,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: top 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav-logo:hover { color: var(--accent); }

.nav-logo svg { flex-shrink: 0; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu li a {
  font-size: 15px !important;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.nav-menu li a:hover,
.nav-menu li.active a {
  color: var(--text);
  background: var(--surface-2);
}

.nav-menu li.active a { color: var(--accent); }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 6px !important;
}

.nav-cta:hover { background: var(--accent-dark) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
}

/* ---------- Hero (index.html) ---------- */
#hero {
  background-color: var(--bg);
  background-image: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
                    url('../images/hero-main.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.hero-content {
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.3);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-title { margin-bottom: 20px; }

.hero-title span { color: var(--accent); }

.hero-subtitle {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---------- Page Hero ---------- */
.page-hero {
  background-color: var(--surface);
  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                    url('../images/about-hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 360px;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.page-hero-inner { max-width: 680px; }

.page-hero h1 { font-size: 52px !important; margin-bottom: 12px; }

.page-hero p { font-size: 18px; color: rgba(255,255,255,0.75); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,115,22,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(249,115,22,0.06);
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-item .stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- Features Grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: border-color var(--transition), transform var(--transition);
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(249,115,22,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
  color: var(--accent);
}

.feature-card h3 { margin-bottom: 10px; }
.feature-card p  { font-size: 16px; margin: 0; }

/* ---------- Platform Feature Split ---------- */
.platform-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}

.platform-feature.reverse { direction: rtl; }
.platform-feature.reverse > * { direction: ltr; }

.platform-feature-image img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.feature-list {
  list-style: none;
  margin-top: 24px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 16px;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--accent);
  margin-top: 4px;
  flex-shrink: 0;
}

/* ---------- Solutions ---------- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.solution-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.solution-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.solution-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.solution-card-body {
  padding: 24px;
}

.solution-card-body h3 { margin-bottom: 10px; }
.solution-card-body p  { font-size: 16px; margin: 0; }

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 { margin-bottom: 16px; }
.cta-section p  { font-size: 18px; max-width: 560px; margin: 0 auto 36px; }

/* ---------- About Page ---------- */
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-story-img img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.value-icon {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 14px;
}

.value-card h3 { font-size: 20px !important; margin-bottom: 8px; }
.value-card p  { font-size: 15px; margin: 0; }

/* ---------- Team Cards ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.team-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.team-avatar {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: var(--surface-2);
  position: relative;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.initial-avatar {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
}

.team-card-body {
  padding: 24px 20px;
}

.team-card-body h3 { margin-bottom: 4px; font-size: 22px !important; }

.team-role {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.team-card-body p { font-size: 15px; margin: 0; }

/* ---------- Blog Listing ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.blog-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body {
  padding: 24px;
}

.blog-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  gap: 16px;
}

.blog-tag {
  display: inline-block;
  background: rgba(249,115,22,0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.blog-card-body h3 {
  font-size: 20px !important;
  margin-bottom: 10px;
  line-height: 1.3;
}

.blog-card-body p { font-size: 15px; margin-bottom: 16px; }

.blog-read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-read-more:hover { gap: 10px; }

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(249,115,22,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
}

.contact-info-item h4 { font-size: 16px; margin-bottom: 4px; }
.contact-info-item p  { font-size: 15px; margin: 0; }

/* ---------- Contact Form ---------- */
.contact-form .form-group { margin-bottom: 20px; }

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 16px;
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}

.contact-form textarea { resize: vertical; min-height: 140px; }

.contact-form select option { background: var(--surface); }

/* ---------- Footer ---------- */
#site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}

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

.footer-brand p {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 14px;
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 15px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 14px; color: var(--text-muted); margin: 0; }
.footer-bottom a { color: var(--text-muted); font-size: 14px; }
.footer-bottom a:hover { color: var(--accent); }

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

/* ---------- Logo (SVG inline) ---------- */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Utility ---------- */
.bg-surface   { background: var(--surface); }
.bg-surface-2 { background: var(--surface-2); }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ---------- Cookie Banner ---------- */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 9999;
  padding: 1.2em 2em;
}

#cookie-accept,
.cookie-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.cookie-btn.decline,
#cookie-decline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 14px;
  cursor: pointer;
}

#cookie-decline:hover { border-color: var(--text-muted); color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  h1 { font-size: 48px !important; }
  h2 { font-size: 36px !important; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-feature { gap: 40px; }
}

@media (max-width: 768px) {
  h1 { font-size: 38px !important; }
  h2 { font-size: 30px !important; }
  h3 { font-size: 22px !important; }

  .nav-menu { display: none; }
  .nav-toggle { display: flex; align-items: center; }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    gap: 4px;
    z-index: 8999;
  }

  .hero-title { font-size: 38px !important; }

  .platform-feature,
  .about-story-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .platform-feature.reverse { direction: ltr; }

  .features-grid,
  .solutions-grid,
  .values-grid,
  .blog-grid,
  .team-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .hero-actions { flex-direction: column; align-items: flex-start; }

  #funding-bar { font-size: 13px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .btn { padding: 12px 20px; font-size: 14px; }
}


/* Generated icon images */
.fa-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
}
.feature-icon img,
.feature-icon .fa-icon-img {
  width: 32px;
  height: 32px;
}
.hero img.fa-icon-img,
.hero-content img.fa-icon-img {
  width: 48px;
  height: 48px;
}
