/* ============================================================
   FABLE5 — Inner Pages Override
   (cloned from nursery-one — visual identity unchanged in Phase 1)
   Loads AFTER all shared CSS (service-page.css etc.)
   Only fable5-specific adjustments for inner pages.
   ============================================================ */


/* ============================================================
   §1  CTA SECTION — BASE FIX
   ─────────────────────────────────────────────────────────
   03-sections-home.css is not loaded in this template.
   We must re-declare the structural base for .cta-section
   so the overlay positions correctly.
============================================================ */
.cta-section {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
}

.cta-section .cta-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section .cta-eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 14px;
}

.cta-section .cta-eyebrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    border-radius: 2px;
    opacity: 0.5;
}

.cta-section .cta-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
}

.cta-section .cta-subtitle {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto 36px;
}

.cta-section .cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}


/* ============================================================
   §2  SERVICE CTA — FABLE5 STYLE
   ─────────────────────────────────────────────────────────
   Completely replaces the dark industrial CTA.
   Current design: blue gradient + yellow bar + pill buttons.
   Loads AFTER service-page.css — wins the cascade.
============================================================ */
.cta-service {
    background: linear-gradient(
        145deg,
        #0f2347 0%,
        #1b3d6e 60%,
        #1e4880 100%
    ) !important;
    border-top: 4px solid var(--mt-accent) !important;
    padding: 80px 0 !important;
}

.cta-service .cta-overlay {
    background: none !important;
}

/* Eyebrow — yellow on blue */
.cta-service .cta-eyebrow {
    color: var(--mt-accent) !important;
}

.cta-service .cta-eyebrow::after {
    background: var(--mt-accent) !important;
    opacity: 0.6 !important;
}

/* Title — white */
.cta-service .cta-title {
    color: #ffffff !important;
}

/* Subtitle — soft white */
.cta-service .cta-subtitle {
    color: rgba(255, 255, 255, 0.78) !important;
}

/* Primary button — yellow pill, dark text */
.cta-service .btn-light {
    background: var(--mt-accent) !important;
    border-color: var(--mt-accent) !important;
    color: #0f2347 !important;
    border-radius: 999px !important;
    font-weight: 800 !important;
    padding: 14px 40px !important;
    font-size: 0.92rem !important;
    box-shadow: 0 6px 28px rgba(245, 197, 24, 0.40) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.cta-service .btn-light:hover {
    background: var(--mt-accent-hover, #d4a800) !important;
    border-color: var(--mt-accent-hover, #d4a800) !important;
    color: #0f2347 !important;
    box-shadow: 0 10px 36px rgba(245, 197, 24, 0.55) !important;
    transform: translateY(-2px) !important;
}

/* Secondary button — white outline pill */
.cta-service .btn-outline-light {
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.50) !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    padding: 14px 40px !important;
    font-size: 0.92rem !important;
    transition: background 0.2s ease, border-color 0.2s ease !important;
}

.cta-service .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.85) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}


/* ============================================================
   §3  FOOTER — FABLE5 OVERRIDES
   ─────────────────────────────────────────────────────────
   Base footer uses var(--mt-brand-primary) for the glow line
   and hover colors. In this template that's dark blue on dark bg —
   invisible. Replace with yellow accent throughout.
============================================================ */

/* Slightly differentiate footer from CTA bottom */
.site-footer {
    background: linear-gradient(180deg, #0a1628 0%, #060e1c 100%) !important;
}

/* Top accent bar — yellow (replaces invisible blue glow) */
.site-footer::before {
    width: 200px !important;
    height: 3px !important;
    background: linear-gradient(
        to right,
        transparent,
        var(--mt-accent),
        transparent
    ) !important;
    opacity: 0.9 !important;
}

/* Link hover → yellow (readable on dark bg) */
.site-footer a:hover,
.footer-links a:hover {
    color: var(--mt-accent) !important;
}

/* Footer heading titles → add yellow left dot */
.site-footer .footer-title,
.site-footer h4,
.site-footer h5,
.site-footer h6 {
    color: #ffffff !important;
}

/* Footer title underline → yellow */
.site-footer .footer-title::after {
    background: var(--mt-accent) !important;
}

/* Bottom copyright line */
.site-footer .footer-muted,
.site-footer .footer-bottom {
    color: rgba(255, 255, 255, 0.45) !important;
}

/* Divider line — subtle yellow tint */
.site-footer .footer-line {
    border-color: rgba(245, 197, 24, 0.15) !important;
}


/* ============================================================
   §4  SERVICE CONTENT — FABLE5 ACCENT ADJUSTMENTS
============================================================ */

/* Summary left border — yellow accent */
.service-summary-block {
    border-left-color: var(--mt-accent) !important;
}

.service-summary-icon {
    background: rgba(245, 197, 24, 0.12) !important;
    border-color: rgba(245, 197, 24, 0.28) !important;
    color: var(--mt-accent-dark, #d4a800) !important;
}

/* Eyebrow in media blocks — brand blue */
.service-media-eyebrow {
    color: var(--mt-brand-primary) !important;
}

/* Hero bottom accent line — yellow */
.service-hero::after {
    background: linear-gradient(
        90deg,
        transparent,
        var(--mt-accent) 30%,
        var(--mt-accent) 70%,
        transparent
    ) !important;
}

/* Breadcrumb links — brand blue */
.breadcrumb-section .breadcrumb-item a {
    color: var(--mt-brand-primary) !important;
}

.breadcrumb-section .breadcrumb-item a:hover {
    color: var(--mt-brand-primary-hover) !important;
}


/* ============================================================
   §5  SERVICE — HERO CTA + NEW BLOCK TYPES (T3 extension)
   ─────────────────────────────────────────────────────────
   Renders the optional buttons emitted by web/service.php:
     · service-hero-cta            (hero footer button group)
     · service-cta-banner          (cta_banner block_type)
     · service-features-list       (features_list block_type)
   All rules use --mt-* tokens only. Frontend tokens, no --erp-*.
============================================================ */

/* ── Hero CTA buttons ─────────────────────────────────────── */
.service-hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--mt-space-3);
    margin-top: var(--mt-space-6);
}

.service-hero-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: var(--mt-weight-bold);
    line-height: 1.2;
    border: 2px solid transparent;
    border-radius: var(--mt-radius-pill);
    text-decoration: none;
    transition:
        background var(--mt-duration-fast) ease,
        color var(--mt-duration-fast) ease,
        border-color var(--mt-duration-fast) ease,
        transform var(--mt-duration-fast) var(--mt-ease-default),
        box-shadow var(--mt-duration-fast) ease;
}

.service-hero-cta-btn:hover {
    transform: translateY(-2px);
}

/* Specificity bumped via parent class: defeats .section-sm a rule
   in 01-foundation.css that otherwise forces text color to navy
   (invisible on navy primary bg / outline transparent). */
.service-hero-cta .service-hero-cta-btn--primary {
    background: var(--mt-primary);
    color: var(--mt-white);
    box-shadow: 0 4px 16px rgba(var(--mt-brand-primary-rgb), 0.30);
}

.service-hero-cta .service-hero-cta-btn--primary:hover {
    background: var(--mt-primary-dark);
    color: var(--mt-white);
    box-shadow: 0 8px 24px rgba(var(--mt-brand-primary-rgb), 0.40);
}

.service-hero-cta .service-hero-cta-btn--outline {
    background: transparent;
    color: var(--mt-white);
    border-color: var(--mt-white);
}

.service-hero-cta .service-hero-cta-btn--outline:hover {
    background: var(--mt-white);
    color: var(--mt-primary);
}


/* ── CTA banner block ─────────────────────────────────────── */
.service-cta-banner {
    background: var(--mt-primary);
    color: var(--mt-white);
    text-align: center;
    padding: var(--mt-section-py-sm) 0;
}

.service-cta-banner-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--mt-space-6);
}

.service-cta-banner-title {
    color: var(--mt-white);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: var(--mt-weight-black);
    line-height: var(--mt-leading-tight);
    margin: 0 0 var(--mt-space-3);
}

.service-cta-banner-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: var(--mt-leading-normal);
    max-width: 580px;
    margin: 0 auto var(--mt-space-6);
}

.service-cta-banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: var(--mt-weight-bold);
    line-height: 1.2;
    border: 2px solid transparent;
    border-radius: var(--mt-radius-pill);
    text-decoration: none;
    transition:
        background var(--mt-duration-fast) ease,
        color var(--mt-duration-fast) ease,
        border-color var(--mt-duration-fast) ease,
        transform var(--mt-duration-fast) var(--mt-ease-default),
        box-shadow var(--mt-duration-fast) ease;
}

.service-cta-banner-btn:hover {
    transform: translateY(-2px);
}

.service-cta-banner-btn--primary {
    background: var(--mt-accent);
    color: var(--mt-primary-dark);
    box-shadow: 0 4px 14px rgba(245, 197, 24, 0.30);
}

.service-cta-banner-btn--primary:hover {
    background: var(--mt-accent-hover);
    color: var(--mt-primary-dark);
    box-shadow: 0 8px 22px rgba(245, 197, 24, 0.42);
}

.service-cta-banner-btn--outline {
    background: transparent;
    color: var(--mt-white);
    border-color: var(--mt-white);
}

.service-cta-banner-btn--outline:hover {
    background: var(--mt-white);
    color: var(--mt-primary);
}


/* ── Features list block ──────────────────────────────────── */
.service-features-list {
    padding: var(--mt-section-py) 0;
}

.service-features-list-title {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: var(--mt-weight-black);
    color: var(--mt-text-heading);
    line-height: var(--mt-leading-tight);
    max-width: 760px;
    margin: 0 auto var(--mt-space-3);
}

.service-features-list-intro {
    text-align: center;
    color: var(--mt-text-muted);
    font-size: 1rem;
    line-height: var(--mt-leading-normal);
    max-width: 680px;
    margin: 0 auto var(--mt-space-10);
}

.service-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--mt-space-6);
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--mt-space-6);
}

.service-features-card {
    background: var(--mt-white);
    border: 1px solid var(--mt-border);
    border-radius: var(--mt-radius-lg);
    padding: var(--mt-space-6);
    box-shadow: var(--mt-shadow-card);
    transition:
        transform var(--mt-duration-normal) var(--mt-ease-default),
        box-shadow var(--mt-duration-normal) var(--mt-ease-default);
}

.service-features-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--mt-shadow-card-hover);
}

.service-features-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--mt-primary-soft);
    color: var(--mt-primary);
    font-size: 1.1rem;
    margin-bottom: var(--mt-space-4);
}

.service-features-card-title {
    font-size: 1.05rem;
    font-weight: var(--mt-weight-bold);
    color: var(--mt-text-heading);
    line-height: var(--mt-leading-tight);
    margin: 0 0 var(--mt-space-2);
}

.service-features-card-text {
    color: var(--mt-text-body);
    font-size: var(--mt-text-sm);
    line-height: var(--mt-leading-normal);
    margin: 0;
}


/* ── Responsive (max-width breakpoints) ───────────────────── */
@media (max-width: 768px) {
    .service-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .service-features-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   §6  REGISTRATION FORM UX (T2 — 2026-05-01)
   ─────────────────────────────────────────────────────────
   Targets the form rendered by web/partials/_form_module_render.php
   (form-module__* class names). Scoping uses the data-field-key
   attribute where possible to avoid bleeding into other forms.

   Includes:
     · step section heading visibility
     · tighter mobile spacing + grouped radio/checkbox options
     · consent_* card-like wrappers
     · collapsible collectors (.nrs-collector-block) styled by
       fable5-forms.js
============================================================ */

/* ── Step section heading — visible separator between steps ─ */
.form-module__section-title {
    color: var(--mt-primary);
    font-size: 1rem;
    font-weight: var(--mt-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--mt-border-light);
    padding-bottom: 8px;
    margin: 24px 0 18px;
}

/* ── Tighter mobile spacing between fields ─────────────────── */
@media (max-width: 575px) {
    .form-module__field {
        margin-bottom: 14px;
    }
}

/* ── Radio / checkbox group: tighter visual grouping ──────── */
.form-module__options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 0 4px;
}

/* ── Dynamic-page top spacing — REMOVED (2026-06-08, UI-12a) ──
   The legacy `.nrs-page-body` wrapper was retired when web/page.php
   adopted the single `.web-page-shell` wrapper (P-1 fix); page.php no
   longer injects `.nrs-page-body`, so this rule was dead CSS. */

/* ── Section title bars (injected by fable5-forms.js) ────── */
/* The renderer does not emit step titles for registration_pack;
   fable5-forms.js inserts these bars before known anchor fields. */
.nrs-form-section-title {
    margin: 24px 0 12px;
    padding: 10px 16px;
    background: var(--mt-primary-soft);
    border-left: 4px solid var(--mt-primary);
    border-radius: var(--mt-radius-md);
    font-size: var(--mt-text-sm);
    font-weight: var(--mt-weight-bold);
    color: var(--mt-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── Consent items: card-like wrapper ─────────────────────── */
/* Targeted via .nrs-consent-field (added by fable5-forms.js) instead
   of [data-field-key^="consent_"] to guarantee specificity wins over
   any rule in form-module.css (which is emitted inline by the renderer
   AFTER this stylesheet loads in the document head). */
.nrs-consent-field {
    background: var(--mt-off-white);
    border-left: 3px solid var(--mt-primary);
    border-radius: var(--mt-radius-md);
    padding: 12px 16px;
    margin-bottom: 8px;
}

.nrs-consent-field .form-module__label {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--mt-text-dark);
}

/* ── Collector block (injected by fable5-forms.js) ────────── */
.nrs-collector-block {
    background: var(--mt-white);
    border: 1px solid var(--mt-border-light);
    border-radius: var(--mt-radius-md);
    padding: 16px;
    margin-bottom: 14px;
}

.nrs-collector-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--mt-border-light);
}

.nrs-collector-block-title {
    font-size: 0.78rem;
    font-weight: var(--mt-weight-semibold);
    color: var(--mt-text-medium);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nrs-collector-remove {
    font-size: 0.78rem;
    color: var(--mt-danger);
    text-decoration: none;
    font-weight: var(--mt-weight-semibold);
}

.nrs-collector-remove:hover {
    text-decoration: underline;
}

/* ── Add-collector button ─────────────────────────────────── */
.nrs-add-collector-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    background: transparent;
    color: var(--mt-primary);
    border: 1px dashed var(--mt-primary);
    border-radius: var(--mt-radius-pill);
    font-size: 0.85rem;
    font-weight: var(--mt-weight-semibold);
    cursor: pointer;
    margin: 8px 0 18px;
    transition:
        background var(--mt-duration-fast) ease,
        color var(--mt-duration-fast) ease,
        border-style var(--mt-duration-fast) ease;
}

.nrs-add-collector-btn:hover {
    background: var(--mt-primary);
    color: var(--mt-white);
    border-style: solid;
}

/* File upload feedback notices */
.nrs-file-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 0.92rem;
    line-height: 1.5;
}
.nrs-file-notice--warn {
    background: #fff8e1;
    border: 1px solid #f0c040;
    color: #7a5c00;
}
.nrs-file-notice--ok {
    background: #f0faf4;
    border: 1px solid #5cb85c;
    color: #2d6a2d;
}
.nrs-file-notice__icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.nrs-file-notice__text small {
    opacity: 0.85;
}
