/* ─── FoxTrak Blog – Shared Styles ─── */

:root {
  --orange: #e8470a;
  --orange-light: #fef0eb;
  --orange-border: #fad5c0;
  --navy: #1a2f3a;
  --bg: #ffffff;
  --bg-white: #ffffff;
  --border: #e4e2da;
  --border-hover: #c8c5bc;
  --text: #1a2f3a;
  --text-muted: #3a4a52;
  --text-dim: #6b7a82;
  --text-faint: #8a9399;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-top: 56px;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }

/* ─── NAV ─── */
.hn {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  gap: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.hn__left { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.hn__logo img { height: 28px; display: block; }
.hn__divider { width: 1px; height: 16px; background: var(--border); }
.hn__label { font-size: 13px; color: var(--text-dim); font-weight: 500; white-space: nowrap; }
.hn__btns { display: flex; gap: 8px; flex-shrink: 0; }
.hn__login {
  font-size: 14px; font-weight: 500; color: var(--navy);
  padding: 6px 20px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s;
  white-space: nowrap;
}
.hn__login:hover { border-color: var(--navy); }
.hn__signup {
  font-size: 14px; font-weight: 600; color: #fff;
  background: var(--orange);
  padding: 6px 20px;
  border-radius: 8px;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.hn__signup:hover { opacity: 0.85; }

.hn--scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 16px rgba(41,66,79,0.07);
}

/* ─── FOOTER ─── */
.footer { background: #fff; border-top: 1px solid var(--border); padding: 36px 0; }
.footer__inner { max-width: 1376px; margin: 0 auto; padding: 0 2rem; }
.footer__row1 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.footer__nav { display: flex; gap: 32px; }
.footer__nav a { font-size: 14px; font-weight: 500; color: var(--navy); transition: color 0.2s; }
.footer__nav a:hover { color: var(--orange); }
.footer__social { display: flex; gap: 18px; align-items: center; }
.footer__social a { color: var(--navy); display: flex; align-items: center; transition: color 0.2s; }
.footer__social a:hover { color: var(--orange); }
.footer__row2 { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid var(--border); }
.footer__brand { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 13px; }
.footer__logo { height: 18px; width: auto; display: block; }
.footer__legal { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.footer__legal a { color: var(--text-muted); transition: color 0.2s; }
.footer__legal a:hover { color: var(--navy); }

/* ─── BLOG INDEX ─── */
.blog-page {
  flex: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 3.5rem 2rem 6rem;
  width: 100%;
}
.blog-hero { margin-bottom: 2.75rem; }
.blog-hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin-bottom: 0.4rem;
}
.blog-hero p { font-size: 15px; color: var(--text-dim); }

.blog-grid { display: flex; flex-direction: column; gap: 14px; }
.blog-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  display: block;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 24px rgba(41,66,79,0.05);
}
.blog-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(41,66,79,0.10);
}
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 0.6rem;
}
.blog-card__meta-dot {
  width: 3px; height: 3px;
  background: var(--border-hover);
  border-radius: 50%; flex-shrink: 0;
}
.blog-card h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.25px;
  line-height: 1.35;
  margin-bottom: 0.55rem;
}
.blog-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.blog-card__read {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
}
.blog-card__read svg { transition: transform 0.15s; }
.blog-card:hover .blog-card__read svg { transform: translateX(3px); }

/* ─── ARTICLE PAGE ─── */
.blog-article-page {
  flex: 1;
  width: 100%;
}

/* Single centred column — everything lives inside this */
.blog-col {
  max-width: 830px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-faint);
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: color 0.15s;
}
.blog-back:hover { color: var(--orange); }

.blog-article {
  padding: 2.75rem 2.5rem;
}

.blog-article__hero {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.blog-article__category {
  display: inline-flex;
  align-items: center;
  background: var(--orange-light);
  color: var(--orange);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.blog-article h1 {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.4px;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.blog-article__byline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-faint);
  padding-bottom: 1.75rem;
  border-bottom: 1px solid #f0ede6;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.blog-article__byline-dot {
  width: 3px; height: 3px;
  background: var(--border-hover);
  border-radius: 50%; flex-shrink: 0;
}
.blog-article p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}
.blog-article p em {
  font-style: italic;
  color: var(--text-dim);
}
.blog-article a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.blog-article a:hover { opacity: 0.8; }
.blog-article h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin: 2.75rem 0 1rem;
}
.blog-article h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.1px;
  line-height: 1.4;
  margin: 2rem 0 0.75rem;
}
.blog-article strong { font-weight: 700; color: var(--navy); }
.blog-article ul, .blog-article ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.blog-article li {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.4rem;
}
.blog-article__divider {
  height: 1px;
  background: #f0ede6;
  margin: 2.5rem 0;
}

/* ─── FAQ ─── */
.blog-faq { margin-top: 0.5rem; }
.blog-faq__heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 1.25rem;
}
.blog-faq__item {
  border-top: 1px solid #f0ede6;
  padding: 1.1rem 0;
}
.blog-faq__item:last-child { border-bottom: 1px solid #f0ede6; }
.blog-faq__q {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.blog-faq__a {
  font-size: 14px !important;
  color: var(--text-muted) !important;
  line-height: 1.75 !important;
  margin: 0 !important;
}

/* ─── AUTHOR BIO ─── */
.blog-author {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid #f0ede6;
}
.blog-author p {
  font-size: 13px !important;
  color: var(--text-faint) !important;
  line-height: 1.6 !important;
  font-style: italic;
  margin: 0 !important;
}

/* ─── CTA BLOCK ─── */
.blog-cta {
  background: var(--navy);
  border-radius: 14px;
  padding: 2.25rem 2.5rem;
  margin-top: 1.5rem;
  text-align: center;
}
.blog-cta h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.45rem;
}
.blog-cta p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.25rem;
}
.blog-cta a {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.blog-cta a:hover { opacity: 0.85; }

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  .hn__btns { display: none; }
  .hn { padding: 0 1rem; }
  .blog-page { padding: 2rem 1rem 4rem; }
  .blog-col { padding: 1.25rem 1rem 3rem; }
  .blog-article { padding: 1.5rem; }
  .blog-card { padding: 1.25rem; }
  .blog-cta { padding: 1.75rem 1.25rem; }
  .footer__row1 { flex-direction: column; gap: 20px; align-items: flex-start; }
  .footer__row2 { flex-direction: column; gap: 12px; align-items: flex-start; }
  .footer__nav { flex-wrap: wrap; gap: 14px; }
}
