/* ============================================================
   RandomCount — Shared Section-Header Design System
   ------------------------------------------------------------
   Linked AFTER each page's inline <style> (right before
   </head>) so it harmonises every page with the homepage look
   WITHOUT needing !important and WITHOUT breaking any page's
   own inline style="" overrides.

   Covers every label/sub class variant found across the site:
     labels : .section-label  .section-badge  .section-eyebrow
     subs   : .section-sub     .section-lead   .section-subtitle
     title  : .section-title  (universal)
============================================================ */

/* ---- Pill eyebrow/label: sits ON ITS OWN LINE, centered, ABOVE the
        title (a compact chip, not stretched full-width) ---- */
.section-label,
.section-badge,
.section-eyebrow {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    margin: 0 auto 14px;     /* own line + centered + gap before title */
    padding: 6px 18px;
    border-radius: 100px;
    background: rgba(181, 84, 28, 0.10);
    border: 1px solid rgba(181, 84, 28, 0.25);
    color: #b5541c;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.4;
}

/* ---- Title: its own line below the pill. inline-block keeps it
        shrink-wrapped so the gradient underline stays centered
        directly under the title text. ---- */
.section-title {
    display: block;
    position: relative;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 0;
    padding-bottom: 10px;
    text-align: center;          /* keep the title on its own centered line so the
                                    pill above and the gradient underline below line
                                    up with it (matches the section-header design) */
}

.section-title::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin: 10px auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, #b5541c, #d4874a);
}

/* ---- More readable section descriptions ---- */
.section-sub,
.section-lead,
.section-subtitle {
    line-height: 1.8;
    font-size: 1rem;
    text-align: center;          /* center the lead under the centered title */
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   Reusable CTA buttons (available site-wide for future use)
============================================================ */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-cta--primary {
    background: linear-gradient(90deg, #b5541c, #d4874a);
    color: #fff;
}

.btn-cta--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(181, 84, 28, 0.35);
}

.btn-cta--secondary {
    background: transparent;
    color: #b5541c;
    border-color: #b5541c;
}

.btn-cta--secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(181, 84, 28, 0.15);
    background: rgba(181, 84, 28, 0.06);
}

.btn-cta:active { transform: translateY(1px) scale(0.99); }

/* ============================================================
   AEO — Definition blocks, Quick Facts, Answer blocks (site-wide)
============================================================ */
.definitions-wrap {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
}

.definition-block {
    background: #fffaf3;
    border: 1px solid var(--border, #ddd5c5);
    border-left: 4px solid #d4622a;
    border-radius: 14px;
    padding: 20px 24px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.definition-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 34px rgba(181, 84, 28, 0.10);
}

.definition-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d4622a;
    margin-bottom: 8px;
}

.definition-block h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(1.2rem, 2.4vw, 1.5rem);
    font-weight: 800;
    margin: 0 0 8px;
    display: block;
}

/* never apply the centered section-title underline to a definition heading */
.definition-block h2::after { content: none; }

.definition-text {
    color: var(--text, #2a2118);
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
}

/* Quick Facts */
.quick-facts-block {
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
    background: var(--card, #fff8ef);
    border: 1px solid var(--border, #ddd5c5);
    border-radius: 16px;
    padding: 24px 26px;
}

.quick-facts-block h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.2rem;
    margin: 0 0 14px;
}

.facts-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
}

.facts-list li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted, #8a7a66);
    padding-left: 22px;
    position: relative;
}

.facts-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #d4622a;
    font-weight: 800;
}

.facts-list li strong { color: var(--text, #2a2118); }

/* Zero-click answer blocks + data tables */
.answer-block {
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
}

.answer-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.92rem;
}

.answer-table th,
.answer-table td {
    border: 1px solid var(--border, #ddd5c5);
    padding: 10px 14px;
    text-align: left;
}

.answer-table th {
    background: rgba(181, 84, 28, 0.08);
    font-weight: 700;
}

@media (max-width: 560px) {
    .facts-list { grid-template-columns: 1fr; }
}

/* ============================================================
   Accessibility: respect reduced-motion globally
============================================================ */
@media (prefers-reduced-motion: reduce) {
    .btn-cta { transition: none; }
    .section-title::after { transition: none; }
    .definition-block { transition: none; }
}
