/* Shared Rekindle foundation. Journey pages own their composition and states. */
:root {
    --rek-warm: #F5EDE4;
    --rek-warm-deep: #E8D8C8;
    --rek-paper: #FEFCFA;
    --rek-forest: #2D4A3E;
    --rek-forest-light: #3D6455;
    --rek-terracotta: #C4785B;
    --rek-terracotta-dark: #A8614A;
    --rek-olive: #6B8F4E;
    --rek-olive-light: #8AAF6A;
    --rek-olive-pale: #EEF4E8;
    --rek-charcoal: #2A2A2A;
    --rek-muted: #8A7E74;
    --rek-border: rgba(90, 68, 53, .16);
    --rek-shadow: 0 18px 48px rgba(71, 51, 38, .08);
}

html { scroll-behavior: smooth; }

body {
    color: var(--rek-charcoal);
    background: var(--rek-paper);
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--rek-terracotta-dark); }
a:hover { color: var(--rek-forest); }

:where(h1, h2, h3, h4) {
    color: var(--rek-forest);
    font-family: 'Lora', serif;
    font-weight: 400;
}

:where(h1, h2, h3) em {
    color: var(--rek-terracotta);
    font-style: italic;
}

:where(.nav) {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

:where(.nav-login, .nav-back, .nav-link) {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

:where(button, input, textarea, select) { font-family: inherit; }
:where(button, .btn, .btn-primary, .btn-secondary, .btn-olive, .btn-cta,
    .btn-warm, .btn-accept, .btn-reveal, .submit-btn, .pay-btn, .cta-btn) {
    min-height: 48px;
}

:where(input, textarea, select) {
    max-width: 100%;
    color: var(--rek-charcoal);
}

:where(input, textarea, select):focus {
    outline: 2px solid rgba(196, 120, 91, .48);
    outline-offset: 2px;
}

:focus-visible {
    outline: 3px solid rgba(196, 120, 91, .55);
    outline-offset: 3px;
}

:where(.nav-logo, .hero-logo, .footer-logo, .footer-brand, .rekin-logo) {
    text-decoration: none;
}

:where(.footer-links) a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

:where(.footer-note, .footer-tagline) { line-height: 1.6; }

/* Canonical footer used by every customer-facing Rekindle journey page. */
.rekin-footer {
    padding: 2.5rem 2rem;
    text-align: center;
    background: var(--rek-forest);
}

.rekin-footer .footer-logo {
    margin-bottom: .85rem;
    color: var(--rek-warm);
    font-family: 'Lora', serif;
    font-size: .9rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    opacity: .7;
}

.rekin-footer .footer-links {
    margin-bottom: .4rem;
    font-size: .72rem;
}

.rekin-footer .footer-links a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    margin: 0 .5rem;
    color: rgba(245,237,228,.45);
    text-decoration: none;
    transition: color .2s;
}

.rekin-footer .footer-links a:hover { color: rgba(245,237,228,.8); }

.rekin-footer .footer-tagline {
    margin-top: 1rem;
    margin-bottom: .25rem;
    color: #C9A84C;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    line-height: 1.6;
    text-transform: uppercase;
}

.rekin-footer .footer-note {
    margin-top: .5rem;
    color: rgba(245,237,228,.35);
    font-size: .7rem;
    letter-spacing: .03em;
}

/* Shared olive-branch illustration treatment. */
:where(.hero-branch-bg, .hero-olive-svg, .branch-svg-wrap) {
    pointer-events: none;
}

@media (max-width: 680px) {
    :where(.nav) { padding-inline: 1rem; }
    :where(.nav-actions) { gap: .6rem; }
    :where(.footer-links) { flex-wrap: wrap; }
    .rekin-footer { padding: 2.25rem 1rem; }
    .rekin-footer .footer-links { margin-inline: auto; max-width: 19rem; }
    .rekin-footer .footer-links a { margin-inline: .35rem; }
    .rekin-footer .footer-tagline { max-width: 24rem; margin-inline: auto; }
    :where(.form-row-grid, .compose-row, .role-cards, .steps-row) {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
