/* =====================================================
   Verity Home — Shared Stylesheet  v2
   Deep Teal + Gold palette · 17px body
   ===================================================== */

:root {
    /* Primary — deep teal */
    --primary: #1A4A5C;
    --primary-mid: #1D7A8C;
    --primary-tint: #E1F0F4;

    /* Gold accent */
    --gold: #B8892A;
    --gold-light: #FDF3E0;

    /* Backgrounds */
    --cream: #F7F4EF;
    --cream-dark: #EDE9E1;
    --white: #FFFFFF;

    /* Text */
    --text-dark: #1A2332;
    --text-muted: #4A5568;
    --text-light: #718096;

    /* Borders */
    --border: #E2DDD6;
    --border-strong: #C8C2BA;

    /* Footer */
    --footer-bg: #1A2332;

    /* Backward compatibility — page-specific CSS using old names still resolves */
    --sage: #1A4A5C;
    --sage-light: #1D7A8C;
    --gold-light-old: #FDF3E0;
    --cream-dark-old: #EDE9E1;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.75;
    font-size: 17px;
}

/* ── Typography ── */
h1 {
    font-family: 'Lora', serif;
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 1.1rem;
    line-height: 1.15;
    letter-spacing: -0.3px;
}

h2 {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    margin-top: 0;
    line-height: 1.3;
}

h3 {
    font-family: 'Lora', serif;
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
}

section { margin-bottom: 2.75rem; }

p { margin-bottom: 1.3rem; color: var(--text-dark); }
ul, ol { margin-left: 2rem; margin-bottom: 1.3rem; }
li { margin-bottom: 0.65rem; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ── */
header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.header-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    font-family: 'Lora', serif;
    font-size: 1.4rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: -0.2px;
}

nav { display: flex; gap: 1.75rem; align-items: center; }
nav a { color: var(--text-muted); text-decoration: none; font-size: 0.92rem; font-weight: 500; transition: color 0.2s; }
nav a:hover { color: var(--primary); text-decoration: none; }

.nav-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.55rem 1.25rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.88rem;
    transition: background 0.2s;
}

.nav-cta:hover {
    background: var(--primary-mid) !important;
    color: var(--white) !important;
    text-decoration: none;
}

/* ── Main / Breadcrumb / Hero ── */
main { max-width: 860px; margin: 0 auto; padding: 0 2rem; }

.breadcrumb { padding: 1.75rem 0 0.75rem; font-size: 0.88rem; color: var(--text-light); }
.breadcrumb a { color: var(--primary-mid); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.hero { padding: 2.75rem 0 2rem; border-bottom: 2px solid var(--primary-tint); margin-bottom: 2.75rem; }
.hero-tag { display: inline-block; background: var(--primary); color: var(--white); padding: 0.3rem 0.9rem; border-radius: 20px; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.hero-intro { font-size: 1.1rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 0; max-width: 640px; }
.hero img { width: 100%; height: auto; margin: 2rem 0 0; border-radius: 8px; }

/* ── Buttons ── */
.btn { display: inline-block; padding: 0.7rem 1.5rem; border-radius: 6px; font-size: 0.93rem; font-weight: 500; text-decoration: none; transition: all 0.2s; cursor: pointer; }

.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: #9E7422; color: var(--white); text-decoration: none; }

.btn-secondary { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-secondary:hover { border-color: rgba(255,255,255,0.7); color: var(--white); text-decoration: none; }

.btn-teal { background: var(--primary); color: var(--white); }
.btn-teal:hover { background: var(--primary-mid); color: var(--white); text-decoration: none; }

/* ── CTA block (content pages) ── */
.cta-block { background: var(--primary); color: var(--white); padding: 2rem; border-radius: 8px; margin: 3rem 0; }
.cta-block p { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }
.cta-btn { display: inline-block; background: var(--gold); color: var(--white); padding: 0.8rem 2rem; border-radius: 6px; text-decoration: none; font-weight: 600; transition: background 0.2s; }
.cta-btn:hover { background: #9E7422; color: var(--white); text-decoration: none; }

/* ── Trust bar ── */
.trust-bar { background: var(--primary-tint); border-bottom: 1px solid #C8DDE4; padding: 1rem 2rem; }
.trust-bar-inner { max-width: 1080px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: var(--primary); font-weight: 500; }
.trust-item svg { flex-shrink: 0; opacity: 0.8; }

/* ── Section labels ── */
.section-label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 0.5rem; }
.section-title { font-family: 'Lora', serif; font-size: 1.6rem; color: var(--primary); margin-bottom: 0.6rem; letter-spacing: -0.2px; }
.section-sub { font-size: 1rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 520px; }

/* ── Calculator strip ── */
.calc-strip { background: var(--primary); border-radius: 10px; padding: 2rem 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.calc-strip h3 { font-family: 'Lora', serif; font-size: 1.3rem; color: var(--white); margin-bottom: 0.4rem; }
.calc-strip p { font-size: 0.92rem; color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: 0; }

/* ── About strip ── */
.about-strip { display: flex; gap: 1.5rem; align-items: flex-start; background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 1.75rem; }
.about-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-family: 'Lora', serif; font-size: 1.2rem; font-weight: 600; color: var(--white); flex-shrink: 0; overflow: hidden; }
.about-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.about-name { font-size: 1rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.2rem; }
.about-role { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold); margin-bottom: 0.75rem; }
.about-text { font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 0.9rem; }

/* ── Qual pills ── */
.qual-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.qual-pill { font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 12px; background: var(--primary-tint); color: var(--primary); }

/* ── Reviewer attribution ── */
.reviewed-by { font-size: 0.88rem; color: var(--text-light); border-top: 1px solid var(--border); padding-top: 1.25rem; margin-top: 2rem; }
.reviewed-by a { color: var(--primary-mid); text-decoration: none; font-weight: 500; }
.reviewed-by a:hover { text-decoration: underline; }

/* Backwards compat: content pages still use old class name */
.reviewer-credit { font-size: 0.88rem; color: var(--text-light); border-top: 1px solid var(--border); padding-top: 1.25rem; margin-top: 2rem; }
.reviewer-credit a { color: var(--primary-mid); text-decoration: none; }
.reviewer-credit a:hover { color: var(--gold); text-decoration: underline; }

/* ── Related guides block ── */
.related-guides { background: var(--cream); border-radius: 8px; padding: 1.5rem; margin-top: 2rem; }
.related-guides h3 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); margin-bottom: 0.9rem; }
.related-guides ul { margin-left: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.related-guides li { margin-bottom: 0; }
.related-guides a { font-size: 0.92rem; color: var(--primary-mid); font-weight: 500; text-decoration: none; display: flex; align-items: center; gap: 0.3rem; }
.related-guides a:hover { text-decoration: underline; }

/* ── Tables ── */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th { background: var(--primary); color: var(--white); padding: 0.7rem 1rem; text-align: left; font-weight: 600; font-size: 0.88rem; }
td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-dark); }
tr:nth-child(even) td { background: var(--cream); }
table caption, .table-note { font-size: 0.83rem; color: var(--text-light); margin-top: 0.6rem; display: block; line-height: 1.5; }

/* ── Callout ── */
.callout { border-left: 3px solid var(--primary-mid); background: var(--primary-tint); padding: 1rem 1.25rem; border-radius: 0 6px 6px 0; margin: 1.5rem 0; font-size: 0.95rem; color: var(--text-dark); line-height: 1.65; }

/* ── Card grid (listing pages) ── */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 1.5rem; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; }
.card h3 { font-family: 'Lora', serif; font-size: 1.05rem; color: var(--primary); margin-bottom: 0.5rem; }
.card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.card a { font-weight: 600; font-size: 0.9rem; }

/* ── Last updated / reviewed note ── */
.last-updated, .last-reviewed { font-size: 0.85rem; color: var(--text-light); border-top: 1px solid var(--border); padding-top: 1.25rem; margin-top: 1rem; margin-bottom: 0; }

/* ── Footer ── */
footer { background: var(--footer-bg); color: var(--white); padding: 3.5rem 2rem 2.5rem; margin-top: 5rem; }
.footer-container { max-width: 1080px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-col h3 { font-family: 'Lora', serif; font-size: 1rem; margin-bottom: 1rem; color: var(--gold); font-weight: 600; }
.footer-col p { color: rgba(255,255,255,0.6); font-size: 0.88rem; line-height: 1.7; margin-bottom: 0; }
.footer-col ul { list-style: none; margin-left: 0; margin-bottom: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); text-decoration: none; }
.footer-trust { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; margin-top: 0; font-size: 0.83rem; color: rgba(255,255,255,0.4); line-height: 1.7; }
.footer-trust strong { color: rgba(255,255,255,0.65); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 0.75rem; height: auto; padding: 1rem 1.5rem; }
    nav { gap: 0.9rem; flex-wrap: wrap; justify-content: center; }
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.3rem; }
    main { padding: 0 1.25rem; }
    .footer-container { padding: 0 1.25rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .trust-bar-inner { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
    .calc-strip { flex-direction: column; align-items: flex-start; gap: 1.25rem; padding: 1.5rem; }
    .about-strip { flex-direction: column; }
    .related-guides ul { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: 1fr; }
}
