/* ═══════════════════════════════════════════════
   Fairmont Credit Partners — Blog / Insights
   Shares the design tokens used across the site.
═══════════════════════════════════════════════ */

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

:root {
    --accent: #1B7FD4;
    --accent-dim: rgba(27, 127, 212, 0.08);
    --deep: #091729;
    --ink: #0e1a2b;
    --mid: #3e5068;
    --mute: #8899aa;
    --faint: #c2ced9;
    --line: #e2e8ef;
    --wash: #f5f7fa;
    --white: #ffffff;
    --serif: 'DM Serif Display', Georgia, serif;
    --sans: 'Outfit', system-ui, sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--wash);
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--white); }

a { color: inherit; text-decoration: none; }

/* ─── HEADER ─── */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.9rem clamp(1.25rem, 4vw, 3.5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header .logo img { height: 52px; display: block; }

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

.header-nav a {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--mid);
    transition: color 0.2s;
}

.header-nav a:hover { color: var(--accent); }

.header-nav a.nav-cta {
    background: var(--accent);
    color: var(--white);
    padding: 0.55rem 1.15rem;
    border-radius: 5px;
    font-weight: 600;
}

.header-nav a.nav-cta:hover { background: #1568b0; color: var(--white); }

/* ─── SHARED WRAPPER ─── */
.wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3.5rem);
}

.wrap-wide { max-width: 1100px; }

/* ─── BREADCRUMB ─── */
.crumbs {
    font-size: 0.78rem;
    color: var(--mute);
    padding-top: 2.25rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.crumbs a { color: var(--mid); }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-current] { color: var(--mute); }

/* ─── BLOG INDEX ─── */
.index-hero {
    padding: 3.5rem 0 2.5rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0.5rem;
}

.eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.9rem;
}

.index-hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.1rem, 5vw, 3.1rem);
    line-height: 1.12;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 1rem;
}

.index-hero p {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--mid);
    max-width: 46rem;
}

.post-list { padding: 1rem 0 4rem; }

.post-card {
    display: block;
    padding: 2rem 0;
    border-bottom: 1px solid var(--line);
    transition: transform 0.3s var(--ease);
}

.post-card:hover { transform: translateX(4px); }

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--mute);
    margin-bottom: 0.7rem;
}

.post-meta .cat { color: var(--accent); font-weight: 600; }
.post-meta .dot { color: var(--faint); }

.post-card h2 {
    font-family: var(--serif);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 400;
    line-height: 1.25;
    color: var(--ink);
    margin-bottom: 0.6rem;
    transition: color 0.2s;
}

.post-card:hover h2 { color: var(--accent); }

.post-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--mid);
    margin-bottom: 0.9rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
}

.read-more::after {
    content: '';
    width: 1.5rem;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease);
}

.post-card:hover .read-more::after { width: 2.5rem; }

/* ─── ARTICLE ─── */
.article-head { padding: 1.75rem 0 2rem; }

.article-head h1 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4.6vw, 2.9rem);
    line-height: 1.15;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 1.1rem;
}

.article-dek {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--mid);
    margin-bottom: 1.6rem;
}

.byline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 1.35rem;
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
    color: var(--mute);
}

.byline .author { font-weight: 600; color: var(--ink); }
.byline .sep { color: var(--faint); }

.article-body {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: clamp(1.6rem, 4vw, 3rem);
    margin-bottom: 2rem;
}

.article-body > *:first-child { margin-top: 0; }
.article-body > *:last-child { margin-bottom: 0; }

.article-body p {
    font-size: 1.02rem;
    line-height: 1.82;
    color: var(--mid);
    margin-bottom: 1.35rem;
}

.article-body .lede {
    font-size: 1.12rem;
    line-height: 1.72;
    color: var(--ink);
    font-weight: 400;
    padding-left: 1.1rem;
    border-left: 3px solid var(--accent);
    margin-bottom: 1.9rem;
}

.article-body h2 {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 400;
    line-height: 1.25;
    color: var(--ink);
    margin: 2.6rem 0 1rem;
    scroll-margin-top: 6rem;
}

.article-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    margin: 1.9rem 0 0.7rem;
    scroll-margin-top: 6rem;
}

.article-body ul, .article-body ol {
    margin: 0 0 1.35rem 1.2rem;
    color: var(--mid);
}

.article-body li {
    font-size: 1.02rem;
    line-height: 1.75;
    margin-bottom: 0.6rem;
    padding-left: 0.35rem;
}

.article-body li::marker { color: var(--accent); }

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

.article-body a {
    color: var(--accent);
    font-weight: 500;
    border-bottom: 1px solid rgba(27,127,212,0.3);
    transition: border-color 0.2s;
}

.article-body a:hover { border-bottom-color: var(--accent); }

.article-body blockquote {
    background: var(--accent-dim);
    border-left: 3px solid var(--accent);
    border-radius: 0 6px 6px 0;
    padding: 1.15rem 1.35rem;
    margin: 0 0 1.6rem;
}

.article-body blockquote p {
    margin: 0;
    font-size: 0.97rem;
    color: var(--ink);
}

.article-body blockquote p + p { margin-top: 0.75rem; }

.table-scroll {
    overflow-x: auto;
    margin: 0 0 1.6rem;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 30rem;
}

.article-body th {
    background: var(--wash);
    text-align: left;
    font-weight: 600;
    color: var(--ink);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.article-body td {
    padding: 0.75rem 1rem;
    color: var(--mid);
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.article-body tr:last-child td { border-bottom: none; }

/* ─── CTA ─── */
.article-cta {
    background: var(--deep);
    border-radius: 10px;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 2rem;
}

.article-cta h2 {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 0.8rem;
    line-height: 1.25;
}

.article-cta p {
    font-size: 0.97rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
}

.btn-accent {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.85rem 1.9rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.btn-accent:hover { background: #1568b0; }

/* ─── DISCLOSURE ─── */
.disclosure {
    font-size: 0.78rem;
    line-height: 1.7;
    color: var(--mute);
    border-top: 1px solid var(--line);
    padding-top: 1.25rem;
    margin-bottom: 3rem;
}

/* ─── RELATED ─── */
.related { padding-bottom: 4rem; }

.related h2 {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 1.25rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem;
}

.related-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.35rem;
    transition: border-color 0.25s, transform 0.25s var(--ease);
}

.related-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.related-card .cat {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 0.55rem;
}

.related-card h3 {
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
}

/* ─── FOOTER ─── */
footer.site-footer { background: var(--deep); padding: 3.5rem 0 2rem; }

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3.5rem);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
    font-family: var(--serif);
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-contact-info a, .footer-contact-info span {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    transition: color 0.2s;
}

.footer-contact-info a:hover { color: var(--accent); }

.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }

.footer-links a {
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    transition: color 0.2s;
}

.footer-links a:hover { color: rgba(255,255,255,0.85); }

.footer-bottom {
    padding-top: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

footer.site-footer p {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.6;
}

/* Google Preferred Source link — see PREFERRED-SOURCE.md before enabling */
.preferred-source {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 5px;
    padding: 0.5rem 1rem;
    transition: border-color 0.2s, color 0.2s;
}

.preferred-source:hover { color: var(--white); border-color: var(--accent); }

@media (max-width: 700px) {
    .header-nav { gap: 1rem; }
    .header-nav a:not(.nav-cta) { display: none; }
    .footer-top { flex-direction: column; gap: 2rem; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
