/* TalentPilot - main.css
   Accent: #7c3aed | Theme: light
   autoWeb4.0 v5.3
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-muted: #555566;
  --accent: #7c3aed;
  --accent-dark: #5b21b6;
  --accent-light: #ede9fe;
  --border: rgba(0,0,0,0.08);
  --radius: 12px;
  --gap: 3em;
  --nav-height: 72px;
  --funding-bar-h: 0px;
  --sidebar-w: 0px;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif !important;
  font-size: 18px !important;
  line-height: 1.9 !important;
  margin: 0;
  padding: 0;
}

p, li {
  font-size: 18px !important;
  line-height: 1.9 !important;
}

h1 { font-size: 61px !important; font-weight: 700 !important; line-height: 1.1 !important; }
h2 { font-size: 43px !important; font-weight: 700 !important; line-height: 1.2 !important; }
h3 { font-size: 28px !important; font-weight: 600 !important; line-height: 1.3 !important; }
h4 { font-size: 18px !important; font-weight: 600 !important; line-height: 1.4 !important; }
h5 { font-size: 16px !important; font-weight: 600 !important; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; height: auto; }
.img-wrap { overflow: hidden; width: 100%; }
.img-wrap img { width: 100%; object-fit: cover; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.page-top {
  padding-top: var(--nav-height, 72px);
}

.section-padding {
  padding: 80px 0;
}

.text-center { text-align: center; }
.text-white { color: #fff !important; }

/* ============================================================
   FUNDING BAR
   ============================================================ */
#funding-bar {
  display: none;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  padding: 10px 20px;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
}
#funding-bar a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}
#funding-bar-close {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  cursor: pointer;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 13px;
  margin-left: 8px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#site-nav {
  background: var(--surface) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: top 0.3s;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.nav-brand {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--accent) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-menu li a {
  font-size: 15px !important;
  color: var(--text) !important;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
}

.nav-menu li.active a,
.nav-menu li a:hover {
  color: var(--accent) !important;
  background: var(--accent-light);
}

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 15px !important;
}
.nav-cta:hover {
  background: var(--accent-dark) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text);
  font-size: 20px;
}

/* ============================================================
   HERO (index.html)
   ============================================================ */
#hero {
  background-color: #1a0533;
  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;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  width: 100%;
}

#hero .container {
  position: relative;
  z-index: 2;
}

#hero h1 {
  color: #fff !important;
  margin-bottom: 24px;
  max-width: 720px;
}

#hero .hero-subtitle {
  color: rgba(255,255,255,0.85) !important;
  font-size: 20px !important;
  max-width: 600px;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
  text-decoration: none;
}
.btn-primary-cta:hover { background: var(--accent-dark); color: #fff !important; }

.btn-secondary-cta {
  background: transparent;
  color: #fff !important;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
  text-decoration: none;
}
.btn-secondary-cta:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background-color: var(--accent-dark);
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  text-align: center;
  color: #fff;
}
.page-hero h1 {
  color: #fff !important;
  font-size: 43px !important;
  margin-bottom: 16px;
}
.page-hero p {
  color: rgba(255,255,255,0.85) !important;
  font-size: 18px !important;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section-label {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p {
  font-size: 18px !important;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   FEATURE GRID
   ============================================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3em;
  align-items: center;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: 0 8px 32px rgba(124,58,237,0.10);
  transform: translateY(-3px);
}

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon-wrap .bi {
  font-size: 26px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 20px !important;
  margin-bottom: 12px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 16px !important;
  margin: 0;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-section {
  background: var(--accent);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2em;
  text-align: center;
}
.stat-item h3 {
  font-size: 42px !important;
  color: #fff !important;
  margin-bottom: 6px;
}
.stat-item p {
  color: rgba(255,255,255,0.8) !important;
  font-size: 15px !important;
  margin: 0;
}

/* ============================================================
   PLATFORM FEATURE SPLIT
   ============================================================ */
.platform-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}
.platform-feature.reverse { direction: rtl; }
.platform-feature.reverse > * { direction: ltr; }

.platform-feature-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.feature-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 16px !important;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: "\2713";
  color: var(--accent);
  font-weight: 700;
  position: absolute;
  left: 0;
}

/* ============================================================
   SOLUTIONS CARDS
   ============================================================ */
.solution-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.solution-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
}
.solution-card h3 {
  font-size: 22px !important;
  margin: 16px 0 12px;
}
.solution-card p {
  color: var(--text-muted);
  font-size: 16px !important;
}

/* ============================================================
   TEAM
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2em;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: box-shadow 0.2s;
}
.team-card:hover {
  box-shadow: 0 6px 24px rgba(124,58,237,0.10);
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 3px solid var(--accent-light);
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.initial-avatar {
  width: 100%;
  height: 100%;
  background: var(--accent);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  border-radius: 50%;
}

.team-card .role {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.team-card h3 {
  font-size: 20px !important;
  margin-bottom: 4px;
}
.team-card p {
  font-size: 15px !important;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   BLOG / CONTENT
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2em;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.blog-card:hover {
  box-shadow: 0 6px 24px rgba(124,58,237,0.10);
}
.blog-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card-body {
  padding: 24px;
}
.blog-meta {
  font-size: 13px !important;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.blog-card h3 {
  font-size: 20px !important;
  margin-bottom: 10px;
  line-height: 1.3;
}
.blog-card h3 a {
  color: var(--text);
}
.blog-card h3 a:hover { color: var(--accent); }
.blog-card p {
  font-size: 15px !important;
  color: var(--text-muted);
}
.blog-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px !important;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}
.read-more {
  color: var(--accent);
  font-weight: 600;
  font-size: 15px !important;
}
.read-more:hover { color: var(--accent-dark); }

/* ============================================================
   ARTICLE TYPOGRAPHY
   ============================================================ */
.article-body, .post-content {
  max-width: 720px;
  margin: 0 auto;
}
.article-body p, .post-content p {
  margin-bottom: 1.4em;
  line-height: 1.9;
}
.article-body h2, .post-content h2 {
  margin-top: 2.2em;
  margin-bottom: 0.8em;
  font-size: 2.5rem !important;
}
.article-body h3, .post-content h3 {
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  font-size: 1.6rem !important;
}
.article-body ul, .article-body ol,
.post-content ul, .post-content ol {
  margin-bottom: 1.4em;
  padding-left: 1.8em;
}
.article-body li, .post-content li {
  margin-bottom: 0.5em;
  line-height: 1.85;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4em;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon .bi {
  font-size: 20px;
  color: var(--accent);
}
.contact-info-item h4 {
  font-size: 15px !important;
  color: var(--text-muted);
  margin: 0 0 4px;
}
.contact-info-item p {
  font-size: 16px !important;
  margin: 0;
  font-weight: 500;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px !important;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 16px !important;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.btn-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}
.btn-submit:hover { background: var(--accent-dark); }

/* ============================================================
   COOKIE BANNER OVERRIDES
   ============================================================ */
#cookie-accept,
.cookie-btn {
  background: var(--accent) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 10px 24px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}
.cookie-btn.decline,
#cookie-decline {
  background: transparent !important;
  border: 1px solid var(--border) !important;
  color: var(--text-muted) !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #1a0533;
  color: rgba(255,255,255,0.85);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3em;
  margin-bottom: 48px;
}

.footer-brand-tagline {
  color: rgba(255,255,255,0.6) !important;
  font-size: 15px !important;
  margin: 16px 0 0;
  max-width: 280px;
}

.footer-col h5 {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 15px !important;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

.footer-contact-item {
  color: rgba(255,255,255,0.6) !important;
  font-size: 15px !important;
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  color: rgba(255,255,255,0.4) !important;
  font-size: 14px !important;
  margin: 0;
}
.footer-bottom a {
  color: rgba(255,255,255,0.6);
  font-size: 14px !important;
  margin-left: 16px;
}
.footer-bottom a:hover { color: #fff; }

.footer-nav-brand {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #fff !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-story { background: var(--surface); }
.about-values { background: var(--bg); }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 {
  font-size: 28px !important;
  margin-top: 48px;
  margin-bottom: 16px;
}
.legal-content h3 {
  font-size: 22px !important;
  margin-top: 32px;
  margin-bottom: 12px;
}
.legal-content p {
  font-size: 16px !important;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.legal-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-content li {
  font-size: 16px !important;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.legal-date {
  font-size: 14px !important;
  color: var(--text-muted);
  margin-bottom: 48px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  h1 { font-size: 38px !important; }
  h2 { font-size: 28px !important; }
  h3 { font-size: 22px !important; }
  body { font-size: 16px !important; }
  p, li { font-size: 16px !important; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .platform-feature { grid-template-columns: 1fr; }
  .platform-feature.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }

  .nav-menu { display: none; }
  .nav-toggle { display: block; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--surface);
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 8999;
  }

  .page-hero h1 { font-size: 32px !important; }
  #hero h1 { font-size: 36px !important; }
  #hero .hero-subtitle { font-size: 16px !important; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .btn-primary-cta, .btn-secondary-cta { text-align: center; }
}
