/* ============================================================
   AttendIQ - Blog Article Stylesheet
   Inter font + teal palette (matches main site tokens)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Tokens ── */
:root {
  --sage:         #3DAA8E;
  --sage-light:   #E8F7F3;
  --sage-mid:     #5BBDA3;
  --sage-dark:    #2D8A72;
  --navy:         #0D1823;
  --navy-mid:     #152130;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --text:         #0D1117;
  --text-muted:   #5A6A78;
  --border:       #E2E8EE;
  --surface:      #F8FAFB;
  --white:        #FFFFFF;
  --radius:       10px;
  --article-max:  780px;
  --container:    1200px;
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

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

a { color: var(--sage-dark); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--sage); }

/* ── Layout helpers ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo:hover { color: var(--sage); }
.nav-logo .logo-iq,
.footer-logo .logo-iq,
.footer__brand-name .logo-iq { color: var(--sage); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0 auto;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #4A5568;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color .18s, background .18s;
}

.nav-links a:hover {
  color: var(--sage-dark);
  background: var(--sage-light);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-login {
  font-size: 14px;
  font-weight: 500;
  color: #4A5568;
  text-decoration: none;
  padding: 6px 12px;
  transition: color .18s;
}

.nav-login:hover { color: var(--sage-dark); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--sage);
  color: var(--white) !important;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .18s, transform .1s;
}

.btn-primary:hover {
  background: var(--sage-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--sage-dark) !important;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 8px;
  border: 1.5px solid var(--sage);
  text-decoration: none;
  transition: background .18s, color .18s;
}

.btn-secondary:hover {
  background: var(--sage-light);
}

/* ── Article container ── */
.blog-article { padding: 48px 0 80px; }

.article-container {
  max-width: var(--article-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Breadcrumb ── */
.breadcrumb {
  margin-bottom: 32px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 8px;
  color: var(--border);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--sage); }

/* ── Article header ── */
.article-header { margin-bottom: 40px; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.article-category {
  display: inline-flex;
  align-items: center;
  background: var(--sage-light);
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.read-time { color: var(--text-muted); }

.article-header h1 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 20px;
}

.article-intro {
  font-size: 17px;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 24px;
}

.article-disclaimer {
  background: #FFFBEB;
  border-left: 3px solid #F59E0B;
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: #6B5B1A;
  line-height: 1.6;
}

.article-disclaimer strong { color: #5A4A0F; }

/* ── Table of contents ── */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 40px 0;
}

.toc h2 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.toc ol {
  padding-left: 20px;
}

.toc li {
  margin-bottom: 8px;
}

.toc a {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.5;
}

.toc a:hover { color: var(--sage); }

/* ── Article body ── */
.article-body section {
  margin-bottom: 48px;
}

.article-body h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 16px;
  padding-top: 8px;
}

.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 12px;
}

.article-body p {
  font-size: 16px;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 16px;
}

.article-body p:last-child { margin-bottom: 0; }

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-body li {
  font-size: 16px;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 8px;
}

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

.article-body a {
  color: var(--sage-dark);
  font-weight: 500;
}

/* ── Data/reference table ── */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 28px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-body th {
  background: var(--navy);
  color: var(--white);
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .02em;
}

.article-body td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.article-body tr:last-child td { border-bottom: 0; }
.article-body tr:nth-child(even) td { background: var(--surface); }

/* ── FAQ ── */
.faq-section {
  border-top: 2px solid var(--border);
  padding-top: 40px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.faq-item:last-child { border-bottom: 0; }

.faq-item h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 12px;
}

.faq-item p {
  font-size: 15px;
  line-height: 1.7;
  color: #4B5563;
  margin: 0;
}

/* ── Article CTA ── */
.article-cta {
  background: var(--navy);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  margin: 56px 0 0;
  position: relative;
  overflow: hidden;
}

.article-cta::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(61,170,142,.3) 0%, transparent 70%);
  pointer-events: none;
}

.article-cta h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.article-cta > p {
  font-size: 16px;
  color: rgba(255,255,255,.75);
  margin-bottom: 28px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.article-cta .btn-primary {
  background: var(--sage);
  font-size: 15px;
  padding: 11px 26px;
}

.article-cta .btn-primary:hover { background: var(--sage-mid); }

.article-cta .btn-secondary {
  border-color: rgba(255,255,255,.3);
  color: rgba(255,255,255,.85) !important;
  font-size: 15px;
  padding: 11px 26px;
}

.article-cta .btn-secondary:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.5);
}

.cta-sub {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin: 0;
}

/* ── Article footer ── */
.article-footer {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.article-tags span {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
}

.article-reviewed {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Site footer ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  padding: 64px 0 0;
  margin-top: 80px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

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

.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .18s;
}

.footer-col a:hover { color: var(--sage-mid); }

.footer-col > p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,.5);
  margin-top: 8px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-base {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 24px;
  max-width: var(--container);
  margin: 0 auto;
  font-size: 13px;
  color: rgba(255,255,255,.3);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }

  .nav-cta .nav-login { display: none; }

  .article-cta { padding: 36px 24px; }

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

@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }

  .toc { padding: 20px; }

  .article-header h1 { font-size: 24px; }
}
