﻿/* ============================================
   Cited — Main Stylesheet
   getcited.uk
   ============================================ */

/* ── Custom Properties ── */
:root {
    --ink: #1a1a1a;
    --paper: #f7f5f0;
    --accent: #2d6a4f;
    --accent-light: #40916c;
    --accent-pale: #e8f0eb;
    --warm: #d4a373;
    --warm-light: #faf0e4;
    --grey-600: #555;
    --grey-400: #999;
    --grey-200: #ddd;
    --radius: 8px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3 { font-family: 'Fraunces', serif; font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.015em; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }

p { max-width: 640px; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-light); }

/* ── Layout ── */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
}

/* ── Nav ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(247, 245, 240, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.3s;
}

nav.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.logo span { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--grey-600);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
    background: var(--accent);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.nav-cta:hover { background: var(--accent-light); color: #fff !important; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    position: relative;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    position: absolute;
    left: 4px;
    transition: all 0.3s;
}

.mobile-toggle span:nth-child(1) { top: 8px; }
.mobile-toggle span:nth-child(2) { top: 15px; }
.mobile-toggle span:nth-child(3) { top: 22px; }

/* ── Hero ── */
.hero {
    padding: 160px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(45,106,79,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 720px;
}

.hero-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 20px;
    padding: 6px 14px;
    background: var(--accent-pale);
    border-radius: 100px;
}

.hero h1 {
    margin-bottom: 24px;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero p {
    font-size: 1.15rem;
    color: var(--grey-600);
    margin-bottom: 36px;
    max-width: 560px;
}

.btn-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-light);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(45,106,79,0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--grey-200);
}

.btn-secondary:hover {
    border-color: var(--ink);
    color: var(--ink);
}

/* ── Metrics bar ── */
.metrics {
    padding: 60px 0;
    border-top: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.metric-num {
    font-family: 'Fraunces', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 6px;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--grey-400);
    font-weight: 500;
}

/* ── Problem / Solution ── */
.problem {
    background: var(--ink);
    color: #fff;
}

.problem h2 { color: #fff; }

.problem p { color: rgba(255,255,255,0.7); }

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 48px;
}

.problem-card {
    padding: 32px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

.problem-card h3 {
    color: var(--warm);
    margin-bottom: 12px;
}

.problem-card p {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    max-width: 100%;
}

.solution-card {
    background: rgba(45,106,79,0.15);
    border-color: rgba(45,106,79,0.3);
}

.solution-card h3 {
    color: var(--accent-light);
}

.solution-card p {
    color: rgba(255,255,255,0.7);
}

/* ── Services ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.service-card {
    padding: 36px 28px;
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
    transition: all 0.3s;
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(45,106,79,0.08);
    transform: translateY(-2px);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--accent-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }

.service-card p {
    font-size: 0.92rem;
    color: var(--grey-600);
    max-width: 100%;
}

/* ── Approach ── */
.approach-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.step {
    position: relative;
}

.step-num {
    font-family: 'Fraunces', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-pale);
    line-height: 1;
    margin-bottom: 12px;
}

.step h3 { font-size: 1.1rem; margin-bottom: 8px; }

.step p {
    font-size: 0.9rem;
    color: var(--grey-600);
    max-width: 100%;
}

/* ── About ── */
.about {
    background: var(--accent-pale);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: center;
}

.about-info h2 { margin-bottom: 20px; }

.about-info p {
    color: var(--grey-600);
    margin-bottom: 16px;
    max-width: 100%;
}

.about-info p strong { color: var(--ink); }

.credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.credential {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    background: #fff;
    color: var(--grey-600);
    border: 1px solid rgba(0,0,0,0.08);
}

/* ── Wider Services ── */
.wider {
    background: #fff;
}

.wider-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 36px;
}

.wider-item {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid rgba(0,0,0,0.05);
}

.wider-item h3 { font-size: 1rem; margin-bottom: 6px; }

.wider-item p {
    font-size: 0.85rem;
    color: var(--grey-600);
    max-width: 100%;
}

/* ── CTA Section ── */
.cta-section {
    background: var(--ink);
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255,255,255,0.6);
    margin: 0 auto 36px;
    max-width: 500px;
}

.cta-section .btn-primary {
    font-size: 1.05rem;
    padding: 16px 36px;
}

/* ── Footer ── */
footer {
    padding: 48px 0;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    font-size: 0.85rem;
    color: var(--grey-400);
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--grey-400);
}

.footer-links a:hover { color: var(--ink); }

/* ── Who it's for ── */
.for-you {
    background: var(--warm-light);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.for-you h2 { margin-bottom: 16px; }

.access-statement {
    font-size: 1.05rem;
    color: var(--grey-600);
    max-width: 620px;
    margin-bottom: 32px;
}

.org-types {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.org-tag {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 100px;
    background: #fff;
    color: var(--ink);
    border: 1.5px solid rgba(0,0,0,0.1);
}

/* ── Portfolio ── */
.portfolio { background: #fff; }

.portfolio-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-top: 48px;
    padding-bottom: 4px;
}

.portfolio-carousel::-webkit-scrollbar { display: none; }

.portfolio-card {
    flex: 0 0 calc(50% - 12px);
    min-width: 320px;
    scroll-snap-align: start;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid rgba(0,0,0,0.07);
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}

.portfolio-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.09);
    transform: translateY(-2px);
}

.portfolio-visual {
    height: 160px;
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.portfolio-visual-label {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    letter-spacing: -0.01em;
}

.portfolio-body { padding: 28px; }

.portfolio-type {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--grey-400);
    margin-bottom: 8px;
}

.portfolio-card h3 { font-size: 1.2rem; margin-bottom: 10px; }

.portfolio-card p {
    font-size: 0.9rem;
    color: var(--grey-600);
    max-width: 100%;
    margin-bottom: 20px;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 20px;
}

.portfolio-tag {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    background: var(--accent-pale);
    color: var(--accent);
}

.portfolio-link {
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--accent);
}

.portfolio-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.carousel-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--grey-200);
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s;
    color: var(--ink);
}

.carousel-btn:hover { border-color: var(--accent); color: var(--accent); }

.carousel-dots { display: flex; gap: 8px; }

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--grey-200);
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}

.carousel-dot.active { background: var(--accent); }

/* ── Speaking ── */
.speaking { background: var(--accent-pale); }

.talks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.talk-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.07);
    padding: 28px;
    transition: box-shadow 0.2s;
}

.talk-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.talk-event {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 10px;
}

.talk-card h3 { font-size: 1.05rem; margin-bottom: 10px; }

.talk-desc {
    font-size: 0.88rem;
    color: var(--grey-600);
    max-width: 100%;
    margin-bottom: 16px;
}

.talk-link { font-size: 0.85rem; font-weight: 600; color: var(--accent); }

/* ── FAQ ── */
.faq { background: var(--paper); }

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.faq-item {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.07);
    padding: 28px;
}

.faq-q {
    font-family: 'Fraunces', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
    line-height: 1.3;
}

.faq-a {
    font-size: 0.9rem;
    color: var(--grey-600);
    max-width: 100%;
    line-height: 1.7;
}

/* ── Animations ── */
.fade-up {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .fade-up {
    opacity: 0;
    transform: translateY(24px);
}

html.js .fade-up.visible,
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive (existing) ── */
@media (max-width: 900px) {
    section { padding: 72px 0; }

    .hero { padding: 120px 0 80px; }

    .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

    .problem-grid,
    .about-grid { grid-template-columns: 1fr; gap: 24px; }

    .services-grid,
    .wider-grid,
    .talks-grid,
    .faq-grid { grid-template-columns: 1fr 1fr; }

    .approach-steps { grid-template-columns: 1fr 1fr; }

    .nav-links { display: none; }

    .mobile-toggle { display: block; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--paper);
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    }
}

@media (max-width: 600px) {
    .services-grid,
    .wider-grid,
    .talks-grid,
    .faq-grid,
    .approach-steps { grid-template-columns: 1fr; }

    .metrics-grid { grid-template-columns: 1fr 1fr; }

    .btn-row { flex-direction: column; }

    .btn { width: 100%; justify-content: center; }

    .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}


/* ============================================
   Multi-page additions
   ============================================ */

/* ── 1. Page Header (inner page hero) ── */
.page-header {
    padding: 120px 0 48px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.page-header::before {
    content: '';
    position: absolute;
    top: -160px;
    right: -160px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(45,106,79,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 12px;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--grey-600);
    max-width: 600px;
}

/* ── 2. Breadcrumbs ── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--grey-400);
}

.breadcrumb li + li::before {
    content: '/';
    color: var(--grey-200);
    font-weight: 400;
}

.breadcrumb a {
    color: var(--grey-400);
    transition: color 0.2s;
}

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

.breadcrumb li:last-child {
    color: var(--ink);
    font-weight: 600;
}

/* ── 3. Prose (long-form content) ── */
.prose {
    max-width: 720px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ink);
}

.prose h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.prose h3 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.prose h4 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.prose p {
    max-width: 100%;
    margin-bottom: 1.25rem;
    color: var(--grey-600);
}

.prose p strong {
    color: var(--ink);
    font-weight: 600;
}

.prose a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    text-decoration-color: var(--accent-pale);
    transition: text-decoration-color 0.2s, color 0.2s;
}

.prose a:hover {
    text-decoration-color: var(--accent);
    color: var(--accent-light);
}

.prose ul,
.prose ol {
    max-width: 100%;
    margin-bottom: 1.25rem;
    padding-left: 1.5em;
    color: var(--grey-600);
}

.prose li {
    margin-bottom: 0.4rem;
}

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

.prose blockquote {
    border-left: 3px solid var(--accent);
    padding: 16px 24px;
    margin: 1.5rem 0;
    background: var(--accent-pale);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--grey-600);
}

.prose blockquote p {
    margin-bottom: 0;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.prose hr {
    border: none;
    height: 1px;
    background: var(--grey-200);
    margin: 2.5rem 0;
}

.prose code {
    font-size: 0.9em;
    background: var(--accent-pale);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent);
}

.prose pre {
    background: var(--ink);
    color: #e0e0e0;
    padding: 20px 24px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.88rem;
    line-height: 1.6;
}

.prose pre code {
    background: none;
    padding: 0;
    color: inherit;
    border-radius: 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.92rem;
}

.prose th,
.prose td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--grey-200);
}

.prose th {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--grey-400);
}

.prose td {
    color: var(--grey-600);
}

/* ── 4. Form Styles ── */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

.form-label .required {
    color: #c0392b;
    margin-left: 2px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--grey-200);
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(45,106,79,0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--grey-400);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--grey-400);
    margin-top: 4px;
}

.form-error {
    font-size: 0.8rem;
    color: #c0392b;
    margin-top: 4px;
}

.form-input.error,
.form-textarea.error,
.form-select.error {
    border-color: #c0392b;
}

/* ── 5. Blog Card ── */
.blog-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.07);
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}

.blog-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blog-card-body {
    padding: 28px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--grey-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.blog-card-meta .category {
    color: var(--accent);
    font-weight: 600;
}

.blog-card-meta .separator {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--grey-400);
}

.blog-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.35;
}

.blog-card h3 a {
    color: var(--ink);
    transition: color 0.2s;
}

.blog-card h3 a:hover {
    color: var(--accent);
}

.blog-card p {
    font-size: 0.9rem;
    color: var(--grey-600);
    max-width: 100%;
    margin-bottom: 16px;
    line-height: 1.65;
}

.blog-card .read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

.blog-card .read-more:hover {
    color: var(--accent-light);
}

/* Blog listing grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

/* Featured blog card (first/larger) */
.blog-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.blog-card--featured .blog-card-image {
    height: 100%;
    min-height: 280px;
}

.blog-card--featured .blog-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px;
}

.blog-card--featured h3 {
    font-size: 1.5rem;
}

/* ── 6. Sidebar ── */
.sidebar {
    position: sticky;
    top: 88px;
}

.sidebar-block {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.07);
    padding: 28px;
    margin-bottom: 24px;
}

.sidebar-block h4 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--ink);
    line-height: 1.3;
}

.sidebar-block ul {
    list-style: none;
}

.sidebar-block li {
    margin-bottom: 8px;
}

.sidebar-block li a {
    font-size: 0.9rem;
    color: var(--grey-600);
    display: block;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: color 0.2s, padding-left 0.2s;
}

.sidebar-block li a:hover {
    color: var(--accent);
    padding-left: 6px;
}

.sidebar-block li:last-child a {
    border-bottom: none;
}

/* Sidebar CTA variant */
.sidebar-cta {
    background: var(--accent-pale);
    border-color: rgba(45,106,79,0.15);
    text-align: center;
}

.sidebar-cta h4 {
    color: var(--accent);
}

.sidebar-cta p {
    font-size: 0.88rem;
    color: var(--grey-600);
    max-width: 100%;
    margin-bottom: 16px;
}

/* ── 7. Two-column Layout (main + sidebar) ── */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

.two-col-layout > .main-content {
    min-width: 0;
}

/* ── 8. CTA Banner (inline component) ── */
.cta-banner {
    background: var(--accent-pale);
    border: 1px solid rgba(45,106,79,0.15);
    border-radius: var(--radius);
    padding: 36px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin: 48px 0;
}

.cta-banner-content h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
    color: var(--ink);
}

.cta-banner-content p {
    font-size: 0.92rem;
    color: var(--grey-600);
    max-width: 100%;
    margin-bottom: 0;
}

.cta-banner .btn {
    flex-shrink: 0;
}

/* Dark variant */
.cta-banner--dark {
    background: var(--ink);
    border-color: transparent;
}

.cta-banner--dark h3 {
    color: #fff;
}

.cta-banner--dark p {
    color: rgba(255,255,255,0.6);
}

/* ── 9. Tag List ── */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.tag-list a,
.tag-list span {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 100px;
    background: var(--accent-pale);
    color: var(--accent);
    transition: background 0.2s, color 0.2s;
}

.tag-list a:hover {
    background: var(--accent);
    color: #fff;
}

/* Muted tag variant (for categories/secondary) */
.tag-list--muted a,
.tag-list--muted span {
    background: var(--paper);
    color: var(--grey-600);
    border: 1px solid rgba(0,0,0,0.08);
}

.tag-list--muted a:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

/* Active tag state */
.tag-list .active a,
.tag-list .active span {
    background: var(--accent);
    color: #fff;
}


/* ============================================
   Multi-page responsive additions
   ============================================ */

@media (max-width: 900px) {
    .page-header {
        padding: 100px 0 36px;
    }

    .two-col-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .sidebar {
        position: static;
    }

    .blog-card--featured {
        grid-template-columns: 1fr;
    }

    .blog-card--featured .blog-card-image {
        min-height: 200px;
    }

    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }
}

@media (max-width: 600px) {
    .page-header {
        padding: 88px 0 28px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .cta-banner {
        padding: 24px 20px;
    }

    .cta-banner .btn {
        width: 100%;
        justify-content: center;
    }
}


/* ============================================
   10. Print Styles
   ============================================ */

@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        background: #fff !important;
    }

    nav,
    .mobile-toggle,
    .cta-section,
    .cta-banner,
    .carousel-btn,
    .carousel-dots,
    .portfolio-nav,
    footer {
        display: none !important;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    section {
        padding: 24pt 0;
        page-break-inside: avoid;
    }

    .page-header {
        padding: 0 0 12pt;
    }

    h1, h2, h3 {
        page-break-after: avoid;
        orphans: 3;
        widows: 3;
    }

    h1 { font-size: 22pt; }
    h2 { font-size: 17pt; }
    h3 { font-size: 13pt; }

    p, li, td {
        orphans: 3;
        widows: 3;
    }

    a {
        text-decoration: underline;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        font-weight: 400;
        color: #666 !important;
    }

    .prose img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    .two-col-layout {
        display: block;
    }

    .sidebar {
        display: none !important;
    }

    .blog-grid,
    .services-grid,
    .wider-grid {
        display: block;
    }

    .blog-card,
    .service-card,
    .wider-item {
        page-break-inside: avoid;
        margin-bottom: 12pt;
        border: 1px solid #ddd !important;
    }

    .hero {
        padding: 0 0 24pt;
    }

    .btn {
        border: 1px solid #000 !important;
        padding: 4pt 10pt;
    }
}
