/* ═══════════════════════════════════════════════════════════════════════
   SparkBI — Global Stylesheet
   Design tokens, reset, header, footer, shared components
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── CSS Variables (Design Tokens) ─────────────────────────────────── */
:root {
    /* Colors */
    --color-navy: #06193e;
    --color-navy-light: #06193e;
    --color-navy-dark: #06193e;
    --color-orange: #f17a1f;
    --color-orange-hover: #e06810;
    --color-white: #ffffff;
    --color-gray-50: #f8f9fa;
    --color-gray-100: #f1f3f5;
    --color-gray-200: #e9ecef;
    --color-gray-300: #dee2e6;
    --color-gray-500: #adb5bd;
    --color-gray-700: #495057;
    --color-gray-800: #343a40;
    --color-gray-900: #212529;
    --color-text: #06193e;
    --color-text-light: rgba(255, 255, 255, 0.85);
    --color-text-muted: rgba(255, 255, 255, 0.6);

    /* Typography */
    --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-md: 1.125rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.5rem;
    --font-size-4xl: 3rem;
    --font-size-5xl: 3.5rem;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 5rem;
    --space-5xl: 6rem;
    --space-6xl: 8rem;

    /* Layout */
    --container-max: 1200px;
    --container-narrow: 900px;
    --header-height: 80px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Aeternum', var(--font-family), system-ui, sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: -0.03em !important;
    line-height: 1.1 !important;
    color: var(--color-navy);
}

/* ─── Container ─────────────────────────────────────────────────────── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container--narrow {
    max-width: var(--container-narrow);
}

/* ─── Section Utilities ─────────────────────────────────────────────── */
.section {
    padding: var(--space-5xl) 0;
}

.section--navy {
    background-color: var(--color-navy);
    color: var(--color-text-light);
}

.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4,
.section--navy h5,
.section--navy h6 {
    color: var(--color-white);
}

.section--gray {
    background-color: var(--color-gray-50);
}

.section--white {
    background-color: var(--color-white);
}

/* ─── Text / Label Utilities ────────────────────────────────────────── */
.overline {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 500;
    font-family: 'Aeternum', var(--font-family), system-ui, sans-serif !important;
    letter-spacing: -0.03em !important;
    margin-bottom: var(--space-lg);
}

.section-subtitle {
    font-size: var(--font-size-2xl);
    font-weight: 500;
    font-family: 'Aeternum', var(--font-family), system-ui, sans-serif !important;
    letter-spacing: -0.03em !important;
    margin-bottom: var(--space-lg);
}

.section-description {
    font-size: var(--font-size-md);
    line-height: 1.8;
    max-width: 750px;
}

/* ─── Buttons ───────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    /* adjusted for 2px border */
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color var(--transition-base), color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    text-decoration: none;
    line-height: 1.4;
    transform: translateY(0) scale(1);
    will-change: transform;
}

.btn--primary {
    background-color: var(--color-orange);
    color: var(--color-white);
    border-color: var(--color-orange);
}

.btn--primary:hover {
    background-color: var(--color-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(241, 122, 31, 0.35);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-orange);
}

.btn--outline:hover {
    background-color: var(--color-orange);
    color: var(--color-white);
}

.btn--large {
    padding: 18px 40px;
    font-size: var(--font-size-base);
}

.btn--arrow::after {
    content: ' →';
    transition: transform var(--transition-fast);
}

.btn--arrow:hover::after {
    transform: translateX(4px);
}

/* ─── Link Arrows ───────────────────────────────────────────────────── */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--color-orange);
    transition: all var(--transition-fast);
}

.link-arrow:hover {
    gap: 10px;
}

/* ─── Cards ─────────────────────────────────────────────────────────── */
.card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card--dark {
    background: var(--color-navy-light);
    color: var(--color-text-light);
}

.card--dark h3,
.card--dark h4 {
    color: var(--color-white);
}

/* Diagonal dividers removed — original design uses straight section boundaries */

/* ═══════════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999 !important;
    background: var(--color-white);
    height: var(--header-height);
    box-shadow: var(--shadow-md);
}

/* Hide sticky-element-placeholder on all pages */
.sticky-element-placeholder {
    display: none !important;
}

/* Adjust fixed header for WordPress Admin Bar */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header-logo img {
    height: 24px;
    width: auto;
}

/* Nav List */
.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-link {
    display: block;
    padding: 10px 18px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-navy);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    background: var(--color-gray-100);
}

.nav-item.active .nav-link {
    color: var(--color-orange);
    font-weight: 600;
}

/* CTA Button in Nav */
.nav-link--cta {
    background: var(--color-orange);
    color: var(--color-white) !important;
    padding: 10px 24px;
    font-weight: 600;
    border-radius: var(--border-radius);
}

.nav-link--cta:hover {
    background: var(--color-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(241, 122, 31, 0.3);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-navy);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--color-navy);
    color: var(--color-text-light);
    padding: var(--space-5xl) 0 0;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-3xl);
}

.footer-col--contact p {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-sm);
    color: var(--color-text-light);
}

.footer-col--contact a {
    color: var(--color-text-light);
}

.footer-col--contact a:hover {
    color: var(--color-orange);
}

/* Footer Nav */
.footer-col--nav {
    display: flex;
    justify-content: center;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-sm);
}

.footer-nav li a {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-light);
    transition: color var(--transition-fast);
}

.footer-nav li a:hover {
    color: var(--color-orange);
}

.footer-sub-nav {
    margin-top: var(--space-xs);
    padding-left: var(--space-md);
}

.footer-sub-nav li a {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.footer-sub-nav li a:hover {
    color: var(--color-orange);
}

/* Footer Social */
.footer-col--social {
    text-align: right;
}

.footer-copyright {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-lg);
}

.footer-social-icons {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.footer-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    transition: all var(--transition-base);
}

.footer-social-icons a:hover {
    background: var(--color-orange);
    transform: translateY(-2px);
}

.footer-social-text {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    max-width: 250px;
    margin-left: auto;
}

/* Footer Bottom Logo */
.footer-bottom {
    text-align: center;
    padding-top: var(--space-4xl);
}

.footer-logo {
    margin: 0 auto;
    opacity: 0.8;
}

/* Footer Accent Bar */
.footer-accent-bar {
    height: 12px;
    background: linear-gradient(90deg, var(--color-orange), var(--color-orange-hover));
    margin-top: var(--space-3xl);
}

/* ─── Back to Top ───────────────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--color-orange);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-orange-hover);
    transform: translateY(-3px);
}

/* ─── Main content offset for fixed header ──────────────────────────── */
.site-main {
    margin-top: var(--header-height);
}

body.admin-bar .site-main {
    margin-top: calc(var(--header-height) + 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-main {
        margin-top: calc(var(--header-height) + 46px);
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   HERO  (shared across all pages)
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Hero Root ─────────────────────────────────────────────────────── */
.hero-root {
    width: 100%;
    min-height: calc(100vh - var(--header-height, 80px));
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #06193e 0%, #0d1d5c 50%, #06193e 100%);
    background-size: 400% 400%;
    animation: heroGradient 14s ease infinite;
    isolation: isolate;
}

/* ─── Cursor spotlight overlay ──────────────────────────────────────── */
.hero-spotlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 130%),
            rgba(241, 122, 31, 0.07) 0%,
            transparent 70%);
}

/* ─── Swoosh image bottom right ─────────────────────────────────────── */
/* left is anchored just past the text column (max-width 760px → 380px from center).
   clamp ensures it scales with the viewport and moves further right on narrow screens. */
.hero-swoosh {
    position: absolute;
    left: auto;
    right: -8%;
    bottom: -10%;
    width: 72vw;
    max-width: 1400px;
    height: 115%;
    z-index: 0;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    overflow: hidden;
}

.hero-swoosh img {
    width: 100%;
    height: auto;
    display: block;
    transform: translateY(80px) translateX(40px);
    opacity: 0;
    transition: none;
    min-height: 100%;
    object-fit: cover;
    object-position: left center;
}

.hero-swoosh img.in-view {
    animation: swooshIn 1.1s cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes swooshIn {
    0% {
        transform: translateY(80px) translateX(40px);
        opacity: 0;
    }

    60% {
        opacity: 1;
    }

    100% {
        transform: translateY(0px) translateX(0px);
        opacity: 1;
    }
}

/* ─── Hero content ──────────────────────────────────────────────────── */
.hero-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 96px var(--space-xl) 80px;
    text-align: center;
}

/* ─── Pill ──────────────────────────────────────────────────────────── */
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 115, 14, 0.5);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    background: rgba(255, 115, 14, 0.06);
    transition: border-color 0.2s, color 0.2s;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.5s cubic-bezier(.4, 0, .2, 1) 0.5s forwards;
    max-width: 90vw;
    white-space: nowrap;
    overflow: hidden;
}

.hero-pill svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.hero-pill-divider {
    display: block;
    width: 1px;
    height: 16px;
    background: rgba(255, 115, 14, 0.3);
}

.hero-pill-arrow {
    transition: transform 0.15s ease;
}

a.hero-pill:hover {
    border-color: #ff730e;
    color: #ff730e;
}

a.hero-pill:hover .hero-pill-arrow {
    transform: translateX(3px);
}

/* ─── Headline ──────────────────────────────────────────────────────── */
.hero-root h1,
.hero-root h1.hero-h1,
.hero-h1 {
    font-size: clamp(32px, 6vw, 62px) !important;
    font-weight: 500 !important;
    font-family: 'Aeternum', var(--font-family), system-ui, sans-serif !important;
    letter-spacing: -0.03em !important;
    line-height: 1.1 !important;
    color: #ffffff !important;
    max-width: 760px;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.5s cubic-bezier(.4, 0, .2, 1) 0.1s forwards;
}

.hero-root h1 em,
.hero-h1 em {
    font-style: normal !important;
    color: #ffffff !important;
}

/* ─── Subtext ───────────────────────────────────────────────────────── */
.hero-sub {
    font-size: clamp(15px, 2vw, 18px);
    color: rgba(255, 255, 255, 0.75);
    max-width: 560px;
    line-height: 1.65;
    letter-spacing: 0.01em;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.5s cubic-bezier(.4, 0, .2, 1) 0.2s forwards;
}

/* ─── Overline label within hero ────────────────────────────────────── */
.hero-content .overline {
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.5s cubic-bezier(.4, 0, .2, 1) 0.4s forwards;
}

/* ─── Hero animations ───────────────────────────────────────────────── */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ─── Headline word-reveal ──────────────────────────────────────────── */
.hero-word {
    display: inline-block;
    clip-path: inset(0 100% 0 0);
    animation: wordReveal 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    will-change: clip-path;
}

@keyframes wordReveal {
    to {
        clip-path: inset(0 0% 0 0);
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    :root {
        --font-size-3xl: 2rem;
        --font-size-4xl: 2.5rem;
        --font-size-5xl: 3rem;
    }

    .section {
        padding: var(--space-4xl) 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }

    .footer-col--social {
        text-align: center;
    }

    .footer-social-icons {
        justify-content: center;
    }

    .footer-social-text {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
        --font-size-3xl: 1.75rem;
        --font-size-2xl: 1.5rem;
    }

    .container {
        padding: 0 var(--space-lg);
    }

    /* Mobile nav */
    .mobile-toggle {
        display: flex;
    }

    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-white);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
        transition: right var(--transition-slow);
        z-index: 999;
    }

    .header-nav.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-xs);
    }

    .nav-link {
        padding: 12px 16px;
        font-size: var(--font-size-base);
    }

    .nav-link--cta {
        text-align: center;
        margin-top: var(--space-md);
    }

    .section {
        padding: var(--space-3xl) 0;
    }

    .diagonal-top::before,
    .diagonal-bottom::after {
        height: 30px;
        top: -30px;
    }

    .diagonal-bottom::after {
        bottom: -30px;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-3xl: 1.5rem;
        --font-size-2xl: 1.25rem;
        --font-size-xl: 1.125rem;
    }

    .btn {
        padding: 12px 24px;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .hero-content {
        padding: 64px 16px 56px;
    }

    .hero-swoosh {
        display: none;
    }

    .hero-pill {
        font-size: 10px;
        padding: 5px 10px;
        gap: 6px;
        max-width: 85vw;
    }

    .hero-pill-divider,
    .hero-pill-arrow {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   FORMS ON DARK BACKGROUNDS
   ═══════════════════════════════════════════════════════════════════════ */
.section--navy .wpforms-container .wpforms-field-label,
.section--navy .wpforms-container .wpforms-field-sublabel,
.section--navy .wpforms-container .wpforms-field-description,
.section--navy label,
.section--navy .contact-form label {
    color: var(--color-white) !important;
}

.section--navy .form-group input,
.section--navy .form-group textarea,
.section--navy .wpforms-container input[type=text],
.section--navy .wpforms-container input[type=email],
.section--navy .wpforms-container input[type=tel],
.section--navy .wpforms-container input[type=url],
.section--navy .wpforms-container input[type=password],
.section--navy .wpforms-container input[type=search],
.section--navy .wpforms-container input[type=number],
.section--navy .wpforms-container textarea {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: var(--color-white) !important;
}

.section--navy .form-group input::placeholder,
.section--navy .form-group textarea::placeholder,
.section--navy .wpforms-container input::placeholder,
.section--navy .wpforms-container textarea::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.section--navy .form-group input:focus,
.section--navy .form-group textarea:focus,
.section--navy .wpforms-container input:focus,
.section--navy .wpforms-container textarea:focus {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--color-orange) !important;
}