/* ==========================================================================
   Hirolution — design system & shared chrome
   Tokens, resets, navigation, buttons, quiz overlay, footer.
   Loaded by every page. Page-specific rules live in home/about/process.css
   ========================================================================== */

:root {
    /* Ink */
    --ink-900: #0A1020;
    --ink-800: #131D33;
    --ink-700: #26344C;
    --ink-600: #3E4F6B;
    --ink-500: #5A6B85;
    --ink-400: #8494A8;

    /* Paper */
    --paper:   #FFFFFF;
    --paper-2: #F7FAFD;
    --paper-3: #EDF5FC;
    --line:    #E3EBF4;
    --line-2:  #F0F5FA;

    /* Brand — sampled from the logo (#37B6FF) */
    --brand-700: #075CA0;
    --brand-600: #0A76C9;   /* primary action — 4.7:1 on white text */
    --brand-500: #1190E8;
    --brand-400: #37B6FF;   /* logo blue, accents */
    --brand-200: #A8DCFF;
    --brand-100: #D7EEFF;
    --brand-50:  #EFF8FF;

    --amber:   #D97706;
    --amber-bg:#FEF6E7;
    --green:   #15803D;
    --green-bg:#EAF7EF;

    /* Type */
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Elevation */
    --sh-sm: 0 1px 2px rgba(10, 16, 32, .05);
    --sh-md: 0 4px 16px -4px rgba(10, 16, 32, .08), 0 1px 3px rgba(10, 16, 32, .04);
    --sh-lg: 0 18px 50px -12px rgba(10, 16, 32, .16), 0 4px 12px rgba(10, 16, 32, .05);
    --sh-cta: 0 8px 22px -6px rgba(10, 118, 201, .48);

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;

    --container: 1180px;
    --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-600);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    color: var(--ink-900);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.12;
    margin: 0;
    text-wrap: balance;
}

p { margin: 0; }
img { max-width: 100%; display: block; }
a  { color: inherit; }

:focus-visible {
    outline: 3px solid var(--brand-400);
    outline-offset: 2px;
    border-radius: 6px;
}

::selection { background: var(--brand-200); color: var(--ink-900); }

/* ---------- Layout ---------- */
.container,
.content-wrapper {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

.section { padding-block: clamp(64px, 9vw, 116px); }
.section--tint { background: var(--paper-2); }
.section--line { border-top: 1px solid var(--line); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--brand-600);
    margin-bottom: 16px;
}
.eyebrow::before {
    content: "";
    width: 22px; height: 2px;
    background: var(--brand-400);
    border-radius: 2px;
}

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); }
.section-head p {
    margin-top: 16px;
    text-wrap: pretty;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--ink-500);
}

/* ---------- Icons ---------- */
.ico {
    width: 1em; height: 1em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ico--fill { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--brand-600);
    --btn-fg: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--font);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
}
.btn .ico { width: 1.05em; height: 1.05em; stroke-width: 2.2; }

.btn--primary { box-shadow: var(--sh-cta); }
.btn--primary:hover { background: var(--brand-500); transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(10,118,201,.55); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
    --btn-bg: #fff;
    --btn-fg: var(--ink-900);
    border-color: var(--line);
    box-shadow: var(--sh-sm);
}
.btn--ghost:hover { border-color: var(--ink-400); transform: translateY(-2px); }

.btn--dark { --btn-bg: var(--ink-900); }
.btn--dark:hover { background: var(--ink-800); transform: translateY(-2px); }

.btn--light {
    --btn-bg: #fff;
    --btn-fg: var(--brand-700);
}
.btn--light:hover { background: var(--brand-50); transform: translateY(-2px); }

.btn--lg { padding: 19px 34px; font-size: 1.1rem; }
.btn--sm { padding: 11px 20px; font-size: .92rem; }
.btn--block { width: 100%; }

/* Legacy alias used by about.css / process.css */
.call-to-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--brand-600);
    color: #fff;
    font-family: var(--font);
    font-size: 1.02rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--sh-cta);
    transition: transform .16s ease, background-color .16s ease;
}
.call-to-action:hover { background: var(--brand-500); transform: translateY(-2px); }

/* ---------- Announcement bar ---------- */
.topbar {
    background: var(--ink-900);
    color: #DCE7F5;
    font-size: .85rem;
    font-weight: 500;
    text-align: center;
    padding: 9px 20px;
    position: relative;
    z-index: 60;
}
.topbar span { display: inline-flex; align-items: center; gap: 8px; }
.topbar .ico { color: var(--brand-400); width: 1.05em; height: 1.05em; }
.topbar b { color: #fff; font-weight: 700; }

/* ---------- Navbar ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    max-width: none;
    height: var(--nav-h);
    padding: 0 max(24px, calc((100vw - var(--container)) / 2 + 24px));
    background: rgba(255, 255, 255, .78);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.navbar.is-stuck {
    background: rgba(255, 255, 255, .92);
    border-bottom-color: var(--line);
    box-shadow: 0 1px 20px rgba(10, 16, 32, .05);
}
.navbar .logo { width: 132px; height: auto; }
.navbar a.brand-link { display: flex; align-items: center; text-decoration: none; }

.navbar .elements {
    display: flex;
    align-items: center;
    gap: 6px;
}
.navbar .elements .element {
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--ink-600);
    font-size: .96rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: 0;
    font-family: var(--font);
    transition: color .15s ease, background-color .15s ease;
}
.navbar .elements .element:hover { color: var(--ink-900); background: var(--paper-3); }

.navbar .elements .button,
.nav-cta {
    margin-left: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--brand-600);
    color: #fff;
    font-weight: 700;
    font-size: .96rem;
    border: 0;
    cursor: pointer;
    font-family: var(--font);
    box-shadow: 0 4px 14px -4px rgba(10,118,201,.5);
    transition: background-color .16s ease, transform .16s ease;
}
.navbar .elements .button:hover,
.nav-cta:hover { background: var(--brand-500); transform: translateY(-1px); opacity: 1; }

.nav-mobile { display: none; align-items: center; gap: 10px; }

.hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink-900);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0;
}
.hamburger .ico { width: 22px; height: 22px; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.mobile-menu.active { opacity: 1; pointer-events: auto; }

.close-menu {
    position: absolute;
    top: 22px; right: 22px;
    display: flex; align-items: center; justify-content: center;
    width: 46px; height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    font-size: 2rem;
    line-height: 1;
    color: var(--ink-900);
    cursor: pointer;
    padding: 0;
}
.mobile-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}
.mobile-links a {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ink-900);
    text-decoration: none;
}
.mobile-links a:hover { color: var(--brand-600); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
    position: fixed;
    left: 12px; right: 12px; bottom: 12px;
    padding-right: 14px;
    z-index: 900;
    display: none;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(10, 16, 32, .96);
    backdrop-filter: blur(10px);
    box-shadow: 0 14px 40px -10px rgba(10, 16, 32, .55);
    transform: translateY(150%);
    transition: transform .32s cubic-bezier(.22,1,.36,1);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__txt { flex: 1; min-width: 0; }
.sticky-cta__txt strong { display: block; color: #fff; font-size: .95rem; font-weight: 700; }
.sticky-cta__txt span   { display: block; color: #93A6BF; font-size: .78rem; }
.sticky-cta .btn { padding: 13px 20px; font-size: .95rem; }

/* ---------- Footer ---------- */
footer {
    background: var(--ink-900);
    color: #A9BACE;
    padding: 64px 0 32px;
}
.footer-content {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 44px;
}
.footer-content .brand img {
    width: 128px;
    filter: none;
    opacity: 1;
    margin-bottom: 16px;
}
.footer-content .brand p { color: #8497AE; font-size: .92rem; max-width: 30ch; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a {
    display: block;
    color: #A9BACE;
    text-decoration: none;
    font-size: .95rem;
    padding: 5px 0;
}
.footer-col a:hover { color: var(--brand-400); }

.footer-bottom {
    width: 100%;
    max-width: var(--container);
    margin: 44px auto 0;
    padding: 24px 24px 0;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    font-size: .88rem;
    color: #7E90A8;
}
.socials { display: flex; gap: 10px; }
.socials a {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 11px;
    color: #A9BACE;
    text-decoration: none;
    font-size: 1.05rem;
    transition: .16s;
}
.socials a:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.socials .ico { width: 18px; height: 18px; }

/* ==========================================================================
   Quiz overlay — the primary conversion path
   ========================================================================== */
#quiz-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 16, 32, .62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
    overflow-y: auto;
}
#quiz-overlay.active { opacity: 1; pointer-events: auto; }

.quiz-container {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: auto;
    padding: 40px clamp(22px, 4vw, 44px) 36px;
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: var(--sh-lg);
    transform: translateY(14px) scale(.985);
    transition: transform .28s cubic-bezier(.22,1,.36,1);
}
#quiz-overlay.active .quiz-container { transform: none; }

.quiz-close {
    position: absolute;
    top: 16px; right: 16px;
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    color: var(--ink-500);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: .15s;
}
.quiz-close:hover { background: var(--paper-2); color: var(--ink-900); }

.quiz-header { margin-bottom: 26px; }
.quiz-progress-bar {
    height: 6px;
    background: var(--line-2);
    border-radius: 999px;
    overflow: hidden;
}
.quiz-progress-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-400), var(--brand-600));
    transition: width .45s cubic-bezier(.22,1,.36,1);
}
.quiz-step-label {
    margin-top: 10px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ink-400);
}

.quiz-question {
    font-size: clamp(1.45rem, 3.4vw, 1.9rem);
    margin-bottom: 8px;
}
.quiz-subtitle { color: var(--ink-500); margin-bottom: 26px; font-size: .98rem; }

.quiz-options { display: grid; gap: 12px; }
.quiz-cols-1 { grid-template-columns: 1fr; }
.quiz-cols-2 { grid-template-columns: 1fr 1fr; }

.quiz-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 17px 18px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--ink-800);
    font-family: var(--font);
    font-size: .98rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: border-color .14s ease, background-color .14s ease, transform .14s ease;
}
.quiz-option::before {
    content: attr(data-key);
    display: flex; align-items: center; justify-content: center;
    width: 26px; height: 26px;
    flex: none;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    font-size: .76rem;
    font-weight: 700;
    color: var(--ink-400);
    transition: inherit;
}
.quiz-option:hover {
    border-color: var(--brand-400);
    background: var(--brand-50);
    transform: translateY(-1px);
}
.quiz-option:hover::before { border-color: var(--brand-400); color: var(--brand-600); }
.quiz-option.selected {
    border-color: var(--brand-600);
    background: var(--brand-50);
    box-shadow: 0 0 0 3px var(--brand-100);
}
.quiz-option.selected::before {
    background: var(--brand-600);
    border-color: var(--brand-600);
    color: #fff;
}

.quiz-back {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    background: none;
    color: var(--ink-400);
    font-family: var(--font);
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
}
.quiz-back:hover { color: var(--ink-900); }

/* Result step */
.quiz-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--green-bg);
    color: var(--green);
    font-size: .86rem;
    font-weight: 700;
    margin-bottom: 18px;
}
.quiz-result-title { font-size: clamp(1.4rem, 3.2vw, 1.85rem); margin-bottom: 12px; }
.quiz-result-msg {
    color: var(--ink-700);
    font-size: 1.02rem;
    padding: 16px 18px;
    background: var(--brand-50);
    border-left: 3px solid var(--brand-400);
    border-radius: 0 12px 12px 0;
    margin-bottom: 16px;
}
.quiz-result-sub { color: var(--ink-500); font-size: .96rem; margin-bottom: 24px; }

#quiz-booking-form { display: grid; gap: 12px; }
#quiz-booking-form input {
    width: 100%;
    padding: 16px 18px;
    border: 1.5px solid var(--line);
    border-radius: 13px;
    background: var(--paper-2);
    font-family: var(--font);
    font-size: 1rem;
    color: var(--ink-900);
    transition: border-color .15s ease, background-color .15s ease;
}
#quiz-booking-form input::placeholder { color: var(--ink-400); }
#quiz-booking-form input:focus {
    outline: none;
    background: #fff;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px var(--brand-100);
}
.quiz-submit-btn {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 26px;
    border: 0;
    border-radius: 999px;
    background: var(--brand-600);
    color: #fff;
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--sh-cta);
    transition: background-color .16s ease, transform .16s ease;
}
.quiz-submit-btn:hover:not(:disabled) { background: var(--brand-500); transform: translateY(-2px); }
.quiz-submit-btn:disabled { opacity: .65; cursor: default; }

.quiz-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 6px;
    font-size: .85rem;
    color: var(--ink-400);
}

.quiz-success { text-align: center; padding: 26px 0 12px; }
.quiz-success-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 76px; height: 76px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--green-bg);
    color: var(--green);
    font-size: 2.2rem;
}
.quiz-success-icon .ico { width: 38px; height: 38px; }
.quiz-success h2 { font-size: 1.9rem; margin-bottom: 12px; }
.quiz-success p { color: var(--ink-600); }
.quiz-success-sub { color: var(--ink-400); font-size: .9rem; margin-top: 10px; }

/* ==========================================================================
   Legacy modal + file upload (still used by process.html)
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2500;
    background: rgba(10, 16, 32, .6);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}
.modal-content {
    position: relative;
    max-width: 480px;
    width: 92%;
    margin: 8vh auto;
    padding: 40px;
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: var(--sh-lg);
}
.modal-content h2 { margin-bottom: 6px; }
.close-modal {
    position: absolute;
    top: 18px; right: 22px;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--ink-400);
    cursor: pointer;
}
.close-modal:hover { color: var(--ink-900); }
.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 15px 16px;
    margin: 9px 0;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--paper-2);
    font-family: var(--font);
    font-size: 1rem;
}
.modal-content input:focus,
.modal-content textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--brand-500);
}
.file-upload-wrapper { margin: 14px 0 20px; width: 100%; }
.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    border: 2px dashed var(--line);
    border-radius: 14px;
    background: var(--paper-2);
    color: var(--ink-500);
    text-align: center;
    cursor: pointer;
    transition: .18s;
}
.file-upload-label .upload-icon { font-size: 1.9rem; margin-bottom: 10px; color: var(--ink-400); }
.file-upload-label:hover { border-color: var(--brand-400); background: var(--brand-50); color: var(--brand-700); }
.file-upload-label:hover .upload-icon { color: var(--brand-600); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
    :root { --nav-h: 68px; }

    .navbar { padding-inline: 20px; }
    .navbar .elements { display: none; }
    .nav-mobile { display: flex; }
    .hamburger { display: inline-flex; }
    .navbar .logo { width: 112px; }
    .nav-cta { margin-left: 0; padding: 10px 17px; font-size: .9rem; }

    .container, .content-wrapper { padding-inline: 20px; }

    .footer-content { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-content .brand { grid-column: 1 / -1; }

    .sticky-cta { display: flex; }
    body.has-sticky-cta { padding-bottom: 88px; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .quiz-cols-2 { grid-template-columns: 1fr; }
    .quiz-container { padding: 34px 20px 28px; border-radius: 20px; }
    .footer-content { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .btn { width: 100%; }
    .sticky-cta { right: 86px; }          /* keep clear of the chat bubble */
    .sticky-cta .btn { width: auto; }
    .sticky-cta__txt strong { font-size: .9rem; }
    .topbar { font-size: .78rem; padding: 8px 14px; }
    .topbar .topbar-tail { display: none; }
}

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