/* EVX Global — simple responsive layout */
:root {
    --bg: #f6f8fb;
    --surface: #ffffff;
    --text: #1a2332;
    --muted: #5c6b7f;
    --brand: #0d47a1;
    --brand-dark: #082e6a;
    --accent: #00a896;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(13, 71, 161, 0.08);
    --font: 'DM Sans', system-ui, sans-serif;
    --max: 1120px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    background: var(--brand);
    color: #fff;
    z-index: 1000;
    border-radius: 6px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: min(100% - 2rem, var(--max));
    margin-inline: auto;
}

/* Header */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.logo:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.logo:hover .logo__global {
    color: var(--brand);
}

.logo__mark {
    display: flex;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(13, 71, 161, 0.25));
}

.logo__svg {
    display: block;
    vertical-align: middle;
}

.logo__type {
    display: flex;
    align-items: baseline;
    letter-spacing: -0.03em;
    line-height: 1;
}

.logo__evx {
    font-weight: 800;
    font-size: 1.28rem;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--brand) 0%, #1565c0 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo__global {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
}

.logo:hover .logo__mark {
    filter: drop-shadow(0 4px 12px rgba(13, 71, 161, 0.35));
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1.25rem;
}

.site-nav a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0.35rem 0;
}

.site-nav a:hover {
    color: var(--brand);
}

.site-nav a[aria-current='page'] {
    color: var(--brand);
    border-bottom: 2px solid var(--brand);
}

/* Nav Contact — aligned with menu row (not generic .btn) */
.site-nav__item--cta {
    display: flex;
    align-items: center;
    align-self: center;
    margin-left: 0.15rem;
}

.site-nav a.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.48rem 1.15rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    color: #fff !important;
    background: linear-gradient(180deg, #1565c0 0%, var(--brand) 55%, var(--brand-dark) 100%);
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(13, 71, 161, 0.28);
    border: none !important;
    text-decoration: none !important;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.site-nav a.nav-cta:hover {
    color: #fff !important;
    background: var(--brand-dark);
    box-shadow: 0 3px 14px rgba(13, 71, 161, 0.38);
    transform: translateY(-1px);
}

.site-nav a.nav-cta[aria-current='page'] {
    border-bottom: none !important;
    box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.35rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.btn:hover {
    text-decoration: none;
}

.btn--primary {
    background: var(--brand);
    color: #fff;
}

.btn--primary:hover {
    background: var(--brand-dark);
    color: #fff;
}

.btn--outline {
    background: transparent;
    color: var(--brand);
    border: 2px solid var(--brand);
}

.btn--outline:hover {
    background: var(--brand);
    color: #fff;
}

.btn--small {
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 45%, #00a896 100%);
    color: #fff;
    padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.hero--media {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 10vw, 5.5rem) 0 clamp(2.75rem, 6vw, 4.25rem);
    min-height: min(78vh, 640px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    background: #082e6a;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero__img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    object-position: center;
}

.hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        125deg,
        rgba(8, 46, 106, 0.92) 0%,
        rgba(13, 71, 161, 0.72) 42%,
        rgba(0, 120, 112, 0.78) 100%
    );
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    margin-inline: auto;
}

.hero .container {
    text-align: center;
    max-width: 720px;
    margin-inline: auto;
}

.hero__credit {
    position: relative;
    z-index: 1;
    margin: 1.5rem auto 0;
    padding: 0 1rem;
    max-width: var(--max);
    font-size: 0.68rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
}

.hero__credit a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
}

.hero__credit a:hover {
    color: #fff;
}

.hero__badge {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: center;
    margin: 0 0 1rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero__badge span {
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    line-height: 1.2;
}

.hero__lead {
    margin: 0 0 1.5rem;
    font-size: 1.1rem;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.hero .btn--outline {
    border-color: #fff;
    color: #fff;
}

.hero .btn--outline:hover {
    background: #fff;
    color: var(--brand);
}

/* Sections */
.section {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section--alt {
    background: var(--surface);
}

.section-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 3vw, 1.85rem);
}

.section-intro {
    margin: 0 0 2rem;
    color: var(--muted);
    max-width: 640px;
}

.muted {
    color: var(--muted);
    font-size: 0.95rem;
}

/* Cards grid */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(13, 71, 161, 0.1);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

/* Page header (inner pages) */
.page-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: clamp(1.75rem, 4vw, 2.5rem) 0;
}

.page-header h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.65rem, 3.5vw, 2rem);
}

.page-header p {
    margin: 0;
    color: var(--muted);
}

/* Forms */
.form-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    max-width: 560px;
    box-shadow: var(--shadow);
}

.form-row {
    margin-bottom: 1.15rem;
}

.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.form-row input,
.form-row textarea,
.form-row select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.form-row textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert--success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}

.alert--error {
    background: #ffebee;
    color: #b71c1c;
    border: 1px solid #ef9a9a;
}

/* Tracking result */
.tracking-demo,
.tracking-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid var(--border);
    margin-left: 0.5rem;
    padding-left: 1.25rem;
}

.timeline li {
    position: relative;
    padding-bottom: 1.25rem;
    padding-left: 0.25rem;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.35rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--surface);
    box-shadow: 0 0 0 2px var(--accent);
}

.timeline li:last-child {
    padding-bottom: 0;
}

.timeline time {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
}

.timeline strong {
    display: block;
    margin-top: 0.15rem;
}

/* FAQ */
.faq-list details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 0.65rem;
    padding: 0.85rem 1rem;
}

.faq-list summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list details[open] summary {
    margin-bottom: 0.5rem;
}

.faq-list details p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* Legal prose */
.prose {
    max-width: 720px;
}

.prose ul {
    margin: 0 0 1.25rem;
    padding-left: 1.35rem;
}

.prose li {
    margin-bottom: 0.4rem;
}

.prose h2 {
    font-size: 1.15rem;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.prose p {
    margin: 0 0 1rem;
    color: var(--muted);
}

/* Footer */
.site-footer {
    margin-top: auto;
    background: #0f172a;
    color: #cbd5e1;
    padding: 2.5rem 0 0;
}

.site-footer a {
    color: #e2e8f0;
}

.site-footer a:hover {
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-heading {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-legal {
    margin: 0.65rem 0 0.35rem;
    font-size: 0.9rem;
}

.footer-address {
    margin: 0;
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.55;
}

.footer-canada {
    margin: 0.65rem 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 0;
    font-size: 0.875rem;
    color: #94a3b8;
}

.footer-bottom p {
    margin: 0;
}

/* Mobile nav */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        inset: 0 0 auto auto;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 1rem;
        box-shadow: var(--shadow);
        display: none;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-nav li {
        border-bottom: 1px solid var(--border);
    }

    .site-nav li.site-nav__item--cta {
        border-bottom: none;
        padding-top: 0.65rem;
        margin-top: 0.35rem;
        border-top: 1px solid var(--border);
        align-self: stretch;
        margin-left: 0;
    }

    .site-nav a {
        display: block;
        padding: 0.65rem 0;
    }

    .site-nav a.nav-cta {
        display: flex;
        width: 100%;
        padding: 0.65rem 1.15rem;
        box-sizing: border-box;
    }

    .site-nav a[aria-current='page'] {
        border-bottom: none;
    }

    .site-nav a.nav-cta[aria-current='page'] {
        box-shadow: 0 0 0 2px var(--accent);
    }
}
