/* ═══════════════════════════════════════════════════════════════════════════
   TenantSync App — Blog Section stylesheet
   Shared by the blog hub (/blog/) and every article. Design tokens mirror the
   main site (index.html) so the blog feels native to tenantsyncapp.ie.
   ═══════════════════════════════════════════════════════════════════════════ */

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

:root {
  --brand:       #1b4fce;
  --brand-dark:  #1340a8;
  --brand-light: #e8effe;
  --accent:      #00c48c;
  --accent-dark: #00a675;
  --amber:       #f59e0b;
  --amber-light: #fef3e2;
  --violet:      #7c5cff;
  --violet-light:#efeaff;
  --text:        #0f1d3a;
  --muted:       #5c6b8a;
  --border:      #dde3f0;
  --bg:          #f7f9ff;
  --white:       #ffffff;
  --radius:      16px;
  --shadow-sm:   0 2px 8px rgba(27,79,206,.08);
  --shadow-md:   0 10px 34px rgba(27,79,206,.12);
  --shadow-lg:   0 24px 64px rgba(15,29,58,.16);
  --font:        'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }

.skip-link { position: absolute; left: -999px; top: 0; background: #fff; color: var(--brand); padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ── Buttons (shared with main site) ─────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: .95rem; padding: 12px 22px; border-radius: 100px; border: 1.5px solid transparent; cursor: pointer; transition: all .18s ease; white-space: nowrap; font-family: var(--font); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 22px rgba(27,79,206,.32); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #06231b; box-shadow: 0 6px 22px rgba(0,196,140,.34); }
.btn-accent:hover { background: var(--accent-dark); color:#fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); background: var(--brand-light); }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); }

/* ── Nav (shared with main site) ─────────────────────────────────────────── */
nav.site-nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: var(--text); }
.nav-logo-icon { border-radius: 8px; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { font-size: .93rem; font-weight: 600; color: var(--muted); transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-login { font-size: .93rem; font-weight: 600; color: var(--text); }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 560px) { .nav-login { display: none; } }

.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-light); color: var(--brand); font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 100px; }

/* ════════════════════════════════════════════════════════════════════════
   BLOG HUB (/blog/index.html)
   ════════════════════════════════════════════════════════════════════════ */
.blog-hero { background: linear-gradient(155deg, #0d2d7a 0%, #1b4fce 55%, #2a8cff 100%); color: #fff; padding: 72px 0 84px; text-align: center; position: relative; overflow: hidden; }
.blog-hero::after { content: ""; position: absolute; top: -140px; right: -120px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(0,196,140,.32), transparent 65%); pointer-events: none; }
.blog-hero > .container { position: relative; z-index: 2; }
.blog-hero .badge { background: rgba(255,255,255,.14); color: #fff; margin-bottom: 20px; }
.blog-hero h1 { font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 900; letter-spacing: -.035em; line-height: 1.1; margin-bottom: 18px; }
.blog-hero p { font-size: 1.12rem; color: rgba(255,255,255,.86); max-width: 620px; margin: 0 auto; }

.blog-feature { padding: 64px 0 0; }
.feature-card { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: var(--white); }
.feature-card__media { background: linear-gradient(150deg, #12327f, #1b4fce 60%, #2a8cff); color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px; min-height: 260px; }
.feature-card__media .kicker { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.feature-card__media .stat { font-size: 2.6rem; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.feature-card__media .stat small { display: block; font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.82); margin-top: 8px; letter-spacing: 0; }
.feature-card__body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.feature-card__body .eyebrow { font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.feature-card__body h2 { font-size: 1.55rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 12px; }
.feature-card__body h2 a { color: var(--text); }
.feature-card__body h2 a:hover { color: var(--brand); }
.feature-card__body p { color: var(--muted); font-size: 1rem; margin-bottom: 20px; }
@media (max-width: 820px) { .feature-card { grid-template-columns: 1fr; } .feature-card__media { min-height: 180px; } }

.blog-list { padding: 56px 0 96px; }
.blog-list__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.blog-list__head h2 { font-size: 1.5rem; font-weight: 900; letter-spacing: -.02em; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card__top { height: 6px; }
.post-card__body { padding: 26px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__tag { display: inline-flex; align-self: flex-start; font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 5px 11px; border-radius: 100px; background: var(--brand-light); color: var(--brand); margin-bottom: 14px; }
.post-card__tag.psra { background: var(--violet-light); color: var(--violet); }
.post-card__tag.rent { background: #e2f9f0; color: var(--accent-dark); }
.post-card__tag.growth { background: var(--amber-light); color: #b45309; }
.post-card h3 { font-size: 1.16rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; margin-bottom: 10px; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--brand); }
.post-card p { font-size: .92rem; color: var(--muted); margin-bottom: 18px; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.post-card__meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--border); }
.post-card--soon { opacity: .72; }
.post-card--soon h3 a { pointer-events: none; }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

/* Newsletter / lead capture strip on hub */
.blog-signup { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 56px 0; }
.blog-signup__inner { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.blog-signup h2 { font-size: 1.5rem; font-weight: 900; letter-spacing: -.02em; margin-bottom: 8px; }
.blog-signup p { color: var(--muted); font-size: 1rem; }
@media (max-width: 720px) { .blog-signup__inner { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════════════════
   ARTICLE PAGE
   ════════════════════════════════════════════════════════════════════════ */
.article-hero { background: var(--bg); border-bottom: 1px solid var(--border); padding: 40px 0 44px; }
.breadcrumb { font-size: .82rem; color: var(--muted); font-weight: 600; margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span[aria-current] { color: var(--text); }
.article-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; padding: 6px 13px; border-radius: 100px; background: var(--brand-light); color: var(--brand); margin-bottom: 18px; }
.article-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.14; margin-bottom: 18px; max-width: 820px; }
.article-standfirst { font-size: 1.16rem; color: var(--muted); max-width: 760px; line-height: 1.6; }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 26px; font-size: .86rem; color: var(--muted); font-weight: 600; }
.article-meta .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.article-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--border); }
.article-meta strong { color: var(--text); }

/* Article layout: sticky TOC + prose */
.article-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding: 56px 0 40px; }
.toc { position: sticky; top: 92px; align-self: start; font-size: .88rem; }
.toc h2 { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc ol { list-style: none; display: grid; gap: 9px; counter-reset: toc; }
.toc a { color: var(--muted); font-weight: 600; display: block; padding-left: 14px; border-left: 2px solid var(--border); transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--brand); border-color: var(--brand); }
@media (max-width: 940px) { .article-layout { grid-template-columns: 1fr; gap: 0; } .toc { display: none; } }

/* Prose */
.prose { max-width: 760px; font-size: 1.06rem; }
.prose > * + * { margin-top: 22px; }
.prose h2 { font-size: 1.6rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.2; margin-top: 52px; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.22rem; font-weight: 800; letter-spacing: -.01em; margin-top: 36px; scroll-margin-top: 90px; }
.prose p { color: #24324f; }
.prose a { font-weight: 600; text-decoration: underline; text-decoration-color: rgba(27,79,206,.35); text-underline-offset: 2px; }
.prose a:hover { text-decoration-color: var(--brand); }
.prose strong { color: var(--text); font-weight: 700; }
.prose ul, .prose ol { padding-left: 24px; color: #24324f; display: grid; gap: 10px; }
.prose li { padding-left: 4px; }
.prose ul li::marker { color: var(--brand); }
.prose blockquote { border-left: 4px solid var(--brand); background: var(--brand-light); padding: 18px 24px; border-radius: 0 12px 12px 0; font-size: 1.08rem; color: var(--text); font-weight: 500; }
.prose blockquote p { color: var(--text); }
.prose figure { margin: 32px 0; }
.prose figcaption { font-size: .84rem; color: var(--muted); margin-top: 8px; text-align: center; }

/* Key-takeaways / answer box (AEO snippet target) */
.answer-box { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 0 14px 14px 0; padding: 22px 26px; box-shadow: var(--shadow-sm); }
.answer-box .label { font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 8px; }
.answer-box p { font-size: 1.05rem; color: var(--text); font-weight: 500; }

/* Stat callout row */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 34px 0; }
.stat-box { border: 1px solid var(--border); border-radius: 14px; padding: 22px 20px; text-align: center; background: var(--bg); }
.stat-box .num { font-size: 2rem; font-weight: 900; color: var(--brand); letter-spacing: -.03em; line-height: 1; }
.stat-box .lbl { font-size: .82rem; color: var(--muted); font-weight: 600; margin-top: 8px; line-height: 1.4; }
@media (max-width: 620px) { .stat-row { grid-template-columns: 1fr; } }

/* Callout / tip box */
.callout { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; background: var(--bg); }
.callout .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: var(--brand-light); }
.callout.tip .ic { background: #e2f9f0; }
.callout.warn .ic { background: var(--amber-light); }
.callout h4 { font-size: 1rem; font-weight: 800; margin-bottom: 4px; }
.callout p { font-size: .95rem; color: var(--muted); margin: 0; }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm); }
table.compare { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
table.compare th, table.compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
table.compare thead th { background: var(--bg); font-weight: 800; font-size: .84rem; letter-spacing: .01em; }
table.compare thead th:last-child { color: var(--brand); }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare td:first-child { font-weight: 600; color: var(--text); }
table.compare .yes { color: var(--accent-dark); font-weight: 700; }
table.compare .no { color: #c0392b; font-weight: 700; }

/* Inline CTA card inside article */
.cta-card { background: linear-gradient(150deg, #0d2d7a, #1b4fce 60%, #2a8cff); color: #fff; border-radius: 20px; padding: 36px 34px; box-shadow: var(--shadow-md); position: relative; overflow: hidden; margin: 44px 0; }
.cta-card::after { content: ""; position: absolute; bottom: -100px; right: -70px; width: 300px; height: 300px; background: radial-gradient(circle, rgba(0,196,140,.3), transparent 65%); }
.cta-card > * { position: relative; z-index: 2; }
.cta-card .kicker { font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.82); margin-bottom: 10px; }
.cta-card h3 { font-size: 1.5rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 10px; color: #fff; margin-top: 0; }
.cta-card p { color: rgba(255,255,255,.86); margin-bottom: 22px; font-size: 1rem; }
.cta-card .buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-card .note { font-size: .82rem; color: rgba(255,255,255,.7); margin-top: 14px; }

/* Lead magnet box */
.lead-magnet { border: 1px dashed var(--brand); background: var(--brand-light); border-radius: 16px; padding: 26px 28px; display: grid; grid-template-columns: 52px 1fr auto; gap: 18px; align-items: center; margin: 40px 0; }
.lead-magnet .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--white); display: grid; place-items: center; font-size: 1.5rem; box-shadow: var(--shadow-sm); }
.lead-magnet h4 { font-size: 1.1rem; font-weight: 800; margin-bottom: 3px; }
.lead-magnet p { font-size: .9rem; color: var(--muted); margin: 0; }
@media (max-width: 620px) { .lead-magnet { grid-template-columns: 52px 1fr; } .lead-magnet .btn { grid-column: 1 / -1; } }

/* FAQ */
.faq { display: grid; gap: 12px; margin-top: 22px; }
.faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--white); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; font-size: 1.02rem; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 700; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq .faq-a { padding: 16px 22px 20px; color: #24324f; font-size: .98rem; }
.faq .faq-a p + p { margin-top: 12px; }

/* Author box */
.author-box { display: grid; grid-template-columns: 62px 1fr; gap: 18px; align-items: start; border: 1px solid var(--border); border-radius: 16px; padding: 24px 26px; background: var(--bg); margin-top: 48px; }
.author-box .avatar-lg { width: 62px; height: 62px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; }
.author-box h4 { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.author-box .role { font-size: .82rem; color: var(--brand); font-weight: 700; margin-bottom: 8px; }
.author-box p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Share row */
.share-row { display: flex; align-items: center; gap: 12px; margin-top: 30px; font-size: .86rem; color: var(--muted); font-weight: 600; }
.share-row a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); color: var(--muted); transition: all .15s; }
.share-row a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }

/* Related posts */
.related { border-top: 1px solid var(--border); padding: 56px 0 20px; }
.related h2 { font-size: 1.4rem; font-weight: 900; letter-spacing: -.02em; margin-bottom: 26px; }

/* Final CTA band (shared) */
.final-cta { padding: 80px 0; }
.cta-box { background: linear-gradient(150deg, #0d2d7a, #1b4fce 60%, #2a8cff); border-radius: 26px; padding: 60px 40px; text-align: center; color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-box::after { content: ""; position: absolute; bottom: -120px; left: -80px; width: 360px; height: 360px; background: radial-gradient(circle, rgba(0,196,140,.3), transparent 65%); }
.cta-box > * { position: relative; z-index: 2; }
.cta-box h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 16px; color: #fff; }
.cta-box p { font-size: 1.06rem; color: rgba(255,255,255,.85); max-width: 620px; margin: 0 auto 28px; }
.cta-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.cta-note { font-size: .85rem; color: rgba(255,255,255,.7); }

/* ── Footer (shared with main site) ──────────────────────────────────────── */
footer.site-footer { background: #0a1730; color: rgba(255,255,255,.7); padding: 56px 0 30px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand-name { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 14px; }
.footer-desc { font-size: .9rem; line-height: 1.7; max-width: 340px; margin-bottom: 18px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-badge { font-size: .72rem; font-weight: 700; background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); padding: 5px 11px; border-radius: 100px; }
.footer-col h4 { color: #fff; font-size: .85rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { font-size: .88rem; color: rgba(255,255,255,.65); transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: .82rem; color: rgba(255,255,255,.5); }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-top { grid-template-columns: 1fr; } }
