/* ==========================================================================
   style.css  -  PRETTINESS only
   How things look: colours, backgrounds, borders, radius, shadows, typography,
   opacity, transitions, animations, transforms. No sizing or positioning lives here.
   Same order as layout.css:  1 base -> 2 components -> 3 utilities.
   Pairs with layout.css (structure).
   ========================================================================== */

/*  1. Base (tokens + tags)  */

:root {
    --color-primary: #010e38;
    --color-primary-mid: #0d2366;
    --color-secondary: #3d72fc;
    --color-accent: #facc15;
    --color-neutral-bg: #f5f5f5;
    --color-highlight: #fafcff;
    --color-border: #e5e7eb;
    --color-text: #040810;
    --color-text-muted: #4c5868;
    --color-white: #ffffff;
    --font-family: "DM Sans", sans-serif;
    --radius-card: 14px;
    --radius-btn: 50px;
    --transition: 0.22s ease;
    --transition-slow: 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Font family is defined once (--font-family) and set once on body; everything inherits it.
   Form controls do not inherit by default, so they are told to. Never use a universal (*) rule
   for this: it would override fonts that third-party content (e.g. the WordPress admin bar)
   sets on its own container. */

button,
input,
select,
textarea {
    font-family: inherit;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    transition: all 0.3s;
    text-decoration: none;
}

a:hover {
    color: var(--color-secondary);
}

label {
    font-size: 14px;
}

label:has(+ input[required])::after,
label:has(+ select[required])::after,
label:has(+ textarea[required])::after {
    color: #dc2626;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h3,
.h4,
.h5,
.h6 {
    font-weight: 700;
    color: #000716;
}

/* Line height scales inversely with size: the smaller the heading, the looser it is. */

h1,
.h1 {
    font-size: clamp(1.375rem, 1.375rem + 1.5vw, 2.5rem);
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.325rem, 1.325rem + 0.9vw, 2rem);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h3,
.h3 {
    font-size: clamp(1.3rem, 1.3rem + 0.6vw, 1.75rem);
    line-height: 1.25;
}

h4,
.h4 {
    font-size: clamp(1.275rem, 1.275rem + 0.3vw, 1.5rem);
    line-height: 1.3;
}

h5,
.h5 {
    font-size: 1.25rem;
    line-height: 1.4;
}

h6,
.h6 {
    font-size: 1rem;
    line-height: 1.5;
}

p {
    line-height: 1.6;
    color: var(--color-text);
}

ul,
ol {
    list-style: none;
    line-height: 1.6;
}

/*  Bullet: a rising trend line (lucide trending-up), the "growth" idea of the site.  */

main :where(ul:not(.list-check, .list-plain)) > li::before {
    background-color: var(--color-secondary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 7h6v6'/%3E%3Cpath d='m22 7l-8.5 8.5l-5-5L2 17'/%3E%3C/svg%3E")
        center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 7h6v6'/%3E%3Cpath d='m22 7l-8.5 8.5l-5-5L2 17'/%3E%3C/svg%3E")
        center / contain no-repeat;
}

/* Ordered lists are plain numbers followed by a parenthesis: 1) 2) 3) */
@counter-style decimal-paren {
    system: extends decimal;
    suffix: ") ";
}

main ol {
    list-style: decimal-paren outside;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/*  2. Components  */

/* Card: one base, small modifiers. A modifier only adds what the base does not already define. */

.card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
}

/* Thumbnail shared by every card that shows an image (service cards and blog cards) */

.img-thumbnail {
    background: #d5d7da;
}

.img-thumbnail img {
    transition: transform 0.6s ease;
}

.card:hover .img-thumbnail img {
    transform: scale(1.06);
}

/* Modifier: border turns blue on hover */

.card--hover {
    transition: border-color 0.25s ease;
}

.card--hover:hover {
    border-color: var(--color-secondary);
}

/* Modifier: folded corner that grows on hover */

.card--corner {
    transition: border-color var(--transition);
}

.card--corner:hover {
    border-color: #c9d2e0;
}

.card--corner::after {
    background: var(--color-secondary);
    clip-path: polygon(0% 110%, 100% 100%, 100% 0%);
    border-radius: 5px;
    transition: 0.4s;
}

/* Modifier: white body inset inside a tinted frame */

.card--inset {
    border: 2px solid var(--color-neutral-bg);
}

.card--inset > .card-body {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
}

/* Modifier: logo tile whose image flips on hover */

.card--logo {
    perspective: 800px;
    cursor: pointer;
}

.card--logo img {
    user-select: none;
    transform: rotateY(0deg);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.card--logo:hover img {
    transform: rotateY(360deg);
}

/* Modifier: soft shadow */

.card--raised {
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

/* Modifier: full-bleed image with a dark scrim (blog cards) */

.card--cover {
    border: 0;
    color: var(--color-white);
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.card--cover::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0.05) 100%);
}

.card--cover:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(1, 14, 56, 0.1);
}

.card-badge {
    line-height: 1;
    background: var(--color-secondary);
}

.card-link:hover {
    color: inherit;
}

.card-arrow {
    background: var(--color-white);
    color: var(--color-primary);
    transition:
        background-color var(--transition),
        color var(--transition),
        transform var(--transition);
}

.card--cover:hover .card-arrow {
    background: var(--color-secondary);
    color: var(--color-white);
    transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
    .card--cover,
    .img-thumbnail img,
    .card-arrow {
        transition: none;
    }

    .card--cover:hover,
    .card:hover .img-thumbnail img,
    .card--cover:hover .card-arrow {
        transform: none;
    }
}

.card--banner::after {
    background: radial-gradient(circle at 70% 35%, rgba(84, 134, 255, 0.22), transparent 25%),
        radial-gradient(circle at 25% 60%, rgba(250, 204, 21, 0.07), transparent 25%);
}

.section-dark {
    background: radial-gradient(circle at 18% 15%, rgba(59, 130, 246, 0.25) 0%, transparent 38%),
        radial-gradient(circle at 82% 25%, rgba(14, 165, 233, 0.18) 0%, transparent 42%),
        linear-gradient(160deg, #051227 0%, #0a1f45 55%, #123775 100%);
}

.section-dark p {
    color: #e7e7e7;
}

/* Check list used inside cards */

.list-check li {
    font-size: 0.95rem;
    line-height: 1.4;
}

.list-check li::before {
    border-radius: 50%;
    background-color: var(--color-secondary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5.5 12.8l4.2 4.2 8.8-9.6' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0.8rem;
}

.btn {
    border: 1px solid transparent;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.5s;
}

.btn:after {
    transform: skewX(-45deg) scale(0, 1);
    transition: all 0.5s;
}

.btn:hover:after {
    transform: skewX(-45deg) scale(1, 1.1);
}

.btn-sm {
    line-height: 1;
}

.form-label {
    color: #000716;
}

.form-control {
    font-size: 15px;
    border: 1px solid #d9dde3;
    background: #ffffff;
    color: var(--color-text);
    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(61, 114, 252, 0.12);
}

.form-textarea {
    resize: vertical;
}

footer .custom-logo {
    filter: brightness(0) invert(1);
}

footer p {
    color: #ffffffe3;
}

.footer-disclaimer {
    background: #64748b2b;
}

.nav .nav-menu .menu-item-has-children > svg {
    color: #64748b;
    transition:
        transform 0.22s ease,
        color 0.22s ease;
}

.nav .nav-menu .menu-item-has-children:hover > svg,
.nav .nav-menu .menu-item-has-children:focus-within > svg {
    color: var(--color-secondary);
}

.nav .nav-menu .sub-menu {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 28px rgba(2, 6, 23, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        visibility 0.22s ease;
}

.nav .nav-menu .menu-item-has-children:hover > .sub-menu,
.nav .nav-menu .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav .nav-menu .sub-menu a {
    font-size: 0.875rem;
    color: var(--color-text);
    border-radius: 0.45rem;
}

.nav .nav-menu .sub-menu a:hover,
.nav .nav-menu .sub-menu a:focus-visible {
    background: #eff6ff;
    color: var(--color-primary);
}

@media (min-width: 900px) {
    .nav .nav-menu .menu-item-has-children:hover > svg,
    .nav .nav-menu .menu-item-has-children:focus-within > svg {
        transform: rotate(180deg);
    }
}

@media (max-width: 899px) {
    .nav-backdrop {
        background: rgba(15, 23, 42, 0.45);
        opacity: 0;
        visibility: hidden;
        transition:
            opacity var(--transition-slow),
            visibility var(--transition-slow);
    }

    html.is-nav-open .nav-backdrop {
        opacity: 1;
        visibility: visible;
    }

    .nav {
        background: var(--color-white);
        box-shadow: 8px 0 32px rgba(2, 6, 23, 0.14);
        transform: translateX(-105%);
        transition: transform var(--transition-slow);
    }

    html.is-nav-open .nav {
        transform: translateX(0);
    }

    .nav-close {
        border: 1px solid var(--color-border);
        border-radius: var(--radius-btn);
        background: var(--color-neutral-bg);
        color: var(--color-primary);
        cursor: pointer;
        transition:
            background var(--transition),
            border-color var(--transition),
            color var(--transition);
    }

    .nav-close:hover,
    .nav-close:focus-visible {
        background: #eff6ff;
        border-color: #bfdbfe;
        color: var(--color-secondary);
        outline: none;
    }

    .nav .nav-menu > .menu-item {
        border-bottom: 1px solid var(--color-border);
    }

    .nav .nav-menu .menu-item-has-children > svg {
        color: var(--color-text-muted);
        transition:
            transform var(--transition),
            color var(--transition);
    }

    .nav .nav-menu .sub-menu {
        transform: none;
        box-shadow: none;
        border: 0;
        border-radius: 0;
        transition:
            max-height var(--transition),
            opacity var(--transition),
            visibility var(--transition),
            padding var(--transition);
    }

    .nav .nav-menu .sub-menu a {
        color: var(--color-text-muted);
    }

    .nav .nav-menu .menu-item-has-children.showMenu > .sub-menu {
        opacity: 1;
        visibility: visible;
    }

    .nav .nav-menu .menu-item-has-children.showMenu > svg {
        transform: rotate(180deg);
        color: var(--color-secondary);
    }
}

/* Social links */

ul.social-wrap li a {
    border-radius: 50%;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

ul.social-wrap li a:hover,
ul.social-wrap li a:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.testimonial-stars {
    color: var(--color-accent);
    line-height: 1;
}

.testimonial-text {
    font-size: 0.9375rem;
}

.testimonial-read-more {
    border: 0;
    background: none;
    color: var(--color-secondary);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.testimonial-read-more:hover,
.testimonial-read-more:focus-visible {
    color: var(--color-primary);
}

.testimonial-card .testimonial-img {
    border: 2px solid var(--color-white);
    box-shadow: 0 0 0 1px rgba(1, 14, 56, 0.08);
}

.testimonial-client-meta .h6 {
    line-height: 1.2;
}

.testimonial-client-meta p {
    font-size: 0.875rem;
    line-height: 1.35;
}

.table-container {
    border-radius: 20px;
    border: 1px solid #ccc;
}

/* Announcement top bar — stays in normal flow (no height collapse on scroll) */

.announcement-text {
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.96);
    line-height: 1.35;
}

/* Top bar: two lines take turns in the same spot. The next line slides in during the same
   0.64s window the current one slides out, so the bar is never empty. */

.announcement-line {
    opacity: 0;
    animation: announcement-swap 8s ease-in-out infinite;
}

.announcement-line:nth-child(2) {
    animation-delay: 4s;
}

@keyframes announcement-swap {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }

    8%,
    50% {
        opacity: 1;
        transform: translateY(0);
    }

    58%,
    100% {
        opacity: 0;
        transform: translateY(-100%);
    }
}

/* Header — sticky by itself so announcement can scroll off without height jitter.
   Blur lives on ::before so backdrop-filter does not create a containing block
   that clips position:fixed mobile nav descendants. */

.site-header {
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow 0.25s ease;
}

/* Soft shadow once the page has scrolled (class toggled in script.js) */

.is-scrolled .site-header {
    box-shadow: 0 4px 16px rgba(1, 14, 56, 0.07);
}

@media (prefers-reduced-motion: reduce) {
    .site-header {
        transition: none;
    }
}

.nav a:not(.btn) {
    color: var(--color-text);
    transition: color var(--transition);
}

.nav a:not(.btn):hover,
.nav a:not(.btn):focus-visible,
.nav .nav-menu .menu-item-has-children:hover > a {
    color: var(--color-secondary);
}

.nav-toggle {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-btn);
    cursor: pointer;
}

/* Glow shapes: decorative blurred circles (.glow-1 top right, .glow-2 bottom left).
   Put both inside any positioned section (hero, banner, footer). */

.glow {
    filter: blur(90px);
    opacity: 0.3;
}

.glow-1 {
    background: var(--color-secondary);
}

.glow-2 {
    background: var(--color-primary-mid);
}

/* Eyebrow: soft tinted chip led by the logo's ascending stat bars */

.eyebrow {
    color: var(--color-secondary);
    background: rgba(61, 114, 252, 0.08);
    border: 1px solid rgba(61, 114, 252, 0.2);
    border-radius: 999px;
    font-size: 0.875rem;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.eyebrow::before {
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Crect x='0' y='8' width='3.5' height='6' rx='.8'/%3E%3Crect x='5.25' y='4' width='3.5' height='10' rx='.8'/%3E%3Crect x='10.5' y='0' width='3.5' height='14' rx='.8'/%3E%3C/svg%3E")
        center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Crect x='0' y='8' width='3.5' height='6' rx='.8'/%3E%3Crect x='5.25' y='4' width='3.5' height='10' rx='.8'/%3E%3Crect x='10.5' y='0' width='3.5' height='14' rx='.8'/%3E%3C/svg%3E")
        center / contain no-repeat;
}

.eyebrow.white {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.24);
}

.safety-item + .safety-item {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.safety-acc-item {
    background: linear-gradient(135deg, #fff 0%, var(--color-neutral-bg) 100%);
}

.safety-acc-item .faq-summary {
    transition: color var(--transition);
}

.safety-acc-item .faq-summary > span:last-of-type {
    line-height: 1.3;
}

.safety-acc .safety-acc-item .faq-summary::after {
    background-color: rgba(61, 114, 252, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d72fc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
    background-size: 1.05rem;
}

.safety-acc-item .icon-sm {
    transition:
        background-color var(--transition),
        color var(--transition),
        transform 0.4s ease;
}

/* open = unlocked */

.safety-acc-item[open] {
    background: #fff;
    border-color: var(--color-secondary);
}

.safety-acc .safety-acc-item[open] .faq-summary::after {
    transform: none;
    background-color: var(--color-secondary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 9.9-1'/%3E%3C/svg%3E");
}

.hero-stat-icon {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.hero-stat-icon svg {
    color: #fff;
}

.hero-stat-value {
    font-size: clamp(1.25rem, 1.8vw, 1.5rem);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.hero-stat-value--sm {
    font-size: 1.125rem;
}

/* Variants — color / background / border only */

.btn-primary {
    background: var(--color-secondary);
    color: var(--color-white);
    border-color: var(--color-secondary);
}

.btn-primary:hover {
    color: var(--color-secondary);
}

.btn-primary:after {
    background: var(--color-white);
}

.btn-secondary {
    background: var(--color-secondary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    color: var(--color-primary);
}

.btn-secondary:after {
    background: var(--color-white);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline:hover,
.btn-outline.is-active {
    color: var(--color-primary);
}

.btn-outline:after {
    background: var(--color-white);
}

.btn-outline-primary {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary.is-active {
    color: var(--color-white);
}

.btn-outline-primary:after {
    background: var(--color-primary);
}

.btn-outline-primary.is-active:after {
    transform: skewX(-45deg) scale(1, 1.1);
}

.btn-outline.is-active:after {
    transform: skewX(-45deg) scale(1, 1.1);
}

/* ==========================================================================
     Featured logos
     ========================================================================== */

.featured-track-wrap {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, white 5%, white 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, white 5%, white 95%, transparent 100%);
}

@media (min-width: 768px) {
    .featured-track-wrap {
        -webkit-mask-image: linear-gradient(to right, transparent 0%, white 10%, white 90%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, white 10%, white 90%, transparent 100%);
    }
}

.featured-track {
    animation: featuredScroll 32s linear infinite;
}

.featured-track-wrap:hover .featured-track {
    animation-play-state: paused;
}

@keyframes featuredScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .featured-track {
        animation: none;
    }
}

/* Text button with a round arrow */

.btn-more {
    color: var(--color-primary);
    cursor: pointer;
    transition: color 0.25s ease;
}

.btn-more svg {
    color: var(--color-white);
    background: var(--color-primary);
    transition: background-color 0.25s ease;
}

.btn-more:hover {
    color: var(--color-secondary);
}

.btn-more:hover svg {
    background: var(--color-secondary);
}

.btn-more:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Round dots; the current one stretches into a pill */

.services-swiper-pagination .swiper-pagination-bullet {
    border-radius: 50%;
    background: #cbd5e1;
    opacity: 1;
    transition:
        width var(--transition),
        border-radius var(--transition),
        background-color var(--transition);
}

.services-swiper-pagination .swiper-pagination-bullet:hover {
    background: #94a3b8;
}

.services-swiper-pagination .swiper-pagination-bullet-active,
.services-swiper-pagination .swiper-pagination-bullet-active:hover {
    border-radius: 999px;
    background: var(--color-secondary);
}

/* Company highlights: utilities carry layout and spacing, stat-* adds the rest */

#highlights .card {
    background-color: var(--color-highlight);
}

.stat-icon {
    border: 1px solid var(--color-border);
    color: var(--color-secondary);
}

/* Tools & Technologies — tabs (mobile first) */

.tools-tab-scroller {
    border-radius: 14px 14px 0 0;
    border: 1px solid var(--color-border);
}

.tools-tablist {
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tools-tablist .btn {
    font-size: 14px;
}

.tools-panels {
    border: 1px solid var(--color-border);
    border-top: 0;
    border-radius: 0 0 14px 14px;
}

.tools-tab-scroller::before,
.tools-tab-scroller::after {
    opacity: 0;
    transition: opacity var(--transition);
}

.tools-tab-scroller.can-scroll-left::before,
.tools-tab-scroller.can-scroll-right::after {
    opacity: 1;
}

.tools-tab-nav {
    border: 0;
    background: var(--color-secondary);
    color: var(--color-white);
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        opacity var(--transition),
        visibility var(--transition),
        background-color var(--transition);
}

.tools-tab-nav:hover,
.tools-tab-nav:focus-visible {
    background: var(--color-primary-mid);
    outline: none;
}

@media (min-width: 992px) {
    .tools-tab-scroller {
        border-right: none;
        border-radius: 14px 0 0 14px;
    }

    .tools-panels {
        border-radius: 0 14px 14px 0;
        border-top: 1px solid var(--color-border);
    }

    .tools-tablist .btn {
        border: none;
        font-size: 16px;
        background-color: #ebebeb;
    }
}

.tools-tool-icon {
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
}

/* How We Work: numbered circular steps joined by curved arrows */

.step-media {
    border: 1.5px solid transparent;
}

/* the dashed ring is its own layer so it can spin without turning the photo */

.step-media::before {
    border: 1.5px dashed var(--color-secondary);
    border-radius: 50%;
    animation: step-spin 24s linear infinite;
}

@keyframes step-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .step-media::before {
        animation: none;
    }
}

/* the downloaded arrow is used as a mask so it can take the theme colour;
   it is layered 3 times because the source stroke is semi-transparent */

.step-arrow {
    opacity: 0.5;
    animation: step-float 3s ease-in-out infinite;
    -webkit-mask:
        url("../../images/process-arrow.svg") center / contain no-repeat,
        url("../../images/process-arrow.svg") center / contain no-repeat,
        url("../../images/process-arrow.svg") center / contain no-repeat;
    mask:
        url("../../images/process-arrow.svg") center / contain no-repeat,
        url("../../images/process-arrow.svg") center / contain no-repeat,
        url("../../images/process-arrow.svg") center / contain no-repeat;
}

/* gentle drift to the right and back, nudging the eye toward the next step */

@keyframes step-float {
    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .step-arrow {
        animation: none;
    }
}

/* Testimonials */

.testimonial-section {
    background-image: url("../../images/dot-map.png");
    background-position: center;
}

.testimonials {
    background: var(--color-neutral-bg);
}

/* FAQ: native details/summary, Q / Ans. tags, plus icon */

.faq-item,
.blog-content details {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.faq-item:hover,
.blog-content details:hover {
    border-color: #c9d2e0;
}

.faq-item[open],
.blog-content details[open] {
    border-color: var(--color-secondary);
}

.faq-summary,
.blog-content summary {
    cursor: pointer;
    list-style: none;
    color: #000716;
}

.faq-summary::after,
.blog-content summary::after {
    background-color: rgba(61, 114, 252, 0.08);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d72fc' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1rem;
    border-radius: 50%;
    transition:
        transform var(--transition),
        background-color var(--transition);
}

.faq-item[open] .faq-summary::after,
.blog-content details[open] > summary::after {
    transform: rotate(45deg);
    background-color: var(--color-secondary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}

.faq-summary:focus-visible,
.blog-content summary:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
    border-radius: 8px;
}

.faq-answer,
.blog-content summary + * {
    border-top: 1px dashed #c9d2e0;
}

@media (prefers-reduced-motion: reduce) {
    .faq-summary::after,
    .blog-content summary::after {
        transition: none;
    }
}

.footer-col-title {
    font-size: 18px;
}

.footer-col-title::after {
    border-radius: 3px;
    background: #f1f5f9;
}

.footer-links {
    color: #ffffffe3;
}

/* Hover: link slides right a few pixels and turns white */

.footer-links a {
    transition:
        color var(--transition),
        transform var(--transition);
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--color-white);
    transform: translateX(6px);
}

.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

@media (prefers-reduced-motion: reduce) {
    .footer-links a:hover,
    .footer-links a:focus-visible {
        transform: none;
    }
}

.table-container thead {
    background: var(--color-primary);
    color: #fff;
}

.table-color-striped thead th:last-child {
    background: var(--color-secondary);
}

.table-container tbody tr:not(:last-child) {
    border-bottom: 1px solid var(--color-border);
}

.table-container tbody tr:nth-child(even) {
    background: #fff;
}

.table-color-striped tbody tr td:last-child {
    background: #f6f8fd;
}

/* Scroll-to-top button: hidden until .is-visible is set by script.js */
.scroll-top {
    border: 2px solid var(--color-secondary);
    background-color: var(--color-secondary);
    color: var(--color-white);
    box-shadow: 0 6px 16px rgba(1, 14, 56, 0.25);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition:
        opacity var(--transition),
        transform var(--transition),
        visibility var(--transition),
        background-color var(--transition),
        color var(--transition);
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hover / keyboard focus: colours invert (white button, blue arrow); the border keeps the blue ring. No shadow change. */
.scroll-top:hover,
.scroll-top:focus-visible {
    background-color: var(--color-white);
    color: var(--color-secondary);
}

.scroll-top:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
    .scroll-top {
        transition: none;
    }
}

.img-frame {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

/* Breadcrumb colours are for dark backgrounds (the service hero); the / separators take the container colour */
.yoast-breadcrumbs {
    font-size: 16px;
    color: #fff;
}

.yoast-breadcrumbs a {
    color: #fff;
}

.yoast-breadcrumbs a:hover,
.yoast-breadcrumbs a:focus-visible {
    color: var(--color-white);
}

.yoast-breadcrumbs .breadcrumb_last a {
    color: var(--color-white);
    font-weight: 600;
}

/* Page header: H1 + breadcrumb over an abstract network / orbit background (padding comes from .hero) */

.stat-chip {
    border: 0;
    box-shadow: 0 18px 40px -12px rgba(1, 14, 56, 0.35);
}

/* slow vertical bob from lg up; the second chip runs half a cycle behind so they never move in step */

@keyframes stat-chip-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@media (min-width: 992px) {
    .stat-chip {
        animation: stat-chip-float 4.5s ease-in-out infinite;
    }

    .stat-chip + .stat-chip {
        animation-delay: -2.25s;
    }
}

@media (min-width: 992px) and (prefers-reduced-motion: reduce) {
    .stat-chip {
        animation: none;
    }
}

/* Card modifier: the light highlight tint (the same color as the homepage highlight cards and the blog blockquotes) */

.card--highlight {
    background: var(--color-highlight);
}

/* Author panel: a static dashed blue ring, set slightly apart, around the round photo (drawn on the link's ::before) */

.author-photo::before {
    border: 2px dashed var(--color-secondary);
    border-radius: 50%;
}

/* Copy-link button (share bar): a bare button around a colored circular svg, like the brand icons beside it */

.copy-link {
    background: transparent;
    border: 0;
    cursor: pointer;
}

.copy-link:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* Post meta: a light, translucent white ring, set 2px apart, around the round person photos on the dark header */

.post-meta img {
    outline: 1px solid #f1f1f1;
    outline-offset: 2px;
}

/* Post meta: person links stay white on the dark header (the default blue hover would be hard to read); the name underlines instead */

.post-meta a:hover,
.post-meta a:focus-visible {
    color: var(--color-white);
}

.post-meta a:hover strong,
.post-meta a:focus-visible strong {
    text-decoration: underline;
}

.post-meta a:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 4px;
    border-radius: 8px;
}

/* Post meta: thin vertical divider between the items (padding is in layout.css) */

@media (min-width: 768px) {
    .post-meta > * + *::before {
        background: rgba(255, 255, 255, 0.3);
    }
}

/* Post pagination (WordPress markup): round outlined links; the current page is filled blue, hover/focus fills the others */

.post-pagination .page-numbers {
    color: var(--color-text);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-weight: 600;
    line-height: 1;
    transition:
        background-color var(--transition),
        border-color var(--transition),
        color var(--transition),
        transform var(--transition);
}

.post-pagination a.page-numbers:hover,
.post-pagination a.page-numbers:focus-visible {
    color: var(--color-white);
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
}

.post-pagination a.page-numbers:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

.post-pagination .page-numbers.current {
    color: var(--color-white);
    background: var(--color-secondary);
    border-color: var(--color-secondary);
}

.post-pagination .page-numbers.next {
    font-size: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
    .post-pagination .page-numbers {
        transition: none;
    }

    .post-pagination a.page-numbers:hover,
    .post-pagination a.page-numbers:focus-visible {
        transform: none;
    }
}

/* Table of contents: a flat white panel with a plain border (no tint, no shadow, no gradients). The summary has a blue icon badge and a chevron that
   flips when open. Below it is a timeline: a grey rail with a dot per section; the section in view (.is-active,
   set by script.js) gets a blue dot and blue text. */

.toc-box {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
}

.toc-summary {
    cursor: pointer;
    list-style: none;
}

.toc-summary::before {
    background-color: var(--color-secondary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h.01M3 18h.01M3 6h.01M8 12h13M8 18h13M8 6h13'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1.1rem;
    border-radius: 50%;
}

.toc-summary::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9l6 6l6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform var(--transition);
}

.toc-box[open] .toc-summary::after {
    transform: rotate(180deg);
}

.toc-summary:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: -2px;
    border-radius: var(--radius-card);
}

.toc-nav {
    border-top: 1px solid var(--color-border);
    scrollbar-width: thin;
    scrollbar-color: #c9d2e0 transparent;
}

.toc-link {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.4;
    border-left: 2px solid var(--color-border);
}

.toc-link::before {
    background: var(--color-white);
    border: 2px solid #c9d2e0;
    border-radius: 50%;
    transition:
        background-color var(--transition),
        border-color var(--transition);
}

.toc-sub .toc-link {
    font-size: 0.875rem;
}

.toc-sub .toc-link::before {
    background: #c9d2e0;
    border: 0;
}

.toc-link:hover,
.toc-link:focus-visible,
.toc-link.is-active {
    color: var(--color-secondary);
}

.toc-link:hover::before {
    border-color: var(--color-secondary);
}

.toc-sub .toc-link:hover::before,
.toc-sub .toc-link.is-active::before {
    background: var(--color-secondary);
}

.toc-link.is-active {
    border-left-color: var(--color-secondary);
}

.toc-link.is-active::before {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
}

.toc-link:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .toc-summary::after,
    .toc-link::before {
        transition: none;
    }
}

/* Blog content: looks for the plain elements of the article body (structure is in layout.css) */

.blog-content a {
    color: var(--color-secondary);
    font-weight: 600;
}

.blog-content img {
    border-radius: 16px;
}

/* Fluid heading sizes: clamp(minimum, minimum + viewport-based growth, maximum). The line height and letter spacing
   come from the base heading rules, so only the size is set here. */

.blog-content h2 {
    font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem);
}

.blog-content h3 {
    font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
}

.blog-content h4 {
    font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.25rem);
}

.blog-content table {
    border: 1px solid #ccc;
    border-radius: 12px;
}

.blog-content thead {
    background: var(--color-primary);
    color: #fff;
}

.blog-content thead th:first-child {
    border-top-left-radius: 11px;
}

.blog-content thead th:last-child {
    border-top-right-radius: 11px;
}

.blog-content tbody tr:not(:last-child) td {
    border-bottom: 1px solid var(--color-border);
}

.blog-content td:first-child {
    font-weight: 600;
}

/* Blockquote: one note box with a blue edge and a light blue tint, whatever is inside it */

.blog-content blockquote {
    background: var(--color-highlight);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-secondary);
    border-radius: var(--radius-card);
}

/* Translucent stroked quote icon in the bottom right corner of every blockquote */
.blog-content blockquote::after {
    background-color: var(--color-secondary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.5'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'm9.937%2010.453l-.01.13c0%203.35-2.038%205.115-4.63%206.058m4.64-6.188a3.093%203.093%200%201%201-6.187.001a3.093%203.093%200%200%201%206.187-.001m10.313%200l-.01.13c0%203.35-2.038%205.115-4.63%206.058m4.64-6.188a3.093%203.093%200%201%201-6.187%200a3.093%203.093%200%200%201%206.187%200'%2F%3E%3C%2Fsvg%3E")
        center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.5'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'm9.937%2010.453l-.01.13c0%203.35-2.038%205.115-4.63%206.058m4.64-6.188a3.093%203.093%200%201%201-6.187.001a3.093%203.093%200%200%201%206.187-.001m10.313%200l-.01.13c0%203.35-2.038%205.115-4.63%206.058m4.64-6.188a3.093%203.093%200%201%201-6.187%200a3.093%203.093%200%200%201%206.187%200'%2F%3E%3C%2Fsvg%3E")
        center / contain no-repeat;
    opacity: 0.1;
}

.blog-content details {
    border-radius: 8px;
}

.blog-content summary {
    font-weight: 700;
}

/*  3. Utilities  */

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

.fs-14 {
    font-size: 14px !important;
}

.fw-5 {
    font-weight: 500 !important;
}

.fw-6 {
    font-weight: 600 !important;
}

.fw-7 {
    font-weight: 700 !important;
}

/* --------------------------------------------------------------------------
   Colour and background
   -------------------------------------------------------------------------- */

.text-white {
    color: var(--color-white) !important;
}

.text-primary {
    color: var(--color-primary) !important;
}

.text-secondary {
    color: var(--color-secondary) !important;
}

.text-muted {
    color: var(--color-text-muted) !important;
}

.text-\[\#e7e7e7\] {
    color: #e7e7e7 !important;
}

.bg-white {
    background-color: var(--color-white) !important;
}

.bg-neutral {
    background-color: var(--color-neutral-bg) !important;
}

.bg-primary {
    background-color: var(--color-primary) !important;
}

.bg-secondary {
    background-color: var(--color-secondary) !important;
}

.bg-pattern {
    background-color: var(--color-primary) !important;
    background-image: url("../../images/testimonial-bg-2.png") !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* --------------------------------------------------------------------------
   Border, radius, effects
   -------------------------------------------------------------------------- */

.border-top {
    border-top: 1px solid var(--color-border) !important;
}

.rounded-1 {
    border-radius: 4px !important;
}

.rounded-2 {
    border-radius: 6px !important;
}

.rounded-3 {
    border-radius: 8px !important;
}

.rounded-4 {
    border-radius: 12px !important;
}

.rounded-5 {
    border-radius: 16px !important;
}

.rounded-pill {
    border-radius: 100px !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

.hover-lift {
    transition:
        transform var(--transition, 0.22s ease),
        box-shadow var(--transition, 0.22s ease),
        border-color var(--transition, 0.22s ease) !important;
}

.hover-lift:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 24px -14px rgba(1, 14, 56, 0.35) !important;
}


/* Author page */
.author-card {
    background: #f3f4f6;
    border-radius: 12px;
}

.author-card-photo img,
.author-card-avatar {
    border-radius: 50%;
}

.author-card-name {
    color: #000716;
}

.author-bio {
    color: #374151;
    line-height: 1.7;
}

.author-follow {
    color: #000716;
}

.special-page-placeholder {
    color: #6b7280;
}
