/* ==========================================================================
   Mission Recruit — Premium refresh (v1, Oct 2026)
   Scoped overrides loaded AFTER styles-modern.css. Shared CSS is untouched.
   Keeps: dark iridescent hero / page headers / footer (signature look).
   Changes: light bottom CTAs, calmer layout, restrained color, copper CTAs.
   ========================================================================== */

:root {
    --mr-ink: #10103A;            /* logo navy */
    --mr-copper: #B24A1E;         /* logo "+" copper — reserved for primary CTAs */
    --mr-copper-hover: #983E18;
    --mr-text: #3F3F55;
    --mr-muted: #6B6B80;
    --mr-hair: #E8E6EC;
    --mr-wash: linear-gradient(135deg, #F4EEFF 0%, #EDF4FF 48%, #EEF9F7 100%);
    --mr-wash-soft: linear-gradient(135deg, #FAF7FF 0%, #F6F9FF 50%, #F6FBFA 100%);
    --mr-max: 1080px;
    --mr-read: 700px;
}

body { color: var(--mr-ink); }
::selection { background: #E9DDFB; }

/* ---------- Header: calmer ---------- */
.site-header {
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(16, 16, 58, 0.06);
}
.header-container { max-width: 1240px; padding: 14px 40px; }
.site-branding img { height: 76px; }
.site-branding img:hover { transform: none; opacity: .85; }
@media (min-width: 769px) {
    .main-navigation ul { gap: 2.1rem; }
    .main-navigation a { font-size: 14.5px; color: var(--mr-muted); letter-spacing: 0; }
    .main-navigation a:hover { color: var(--mr-ink); }
}
.main-navigation a::after { background: var(--mr-ink); }
/* dropdown caret after the label instead of a "↓" before it */
.menu-item-has-children > a { display: inline-flex; flex-direction: row-reverse; align-items: center; gap: 7px; }
.menu-item-has-children > a::before {
    content: ''; width: 5px; height: 5px; margin: -3px 0 0 0;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg); opacity: .55;
}
.sub-menu { border-color: var(--mr-hair); box-shadow: 0 18px 50px rgba(16, 16, 58, .08); }
/* candidate link: quiet outline so it doesn't compete with the client CTA */
.open-positions-btn {
    background: transparent !important;
    color: var(--mr-ink) !important;
    border: 1px solid rgba(16, 16, 58, .22);
    box-shadow: none;
    padding: 10px 20px;
    border-radius: 999px;
}
.open-positions-btn:hover {
    background: rgba(16, 16, 58, .04) !important;
    border-color: rgba(16, 16, 58, .45);
    color: var(--mr-ink) !important;
    transform: none; box-shadow: none;
}

/* ---------- Primary CTA: one style, copper ---------- */
.btn-premium,
.btn-premium-large,
.btn-primary,
.contact-form-premium button[type="submit"] {
    background: var(--mr-copper) !important;
    color: #fff !important;
    border: 0;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: .01em;
    box-shadow: 0 1px 2px rgba(16, 16, 58, .12);
    transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn-premium, .btn-primary { padding: 15px 34px; }
.btn-premium-large { padding: 18px 42px; font-size: 1.0625rem; }
.btn-premium:hover,
.btn-premium-large:hover,
.btn-primary:hover,
.contact-form-premium button[type="submit"]:hover {
    background: var(--mr-copper-hover) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(178, 74, 30, .22);
}
.btn-ghost { border-radius: 999px; padding: 15px 34px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 2px solid var(--mr-copper); outline-offset: 3px; border-radius: 6px;
}

/* ---------- Hero: background/treatment unchanged; small polish only ---------- */
.hero-badge { font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; padding: 8px 18px; }
.hero-premium-subtitle { max-width: 640px; }
.stat-number { white-space: nowrap; }

/* ---------- Layout rhythm ---------- */
.container { max-width: var(--mr-max); }
.container-narrow { max-width: var(--mr-read); }
.section, .section-premium { padding-top: clamp(5rem, 11vw, 8.5rem); padding-bottom: clamp(5rem, 11vw, 8.5rem); }
.section-alt { background: #FBFAFC; }
.page-content { max-width: var(--mr-read); }

/* ---------- Typography hierarchy ---------- */
h2 { letter-spacing: -0.025em; }
.section-header-premium { max-width: 640px; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.section-header-premium h2,
.split-text h2,
.section-title {
    font-size: clamp(2.1rem, 3.6vw, 3.1rem);
    line-height: 1.12; font-weight: 400; color: var(--mr-ink);
}
.section-header-premium p { font-size: 1.125rem; color: var(--mr-muted); opacity: 1; line-height: 1.7; }
.eyebrow { color: var(--mr-muted); font-size: .75rem; font-weight: 600; letter-spacing: .18em; margin-bottom: 1.1rem; }
.split-text p, .page-content p, .container-narrow > p { color: var(--mr-text); }
.container-narrow > h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.15; margin-bottom: 1.25rem; }
.container-narrow > h3 { font-size: 1.55rem; font-weight: 500; margin-top: 2.75rem !important; margin-bottom: .75rem; }
.container-narrow > p { font-size: 1.0625rem; line-height: 1.85; }
.section-header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Cards: no borders, no icons, softer ---------- */
.card-icon, .contact-icon { display: none !important; }
.services-premium-grid { gap: 1.75rem; }
.service-premium-card {
    border: 0;
    background: #FBFAFC;
    border-radius: 20px;
    padding: 2.6rem 2.4rem 2.3rem;
    transition: transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s ease, background-color .3s ease;
}
.service-premium-card::before { display: none; }
.service-premium-card:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(16, 16, 58, .07); border-color: transparent; }
.service-premium-card h3 { font-size: 1.55rem; font-weight: 500; margin-bottom: .75rem; }
.service-premium-card p { color: var(--mr-text); }
div.service-premium-card:hover { transform: none; box-shadow: none; }
.card-arrow { color: var(--mr-ink); opacity: .55; font-weight: 500; }
.service-premium-card:hover .card-arrow { opacity: 1; transform: translateX(5px); }

/* checkmark lists -> quiet hairline dashes */
.card-list li, .check-list li { color: var(--mr-text); }
.card-list li::before, .check-list li::before {
    content: ''; width: 12px; height: 1px; background: #9B93B5; top: .95em; left: 2px;
}
.check-list li { padding-left: 28px; }
.card-list li { padding-left: 26px; }
/* inline ✓ spans on the home service cards */
.service-premium-card li > span:first-child[style] { display: none !important; }
.service-premium-card li[style] { position: relative; padding-left: 26px; }
.service-premium-card li[style]::before { content: ''; position: absolute; left: 2px; top: .95em; width: 12px; height: 1px; background: #9B93B5; }
.service-premium-card ul[style] { color: var(--mr-text) !important; }

/* small inline sub-headings that used the bronze accent */
[style*="color: var(--bronze)"] { color: var(--mr-ink) !important; font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; }

/* feature tiles (values, capabilities) -> open grid with hairline */
.feature-list { gap: 2.5rem 2.25rem; margin: 3rem 0; }
.feature-item {
    background: transparent;
    border: 0; border-top: 1px solid var(--mr-hair);
    border-radius: 0;
    padding: 1.5rem 0 0;
}
.feature-item:hover { transform: none; box-shadow: none; }
.feature-item h3 { color: var(--mr-ink); font-size: 1.3rem; font-weight: 500; }
.feature-item p { color: var(--mr-text); font-size: .98rem; }

/* highlight box -> soft iridescent wash (echoes the brand gradient, but light) */
.highlight-box {
    background: var(--mr-wash);
    border-left: 0;
    border-radius: 20px;
    padding: 2.5rem 2.75rem;
}
.highlight-box h3 { color: var(--mr-ink); font-weight: 500; }
[style*="linear-gradient(135deg, #f3e8ff"],
[style*="linear-gradient(135deg, #e0f2fe"] { border-radius: 20px !important; }

/* ---------- Testimonials: open, editorial ---------- */
.testimonials-premium { gap: 3.5rem; }
.testimonial-premium { background: transparent; border: 0; border-radius: 0; padding: 0; }
.quote-mark { font-family: var(--font-display); font-size: 3.25rem; color: #B9A8E0; margin-bottom: .25rem; height: 2.4rem; }
.testimonial-premium p { font-family: var(--font-display); font-size: 1.28rem; line-height: 1.55; color: var(--mr-ink); }
.testimonial-author { border-top: 1px solid var(--mr-hair); padding-top: 1.1rem; }
.testimonial-author { display: block; }
.testimonial-author::before { display: none; }
.author-role { opacity: 1; color: var(--mr-muted); }

/* ---------- Bottom CTA banners: dark -> light iridescent wash ---------- */
.cta-premium {
    background: var(--mr-wash);
    color: var(--mr-ink);
    padding: clamp(5rem, 11vw, 8rem) 40px;
    border-top: 1px solid rgba(16, 16, 58, .04);
}
.cta-premium::before {
    background:
        radial-gradient(circle at 18% 30%, rgba(196, 170, 250, .35) 0%, transparent 42%),
        radial-gradient(circle at 82% 70%, rgba(150, 220, 230, .30) 0%, transparent 42%);
    filter: blur(60px);
}
.cta-premium h2 { color: var(--mr-ink); font-weight: 400; font-size: clamp(2.1rem, 3.8vw, 3.1rem); line-height: 1.12; }
.cta-premium p { color: var(--mr-text); opacity: 1; font-size: 1.15rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* boxed page-bottom CTA on interior pages -> same light wash, borderless */
.cta-section {
    background: var(--mr-wash);
    border-radius: 24px;
    padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem);
}
.cta-section h2 { color: var(--mr-ink); font-weight: 400; }
.cta-section p { color: var(--mr-text); }

/* ---------- Contact ---------- */
.contact-form-wrapper { border: 0; box-shadow: 0 30px 80px rgba(16, 16, 58, .07); border-radius: 24px; padding: clamp(2rem, 5vw, 3.5rem); }
.form-group input, .form-group select, .form-group textarea { border-color: #DCD9E2; border-radius: 10px; background: #fff; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #8E7CC3; box-shadow: 0 0 0 3px rgba(142, 124, 195, .14); }
.contact-info-grid { gap: 2rem; }
.contact-info-card { background: transparent; border: 0; border-top: 1px solid var(--mr-hair); border-radius: 0; padding: 1.5rem 0 0; text-align: left; }
.contact-info-card:hover { transform: none; box-shadow: none; }
.contact-info-card h3 { font-size: 1.2rem; font-weight: 500; }
.contact-link { color: var(--mr-ink); text-align: left; font-weight: 500; font-size: 1rem; }
.contact-link:hover { color: var(--mr-copper); }

/* ---------- FAQ (RPO page) ---------- */
.faq-item { box-shadow: none !important; border-bottom: 1px solid var(--mr-hair); border-radius: 0 !important; background: transparent !important; padding: 1.4rem 0 !important; margin: 0 !important; }
.faq-item summary { list-style: none; position: relative; padding-right: 2rem; font-family: var(--font-display); font-weight: 500 !important; font-size: 1.2rem !important; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 0; top: -2px; font-family: var(--font-body); font-weight: 300; font-size: 1.5rem; color: var(--mr-muted); transition: transform .25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }

/* ---------- Articles ---------- */
.article-body a, .page-content a, .container-narrow p a { color: var(--mr-ink); text-decoration: underline; text-decoration-color: rgba(178, 74, 30, .45); text-underline-offset: 3px; }
.article-body a:hover, .container-narrow p a:hover { text-decoration-color: var(--mr-copper); }
.article-body h2 { font-size: 1.75rem !important; font-weight: 400; }
.link-premium { color: var(--mr-ink); }

/* ---------- Mobile: fix horizontal scroll from the off-canvas menu ---------- */
html, body { overflow-x: clip; } /* belt-and-braces: off-canvas menu can never cause sideways scroll */
@media (max-width: 768px) {
    .header-container { padding: 12px 20px; }
    .site-branding img { height: 60px; }
    .main-navigation { right: 0 !important; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; max-width: 86vw; }
    .main-navigation.active { transform: none; visibility: visible; }
    .open-positions-btn { margin: 1.25rem 1.5rem !important; }
    .services-premium-grid[style], .contact-info-grid { grid-template-columns: 1fr !important; }
    .service-premium-card { padding: 2rem 1.6rem; }
    .highlight-box { padding: 2rem 1.5rem; }
    .cta-premium { padding-left: 20px; padding-right: 20px; }
    .section, .section-premium { padding-left: 20px; padding-right: 20px; }
}

/* ---------- Gentle, CSS-only entrance ---------- */
@keyframes mr-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
    .hero-premium-content, .page-header h1, .page-header p { animation: mr-fade-up .9s cubic-bezier(.16, 1, .3, 1) both; }
    .page-header p { animation-delay: .12s; }
    @supports (animation-timeline: view()) {
        main > section:not(.hero-premium):not(.page-header) > .container,
        main > section:not(.hero-premium):not(.page-header) > .container-narrow {
            animation: mr-fade-up linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 35%;
        }
    }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   v2 refinements — shared components (replace former inline styles)
   ========================================================================== */

/* Page tops: eyebrow pill on the smaller page headers, consistent rhythm */
.page-header { padding: clamp(4.5rem, 9vw, 6.5rem) 40px; }
.page-header .hero-badge { position: relative; z-index: 1; color: #fff; margin-bottom: 1.25rem; }
.page-header h1 { font-weight: 300; font-size: clamp(2.4rem, 4.6vw, 3.4rem); letter-spacing: -0.03em; line-height: 1.1; }
.page-header p { opacity: .85; font-weight: 300; }

/* One section-heading pattern everywhere */
.section-header .section-title { margin-bottom: 0; }
.section-header, .section-header-premium { text-align: center; }
.text-center { text-align: center; }
.contact-form-wrapper h2.text-center { margin-bottom: 2rem; }
.section-alt > .container > h2.text-center { margin-bottom: 3rem; font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 400; }

/* Consistent vertical rhythm inside narrow content columns */
.container-narrow > h2 { margin-top: 4.5rem; }
.container-narrow > h2:first-child { margin-top: 0; }
.container-narrow > h3 { margin-top: 2.75rem; }
.container-narrow > p + p { margin-top: 1.25rem; }
.container-narrow > .highlight-box { margin: 3.25rem 0; }
.container-narrow > .highlight-box:first-child { margin-top: 0; }
.container-narrow > .feature-list { margin: 2.25rem 0 0; }
.container-narrow > .feature-list + h2 { margin-top: 4.5rem; }
.lead { font-size: 1.125rem; line-height: 1.85; color: var(--mr-text); text-align: center; }

/* Service lists (term: description) */
.service-list { list-style: none; margin: 1.5rem 0 0 !important; padding: 0; }
.service-list li {
    position: relative; padding: 1rem 0 1rem 26px;
    border-bottom: 1px solid var(--mr-hair);
    color: var(--mr-text); line-height: 1.7;
}
.service-list li:first-child { border-top: 1px solid var(--mr-hair); }
.service-list li::before { content: ''; position: absolute; left: 2px; top: 1.95em; width: 12px; height: 1px; background: #9B93B5; }
.service-list strong { color: var(--mr-ink); font-weight: 600; }

/* Pastel detail panels (light iridescent, matches CTA wash) */
.detail-panel { background: var(--mr-wash); border-radius: 20px; padding: clamp(1.75rem, 4vw, 2.5rem); margin: 2.25rem 0; }
.detail-panel > h3 { margin: 0 0 .75rem; font-size: 1.35rem; font-weight: 500; color: var(--mr-ink); }
.detail-panel .service-list li { border-color: rgba(16, 16, 58, .08); }
.detail-panel > p:last-child { margin: 1.25rem 0 0; color: var(--mr-text); }
.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.75rem; margin-top: 2.5rem; }
.panel-grid .detail-panel { margin: 0; }

/* Pillars (Our Approach / What's Included) */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2.25rem; margin-top: 3rem; text-align: left; }
.pillars > div { border-top: 1px solid var(--mr-hair); padding-top: 1.25rem; }
.pillars h3 { font-size: 1.2rem; font-weight: 500; color: var(--mr-ink); margin-bottom: .4rem; }
.pillars p { font-size: .95rem !important; color: var(--mr-text) !important; margin: 0 !important; line-height: 1.65 !important; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--mr-hair); }
.faq-item p { margin-top: .85rem; color: var(--mr-text); line-height: 1.75; }

/* Footer: headings are now h2 (accessibility) — keep the original small-caps look */
.footer-widget h2.footer-heading {
    color: #fff; font-family: var(--font-body); font-size: .8125rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em; line-height: 1.4; margin-bottom: var(--space-md);
}
.footer-bottom, .footer-bottom a { color: rgba(255, 255, 255, .68); }
.footer-bottom a:hover { color: #fff; }

/* Card arrows: one quiet style */
.card-arrow { font-size: .9rem; letter-spacing: .01em; }

/* ==========================================================================
   v3 — long-form legal layout (Privacy Policy)
   ========================================================================== */
.legal-body { padding-top: 0; }
.legal-meta { color: var(--mr-muted); font-size: .95rem; margin-bottom: 2rem; }
.legal-toc { background: var(--mr-wash-soft); border-radius: 18px; padding: 1.75rem 2rem; margin: 0 0 3.5rem; }
.legal-toc h2 { font-family: var(--font-body); font-size: .75rem !important; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mr-muted); margin: 0 0 1rem !important; }
.legal-toc ol { margin: 0; padding-left: 1.25rem; columns: 2; column-gap: 2.5rem; color: var(--mr-text); }
.legal-toc li { margin-bottom: .45rem; break-inside: avoid; font-size: .975rem; }
.legal-toc a { color: var(--mr-ink); text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; text-decoration-color: var(--mr-copper); text-underline-offset: 3px; }
.legal-body > h2 { font-size: clamp(1.55rem, 2.4vw, 1.9rem) !important; font-weight: 400; margin-top: 3.25rem !important; margin-bottom: .9rem; scroll-margin-top: 120px; }
.legal-body > h3 { font-family: var(--font-body); font-size: 1.05rem !important; font-weight: 600 !important; color: var(--mr-ink); margin-top: 1.75rem !important; margin-bottom: .5rem; }
.legal-body > p, .legal-body li { font-size: 1.0rem !important; line-height: 1.8 !important; color: var(--mr-text); }
.legal-body > ul { list-style: disc; margin: .75rem 0 1.25rem 1.25rem; padding: 0; }
.legal-body > ul li { margin-bottom: .55rem; padding-left: .25rem; }
.legal-body > ul li::marker { color: #9B93B5; }
.legal-body strong { color: var(--mr-ink); font-weight: 600; }
.legal-body a { color: var(--mr-ink); text-decoration: underline; text-decoration-color: rgba(178, 74, 30, .45); text-underline-offset: 3px; }
.legal-body address { font-style: normal; line-height: 1.8; color: var(--mr-text); margin-top: .75rem; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } .legal-toc { padding: 1.5rem; } }

/* v3 — four-item hero stats row */
.hero-stats { max-width: 860px; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.hero-stats .stat-label { font-size: .75rem; letter-spacing: .1em; line-height: 1.5; }
@media (max-width: 768px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 1.75rem 1rem !important; }
    .stat-number { white-space: normal; }
}

/* ==========================================================================
   Who we serve — industries (home)
   ========================================================================== */
.who-we-serve { background: #fff; padding-bottom: clamp(4.5rem, 9vw, 7rem); }
.who-we-serve .section-header-premium { max-width: 720px; margin-bottom: clamp(2.75rem, 5vw, 4rem); }
.who-we-serve .section-header-premium h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.industry-grid {
    list-style: none; margin: 0 auto; padding: 0; max-width: 1080px;
    display: grid; grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--mr-hair);
}
.industry-grid li {
    position: relative;
    display: flex; flex-direction: column; justify-content: space-between; gap: 1.6rem;
    min-height: 132px;
    padding: 1.5rem 1.4rem 1.6rem;
    border-bottom: 1px solid var(--mr-hair);
    border-right: 1px solid var(--mr-hair);
    transition: background-color .35s ease;
}
.industry-grid li:nth-child(5n) { border-right: 0; }
.industry-grid li::after {
    content: ''; position: absolute; left: 1.4rem; right: 1.4rem; bottom: -1px; height: 1px;
    background: linear-gradient(90deg, #C4AAFA, #96DCE6); transform: scaleX(0); transform-origin: left;
    transition: transform .45s cubic-bezier(.16, 1, .3, 1);
}
.industry-grid li:hover { background: var(--mr-wash-soft); }
.industry-grid li:hover::after { transform: scaleX(1); }
.industry-index { font-family: var(--font-body); font-size: .72rem; font-weight: 600; letter-spacing: .14em; color: #9B93B5; }
.industry-name { font-family: var(--font-display); font-size: 1.28rem; font-weight: 400; line-height: 1.25; color: var(--mr-ink); letter-spacing: -0.01em; }
.industry-note { margin: 2.25rem auto 0; text-align: center; font-size: .9rem; color: var(--mr-muted); letter-spacing: .01em; font-style: italic; }
@media (max-width: 1024px) {
    .industry-grid { grid-template-columns: repeat(3, 1fr); }
    .industry-grid li:nth-child(5n) { border-right: 1px solid var(--mr-hair); }
    .industry-grid li:nth-child(3n) { border-right: 0; }
}
@media (max-width: 640px) {
    .industry-grid { grid-template-columns: repeat(2, 1fr); }
    .industry-grid li:nth-child(3n) { border-right: 1px solid var(--mr-hair); }
    .industry-grid li:nth-child(2n) { border-right: 0; }
    .industry-grid li { min-height: 108px; padding: 1.15rem 1rem 1.25rem; gap: 1rem; }
    .industry-name { font-size: 1.08rem; }
}
