/* Fin Rescue website – components. Colours come from theme.css only. */

body {
    font-family: var(--fr-font);
    color: var(--fr-ink);
    background: var(--fr-white);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .display-heading {
    color: var(--fr-navy);
    font-weight: 800;
    line-height: 1.2;
}

a { text-underline-offset: 3px; }

:focus-visible {
    outline: 3px solid var(--fr-blue);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -60px;
    z-index: 2000;
    background: var(--fr-navy);
    color: var(--fr-white);
    padding: .6rem 1rem;
    border-radius: var(--fr-radius);
}
.skip-link:focus { top: 1rem; color: var(--fr-white); }

.visually-hidden-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Buttons ---------- */
.btn { font-weight: 700; border-radius: var(--fr-radius); padding: .65rem 1.25rem; }
.btn-lg { padding: .85rem 1.6rem; }
.btn-primary {
    --bs-btn-bg: var(--fr-blue);
    --bs-btn-border-color: var(--fr-blue);
    --bs-btn-hover-bg: var(--fr-blue-dark);
    --bs-btn-hover-border-color: var(--fr-blue-dark);
    --bs-btn-active-bg: var(--fr-navy-light);
    --bs-btn-active-border-color: var(--fr-navy-light);
    --bs-btn-disabled-bg: var(--fr-blue);
    --bs-btn-disabled-border-color: var(--fr-blue);
}
.btn-accent {
    --bs-btn-color: var(--fr-navy);
    --bs-btn-bg: var(--fr-green);
    --bs-btn-border-color: var(--fr-green);
    --bs-btn-hover-color: var(--fr-navy);
    --bs-btn-hover-bg: #9bdb10;
    --bs-btn-hover-border-color: #9bdb10;
    --bs-btn-active-bg: #7ab300;
    --bs-btn-active-border-color: #7ab300;
}
.btn-outline-light-strong {
    --bs-btn-color: var(--fr-white);
    --bs-btn-border-color: rgba(255, 255, 255, .7);
    --bs-btn-hover-color: var(--fr-navy);
    --bs-btn-hover-bg: var(--fr-white);
    --bs-btn-hover-border-color: var(--fr-white);
}
.btn-outline-navy {
    --bs-btn-color: var(--fr-navy);
    --bs-btn-border-color: var(--fr-navy);
    --bs-btn-hover-color: var(--fr-white);
    --bs-btn-hover-bg: var(--fr-navy);
    --bs-btn-hover-border-color: var(--fr-navy);
}

/* ---------- Top bar & header ---------- */
.top-bar {
    background: var(--fr-navy);
    color: rgba(255, 255, 255, .85);
    font-size: .875rem;
}
.top-bar a { color: var(--fr-white); text-decoration: none; }
.top-bar a:hover { text-decoration: underline; }
.top-bar .bi { color: var(--fr-green); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: saturate(160%) blur(6px);
    box-shadow: var(--fr-shadow-sm);
}
.site-header .navbar { padding-top: .5rem; padding-bottom: .5rem; }
.site-header .brand-logo { height: 72px; width: auto; }
.site-header .nav-link {
    color: var(--fr-navy);
    font-weight: 700;
    padding: .5rem .85rem !important;
    border-radius: 8px;
}
.site-header .nav-link:hover { color: var(--fr-blue-dark); background: var(--fr-surface); }
.site-header .nav-link.active { color: var(--fr-blue-dark); }
.site-header .nav-link.active::after {
    content: "";
    display: block;
    height: 3px;
    border-radius: 3px;
    background: var(--fr-blue);
    margin-top: 3px;
}
.navbar-toggler { border-color: var(--fr-border); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: var(--fr-white);
    background: var(--fr-navy);
    overflow: hidden;
}
.hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(100deg, rgba(2, 40, 63, .94) 0%, rgba(2, 40, 63, .82) 45%, rgba(3, 52, 84, .45) 100%);
}
.hero > .container { position: relative; z-index: 2; }
.hero h1 { color: var(--fr-white); font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 900; }
.hero .lead { color: rgba(255, 255, 255, .9); font-size: 1.2rem; }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(139, 201, 2, .15);
    color: var(--fr-green);
    border: 1px solid rgba(139, 201, 2, .4);
    border-radius: 999px;
    padding: .3rem .9rem;
    font-weight: 800;
    font-size: .85rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.hero-points { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.hero-points li { display: flex; gap: .6rem; margin-bottom: .5rem; color: rgba(255, 255, 255, .92); }
.hero-points .bi { color: var(--fr-green); font-size: 1.2rem; }

/* Inner-page hero (smaller) */
.page-hero { padding: 4.5rem 0 3.5rem; }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.breadcrumb { --bs-breadcrumb-divider-color: rgba(255, 255, 255, .6); --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .85); margin-bottom: .75rem; }
.breadcrumb a { color: var(--fr-white); }

/* Call-back card inside hero */
.callback-card {
    background: var(--fr-white);
    color: var(--fr-ink);
    border-radius: var(--fr-radius-lg);
    box-shadow: var(--fr-shadow);
    padding: 1.75rem;
}
.callback-card h2 { font-size: 1.4rem; }

/* ---------- Quick actions ---------- */
.quick-actions { margin-top: -2.5rem; position: relative; z-index: 5; }
.action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    background: var(--fr-white);
    border: 1px solid var(--fr-border);
    border-radius: var(--fr-radius-lg);
    box-shadow: var(--fr-shadow-sm);
    padding: 1.15rem 1.25rem;
    color: var(--fr-navy);
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.action-card:hover { transform: translateY(-3px); box-shadow: var(--fr-shadow); border-color: var(--fr-blue); color: var(--fr-navy); }
.action-card .icon-badge { flex-shrink: 0; }
.action-card strong { display: block; font-size: 1.05rem; }
.action-card span { color: var(--fr-muted); font-size: .9rem; }

.icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--fr-info-bg);
    color: var(--fr-blue-dark);
    font-size: 1.5rem;
}
.icon-badge.is-navy { background: var(--fr-navy); color: var(--fr-white); }
.icon-badge.is-green { background: rgba(139, 201, 2, .16); color: var(--fr-green-dark); }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-alt { background: var(--fr-surface); }
.section-dark { background: var(--fr-navy); color: rgba(255, 255, 255, .9); }
.section-dark h2, .section-dark h3 { color: var(--fr-white); }
.section-heading { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.section-heading h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
.section-heading p { color: var(--fr-muted); font-size: 1.1rem; }
.section-dark .section-heading p { color: rgba(255, 255, 255, .8); }
.kicker {
    display: block;
    color: var(--fr-blue-dark);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .85rem;
    margin-bottom: .5rem;
}
.section-dark .kicker { color: var(--fr-green); }

.feature-card {
    height: 100%;
    background: var(--fr-white);
    border: 1px solid var(--fr-border);
    border-radius: var(--fr-radius-lg);
    padding: 2rem 1.75rem;
    box-shadow: var(--fr-shadow-sm);
}
.feature-card h3 { font-size: 1.2rem; margin: 1.1rem 0 .6rem; }
.feature-card p { color: var(--fr-muted); margin: 0; }

/* Why Fin Rescue list */
.reason {
    display: flex;
    gap: 1.25rem;
    padding: 1.75rem;
    background: var(--fr-white);
    border: 1px solid var(--fr-border);
    border-radius: var(--fr-radius-lg);
    height: 100%;
}
.reason h2 { font-size: 1.25rem; margin-bottom: .5rem; }
.reason p:last-child, .reason ul:last-child { margin-bottom: 0; }
.reason-art { width: 96px; height: 96px; flex: 0 0 96px; object-fit: contain; }

/* Pros & cons */
.pros-cons .card { border: 0; border-radius: var(--fr-radius-lg); box-shadow: var(--fr-shadow-sm); height: 100%; }
.pros-cons .card-header { border: 0; border-radius: var(--fr-radius-lg) var(--fr-radius-lg) 0 0; padding: 1.1rem 1.5rem; font-weight: 800; font-size: 1.25rem; }
.pros-cons .pros .card-header { background: var(--fr-navy); color: var(--fr-white); }
.pros-cons .cons .card-header { background: var(--fr-teal); color: var(--fr-white); }
.pros-cons ul { list-style: none; padding: 0; margin: 0; }
.pros-cons li { display: flex; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--fr-border); }
.pros-cons li:last-child { border-bottom: 0; }
.pros-cons .pros .bi { color: var(--fr-green-dark); }
.pros-cons .cons .bi { color: var(--fr-teal); }

/* Debt review infographic */
.process-section { background: var(--fr-white); }
.process-infographic { width: 100%; max-width: none; }
.process-infographic img { display: block; width: 100%; height: auto; }
.process-text summary { color: var(--fr-blue-dark); font-weight: 700; cursor: pointer; }

/* Process steps */
.process-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.process-steps li {
    position: relative;
    background: var(--fr-white);
    border: 1px solid var(--fr-border);
    border-radius: var(--fr-radius);
    padding: 1.1rem 1.1rem 1.1rem 4.1rem;
    min-height: 88px;
    display: flex;
    align-items: center;
}
.process-steps li::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--fr-blue);
}
.process-steps li:nth-child(3n+2)::before { color: var(--fr-green-dark); }
.process-steps li:nth-child(3n)::before { color: var(--fr-teal); }

/* FAQ */
.accordion { --bs-accordion-border-color: var(--fr-border); --bs-accordion-active-bg: var(--fr-info-bg); --bs-accordion-active-color: var(--fr-navy); --bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); }
.accordion-button { font-weight: 700; color: var(--fr-navy); }
.accordion-item { border-radius: var(--fr-radius) !important; margin-bottom: .75rem; overflow: hidden; }

/* Testimonials */
.testimonial {
    background: var(--fr-white);
    border-radius: var(--fr-radius-lg);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--fr-shadow-sm);
    border: 1px solid var(--fr-border);
}
.testimonial .bi-quote { font-size: 2.5rem; color: var(--fr-teal); line-height: 1; }
.testimonial p { color: var(--fr-ink); margin: .5rem 0 1rem; }
.testimonial footer { font-weight: 800; color: var(--fr-navy); }

/* CTA band */
.cta-band {
    background: linear-gradient(120deg, var(--fr-navy) 0%, var(--fr-navy-light) 60%, var(--fr-teal) 140%);
    color: var(--fr-white);
    border-radius: var(--fr-radius-lg);
    padding: 3rem 2rem;
}
.cta-band h2 { color: var(--fr-white); }
.cta-band p { color: rgba(255, 255, 255, .85); }

/* Content pages (long text) */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.75rem; }
.prose p, .prose li { color: var(--fr-ink); }
.prose .lead { color: var(--fr-muted); }
.toc { position: sticky; top: 110px; }
.toc a { display: block; padding: .3rem 0 .3rem .9rem; border-left: 3px solid var(--fr-border); color: var(--fr-muted); text-decoration: none; font-size: .95rem; }
.toc a:hover { color: var(--fr-navy); border-left-color: var(--fr-blue); }

/* ---------- Forms ---------- */
.form-label { font-weight: 700; color: var(--fr-navy); margin-bottom: .35rem; }
.form-control, .form-select { border-color: #c9d3dc; padding: .65rem .85rem; border-radius: var(--fr-radius); }
.form-control:focus, .form-select:focus { border-color: var(--fr-blue); box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); }
.form-text { color: var(--fr-muted); }
.required-mark { color: var(--fr-error-text); margin-left: .15rem; }
.form-card {
    background: var(--fr-white);
    border: 1px solid var(--fr-border);
    border-radius: var(--fr-radius-lg);
    box-shadow: var(--fr-shadow-sm);
    padding: 2rem;
}
.captcha-box { background: var(--fr-surface); border-radius: var(--fr-radius); padding: 1rem; }

.form-alert { border-radius: var(--fr-radius); border: 0; }
.form-alert.alert-success { background: var(--fr-success-bg); color: var(--fr-success-text); }
.form-alert.alert-danger { background: var(--fr-error-bg); color: var(--fr-error-text); }
.form-alert .alert-heading { color: inherit; font-size: 1.05rem; font-weight: 800; margin-bottom: .25rem; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--fr-border); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .bi { font-size: 1.35rem; color: var(--fr-blue); }

/* Application wizard */
.wizard-steps { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; list-style: none; margin: 0 0 1.5rem; padding-left: 0; }
.wizard-steps button {
    display: flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap;
    background: var(--fr-white);
    border: 1px solid var(--fr-border);
    border-radius: 999px;
    padding: .5rem 1rem;
    font-weight: 700;
    color: var(--fr-muted);
}
.wizard-steps button[aria-current="step"] { background: var(--fr-navy); border-color: var(--fr-navy); color: var(--fr-white); }
.wizard-steps button.is-complete { color: var(--fr-success-text); border-color: #b6dfc2; }
.wizard-steps .step-number { display: inline-flex; width: 1.6rem; height: 1.6rem; border-radius: 50%; align-items: center; justify-content: center; background: var(--fr-surface); color: var(--fr-navy); font-size: .85rem; }
.wizard-steps button[aria-current="step"] .step-number { background: var(--fr-blue); color: var(--fr-white); }
.wizard-progress { height: 6px; border-radius: 6px; background: var(--fr-border); margin-bottom: 1.5rem; overflow: hidden; }
.wizard-progress-bar { height: 100%; background: var(--fr-blue); width: 20%; transition: width .25s ease; }
.js .wizard-panel[hidden] { display: none !important; }
.fieldset-title { font-size: 1.15rem; padding-bottom: .5rem; border-bottom: 2px solid var(--fr-surface); margin-bottom: 1rem; }
.budget-table th { color: var(--fr-navy); font-weight: 800; background: var(--fr-surface); }
.budget-table td, .budget-table th { vertical-align: middle; }
.budget-table .input-group-text { background: var(--fr-surface); }
.budget-table .total-row th, .budget-table .total-row td { background: var(--fr-info-bg); font-weight: 800; }
.budget-table input { min-width: 120px; }

.signature-pad {
    border: 2px dashed #b9c6d1;
    border-radius: var(--fr-radius);
    background: var(--fr-white);
    touch-action: none;
    width: 100%;
    height: 180px;
    display: block;
    cursor: crosshair;
}
.signature-pad.is-signed { border-style: solid; border-color: var(--fr-blue); }

/* Debt calculator */
.calc-result {
    border-radius: var(--fr-radius-lg);
    padding: 2rem;
    text-align: center;
}
.calc-result.is-ok { background: var(--fr-success-bg); color: var(--fr-success-text); }
.calc-result.is-saving { background: var(--fr-navy); color: var(--fr-white); }
.calc-result.is-saving h2, .calc-result.is-saving h3 { color: var(--fr-white); }
.calc-amount { color: var(--fr-green); font-weight: 900; }
.summary-tile { background: var(--fr-surface); border-radius: var(--fr-radius); padding: 1.25rem; height: 100%; }
.summary-tile .value { font-size: 1.6rem; font-weight: 900; color: var(--fr-navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--fr-navy); color: rgba(255, 255, 255, .8); font-size: .95rem; }
.site-footer h2 { color: var(--fr-white); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.site-footer a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.site-footer a:hover { color: var(--fr-white); text-decoration: underline; }
.site-footer .footer-links li { margin-bottom: .45rem; }
.site-footer .footer-logo { background: var(--fr-white); border-radius: var(--fr-radius); padding: .5rem; width: 150px; height: auto; }
.site-footer .social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .1); font-size: 1.1rem; }
.site-footer .social a:hover { background: var(--fr-blue); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); font-size: .875rem; color: rgba(255, 255, 255, .65); }

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .65rem 1.1rem .65rem .85rem;
    border-radius: 999px;
    background: #128c4a;
    color: var(--fr-white);
    font-size: .95rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    transition: transform .15s ease;
}
.whatsapp-float:hover { color: var(--fr-white); text-decoration: none; transform: translateY(-2px); }
.whatsapp-float .bi { font-size: 1.65rem; line-height: 1; }

/* Maintenance / error pages */
.status-page { min-height: 100vh; display: flex; align-items: center; background: linear-gradient(135deg, var(--fr-navy), var(--fr-navy-light)); color: var(--fr-white); }
.status-page h1 { color: var(--fr-white); }
.status-page .logo-box { background: var(--fr-white); display: inline-block; padding: 1rem 1.5rem; border-radius: var(--fr-radius-lg); }

@media (max-width: 991.98px) {
    .site-header .brand-logo { height: 56px; }
    .site-header .navbar-collapse { padding: .75rem 0 1rem; }
    .site-header .nav-link.active::after { display: none; }
    .site-header .nav-link.active { background: var(--fr-surface); }
    .section { padding: 3.5rem 0; }
    .quick-actions { margin-top: 1.5rem; }
    .toc { position: static; }
}

@media (max-width: 575.98px) {
    body { font-size: 1rem; }
    .form-card, .callback-card { padding: 1.25rem; }
    .whatsapp-float { right: 14px; bottom: 14px; width: 56px; height: 56px; justify-content: center; padding: 0; }
    .whatsapp-float span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
    .cta-band { padding: 2rem 1.25rem; }
    .hero .lead { font-size: 1.05rem; }
    .hero video { display: none; }
    .page-hero { padding: 3rem 0 2.5rem; }
    .reason { gap: 1rem; padding: 1.25rem; }
    .reason-art { width: 64px; height: 64px; flex-basis: 64px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero video { display: none; }
    * { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
    .top-bar, .site-header, .site-footer, .whatsapp-float, .cta-band { display: none !important; }
}
