/* CarIQ Blog CSS — matches cariq.ie branding exactly */
/* Playfair Display + DM Sans, blue #1840d4, ink #0d0f1a */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

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

:root {
  --ink: #0d0f1a; --mid: #5a607a; --muted: #9399b0;
  --border: #e8ebf5; --bg: #f5f7fc; --white: #fff;
  --blue: #1840d4; --blue2: #2952e8;
  --blue-pale: #edf0ff; --blue-border: #c4cef8;
  --green: #0a6e42; --green-pale: #e8f7ef;
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--white); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* NAV — identical to main site */
nav { position: sticky; top: 0; z-index: 200; background: rgba(255,255,255,0.97); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.logo { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 1.5rem; text-decoration: none; display: flex; align-items: baseline; gap: 1px; }
.logo .car { color: var(--blue); }
.logo .iq { color: var(--ink); }
.logo sup { font-family: 'DM Sans', sans-serif; font-size: 9px; color: var(--muted); font-weight: 700; letter-spacing: 0.05em; }
.nav-links { display: none; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--mid); font-size: 0.9375rem; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--blue); }
@media(min-width:768px) { .nav-links { display: flex; } }
.btn-nav { background: var(--blue); color: var(--white) !important; padding: 9px 20px; border-radius: 8px; font-weight: 700 !important; font-size: 0.875rem !important; transition: background 0.15s !important; }
.btn-nav:hover { background: var(--blue2) !important; }

/* BREADCRUMB */
.breadcrumb { background: var(--bg); border-bottom: 1px solid var(--border); padding: 10px 0; }
.breadcrumb-inner { font-family: 'DM Sans', sans-serif; font-size: 0.8125rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--ink); }

/* ARTICLE LAYOUT */
.article-main { padding: 48px 0 80px; }
.article-wrap { max-width: 760px; margin: 0 auto; }

.article-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.article-tag { display: inline-block; background: var(--blue-pale); color: var(--blue); border: 1px solid var(--blue-border); border-radius: 4px; padding: 3px 10px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }
.article-read { font-size: 0.8125rem; color: var(--muted); font-weight: 500; }

/* ARTICLE BODY */
.article-body h1 { font-family: 'Playfair Display', serif; font-weight: 900; font-size: clamp(1.75rem, 4vw, 2.5rem); color: var(--ink); line-height: 1.15; margin-bottom: 32px; }
.article-body h2 { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 1.375rem; color: var(--ink); margin-top: 40px; margin-bottom: 14px; line-height: 1.2; padding-left: 14px; border-left: 3px solid var(--blue); }
.article-body h3 { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 1.0625rem; color: var(--ink); margin-top: 28px; margin-bottom: 10px; }
.article-body p { font-size: 1rem; color: var(--mid); line-height: 1.75; margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 20px 20px; }
.article-body li { font-size: 1rem; color: var(--mid); line-height: 1.7; margin-bottom: 8px; }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body a { color: var(--blue); }
.article-body a:hover { color: var(--blue2); }

.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.9375rem; }
.article-body th { background: var(--ink); color: var(--white); padding: 12px 16px; text-align: left; font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 0.875rem; }
.article-body td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--mid); }
.article-body tr:nth-child(even) td { background: var(--bg); }
.article-body td:first-child { color: var(--ink); font-weight: 500; }

/* CTA BOX */
.cta-box { margin-top: 48px; background: var(--ink); border-radius: 16px; padding: 36px; }
.cta-box h3 { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 1.375rem; color: var(--white); margin-bottom: 12px; line-height: 1.2; }
.cta-box p { font-size: 0.9375rem; color: #8b93b0; line-height: 1.7; margin-bottom: 24px; font-family: 'DM Sans', sans-serif; }
.cta-btn { display: inline-block; background: var(--blue); color: var(--white); text-decoration: none; padding: 14px 28px; border-radius: 10px; font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 1rem; transition: background 0.15s; }
.cta-btn:hover { background: var(--blue2); }

/* FOOTER — identical to main site */
footer { background: #080910; padding: 48px 0 32px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media(min-width:768px) { .footer-grid { grid-template-columns: 1.5fr repeat(3,1fr); } }
.footer-col h4 { font-family: 'DM Sans', sans-serif; font-size: 0.875rem; font-weight: 700; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col p { font-size: 0.875rem; color: rgba(255,255,255,0.35); line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.875rem; transition: color 0.15s; }
.footer-col ul li a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px; text-align: center; font-size: 0.8125rem; color: rgba(255,255,255,0.25); }
.footer-logo-text { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 1.25rem; color: var(--white); display: block; margin-bottom: 10px; text-decoration: none; }
.footer-logo-text span { color: #6b8fff; }

@media(max-width:600px) {
  .article-body h1 { font-size: 1.625rem; }
  .article-body h2 { font-size: 1.2rem; }
  .cta-box { padding: 24px; }
  .cta-box h3 { font-size: 1.2rem; }
}
