/* ============================================
   TRUCK GENIE — Support & Help Center Styles
   Matches blog + main site branding
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;500;600;700;800;900&family=Work+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --primary-blue: #1E5BC6;
  --dark-blue: #164A9E;
  --navy: #1B3A5C;
  --accent-blue: #2563eb;
  --text-dark: #1A1A1A;
  --text-medium: #4A4A4A;
  --text-light: #6B7280;
  --bg-light: #F5F7FA;
  --bg-white: #FFFFFF;
  --border: #E5E7EB;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --font-heading: 'Red Hat Display', sans-serif;
  --font-body: 'Work Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.7;
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

/* ---- NAV (same as blog) ---- */
.site-nav {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-nav-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary-blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.site-nav-logo span { color: var(--navy); }
.site-nav-links { display: flex; gap: 1.5rem; align-items: center; }
.site-nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-medium);
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav-links a:hover { color: var(--primary-blue); }
.nav-cta {
  background: var(--primary-blue);
  color: white !important;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--dark-blue); }

/* ---- PAGE HERO ---- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary-blue) 100%);
  padding: 3.5rem 2rem;
  text-align: center;
  color: white;
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.page-hero p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 550px;
  margin: 0 auto;
}

/* ---- SUPPORT FORM ---- */
.support-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.support-form {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--bg-white);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 91, 198, 0.1);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-submit {
  background: var(--primary-blue);
  color: white;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}
.form-submit:hover { background: var(--dark-blue); }
.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 1rem;
}

.support-alt {
  text-align: center;
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: 12px;
}
.support-alt h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.support-alt p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}
.support-alt a {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
}
.support-alt a:hover { text-decoration: underline; }

/* ---- HELP CENTER ---- */
.help-grid-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.help-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.help-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(27, 58, 92, 0.08);
  border-color: var(--primary-blue);
}
.help-card-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.help-card h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.help-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  flex: 1;
}
.help-card-count {
  font-size: 0.8rem;
  color: var(--primary-blue);
  font-weight: 600;
  margin-top: 0.75rem;
}

/* Help search bar */
.help-search {
  max-width: 560px;
  margin: -1.75rem auto 2rem;
  position: relative;
  z-index: 10;
}
.help-search input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: white;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  outline: none;
  transition: border-color 0.2s;
}
.help-search input:focus { border-color: var(--primary-blue); }
.help-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1.1rem;
}

/* ---- HELP ARTICLE PAGE ---- */
.help-article-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.help-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
.help-breadcrumb a {
  color: var(--primary-blue);
  text-decoration: none;
}
.help-breadcrumb a:hover { text-decoration: underline; }

.help-article-container h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.help-article-container .article-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.help-article-container h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.help-article-container h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}
.help-article-container p {
  font-size: 1rem;
  color: var(--text-medium);
  margin-bottom: 1.1rem;
  line-height: 1.75;
}
.help-article-container ul, .help-article-container ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
  color: var(--text-medium);
}
.help-article-container li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

/* Step-by-step blocks */
.step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--bg-light);
  border-radius: 10px;
  border-left: 4px solid var(--primary-blue);
}
.step-number {
  background: var(--primary-blue);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-content { flex: 1; }
.step-content h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.step-content p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Callout boxes */
.callout {
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.callout-info {
  background: #EFF6FF;
  border-left: 4px solid var(--primary-blue);
  color: var(--navy);
}
.callout-tip {
  background: #ECFDF5;
  border-left: 4px solid var(--success);
  color: #065F46;
}
.callout-warning {
  background: #FFFBEB;
  border-left: 4px solid var(--warning);
  color: #92400E;
}
.callout strong { display: block; margin-bottom: 0.3rem; }

/* Help article navigation */
.help-article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  gap: 1rem;
}
.help-article-nav a {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  flex: 1;
}
.help-article-nav a:hover {
  border-color: var(--primary-blue);
  background: var(--bg-light);
}
.help-article-nav .nav-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.05em;
  font-weight: 600;
}
.help-article-nav .nav-title {
  font-size: 0.95rem;
  color: var(--primary-blue);
  font-weight: 600;
}
.help-article-nav a:last-child { text-align: right; }

/* Need help CTA at bottom */
.help-support-cta {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-top: 2.5rem;
}
.help-support-cta h3 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  margin-top: 0;
}
.help-support-cta p {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.help-support-cta a {
  display: inline-block;
  background: var(--primary-blue);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.help-support-cta a:hover { background: var(--dark-blue); }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: 0.9rem;
}
.site-footer a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.site-footer a:hover { color: white; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.footer-copy { opacity: 0.6; font-size: 0.8rem; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .page-hero h1 { font-size: 1.7rem; }
  .page-hero { padding: 2.5rem 1.5rem; }
  .support-container { padding: 2rem 1.25rem; }
  .support-form { padding: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .help-grid { grid-template-columns: 1fr; }
  .help-article-container { padding: 2rem 1.25rem; }
  .help-article-nav { flex-direction: column; }
  .site-nav { padding: 0.75rem 1rem; }
  .site-nav-links { gap: 0.75rem; }
  .site-nav-links a:not(.nav-cta) { display: none; }
}
