/* ITF Business Help Center — shared styles */

:root {
  --navy: #0D1F3C;
  --blue: #1A56DB;
  --blue-mid: #2563EB;
  --blue-light: #DBEAFE;
  --blue-accent: #60A5FA;
  --white: #FFFFFF;
  --off-white: #F8FAFD;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-600: #475569;
  --gray-800: #1E293B;
  --text: #0F172A;
  --success: #16A34A;
  --warning: #CA8A04;
  --error: #DC2626;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5 { font-family: 'Space Grotesk', sans-serif; line-height: 1.2; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* TOP NAV */
.help-nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 50;
}

.help-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.help-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--navy);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}

.help-brand:hover { text-decoration: none; }
.help-brand-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue-accent); }
.help-brand-divider { color: var(--gray-300); }
.help-brand-section { font-weight: 500; color: var(--gray-600); }

.help-nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.help-nav-links a {
  color: var(--gray-600);
  font-size: 0.92rem;
  font-weight: 500;
}

.help-nav-links a:hover { color: var(--navy); text-decoration: none; }
.help-nav-cta {
  background: var(--navy);
  color: white !important;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 500;
}
.help-nav-cta:hover { background: var(--blue); }

/* SEARCH BAR */
.help-search {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.help-search input {
  width: 100%;
  padding: 0.95rem 1.1rem 0.95rem 3rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.help-search input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.12);
}

.help-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
  width: 20px;
  height: 20px;
}

.help-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
  max-height: 420px;
  overflow-y: auto;
  display: none;
  z-index: 10;
}

.help-search-results.show { display: block; }

.help-search-result {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--gray-100);
  text-decoration: none;
  color: var(--text);
  display: block;
}

.help-search-result:last-child { border-bottom: none; }
.help-search-result:hover { background: var(--off-white); text-decoration: none; }
.help-search-result-title {
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.15rem;
  font-size: 0.95rem;
}
.help-search-result-meta {
  font-size: 0.78rem;
  color: var(--gray-600);
}

.help-search-empty {
  padding: 1rem 1.1rem;
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* HERO */
.help-hero {
  background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.help-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.help-hero-eyebrow {
  display: inline-block;
  background: var(--blue-light);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.help-hero h1 {
  font-size: 2.4rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

.help-hero p {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* BREADCRUMBS */
.help-breadcrumbs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
  font-size: 0.88rem;
  color: var(--gray-600);
}

.help-breadcrumbs a { color: var(--gray-600); }
.help-breadcrumbs a:hover { color: var(--blue); }
.help-breadcrumbs .sep { margin: 0 0.5rem; color: var(--gray-300); }
.help-breadcrumbs .current { color: var(--navy); font-weight: 500; }

/* MAIN CONTENT */
.help-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.help-main.narrow { max-width: 760px; }

/* CATEGORY GRID */
.help-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.help-category-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.help-category-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  text-decoration: none;
}

.help-category-icon {
  width: 36px;
  height: 36px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
}

.help-category-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy);
}

.help-category-desc {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.45;
}

.help-category-count {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 0.5rem;
  font-weight: 500;
}

/* SUBCATEGORY GRID */
.help-subcategory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.help-subcategory-card {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.15s;
}

.help-subcategory-card:hover {
  border-color: var(--blue);
  background: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}

.help-subcategory-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--navy);
  font-size: 1.02rem;
  margin-bottom: 0.15rem;
}

.help-subcategory-desc {
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* ARTICLE LIST */
.help-article-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.help-article-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.1rem 1.35rem;
  text-decoration: none;
  color: var(--text);
  transition: all 0.15s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.help-article-card:hover {
  border-color: var(--blue);
  background: var(--off-white);
  text-decoration: none;
}

.help-article-info {
  flex: 1;
  min-width: 0;
}

.help-article-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.help-article-desc {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.4;
}

.help-article-arrow {
  color: var(--gray-400);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.help-article-card:hover .help-article-arrow { color: var(--blue); }

/* SECTION HEADERS WITHIN PAGE */
.help-section-header {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
}

.help-section-header:first-child { margin-top: 0; }

/* EMPTY STATE */
.help-coming-soon {
  background: var(--off-white);
  border: 1px dashed var(--gray-300);
  border-radius: 14px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--gray-600);
}

.help-coming-soon h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.help-coming-soon p { font-size: 0.92rem; }

/* ARTICLE BODY */
.help-article-body {
  background: var(--white);
}

.help-article-body h1 {
  font-size: 2.1rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.help-article-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--gray-100);
}

.help-article-meta .dot { color: var(--gray-300); }

.help-article-body h2 {
  font-size: 1.4rem;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}

.help-article-body h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin: 1.5rem 0 0.5rem;
}

.help-article-body p {
  margin-bottom: 1rem;
  font-size: 1.02rem;
  color: var(--text);
}

.help-article-body ul, .help-article-body ol {
  margin: 0 0 1.25rem 1.5rem;
  font-size: 1.02rem;
}

.help-article-body li { margin-bottom: 0.5rem; }

.help-article-body strong { font-weight: 600; color: var(--navy); }

.help-article-body a { color: var(--blue); text-decoration: underline; }

.help-quickfix {
  background: rgba(22, 163, 74, 0.06);
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.help-quickfix h3 {
  color: var(--success);
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.help-quickfix p { margin: 0; font-size: 0.98rem; }

.help-callout {
  background: var(--off-white);
  border-left: 4px solid var(--blue);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 10px 10px 0;
}

.help-callout p { margin: 0; font-size: 0.95rem; color: var(--gray-800); }

.help-video {
  margin: 2rem 0 0.75rem;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--gray-100);
}

.help-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.help-video-credit {
  font-size: 0.82rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  text-align: center;
}

/* CTA BOX (call Isaac) */
.help-cta {
  background: linear-gradient(135deg, var(--navy) 0%, #142852 100%);
  color: white;
  border-radius: 16px;
  padding: 2rem;
  margin: 2.5rem 0 2rem;
}

.help-cta h3 {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.help-cta p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.help-cta-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.help-cta-btn {
  background: white;
  color: var(--navy) !important;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.help-cta-btn:hover { background: var(--blue-light); text-decoration: none; transform: translateY(-1px); }

.help-cta-btn.outline {
  background: transparent;
  color: white !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.help-cta-btn.outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: white;
}

/* RELATED ARTICLES */
.help-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

.help-related h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

/* AFFILIATE DISCLOSURE */
.help-affiliate-notice {
  background: var(--gray-100);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  font-size: 0.82rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* SUGGEST A TOPIC FORM */
.help-suggest {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
}

.help-suggest h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.help-suggest > p {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.help-suggest form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.help-suggest-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.help-suggest input,
.help-suggest textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
}

.help-suggest textarea {
  resize: vertical;
  min-height: 80px;
}

.help-suggest input:focus,
.help-suggest textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.12);
}

.help-suggest button {
  background: var(--blue);
  color: white;
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
}

.help-suggest button:hover { background: #1D4ED8; }
.help-suggest button:disabled { background: var(--gray-400); cursor: not-allowed; }

.help-suggest-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.help-suggest-success {
  background: rgba(22,163,74,0.08);
  border: 1px solid rgba(22,163,74,0.25);
  color: var(--success);
  padding: 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  display: none;
}

.help-suggest-success.show { display: block; }

.help-suggest-error {
  background: rgba(220,38,38,0.08);
  color: var(--error);
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-top: 0.5rem;
  display: none;
}

.help-suggest-error.show { display: block; }

@media (max-width: 540px) {
  .help-suggest-row { grid-template-columns: 1fr; }
  .help-suggest { padding: 1.5rem; }
}

/* BUY ME A COFFEE / TIP JAR */
.help-coffee {
  background: #FFDD00;
  background: linear-gradient(135deg, #FFDD00 0%, #FFC700 100%);
  color: #1A1A1A;
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.help-coffee-emoji {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.help-coffee-text {
  flex: 1;
  min-width: 220px;
}

.help-coffee h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: #1A1A1A;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.help-coffee p {
  margin: 0;
  font-size: 0.92rem;
  color: #3A3A3A;
  line-height: 1.45;
}

.help-coffee-btn {
  background: #1A1A1A;
  color: #FFDD00 !important;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
  white-space: nowrap;
}

.help-coffee-btn:hover {
  background: #0D0D0D;
  text-decoration: none;
  transform: translateY(-1px);
}

.help-coffee.compact {
  padding: 1rem 1.25rem;
  background: var(--off-white);
  color: var(--text);
  border: 1px solid var(--gray-200);
}

.help-coffee.compact h3 { color: var(--navy); font-size: 1rem; }
.help-coffee.compact p { color: var(--gray-600); }
.help-coffee.compact .help-coffee-btn {
  background: #FFDD00;
  color: #1A1A1A !important;
}
.help-coffee.compact .help-coffee-btn:hover { background: #FFC700; }

/* FOOTER */
.help-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 1.5rem 1.5rem;
  font-size: 0.88rem;
}

.help-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.help-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.help-footer h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 0.4rem;
  font-family: 'Space Grotesk', sans-serif;
}

.help-footer a { color: rgba(255, 255, 255, 0.65); }
.help-footer a:hover { color: white; }

.help-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}

/* MOBILE */
@media (max-width: 720px) {
  .help-nav-inner { padding: 0.75rem 1rem; }
  .help-nav-links { gap: 1rem; }
  .help-nav-links a:not(.help-nav-cta) { display: none; }
  .help-hero { padding: 2.5rem 1rem 2rem; }
  .help-hero h1 { font-size: 1.8rem; }
  .help-hero p { font-size: 1rem; }
  .help-main { padding: 1.5rem 1rem 3rem; }
  .help-breadcrumbs { padding: 1rem 1rem 0; }
  .help-article-body h1 { font-size: 1.6rem; }
  .help-article-body h2 { font-size: 1.2rem; }
  .help-cta { padding: 1.5rem; }
  .help-cta h3 { font-size: 1.2rem; }
}

/* ───────── Roadfolio site-wide promo bar ───────── */
.roadfolio-promo-bar {
  background: linear-gradient(135deg, #1245aa 0%, #0b2c66 100%);
  color: #ffffff;
  padding: 0.55rem 1rem;
  text-align: center;
  font-size: 0.88rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.4;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.roadfolio-promo-bar strong { font-weight: 700; }
.roadfolio-promo-bar a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  margin: 0 0.15rem;
}
.roadfolio-promo-bar a:hover {
  text-decoration: none;
}
.roadfolio-promo-bar .rf-sep { opacity: 0.55; margin: 0 0.4rem; }
@media (max-width: 640px) {
  .roadfolio-promo-bar { font-size: 0.8rem; padding: 0.5rem 0.75rem; }
  .roadfolio-promo-bar .rf-sub { display: none; }
}

/* ───────── Affiliate FTC disclosure ───────── */
.help-affiliate-disclosure {
  font-size: 0.78rem;
  color: var(--gray-600, #6b7280);
  background: var(--gray-100, #f5f5f7);
  border-left: 2px solid var(--blue-light, #DBEAFE);
  padding: 0.5rem 0.75rem;
  margin: 0 0 1rem;
  border-radius: 4px;
  line-height: 1.45;
}
.help-affiliate-disclosure a { color: var(--gray-600, #6b7280); text-decoration: underline; }
