/* ==========================================================================
   Quigo Express — shared design system
   Loaded by every page. Page-specific stylesheets override these.
   ========================================================================== */

:root {
    /* Brand */
    --navy-900: #0d1445;
    --navy-800: #141c62;
    --navy: #1a237e;
    --navy-600: #283593;
    --accent: #ef6c00;
    --accent-600: #e65100;
    --accent-400: #ff8f00;
    --accent-soft: #fff1e6;
    --accent-ring: rgba(239, 108, 0, 0.28);

    /* Neutrals */
    --bg: #f5f7fc;
    --surface: #ffffff;
    --text: #1b2138;
    --heading: #101736;
    --muted: #5b6478;
    --border: #e4e7f0;

    /* Elevation */
    --shadow-sm: 0 1px 2px rgba(16, 23, 54, 0.06), 0 1px 3px rgba(16, 23, 54, 0.07);
    --shadow-md: 0 6px 16px rgba(16, 23, 54, 0.09), 0 2px 4px rgba(16, 23, 54, 0.05);
    --shadow-lg: 0 18px 40px rgba(13, 20, 69, 0.16);

    /* Radii */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 26px;

    /* Layout */
    --container: 1120px;
    --header-h: 68px;
    --gutter: 20px;

    /* Type */
    --font-display: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-body: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    /* Motion */
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --speed: 180ms;
}

@font-face {
    font-family: 'Material Symbols Rounded';
    font-style: normal;
    font-weight: 100 700;
    src: url(../fonts/material-symbols-rounded.woff2) format('woff2');
    font-display: block;
}

.material-icons {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 28px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 1, 'wght' 700, 'GRAD' 0, 'opsz' 28;
}
html:not(.icons-ready) .material-icons {
    visibility: hidden;
}


/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--accent-600);
    text-decoration: none;
    transition: color var(--speed) var(--ease);
}

a:hover {
    color: var(--accent);
}

:focus-visible {
    outline: 3px solid var(--accent-ring);
    outline-offset: 2px;
    border-radius: 4px;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--heading);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
}

p {
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: clamp(56px, 8vw, 96px);
}

.section-head {
    max-width: 640px;
    margin-inline: auto;
    margin-bottom: clamp(32px, 5vw, 56px);
    text-align: center;
}

.section-head.left {
    margin-inline: 0;
    text-align: left;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-600);
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    margin-bottom: 14px;
}

.lead {
    font-size: clamp(1.02rem, 1.6vw, 1.15rem);
    color: var(--muted);
}

.on-dark .eyebrow {
    color: var(--accent-400);
}

.on-dark .section-title,
.on-dark h1,
.on-dark h2,
.on-dark h3 {
    color: #ffffff;
}

.on-dark .lead,
.on-dark p {
    color: rgba(255, 255, 255, 0.76);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: 1.5px solid transparent;
    border-radius: 10px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    text-align: center;
    transition: background-color var(--speed) var(--ease),
                border-color var(--speed) var(--ease),
                color var(--speed) var(--ease),
                transform var(--speed) var(--ease),
                box-shadow var(--speed) var(--ease);
}

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

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(239, 108, 0, 0.32);
}

.btn-primary:hover {
    background-color: var(--accent-600);
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(239, 108, 0, 0.4);
}

.btn-dark {
    background-color: var(--navy);
    color: #ffffff;
}

.btn-dark:hover {
    background-color: var(--navy-600);
    color: #ffffff;
}

.btn-ghost {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
}

.btn-ghost:hover {
    background-color: rgba(255, 255, 255, 0.14);
    border-color: #ffffff;
    color: #ffffff;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border);
    color: var(--heading);
}

.btn-outline:hover {
    border-color: var(--navy);
    color: var(--navy);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--speed) var(--ease);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-h);
}

.site-header .brand,
footer .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.brand em {
    font-style: normal;
    color: var(--accent);
}

.site-header .brand img,
footer .brand img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.site-header .brand:hover {
    color: var(--navy);
}

.nav-quick {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-left: 0;
    padding: 12px var(--gutter) 20px;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--speed) var(--ease),
                transform var(--speed) var(--ease),
                visibility var(--speed) var(--ease);
}

.nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav > a,
.nav-quick > a {
    position: relative;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.nav-quick > a {
    padding: 10px 14px;
}

.nav > a {
    padding: 13px 14px;
    font-size: 1rem;
}

.nav > a::after {
    display: none;
}

.nav-quick > a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--speed) var(--ease);
}

.nav > a:hover,
.nav-quick > a:hover {
    color: var(--navy);
    background-color: var(--bg);
}

.nav > a:hover::after,
.nav-quick > a:hover::after {
    transform: scaleX(1);
}

.nav > a.nav-cta {
    margin-left: 0;
    margin-top: 8px;
    padding: 11px 20px;
    background-color: var(--accent);
    color: #ffffff;
}

.nav > a.nav-cta::after {
    display: none;
}

.nav > a.nav-cta:hover {
    background-color: var(--accent-600);
    color: #ffffff;
}

.nav-toggle {
    display: inline-flex;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: var(--surface);
    color: var(--navy);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background-color var(--speed) var(--ease);
}

.nav-toggle:hover {
    background-color: var(--bg);
}

.nav-mobile-only {
    display: none;
}

@media (max-width: 899px) {
    .nav-mobile-only {
        display: block;
    }

    .nav-contact {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Page header (inner pages)
   -------------------------------------------------------------------------- */

.page-header {
    background:
        radial-gradient(900px 320px at 85% -40%, rgba(239, 108, 0, 0.35), transparent 60%),
        linear-gradient(135deg, var(--navy-900) 0%, var(--navy) 100%);
    color: #ffffff;
    padding-block: clamp(40px, 6vw, 64px);
}

.breadcrumb {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
    color: var(--accent-400);
}

.breadcrumb span {
    color: #ffffff;
    font-weight: 600;
}

.page-header h1 {
    color: #ffffff;
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
}

/* --------------------------------------------------------------------------
   Long-form content (about / terms / privacy / account pages)
   -------------------------------------------------------------------------- */

.content {
    padding-block: clamp(36px, 5vw, 64px);
}

.content h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    margin-top: 2em;
    margin-bottom: 0.6em;
    color: var(--navy);
}

.content h2:first-child {
    margin-top: 0;
}

.content p {
    margin-bottom: 1.3em;
    color: var(--text);
}

.content ul {
    list-style: none;
    padding: 0;
}

.content li {
    margin-bottom: 1.4em;
}

.content li > strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1em;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.35em;
}

.content li .sub {
    display: inline-block;
    margin-left: 20px;
    margin-bottom: 0;
    color: var(--muted);
}

.content > .sub,
.container > .sub {
    display: block;
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--muted);
    margin-bottom: 1.5em;
}

.content ol {
    margin-left: 20px;
    margin-bottom: 1em;
}

.content li ol {
    list-style: decimal;
}

.content li ol li {
    margin-bottom: 0.5em;
}

.content li ol ol {
    list-style: square;
}

.list-section {
    margin-left: 20px;
    margin-bottom: 0.75em;
}

.list-section strong {
    display: block;
    font-size: 1em;
    color: var(--heading);
    margin-bottom: 0.3em;
}

.list-section ol {
    margin-left: 20px;
    margin-bottom: 0.5em;
    list-style: square;
}

.list-section li {
    margin-bottom: 0.5em;
    color: var(--text);
}

.brand-mark,
.brand-text,
.content .brand,
.highlighted {
    font-weight: 700;
    color: var(--navy);
}

li .highlighted {
    margin-bottom: 0.5em;
}

.disclaimer {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    padding: 1.4em 1.6em;
    background-color: var(--accent-soft);
    border-left: 5px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.disclaimer h2 {
    margin-top: 0;
    color: var(--accent-600);
    font-size: 1.2em;
}

.disclaimer strong {
    color: var(--accent-600);
    font-size: 1.1em;
}

.disclaimer p {
    margin-bottom: 0.8em;
    font-size: 0.97em;
}

.disclaimer p:last-child {
    margin-bottom: 0;
}

.disclaimer ol {
    list-style: square;
    margin-left: 1.2em;
    margin-bottom: 0;
}

.disclaimer li {
    margin-bottom: 0.5em;
    color: var(--text);
}

.content ul.dot-list {
    list-style: disc;
    margin-left: 1.3em;
    margin-bottom: 1em;
}

.content ul.dot-list li {
    margin-bottom: 0.4em;
}

/* --------------------------------------------------------------------------
   Service cards & tagline (used by About + homepage)
   -------------------------------------------------------------------------- */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-block: 1.2em 2em;
}

.service-grid.two {
    grid-template-columns: repeat(2, 1fr);
}

.service-card {
    display: flex;
    flex-direction: column;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--speed) var(--ease),
                box-shadow var(--speed) var(--ease),
                border-color var(--speed) var(--ease);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(239, 108, 0, 0.4);
}

.service-card .card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border-radius: 14px;
    background-color: var(--accent-soft);
    color: var(--accent);
    font-size: 28px;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--muted);
    font-size: 0.97rem;
    margin-bottom: 0.8em;
}

.service-card p:last-child {
    margin-bottom: 0;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
}

.tag-list span {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background-color: var(--bg);
    border: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy);
}

.tagline {
    margin-block: 2.2em;
    padding: clamp(28px, 5vw, 44px);
    text-align: center;
    background:
        radial-gradient(600px 200px at 90% 0%, rgba(239, 108, 0, 0.3), transparent 60%),
        linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.tagline p {
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2.4vw, 1.3rem);
    font-weight: 700;
    margin-bottom: 0.5em;
}

.tagline p:last-child {
    margin-bottom: 0;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

.tagline .tagline-brand {
    color: var(--accent-400);
    font-weight: 800;
}

@media (max-width: 860px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .service-grid,
    .service-grid.two {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    background:
        radial-gradient(800px 300px at 15% 110%, rgba(239, 108, 0, 0.24), transparent 60%),
        linear-gradient(180deg, var(--navy-800), var(--navy-900));
    color: rgba(255, 255, 255, 0.78);
    padding-top: clamp(48px, 7vw, 72px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
    gap: clamp(28px, 4vw, 48px);
    padding-bottom: clamp(36px, 5vw, 52px);
}

.footer-grid h3 {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-400);
    margin-bottom: 18px;
}

.footer-grid p + h3 {
    margin-top: 24px;
}

.footer-grid .brand {
    color: #ffffff;
    margin-bottom: 14px;
}

.footer-grid .brand:hover {
    color: #ffffff;
}

.footer-grid p {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-grid a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    width: fit-content;
}

.footer-links a:hover,
.footer-grid a:hover {
    color: var(--accent-400);
}

.footer-contact a {
    display: block;
    margin-bottom: 10px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    padding-block: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 860px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Header login link (app entry — RedirectIfAuthed sends signed-in users
   straight to their dashboard) */
.nav > a.nav-login {
    color: var(--accent);
    font-weight: 700;
}

.nav > a.nav-login:hover {
    color: var(--navy);
}
