/* ==========================================================================
   Site chrome (v2): header, testimonials and footer shared by every v2 page.
   Markup: v2/partials/header.php, testimonials.php, footer.php.
   Loaded after the page's own stylesheets. Pages built on the old main.css /
   theme stack (index.php) get the rest of their header/footer look from
   there; other pages also load site-chrome-base.css, which supplies it.
   ========================================================================== */

/* Tokens (same values as index3.css) */
:root {
    --background: oklch(24.2% .043 237.5);
    --foreground: oklch(97.4% .008 240);
    --card: oklch(27.6% .043 237.5);
    --secondary: oklch(31% .043 237.5);
    --muted-foreground: oklch(73% .031 239);
    --primary: oklch(64.5% .135 235);
    --accent: oklch(53.5% .225 292);
    --border: oklch(39% .04 237.5 / .6);
    --cyan: oklch(75.5% .118 221);
    --violet: oklch(73.2% .145 295);
    --brand-gradient: linear-gradient(110deg, var(--primary), var(--accent));
    --shadow-card: 0 12px 35px oklch(12% .035 238 / .14);
    --trust-ink: oklch(19% .035 239);
    --trust-copy: oklch(86% .014 240);
    --trust-rule: oklch(97.4% .008 240 / .22);
    --trust-overlay: linear-gradient(90deg, oklch(19% .035 239 / .24) 0%, oklch(19% .035 239 / .38) 25%, oklch(19% .035 239 / .9) 55%, oklch(19% .035 239 / .97) 100%);

    --font-sans: "DM Sans", sans-serif;
    --font-display: "Barlow Condensed", sans-serif;

    --navy: #072232;
    --navy-light: #0a3149;
    --ink-dark: #212830;
}

/* Eyebrow label used by the testimonials heading */
.testimonials-section .eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}
.testimonials-section .eyebrow-mark {
    background: var(--brand-gradient);
    width: 20px;
    height: 3px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
html[data-theme] header#home {
    min-height: 120px;
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    border-bottom: 1px solid color-mix(in oklab, oklch(1 0 0 / 12%) 60%, transparent);
    background-image: none !important;
    background-color: color-mix(in oklab, oklch(0.16 0.03 253.97) 80%, transparent) !important;
    backdrop-filter: blur(12px) !important;
}
html[data-theme] #home .navbar {
    max-width: 1150px;
    margin: 0 auto;
    padding-left: 10px;
}
html[data-theme] #home .navbar-brand {
    margin-right: 10px;
}
html[data-theme] #home .navbar-toggler {
    right: 22px;
}
/* Dropdown hover: theme fills the item with the accent AND (via the #home
   link-hover rule) colours the text accent too, so the label vanished.
   Keep the menu background; highlight the text only. */
html[data-theme] #home .dropdown-menu .dropdown-item:is(:hover, :focus) {
    background-color: transparent !important;
    background-image: none !important;
    color: var(--sc-accent) !important;
}
#home .nav-wrap {
    width: 97%;
    padding-right: 15px;
}

/* --------------------------------------------------------------------------
   Testimonials (themes/specs/testimonials-section-spec.md)
   Navy carousel directly after the white blog. The theme forces colour on
   h2/p/span/a with !important, so the testimonial colours use !important too.
   -------------------------------------------------------------------------- */
.testimonials-section {
    --testimonial-background: oklch(0.215 0.039 237.5);
    --testimonial-copy: oklch(0.81 0.022 240);
    --testimonial-rule: oklch(0.974 0.008 240 / 0.17);
    background: var(--testimonial-background);
    font-family: var(--font-sans);
    text-align: left;
    overflow: hidden;
}
.testimonials-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 76px 48px 45px;
}

/* Header: eyebrow + h2 left, lead lines right */
.testimonials-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--testimonial-rule);
}
html[data-theme] .testimonials-section .testimonials-eyebrow {
    color: var(--cyan) !important;
    margin-bottom: 22px;
}
html[data-theme] .testimonials-section .testimonials-heading h2 {
    font-family: var(--font-display);
    font-size: 58px;
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    text-align: left;
    margin: 0;
    color: var(--foreground) !important;
}
html[data-theme] .testimonials-section .testimonials-heading h2 span {
    color: var(--cyan) !important;
}
html[data-theme] .testimonials-section .testimonials-lead {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    text-align: right;
    color: var(--testimonial-copy) !important;
}

/* Carousel */
.testimonials-viewport {
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
}
.testimonials-track {
    display: flex;
    transition: transform 0.45s ease;
}
.testimonial-slide {
    flex: 0 0 100%;
    min-width: 0;
}
.testimonial {
    display: grid;
    grid-template-columns: 1fr 235px;
    gap: 70px;
    min-height: 380px;
    margin: 0;
    padding: 50px 0;
}
.testimonial-quote {
    position: relative;
    margin: 0;
    padding-left: 68px;
}
.testimonial-mark {
    position: absolute;
    top: 2px;
    left: 0;
    width: 42px;
    height: 42px;
    color: var(--cyan);
    stroke-width: 1.3;
}
html[data-theme] .testimonials-section .testimonial-quote p {
    margin: 18px 0 0;
    font-size: 17px;
    line-height: 1.85;
    color: var(--testimonial-copy) !important;
}
html[data-theme] .testimonials-section .testimonial-quote p:first-of-type {
    margin-top: 0;
    font-size: 27px;
    font-weight: 500;
    line-height: 1.55;
    color: var(--foreground) !important;
}

/* Author rail */
.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 35px;
    border-left: 1px solid var(--testimonial-rule);
}
html[data-theme] .testimonials-section .testimonial-initials {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin-bottom: 26px;
    border-radius: 50%;
    background: var(--secondary);
    border: 1px solid var(--border);
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    color: var(--cyan) !important;
}
/* Client logo replaces the initials: white fill so dark logos stay readable,
   and a larger circle so wordmarks are legible */
html[data-theme] .testimonials-section .testimonial-logo {
    width: 88px;
    height: 88px;
    padding: 10px;
    overflow: hidden;
    background: oklch(1 0 0);
}
.testimonial-logo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: contain;
}
html[data-theme] .testimonials-section .testimonial-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--testimonial-copy) !important;
}
html[data-theme] .testimonials-section .testimonial-name {
    margin-top: 6px;
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--foreground) !important;
}
html[data-theme] .testimonials-section .testimonial-company {
    margin-top: 4px;
    font-size: 15px;
    color: var(--cyan) !important;
}

/* Controls: position | dots | arrows */
.testimonials-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid var(--testimonial-rule);
}
html[data-theme] .testimonials-section .testimonials-position,
html[data-theme] .testimonials-section .testimonials-position span {
    margin: 0;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    color: var(--testimonial-copy) !important;
}
.testimonials-dots,
.testimonials-arrows {
    display: flex;
    align-items: center;
}
.testimonials-arrows {
    gap: 10px;
}
.testimonial-dot-button,
.testimonial-nav-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.testimonial-dot-button span {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--muted-foreground);
    transition: width 0.2s ease, background 0.2s ease;
}
.testimonial-dot-button[aria-current="true"] span {
    width: 24px;
    background: var(--cyan);
}
.testimonial-nav-button {
    border-radius: 50%;
    border: 1px solid var(--testimonial-rule);
    color: var(--foreground);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.testimonial-nav-button svg {
    width: 18px;
    height: 18px;
}
.testimonial-nav-button:hover,
.testimonial-nav-button:focus-visible {
    color: var(--cyan);
    border-color: var(--cyan);
    background: var(--card);
}
.testimonial-dot-button:focus-visible,
.testimonial-nav-button:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

@media (max-width: 950px) {
    .testimonials-inner {
        padding: 60px 28px 36px;
    }
    .testimonial {
        grid-template-columns: 1fr 180px;
        gap: 30px;
        min-height: 420px;
    }
    .testimonial-quote {
        padding-left: 54px;
    }
    html[data-theme] .testimonials-section .testimonial-quote p:first-of-type {
        font-size: 24px;
    }
}

@media (max-width: 700px) {
    .testimonials-inner {
        padding: 48px 24px 30px;
    }
    .testimonials-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
    html[data-theme] .testimonials-section .testimonials-heading h2 {
        font-size: 46px;
    }
    html[data-theme] .testimonials-section .testimonials-lead {
        text-align: left;
    }
    .testimonial {
        grid-template-columns: 1fr;
        gap: 34px;
        min-height: 660px;
        align-content: start;
    }
    /* Author below the quote: initials at left, name + company beside it */
    .testimonial-author {
        position: relative;
        justify-content: center;
        min-height: 50px;
        padding-left: 66px;
        border-left: 0;
    }
    html[data-theme] .testimonials-section .testimonial-initials {
        position: absolute;
        top: 0;
        left: 0;
        width: 50px;
        height: 50px;
        margin: 0;
        font-size: 18px;
    }
    html[data-theme] .testimonials-section .testimonial-logo {
        padding: 6px;
    }
    .testimonial-label {
        display: none;
    }
    html[data-theme] .testimonials-section .testimonial-name {
        margin-top: 0;
        font-size: 28px;
    }
    html[data-theme] .testimonials-section .testimonial-company {
        font-size: 14px;
    }
    html[data-theme] .testimonials-section .testimonial-quote p {
        font-size: 15px;
    }
    html[data-theme] .testimonials-section .testimonial-quote p:first-of-type {
        font-size: 21px;
    }
    /* Seven 44px dots do not fit beside the counter and arrows: give them their own row */
    .testimonials-controls {
        flex-wrap: wrap;
        row-gap: 6px;
    }
    .testimonials-dots {
        order: 3;
        flex-basis: 100%;
        justify-content: center;
    }
    .testimonial-dot-button {
        width: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonials-track,
    .testimonial-dot-button span,
    .testimonial-nav-button {
        transition: none;
    }
}

/* --------------------------------------------------------------------------
   Footer
   Solid dark fill on the wrapper; the footer itself stays transparent on it.
   -------------------------------------------------------------------------- */
html[data-theme] .footer-wrap {
    padding-bottom: 0;
    background-color: oklch(0.24 0.04 237.5);
    background-image: none;
}
/* main.css gives every footer img margin-bottom: 2rem */
html[data-theme] .footer-wrap .soc2logo {
    margin-bottom: 0;
}
html[data-theme] .footer-wrap footer {
    background-color: transparent !important;
    background-image: none !important;
}

/* --------------------------------------------------------------------------
   Click-to-call phone numbers (a.tel-link): phone icon + dotted underline so
   they read as clickable; highlight + solid underline on hover/focus.
   Colour stays that of the surrounding text so it works on light and dark.
   -------------------------------------------------------------------------- */
html a.tel-link {
    color: inherit;
    text-decoration: underline dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: .22em;
    white-space: nowrap;
    padding: .05em .25em;
    border-radius: .3em;
    cursor: pointer;
    transition: background-color .2s ease, text-decoration-color .2s ease;
}
html a.tel-link::before {
    content: "";
    display: inline-block;
    width: .85em;
    height: .85em;
    margin-right: .35em;
    vertical-align: -.08em;
    background-color: #1fb6e5;
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M6.62%2010.79a15.05%2015.05%200%200%200%206.59%206.59l2.2-2.2a1%201%200%200%201%201.02-.24c1.12.37%202.32.57%203.57.57a1%201%200%200%201%201%201V20a1%201%200%200%201-1%201A17%2017%200%200%201%203%204a1%201%200%200%201%201-1h3.5a1%201%200%200%201%201%201c0%201.25.2%202.45.57%203.57a1%201%200%200%201-.25%201.02l-2.2%202.2z%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M6.62%2010.79a15.05%2015.05%200%200%200%206.59%206.59l2.2-2.2a1%201%200%200%201%201.02-.24c1.12.37%202.32.57%203.57.57a1%201%200%200%201%201%201V20a1%201%200%200%201-1%201A17%2017%200%200%201%203%204a1%201%200%200%201%201-1h3.5a1%201%200%200%201%201%201c0%201.25.2%202.45.57%203.57a1%201%200%200%201-.25%201.02l-2.2%202.2z%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
    transition: transform .2s ease;
}
html a.tel-link:hover,
html a.tel-link:focus-visible {
    color: inherit;
    background-color: rgba(31, 182, 229, .16);
    text-decoration-style: solid;
    text-decoration-color: #1fb6e5;
}
html a.tel-link:focus-visible {
    outline: 2px solid #1fb6e5;
    outline-offset: 2px;
}
html a.tel-link:hover::before,
html a.tel-link:focus-visible::before {
    transform: rotate(-12deg) scale(1.12);
}
@media (prefers-reduced-motion: reduce) {
    html a.tel-link, html a.tel-link::before { transition: none; }
    html a.tel-link:hover::before, html a.tel-link:focus-visible::before { transform: none; }
}
