html, body{
  max-width: 100%;
  overflow-x: hidden;
}

/* newer browsers */
@supports (overflow: clip){
  html, body{ overflow-x: clip; }
}
/* Reset and Base Styles */
:root {
    --primary-color: #222958;
    --secondary-color: #3e87c7;
    --accent-color: #3e87c7;
    --text-dark: #222958;
    --text-light: #666;
    --bg-light: #e3e4e5;
    --bg-white: #ffffff;
    --border-color: #d0d1d2;
    --success-color: #28a745;
    --shadow-sm: 0 2px 4px rgba(34,41,88,0.1);
    --shadow-md: 0 4px 6px rgba(34,41,88,0.1);
    --shadow-lg: 0 10px 30px rgba(34,41,88,0.15);
}

/* Typography */
/* Buttons */
/* Header */
/* Hero Section */
/* Section Header */
/* Services Overview */
/* Client Types */
/* Testimonials */
/* CTA Section */
/* Industry Involvement */
/* Responsive Design */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    .hero h1 {
        font-size: 2.8rem;
    }

}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    .header-cta .btn {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.75rem;
    }
    .hero {
        padding: 60px 0;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-cta {
        flex-direction: column;
    }
    .hero-contact {
        flex-direction: column;
        gap: 15px;
    }
    .services-overview,
    .why-prevision,
    .client-types,
    .testimonials,
    .cta-section,
    .industry-involvement {
        padding: 60px 0;
    }
    .section-header {
        margin-bottom: 40px;
    }
    .services-grid,
    .why-grid,
    .client-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .cta-buttons {
        flex-direction: column;
    }

}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    .btn {
        width: 100%;
    }
    .service-card,
    .why-card,
    .testimonial-card {
        padding: 30px 20px;
    }

}

/* Page-Specific Styles */
/* Force horizontal layout for support rows on Services page */
/* Services page: support services rows */
/* Form Styles */
/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(15px, -15px) scale(1.03);
    }
    50% {
        transform: translate(-10px, 10px) scale(0.97);
    }
    75% {
        transform: translate(12px, 6px) scale(1.02);
    }

}

@media (max-width: 768px) {
    .floating-orb {
        opacity: 0.5;
    }
    .orb-1 {
        width: 200px;
        height: 200px;
    }
    .orb-2 {
        width: 200px;
        height: 200px;
    }
    .orb-3 {
        width: 100px;
        height: 100px;
    }
    .orb-4 {
        width: 120px;
        height: 120px;
    }
    .orb-5 {
        width: 100px;
        height: 100px;
    }
    .orb-6 {
        width: 120px;
        height: 120px;
    }
    .orb-7 {
        width: 150px;
        height: 150px;
    }

}

/* Cleaner Navigation Styling */
/* Simplified nav items */
@media (max-width: 1024px) {
    .phone-number {
        display: none;
    }

}

/* .header.scrolled .nav-desktop a stays white; override removed */
/* .header.scrolled nav hover/active styles inherit base white */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 110px 0 60px;
        align-items: flex-start;
    }

}

@media (max-width: 768px) {
    .contact-info a {
        white-space: normal;
    }

}

/* contact-info hover unified with footer link hover */
/* Make footer contact link look clickable */
/* Scroll reveal animation */
/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: opacity 0.15s ease-out !important;
    }

}

/* Fine-tune vertical alignment for phone and email icons only */
/* Service card icon styling */
/* Slight lift on hover for a high-quality card feel */
/* New card icon style: soft rounded tile with inner line icon */
/* Simpler, bubble-free icons in related services blocks */
/* Slight lift on hover */
/* Card header layout: icon + title inline */
/* Base card icon tile for services section */
/* CATI / CAWI / Mixed specific tints */
/* Micro animation on hover */
/* Subtle glow on hover for card icons */
/* Homepage services: icon + title inline */
/* === FINAL UPDATE: ICON 90×90 & REMOVE FAINT GREY BORDER === */
/* Ensure icon + title row layout remains correct */
/* Remove ALL icon backgrounds, borders, shadows */
/* Set icons to exactly 90×90 pixels */
/* === Why Prevision: final 3-column layout (icon / text / image) === */
/* Desktop: 3 columns (icon | text | image) */
/* Col 1 – icon */
/* Col 2 – text */
/* Col 3 – image */
/* Polaroid-style photo card */
/* Slight angles so each photo looks like a polaroid */
/* Tablet & mobile: icon + text in 2 columns, image underneath */
@media (max-width: 960px) {
    .why-prevision .why-row {
        max-width: 100%;
        margin: 0 0 32px;
        grid-template-columns: 60px minmax(0, 1fr);
        row-gap: 12px;
        column-gap: 20px;
        align-items: flex-start;
    }
    .why-prevision .why-col-image {
        grid-column: 1 / -1;
        justify-content: flex-start;
        margin-top: 8px;
    }
    .why-prevision .why-photo-card {
        max-width: 100%;
    }

}

/* Subtle floating motion unique to this section */
@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }

}

/* Nuclear fix to beat animation.css “display:block !important” */
/* Enhanced styling for Industry Involvement section */
/* Why Prevision icon sizing - larger but responsive */
@media (min-width: 600px) {
    .why-icon {
        width: 110px;
        height: 110px;
    }

}

@media (min-width: 1024px) {
    .why-icon {
        width: 150px;
        height: 150px;
    }

}

/* Active in the Research Community - full-width horizontal carousel with arrows */
@media (min-width: 900px) {
}

/* Carousel arrows */
/* Scrollbar styling */
/* Industry Involvement cards - card styling + carousel layout */
@media (min-width: 900px) {
    .involvement-item {
        flex: 0 0 260px;
    }

}

/* Make Industry Involvement section span edge-to-edge */
/* Scale MRS B2B Network logo 150% */
/* Special layout for MRS B2B Network card */
/* Ensure B2B logo sits nicely under the tag */
/* Hide horizontal scrollbar in carousel */
/* Fade-out gradient edges for carousel */
/* ---- Adjustments added by ChatGPT ---- */
/* Keep the MRS B2B Network card aligned with the rest */
/* Make sure the carousel arrows sit on top of the fade overlays */
/* Ensure support rows always layout as icon + text columns */
/* Services support layout: icon + text columns */
/* Animation wrapper that doesn't affect layout */
/* Animation wrapper that doesn't affect layout */
/* Services support layout: icon + text columns */
/* Specific layout: 2x2 grid for facility section on desktop */
@media (min-width: 768px) {
    .facility-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* 3x2 layout for CATI Capabilities on larger screens */
@media (min-width: 992px) {
    .capabilities-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

/* Override: larger icons and alignment for Related Services cards */
/* CAWI capabilities: 2x2 feature grid */
/* Prevision By the Numbers - horizontal stats row */
/* Stack stats on smaller screens */
@media (max-width: 991px) {
    .numbers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 600px) {
    .numbers-grid {
        grid-template-columns: 1fr;
    }

}

/* Milton Keynes facility layout */
/* Map + slider column */
/* Image slider */
/* Dots */
/* Responsive adjustments */
@media (max-width: 991px) {
    .facility-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: 40px;
        align-items: start;
        margin-bottom: 48px;
    }

}

/* Scroll reveal animations (About page + reusable) */
/* Stagger children inside a reveal section */
@media (prefers-reduced-motion: reduce) {
    [data-reveal],
    [data-reveal] .stagger-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

}



/* About: Milton Keynes Call Centre layout
[MAP][TEXT]
[IMG][CTA]
[CARD1][CARD2][CARD3]
*/
@media (max-width: 991px) {
    .facility-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: 40px;
        align-items: start;
        margin-bottom: 48px;
    }
    .facility-points {
        grid-template-columns: 1fr;
    }

}

/* About: Facility cards icons (match site icon style) */
/* Contact methods refresh (Contact page) */
@media (max-width: 600px) {
    .contact-method {
        padding: 28px 22px;
    }
    .contact-method-icon {
        width: 58px;
        height: 58px;
        border-radius: 14px;
    }
    .contact-method-icon .icon {
        width: 32px;
        height: 32px;
    }

}



/* ===========================
Case Study Page (scoped)
=========================== */
/* Optional: ensure secondary button looks intentional on light bg */
/* Responsive */
@media (max-width: 980px) {
    .cs-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cs-grid {
        grid-template-columns: 1fr;
    }
    .cs-bullets {
        grid-template-columns: 1fr;
    }

}

/* Scroll-reveal animations */
/* Slight pop for stat boxes */
/* Stagger timing (supports up to 12 items) */
/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .stagger-item {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

}

/* Case Study images (placeholders) */
/* Side panel: key facts */
/* Trusted Provider Section */
/* Responsive */
@media (max-width: 768px) {
    .trusted-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .trusted-text h2 {
        font-size: 1.5rem;
    }
    .trusted-text p {
        font-size: 1rem;
    }

}

/* ==============================
Client Types: Photo Tiles (better visuals)
============================== */
@media (hover:hover) and (pointer:fine) {
    .client-tile:hover {
        transform: translateY(-6px) scale(1.02);
        box-shadow: 0 18px 45px rgba(0,0,0,0.14);
        filter: saturate(1.05) contrast(1.02);
    }

}

@media (max-width: 768px) {
    .client-tile {
        min-height: 200px;
    }

}

/* =========================
Specialisms section
========================= */
/* Grid matches your site’s spacing rhythm */
@media (max-width: 1024px) {
    .specialisms-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 768px) {
    .specialisms-grid {
        grid-template-columns: 1fr;
    }

}

/* Force image beside text (wins over overrides) */
/* FINAL OVERRIDE: force side-by-side layout */
/* =========================
Footer social icons
========================= */
/* make sure icons actually inherit the link colour */
/* Contact cards: allow long links (email) to wrap neatly */
/* Contact Methods: consistent icon system */
/* Make the email feel tidy + smaller */
@media (max-width: 520px) {
    .contact-method a[href^="mailto:"] {
        font-size: 0.92rem;
        /* even smaller on tiny screens */
    }

}

/* ==============================
Contact cards: email 1-line
============================== */
/* Target your email link in the card */
/* If you want even tighter on smaller screens */
@media (max-width: 520px) {
    .contact-method a.contact-email {
        font-size: 0.88rem;
    }

}

/* ==============================
Follow card: 2x2 larger icons
============================== */
/* Make the FA glyphs bigger */
/* === PERFECTLY CENTRED FOOTER SOCIAL ICONS === */
/* Force FA icons into a real square box */
/* Optical baseline correction */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #222958;
    --secondary-color: #3e87c7;
    --accent-color: #3e87c7;
    --text-dark: #222958;
    --text-light: #666;
    --bg-light: #e3e4e5;
    --bg-white: #ffffff;
    --border-color: #d0d1d2;
    --success-color: #28a745;
    --shadow-sm: 0 2px 4px rgba(34,41,88,0.1);
    --shadow-md: 0 4px 6px rgba(34,41,88,0.1);
    --shadow-lg: 0 10px 30px rgba(34,41,88,0.15);
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.logo img {
    height: 68px;
    width: auto;
    transition: height 0.25s ease, transform 0.25s ease;
}

.header.scrolled .logo img {
    height: 48px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    box-shadow: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: padding 0.25s ease;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-desktop ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-desktop a {
    position: relative;
    color: #ffffff;
    font-weight: 500;
    padding-bottom: 4px;
    transition: color 0.25s ease, font-weight 0.25s ease;
}

.nav-desktop a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
    transform: scaleX(1);
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: rgba(255,255,255,0.8);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: auto;
    min-width: 180px;
    max-width: 320px;
    margin-top: 10px;
    padding: 6px 0;
    border-radius: 12px;
    /* Gradient blue semi-transparent background */
    background: linear-gradient(135deg,
    rgba(34, 41, 88, 0.95) 0%,
    rgba(62, 135, 199, 0.90) 100%);
    border: none;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transition: opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.26s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 6px 16px;
    color: #f4f6ff;
    font-weight: 500;
    letter-spacing: 0.01em;
    font-size: 0.95rem;
    gap: 8px;
    white-space: nowrap;
    transition: background-color 0.18s ease-out,
    color 0.18s ease-out,
    transform 0.18s ease-out;
}

.dropdown-menu a i {
    font-size: 0.95rem;
    opacity: 0.9;
}

.dropdown-menu a span {
    flex: 1;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(2px);
}

.arrow {
    font-size: 0.7rem;
    margin-left: 4px;
}

.header-cta {
    display: flex;
    gap: 15px;
    align-items: center;
}

.phone-link {
    color: var(--text-dark);
    font-weight: 500;
    white-space: nowrap;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #ffffff !important;
    margin: 4px 0;
    border-radius: 999px;
}

.nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    padding-top: 90px;
    /* offset for header/logo so first link doesn't overlap */
    background: linear-gradient(135deg, #222958 0%, #3e87c7 100%);
    box-shadow: var(--shadow-md);
    z-index: 900;
}
.nav-mobile.is-open { display: block; }

.nav-mobile.active {
    display: block;
}

.nav-mobile ul {
    list-style: none;
}

.nav-mobile a {
    display: block;
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-mobile a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}
/* ---------------------------------
   Mobile dropdown parent (About)
---------------------------------- */

.mobile-dropdown > a {
  display: flex;
  align-items: center;
  gap: 8px;              /* space between text + chevron */
  padding-right: 20px;   /* normal padding now */
}

/* Chevron now sits beside the word */
.mobile-dropdown > a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid rgba(255,255,255,0.9);
  border-bottom: 2px solid rgba(255,255,255,0.9);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-top: 2px;       /* tiny optical alignment tweak */
}

/* Rotate when open */
.mobile-dropdown.is-open > a::after {
  transform: rotate(-135deg);
}
/* ---------------------------------
   Mobile submenu styling
---------------------------------- */

.mobile-submenu {
  display: none;
  padding: 6px 0 10px;
  margin: 0;
}

.mobile-dropdown.is-open > .mobile-submenu {
  display: block;
}

.mobile-submenu li {
  position: relative;
}

/* Bullet */
.mobile-submenu li::before {
  content: "•";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

/* Indented child links */
.mobile-submenu a {
  padding: 10px 20px 10px 36px;  /* space for bullet */
  font-size: 0.95em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.08);
}
.mobile-phone {
    background-color: var(--primary-color);
    color: white !important;
    text-align: center;
    font-weight: 600;
}


.award-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #3e87c7;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.award-badge .trophy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.award-badge .trophy-svg {
    width: 1.5em;
    height: 1.5em;
    display: block;
}

.hero h1 {
    color: white;
    font-size: 3.1rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 30px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-contact {
    display: flex;
    gap: 30px;
    justify-content: center;
    font-size: 1.1rem;
    flex-wrap: wrap;
}

.hero-contact a.hero-contact-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    padding-bottom: 3px;
}

.hero-contact a.hero-contact-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.hero-contact a.hero-contact-link:hover::after {
    transform: scaleX(1);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Services Overview */
.services-overview {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.services-overview .service-card {
    height: 100%;
}

.service-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-card.featured {
    border-color: #3e87c7;
    background: linear-gradient(135deg, #fff 0%, #f5f9fc 100%);
}

.featured-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background-color: #3e87c7;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.service-icon {
    /* Simplified base icon container; no circular bubble */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 20px;
    overflow: visible;
    transition: transform .2s ease-out;
}

.service-card h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
}

.service-card p {
    margin-bottom: 20px;
}

.link-arrow {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.link-arrow:hover {
    color: var(--secondary-color);
    gap: 10px;
}

/* Client Types */
.client-types {
    padding: 100px 0;
    background-color: #ffffff;
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.client-type {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.client-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(62,135,199,0.22), rgba(34,41,88,0.05));
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:20px;
    overflow:hidden;
    transition:transform .2s ease-out,box-shadow .2s ease-out,background .2s ease-out;
}

.client-type h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}



/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #222958 0%, #3e87c7 100%);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    margin-bottom: 15px;
}

.cta-content > p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 40px;
}


.response-time {
    color: rgba(255,255,255,0.9);
    font-style: italic;
}

/* Industry Involvement */
.industry-involvement {
    padding: 80px 0;
    background-color: var(--bg-white);
}

/* Responsive Design */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    .hero h1 {
        font-size: 2.8rem;
    }

}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    .header-cta .btn {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.75rem;
    }
    .hero {
        padding: 60px 0;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero-subtitle {

        font-size: 1.1rem;
    }
    .hero-cta {
        flex-direction: column;
    }
    .hero-contact {
        flex-direction: column;
        gap: 15px;
    }
    .services-overview,
    .why-prevision,
    .client-types,
    .testimonials,
    .cta-section,
    .industry-involvement {
        padding: 60px 0;
    }
    .section-header {
        margin-bottom: 40px;
    }
    .services-grid,
    .why-grid,
    .client-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .cta-buttons {
        flex-direction: column;
    }

}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    .btn {
        width: 100%;
    }
    .service-card,
    .why-card,
    .testimonial-card {
        padding: 30px 20px;
    }

}

/* Page-Specific Styles */
.page-hero {
    background: linear-gradient(135deg, #222958 0%, #3e87c7 100%);
    color: white;
    padding: 140px 0 80px;
    text-align: center;
}

.page-hero h1 {
    color: white;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.95);
    max-width: 700px;
    margin: 0 auto;
}

.content-section {
    padding: 80px 0;
}

.content-section:nth-child(even) {
    background-color: var(--bg-light);
}

.content-section h2 {
    margin-bottom: 30px;
}

.content-section--muted {
    background-color: var(--bg-light);
}

/* Force horizontal layout for support rows on Services page */
/* Services page: support services rows */
.services-support .support-icon-svg {
    width: 100%;
    height: auto;
    display: block;
}

.services-support .support-content h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.services-support .support-content p {
    margin: 0;
    max-width: 640px;
}

.services-support {
    background: var(--bg-white);
}

.content-section h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-item {
    padding: 30px;
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.feature-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.process-steps {
    display: grid;
    gap: 30px;
    margin: 40px 0;
}

.process-step {
    display: flex;
    gap: 20px;
    padding: 30px;
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

.step-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 50px;
}

.step-content h4 {
    margin-bottom: 10px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.required {
    color: #dc3545;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.contact-method {
    padding: 30px;
    background-color: var(--bg-light);
    border-radius: 8px;
    text-align: center;
}

.contact-method-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin: 30px 0;
    background-color: var(--bg-light);
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.hero-animation-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(62, 135, 199, 0.3), rgba(34, 41, 88, 0.1));
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.orb-icon-svg {
    width: 60%;
    /* fits nicely inside the orb */
    height: auto;
    opacity: 0.85;
    /* watermark-like */
}

.floating-orb::before {
    content: "";
    position: absolute;
    inset: 10%;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.floating-orb::after {
    content: "";
    position: absolute;
    top: 12%;
    left: 18%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(255,255,255,0.25), rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.orb-icon {
    font-size: clamp(1.8rem, 2.6vw, 3.4rem);
    /* slightly larger corporate size */
    color: rgba(255, 255, 255, 0.88);
    /* bright but not harsh */
    opacity: 0.85;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.orb-1 {
    width: 260px;
    height: 260px;
}

.orb-2 {
    width: 220px;
    height: 220px;
}

.orb-3 {
    width: 200px;
    height: 200px;
}

.orb-4 {
    width: 240px;
    height: 240px;
}

.orb-5 {
    width: 180px;
    height: 180px;
}

.orb-6 {
    width: 200px;
    height: 200px;
}

.orb-7 {
    width: 240px;
    height: 240px;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(15px, -15px) scale(1.03);
    }
    50% {
        transform: translate(-10px, 10px) scale(0.97);
    }
    75% {
        transform: translate(12px, 6px) scale(1.02);
    }

}

@media (max-width: 768px) {
    .floating-orb {
        opacity: 0.5;
    }
    .orb-1 {
        width: 200px;
        height: 200px;
    }
    .orb-2 {
        width: 200px;
        height: 200px;
    }
    .orb-3 {
        width: 100px;
        height: 100px;
    }
    .orb-4 {
        width: 120px;
        height: 120px;
    }
    .orb-5 {
        width: 100px;
        height: 100px;
    }
    .orb-6 {
        width: 120px;
        height: 120px;
    }
    .orb-7 {
        width: 150px;
        height: 150px;
    }

}

/* Cleaner Navigation Styling */
.header-cta .phone-number {
    position: relative;
    color: #ffffff;
    font-weight: 500;
    padding-bottom: 4px;
    transition: color 0.25s ease, font-weight 0.25s ease;
}

.header-cta .phone-number::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.header-cta .phone-number:hover,
.header-cta .phone-number:focus {
    color: #ffffff;
    font-weight: 600;
}

.header-cta .phone-number:hover::after,
.header-cta .phone-number:focus::after {
    transform: scaleX(1);
}

.phone-number:hover {
    color: var(--secondary-color);
}

/* Simplified nav items */
.nav-desktop ul {
    gap: 25px;
}

.nav-desktop a {
    font-size: 0.95rem;
}

@media (max-width: 1024px) {
    .phone-number {
        display: none;
    }

}

.service-icon-svg {
    width:82%;
    height:auto;
    opacity:1;
}

.why-icon-svg,.client-icon-svg {
    width:96%;
    height:auto;
    opacity:1;
}

.icon-circle:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
    background: radial-gradient(circle at 30% 30%, rgba(62, 135, 199, 0.3), rgba(34, 41, 88, 0.08));
}


.header.scrolled {
    background: linear-gradient(135deg, #222958 0%, #3e87c7 100%);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* .header.scrolled .nav-desktop a stays white; override removed */
/* .header.scrolled nav hover/active styles inherit base white */
.header.scrolled .header-content {
    padding: 10px 0;
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 110px 0 60px;
        align-items: flex-start;
    }

}

.icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

.hero-contact .icon {
    margin-right: 6px;
}

.contact-info a {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .contact-info a {
        white-space: normal;
    }

}
/* Scroll reveal animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: opacity 0.15s ease-out !important;
    }

}

.reveal-on-scroll.from-left {
    transform: translateX(-40px) scale(0.96);
}

.reveal-on-scroll.from-right {
    transform: translateX(40px) scale(0.96);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1);
}

.client-icon img {
    display: block;
    margin: 0 auto;
}

.nav-service-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.award-badge .trophy-icon img {
    transform: translateY(-2px);
}

.contact-info li {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.contact-info .icon {
    display: inline-block;
    margin-right: 8px;
}

/* Fine-tune vertical alignment for phone and email icons only */
.contact-info img[src*="icon-phone.svg"],
.contact-info img[src*="icon-email.svg"] {
    transform: translateY(2px);
}

/* Service card icon styling */
.service-icon img,
.service-icon svg {
    width: 48px;
    height: 48px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.12));
}

/* Slight lift on hover for a high-quality card feel */
.service-card:hover .service-icon {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
.trusted-section{
  padding-top: 80px;   /* adjust to taste */
}

/* New card icon style: soft rounded tile with inner line icon */
.services-section .service-icon,
.services-overview .service-icon {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(227,228,229,0.9));
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(34, 41, 88, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* Simpler, bubble-free icons in related services blocks */
.content-section .services-grid .service-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 20px;
    border-radius: 0;
    background: none;
    box-shadow: none;
    border: 0;
    width: auto;
    height: auto;
}

.services-section .service-icon img,
.services-overview .service-icon img,
.content-section .services-grid .service-icon img {
    width: 64px;
    height: 64px;
    display: block;
}

/* Slight lift on hover */
/* Card header layout: icon + title inline */
.services-section .services-section
/* Ensure primary service cards align their links at the bottom */
.service-card .link-arrow {
    margin-top: auto;
}

/* Base card icon tile for services section */
.services-section .service-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.services-section .service-icon img {
    width: 64px;
    height: 64px;
    display: block;
    transition: transform 0.25s ease;
}

/* CATI / CAWI / Mixed specific tints */
/* Micro animation on hover */
.service-card--cati .service-icon,
.service-card--cawi .service-icon,
.service-card--mixed .service-icon {
    background: radial-gradient(circle at 30% 20%, rgba(62,135,199,0.22), rgba(227,228,229,0.9));
    box-shadow: 0 10px 24px rgba(34,41,88,0.10);
}

/* Subtle glow on hover for card icons */
/* Homepage services: icon + title inline */
.services-section .service-card-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 18px;
    margin-bottom: 18px;
}

.services-section .service-card-header h3 {
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* === FINAL UPDATE: ICON 90×90 & REMOVE FAINT GREY BORDER === */
/* Ensure icon + title row layout remains correct */
.services-overview .service-card-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 18px !important;
}

/* Remove ALL icon backgrounds, borders, shadows */
.services-overview .service-icon {
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

/* Set icons to exactly 90×90 pixels */
.services-overview .service-icon img,
.services-overview .service-icon svg {
    width: 90px !important;
    height: 90px !important;
}

/* === Why Prevision: final 3-column layout (icon / text / image) === */
.why-prevision {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(
    to right,
    rgba(62,135,199,0.20) 0%,
    rgba(227,228,229,1) 100%
    );
}

.why-prevision .cta-center {
    text-align: center;
    margin-top: 40px;
}

.why-prevision .why-rows {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Desktop: 3 columns (icon | text | image) */
.why-prevision .why-row {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 80px minmax(0, 1.8fr) minmax(0, 1.2fr);
    column-gap: 24px;
    align-items: center;
}

/* Col 1 – icon */
.why-prevision .why-col-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-prevision .icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(62,135,199,0.18), rgba(34,41,88,0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(34,41,88,0.22);
}

/* Col 2 – text */
.why-prevision .why-col-text {
    align-self: center;
}

/* Col 3 – image */
.why-prevision .why-col-image {
    align-self: center;
    display: flex;
    justify-content: flex-start;
}

/* Polaroid-style photo card */
.why-prevision .why-photo-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(34,41,88,0.24);
    padding: 10px 10px 14px;
    max-width: 260px;
    transform-origin: center center;
}

.why-prevision .why-photo-card img {
    display: block;
    width: 100%;
    border-radius: 8px;
}

/* Slight angles so each photo looks like a polaroid */
.why-prevision .why-photo-1 {
    transform: rotate(-2deg);
}

.why-prevision .why-photo-2 {
    transform: rotate(3deg);
}

.why-prevision .why-photo-3 {
    transform: rotate(-3deg);
}

.why-prevision .why-photo-4 {
    transform: rotate(2deg);
}

/* Tablet & mobile: icon + text in 2 columns, image underneath */
@media (max-width: 960px) {
    .why-prevision .why-row {
        max-width: 100%;
        margin: 0 0 32px;
        grid-template-columns: 60px minmax(0, 1fr);
        row-gap: 12px;
        column-gap: 20px;
        align-items: flex-start;
    }
    .why-prevision .why-col-image {
        grid-column: 1 / -1;
        justify-content: flex-start;
        margin-top: 8px;
    }
    .why-prevision .why-photo-card {
        max-width: 100%;
    }

}


/* Only force 3 columns on desktop */
@media (min-width: 961px) {
  .why-prevision .why-row,
  .why-prevision .why-row.stagger-item.animated {
    display: grid !important;
    grid-template-columns: 80px minmax(0,1.8fr) minmax(0,1.2fr) !important;
  }
}
/* Enhanced styling for Industry Involvement section */
.involvement-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    background: rgba(62, 135, 199, 0.08);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.involvement-logo {
    margin-bottom: 16px;
}

.involvement-logo img {
    max-width: 140px;
    max-height: 60px;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.involvement-item h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.involvement-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}

.involvement-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.involvement-link:hover h4 {
    text-decoration: underline;
}

.involvement-item h4 a {
    color: inherit;
    text-decoration: none;
}

.involvement-item h4 a:hover {
    text-decoration: underline;
}

.involvement-logo a {
    display: inline-block;
}

/* Why Prevision icon sizing - larger but responsive */
.why-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

@media (min-width: 600px) {
    .why-icon {
        width: 110px;
        height: 110px;
    }

}

@media (min-width: 1024px) {
    .why-icon {
        width: 150px;
        height: 150px;
    }

}

.why-icon img,
.why-icon-svg {
    width: 100%;
    height: auto;
}

/* Active in the Research Community - full-width horizontal carousel with arrows */
.industry-involvement {
    padding: 80px 0;
    background: #f7f8fb;
}

@media (min-width: 900px) {
}

/* Carousel arrows */
.involvement-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(34, 41, 88, 0.85);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.involvement-arrow--prev {
    left: 0;
}

.involvement-arrow--next {
    right: 0;
}

.involvement-arrow:hover {
    transform: translateY(-50%) scale(1.05);
    background: rgba(62, 135, 199, 0.95);
    box-shadow: 0 10px 26px rgba(0,0,0,0.3);
}

.involvement-arrow:disabled {
    opacity: 0.35;
    cursor: default;
    box-shadow: none;
}

/* Scrollbar styling */
.involvement-content::-webkit-scrollbar {
    height: 6px;
}

.involvement-content::-webkit-scrollbar-track {
    background: transparent;
}

.involvement-content::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 3px;
}

/* Industry Involvement cards - card styling + carousel layout */
.involvement-content {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 8px 40px 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.involvement-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 24px 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 160ms ease-out, box-shadow 160ms ease-out;
    flex: 0 0 220px;
    scroll-snap-align: start;
}

.involvement-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.09);
}

@media (min-width: 900px) {
    .involvement-item {
        flex: 0 0 260px;
    }

}

/* Make Industry Involvement section span edge-to-edge */
.industry-involvement .container {
    max-width: 100%;
    padding-left: 24px;
    padding-right: 24px;
}

.involvement-carousel {
    position: relative;
    margin-left: -24px;
    margin-right: -24px;
}

/* Scale MRS B2B Network logo 150% */
.involvement-logo img[src*="mrsb2b"] {
    transform-origin: center;
}

/* Special layout for MRS B2B Network card */
.involvement-item--b2b .involvement-tag {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

/* Ensure B2B logo sits nicely under the tag */
/* Hide horizontal scrollbar in carousel */
.involvement-content {
    scrollbar-width: none;
}

.involvement-content::-webkit-scrollbar {
    display: none;
}

/* Fade-out gradient edges for carousel */
.involvement-carousel {
    position: relative;
    overflow: hidden;
}

.involvement-carousel::before,
.involvement-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.involvement-carousel::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}

.involvement-carousel::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
}

/* ---- Adjustments added by ChatGPT ---- */
/* Keep the MRS B2B Network card aligned with the rest */
.involvement-item--b2b {
    position: static;
    padding-top: 24px;
    /* matches the default card padding */
}

.involvement-item--b2b .involvement-tag {
    position: static;
    top: auto;
    left: auto;
    transform: none;
}

.involvement-item--b2b .involvement-logo {
    margin-top: 0;
}

/* Make sure the carousel arrows sit on top of the fade overlays */
.involvement-arrow {
    z-index: 5;
}

/* Ensure support rows always layout as icon + text columns */
/* Services support layout: icon + text columns */
/* Animation wrapper that doesn't affect layout */
/* Animation wrapper that doesn't affect layout */
/* Services support layout: icon + text columns */
.services-support .support-rows {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.services-support .support-row {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.services-support .support-row:first-child {
    border-top: 1px solid var(--border-color);
}

.services-support .support-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: flex-start;
    column-gap: 20px;
}

.services-support .support-icon-img {
    width: 56px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.services-support .support-content {
    flex: 1;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.feature-icon {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img,
.feature-icon svg {
    width: 80px;
    height: 80px;
}

.feature-header h4 {
    margin: 0;
    line-height: 1.25;
}

/* Specific layout: 2x2 grid for facility section on desktop */
@media (min-width: 768px) {
    .facility-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* 3x2 layout for CATI Capabilities on larger screens */
@media (min-width: 992px) {
    .capabilities-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

/* Override: larger icons and alignment for Related Services cards */
.content-section .services-grid .service-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.content-section .services-grid .service-card-header h3 {
    margin: 0;
    line-height: 1.25;
}

.content-section .services-grid .service-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 18px 0 0;
}

.content-section .services-grid .service-icon img,
.content-section .services-grid .service-icon svg {
    width: 72px;
    height: 72px;
    display: block;
}

/* CAWI capabilities: 2x2 feature grid */
.cawi-capabilities .feature-list {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
}



.section-title-centered {
    text-align: center;
    margin-bottom: 40px;
}

/* Milton Keynes facility layout */
.facility-copy .feature-list {
    margin-top: 32px;
}

.facility-visit-cta {
    margin-top: 60px !important;
}

.facility-visit-cta h3 {
    margin-bottom: 8px;
}

.facility-address {
    margin: 12px 0 0;
}

/* Map + slider column */
.facility-map {
    position: relative;
    width: 100%;
    min-height: 260px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Image slider */
.facility-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    min-height: 260px;
}

.facility-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.facility-slide.is-active {
    opacity: 1;
}

/* Dots */
.facility-dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.facility-dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.6);
}

.facility-dots span.is-active {
    background: #3E87C7;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .facility-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: 40px;
        align-items: start;
        margin-bottom: 48px;
    }

}

.facility-layout--compact {
    gap: 32px;
}

.facility-layout--compact .facility-copy .feature-list {
    margin-top: 20px;
}

.facility-layout--compact .facility-visit-cta {
    margin-top: 60px !important;
}

.facility-section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

.facility-section--callcentre {
    padding-bottom: 20px !important;
}

.facility-visit-cta .btn,
.facility-visit-cta a.btn-primary {
    display: inline-block;
    margin-top: 18px;
}

.facility-section--team h2 {
    margin-top: 0;
}

.facility-section--callcentre .container {
    padding-bottom: 0;
    margin-bottom: 0;
}

.facility-section--callcentre .facility-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 40px;
    align-items: start;
    margin-bottom: 48px;
}

.facility-section--callcentre .facility-media,
.facility-section--callcentre .facility-slider {
    margin-bottom: 0;
}

/* Scroll reveal animations (About page + reusable) */
[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms ease, transform 700ms ease;
    will-change: opacity, transform;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* Stagger children inside a reveal section */
[data-reveal] .stagger-item {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 550ms ease, transform 550ms ease;
}

[data-reveal].is-visible .stagger-item {
    opacity: 1;
    transform: none;
}

[data-reveal].is-visible .stagger-item:nth-child(1) {
    transition-delay: 80ms;
}

[data-reveal].is-visible .stagger-item:nth-child(2) {
    transition-delay: 160ms;
}

[data-reveal].is-visible .stagger-item:nth-child(3) {
    transition-delay: 240ms;
}

[data-reveal].is-visible .stagger-item:nth-child(4) {
    transition-delay: 320ms;
}

[data-reveal].is-visible .stagger-item:nth-child(5) {
    transition-delay: 400ms;
}

[data-reveal].is-visible .stagger-item:nth-child(6) {
    transition-delay: 480ms;
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal],
    [data-reveal] .stagger-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

}



/* About: Milton Keynes Call Centre layout
[MAP][TEXT]
[IMG][CTA]
[CARD1][CARD2][CARD3]
*/
.facility-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 40px;
    align-items: start;
    margin-bottom: 48px;
}

.facility-media {
    display: grid;
    gap: 24px;
}

.facility-points-wrapper {
    width: 100%;
    margin-top: 12px;
}

.facility-points {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
}

@media (max-width: 991px) {
    .facility-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: 40px;
        align-items: start;
        margin-bottom: 48px;
    }
    .facility-points {
        grid-template-columns: 1fr;
    }

}

/* About: Facility cards icons (match site icon style) */
.facility-points .point-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 14px;
}

.facility-points .point-icon img {
    width: 48px;
    height: 48px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.12));
}

/* Contact methods refresh (Contact page) */
.contact-methods {
    margin: 50px 0 20px;
}

.contact-method {
    background: #ffffff;
    border: 1px solid rgba(34, 41, 88, 0.10);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
    padding: 34px 28px;
    position: relative;
    overflow: hidden;
}

.contact-method::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 5px;
    width: 100%;
    background: linear-gradient(90deg, #222958, #3e87c7);
}

.contact-method h4 {
    margin-top: 10px;
    margin-bottom: 10px;
}

.contact-method p {
    margin: 8px 0;
}

@media (max-width: 600px) {
    .contact-method {
        padding: 28px 22px;
    }
    .contact-method-icon {
        width: 58px;
        height: 58px;
        border-radius: 14px;
    }
    .contact-method-icon .icon {
        width: 32px;
        height: 32px;
    }

}

/* Contact: icon styling (no bubble, match site line-icon look) */
.contact-method-icon {
    width: auto;
    height: auto;
    margin: 0 auto 16px;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-method-icon .icon {
    width: 44px;
    height: 44px;
    display: block;
    opacity: 1 !important;
    filter: none !important;
}

/* Contact page map */
.contact-map {
    padding: 60px 0;
    background: #f6f7f9;
}

.contact-map .map-embed {
    width: 100%;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* Contact: location map embed + directions CTA */
.location-map {
    position: relative;
    display: flex;
    justify-content: center;   /* centers horizontally */
    align-items: flex-end;     /* sticks to bottom */
    width: 100%;
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(0,0,0,0.10);
    border: 1px solid rgba(34, 41, 88, 0.10);
    background: #e9edf2;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.btn.btn-directions {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    margin: 0 auto;   /* centers it */
    width: fit-content;    
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(90deg, #222958, #3e87c7);
    color: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
/* Dark / light background variants */
.section-light {
    background: #f6f7f9;
}

.section-dark {
    background: linear-gradient(90deg, #222958, #3e87c7);
    color: #fff;
}

.section-dark h2, .section-dark h3, .section-dark p, .section-dark a {
    color: #fff;
}

/* Map section spacing */
.location-section {
    padding: 70px 0;
}


/* ===========================
Case Study Page (scoped)
=========================== */
.cs-hero .cs-subtitle {
    max-width: 760px;
    margin-top: 10px;
    opacity: 0.95;
}

.cs-hero-top {
    margin-bottom: 14px;
}

.cs-back {
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.35);
    padding-bottom: 2px;
}

.cs-back:hover {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.7);
}

.cs-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.cs-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    font-size: 0.9rem;
}

.cs-main {
    padding: 40px 0 60px;
}

.cs-card {
    background: #fff;
    border: 1px solid rgba(34,41,88,0.10);
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    margin-bottom: 18px;
}

.cs-card h2 {
    margin-top: 0;
}

.cs-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 20px;
}

.cs-stat {
    border-radius: 14px;
    background: #f7f8fb;
    border: 1px solid rgba(34,41,88,0.08);
    padding: 16px;
}

.cs-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: #222958;
    letter-spacing: -0.02em;
}

.cs-stat-label {
    margin-top: 6px;
    font-size: 0.95rem;
    color: rgba(0,0,0,0.70);
}

.cs-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 18px;
}

.cs-kv {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(34,41,88,0.10);
}

.cs-kv-label {
    font-size: 0.85rem;
    color: rgba(0,0,0,0.55);
}

.cs-kv-value {
    font-weight: 650;
    color: rgba(0,0,0,0.85);
}

.cs-list {
    margin: 0;
    padding-left: 18px;
}

.cs-note {
    margin-top: 12px;
    font-size: 0.95rem;
    color: rgba(0,0,0,0.62);
}

.cs-steps {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.cs-step {
    padding: 16px;
    border-radius: 14px;
    background: #f7f8fb;
    border: 1px solid rgba(34,41,88,0.08);
}

.cs-step h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #222958;
}

.cs-quote {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(62,135,199,0.10), rgba(34,41,88,0.06));
    border: 1px solid rgba(34,41,88,0.12);
}

.cs-quote-mark {
    position: absolute;
    top: 14px;
    left: 16px;
    font-size: 72px;
    line-height: 1;
    color: rgba(34,41,88,0.18);
    font-weight: 800;
}

.cs-quote blockquote {
    margin: 0;
    padding-left: 10px;
    font-size: 1.05rem;
    color: rgba(0,0,0,0.80);
}

.cs-quote-foot {
    margin-top: 12px;
    color: rgba(0,0,0,0.62);
    font-weight: 600;
}

.cs-bullets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.cs-bullet {
    padding: 16px;
    border-radius: 14px;
    background: #f7f8fb;
    border: 1px solid rgba(34,41,88,0.08);
}

.cs-bullet h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #222958;
}


.cs-testimonial {
    margin: 0;
    padding: 16px;
    border-radius: 14px;
    background: #f7f8fb;
    border: 1px solid rgba(34,41,88,0.08);
}

.cs-testimonial blockquote {
    margin: 0 0 12px;
    color: rgba(0,0,0,0.78);
    font-size: 0.98rem;
}

.cs-testimonial figcaption {
    color: rgba(0,0,0,0.62);
    font-size: 0.95rem;
}

.cs-cta {
    margin-top: 10px;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.cs-cta-inner {
    /* Light, on-brand panel */
    background: #f4f6fb;
    color: #222958;
    border-radius: 18px;
    padding: 28px;
    /* Subtle structure */
    border: 1px solid rgba(34,41,88,0.12);
    box-shadow: 0 10px 28px rgba(0,0,0,0.05);
    /* A small brand accent so it doesn't feel plain */
    border-left: 6px solid #3e87c7;
}

.cs-cta-inner h2 {
    margin-top: 0;
    color: #222958;
}

.cs-cta-inner p {
    max-width: 760px;
    opacity: 1;
    color: rgba(0,0,0,0.70);
}

.cs-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}
/* Responsive */
@media (max-width: 980px) {
    .cs-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cs-grid {
        grid-template-columns: 1fr;
    }
    .cs-bullets {
        grid-template-columns: 1fr;
    }

}

/* Scroll-reveal animations */
.reveal,
.stagger-item {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 600ms ease, transform 600ms ease;
    will-change: opacity, transform;
}

.reveal.is-visible,
.stagger-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slight pop for stat boxes */
.cs-stat.reveal {
    transform: translateY(16px) scale(0.985);
}

.cs-stat.reveal.is-visible {
    transform: translateY(0) scale(1);
}

/* Stagger timing (supports up to 12 items) */
.stagger-item.is-visible {
    transition-delay: var(--delay, 0ms);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .stagger-item {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

}

/* Case Study images (placeholders) */
.cs-hero-img {
    min-height: 320px;
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
}



/* Side panel: key facts */
.cs-side-block {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(34,41,88,0.10);
}

.cs-side-block h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: #222958;
}

.cs-side-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cs-side-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    font-size: 0.95rem;
}

.cs-side-list .label {
    color: rgba(0,0,0,0.55);
}

.cs-side-list .value {
    font-weight: 600;
    color: rgba(0,0,0,0.85);
    text-align: right;
}

/* Trusted Provider Section */
.trusted-provider {
    padding: 60px 0;
}

.trusted-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.trusted-text h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.trusted-text p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #555;
}

.trusted-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .trusted-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .trusted-text h2 {
        font-size: 1.5rem;
    }
    .trusted-text p {
        font-size: 1rem;
    }

}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    /* was flex */
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    /* header, intro, list, link */
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.10);
}

.service-card-header {
    display: flex;
    align-items: flex-start;
    /* was center, helps consistent top alignment */
    gap: 1rem;
    margin-bottom: 1rem;
    /* ensures headings/icons occupy same vertical space across cards */
    min-height: 86px;
    /* tweak if needed */
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon-svg {
    width: 100%;
    height: auto;
}

.service-card h3 {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.2;
}

.service-card p {
    margin: 0 0 1rem 0;
    /* normalise top margin too */
    line-height: 1.45;
    /* clamp to keep identical intro height so bullet baseline aligns */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    /* guarantees equal space even if text is shorter */
    min-height: calc(1.45em * 3);
}

.feature-list {
    margin: 0 0 1.25rem 0;
    padding-left: 1.1rem;
}

.feature-list li {
    margin: 0;
    padding: 0;
    line-height: 1.35;
}

.feature-list li + li {
    margin-top: 0;
}

.link-arrow {
    margin-top: auto;
    /* still works inside grid as the last row */
    font-weight: 600;
    text-decoration: none;
}

.featured {
    border: 2px solid #3e87c7;
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 16px;
    background: #3e87c7;
    /* (keeping your existing rules; add padding/radius if you want) */
}

.page-hero--about {
    position: relative;
    overflow: hidden;
}

.page-hero--about .about-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    filter: saturate(1.05);
}

.page-hero--about::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(34,41,88,0.92) 0%, rgba(34,41,88,0.75) 45%, rgba(34,41,88,0.55) 100%);
}

.page-hero--about .container {
    position: relative;
    z-index: 2;
}


.trust-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 18px;
}

.trust-pill {
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(62,135,199,0.08);
    border: 1px solid rgba(62,135,199,0.20);
    border-radius: 999px;
    padding: 10px 14px;
}

.trust-pill img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.trust-pill strong {
    color: #222958;
}

/* ==============================
Client Types: Photo Tiles (better visuals)
============================== */
.client-grid {
    gap: 30px;
}

.client-type {
    text-align: left;
}

.client-tile {
    position: relative;
    width: 100%;
    min-height: 220px;
    border-radius: 18px;
    overflow: hidden;
    /* Use cover so it looks like a hero image, not a postage stamp */
    background-image: var(--tile-bg);
    background-repeat: no-repeat;
    background-size: cover;
    /* Allow per-tile focal point: defaults to center */
    background-position: var(--tile-pos, center);
    /* nicer fallback than dark navy */
    background-color: #e3e4e5;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(34, 41, 88, 0.10);
    transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.client-tile__overlay {
    position: absolute;
    inset: 0;
    /* Softer, cleaner overlay so photos still read */
    background: linear-gradient(
    180deg,
    rgba(34,41,88,0.08) 0%,
    rgba(34,41,88,0.55) 55%,
    rgba(34,41,88,0.82) 100%
    );
    z-index: 1;
}

.client-tile__content {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    z-index: 2;
    color: #fff;
}

.client-tile__content h4 {
    color: #fff;
    margin: 0 0 6px;
    font-size: 1.10rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.client-tile__content p {
    margin: 0;
    color: rgba(255,255,255,0.92);
    text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

@media (hover:hover) and (pointer:fine) {
    .client-tile:hover {
        transform: translateY(-6px) scale(1.02);
        box-shadow: 0 18px 45px rgba(0,0,0,0.14);
        filter: saturate(1.05) contrast(1.02);
    }

}

@media (max-width: 768px) {
    .client-tile {
        min-height: 200px;
    }

}

.page-hero--services {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
}

.page-hero--services .page-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Key: push focus to the interviewer, not the desk */
    object-position: center 30%;
}

.page-hero--services::after {
    content: "";
    position: absolute;
    inset: 0;
    /* Confident, brand-aligned overlay */
    background: linear-gradient(
    90deg,
    rgba(34,41,88,0.90) 0%,
    rgba(34,41,88,0.70) 45%,
    rgba(34,41,88,0.45) 100%
    );
}

.page-hero--services .container {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 720px;
}

.page-hero--services h1 {
    color: #fff;
}

.page-hero--services p {
    color: rgba(255,255,255,0.92);
}

/* =========================
Specialisms section
========================= */
.specialisms-section {
    background: var(--bg-white);
}

/* Grid matches your site’s spacing rhythm */
.specialisms-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .specialisms-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 768px) {
    .specialisms-grid {
        grid-template-columns: 1fr;
    }

}

.specialism-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transform: translateZ(0);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

/* Hover: the “confident card” */
.specialism-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(34, 41, 88, 0.35);
}

.specialism-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, rgba(34,41,88,0.06), rgba(62,135,199,0.06));
    overflow: hidden;
}

.specialism-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 350ms ease;
}

/* Subtle “sheen” that passes on hover */
.specialism-media::after {
    content: "";
    position: absolute;
    inset: -40%;
    background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.18) 50%,
    rgba(255,255,255,0) 100%);
    transform: translateX(-30%) rotate(18deg);
    opacity: 0;
    transition: opacity 260ms ease, transform 600ms ease;
    pointer-events: none;
}

.specialism-card:hover .specialism-media img {
    transform: scale(1.06);
}

.specialism-card:hover .specialism-media::after {
    opacity: 1;
    transform: translateX(30%) rotate(18deg);
}

.specialism-body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.specialism-body h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.35rem;
    line-height: 1.2;
}

.specialism-body p {
    margin: 0;
    color: var(--text-light);
}

/* If you want the reveal to feel slightly “snappier” for these */
.specialisms-section .reveal-on-scroll {
    transform: translateY(26px) scale(0.98);
}

/* Contact cards: allow long links (email) to wrap neatly */
.contact-method a.contact-email-link {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    /* best modern option */
    word-break: break-word;
    /* fallback */
    line-height: 1.25;
    font-size: 1.05rem;
    /* slightly smaller so it fits better */
}

/* Contact Methods: consistent icon system */
.contact-method-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 30% 30%, rgba(62,135,199,0.20), rgba(34,41,88,0.06));
    border: 1px solid rgba(34,41,88,0.10);
}

.cm-icon {
    width: 40px;
    height: 40px;
}

.cm-stroke {
    fill: none;
    stroke: #222958;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cm-accent {
    fill: none;
    stroke: #3e87c7;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Make the email feel tidy + smaller */
.contact-method a[href^="mailto:"] {
    font-size: 0.98rem;
    /* smaller */
    word-break: break-word;
    /* wrap nicely */
}

@media (max-width: 520px) {
    .contact-method a[href^="mailto:"] {
        font-size: 0.92rem;
        /* even smaller on tiny screens */
    }

}

/* ==============================
Contact cards: email 1-line
============================== */
/* Target your email link in the card */
.contact-method a.contact-email {
    display: inline-block;
    font-size: 0.95rem;
    /* tweak: 0.92–0.98 */
    line-height: 1.2;
    white-space: nowrap;
    /* keep on one line */
}

/* If you want even tighter on smaller screens */
@media (max-width: 520px) {
    .contact-method a.contact-email {
        font-size: 0.88rem;
    }

}

/* ==============================
Follow card: 2x2 larger icons
============================== */
.contact-socials {
    margin-top: 14px;
    display: flex;
    gap: 12px;
    justify-content: center; /* or flex-start if you want left-aligned */
    flex-wrap: nowrap;
}
.contact-socials a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(227,228,229,0.55);
    border: 1px solid rgba(34,41,88,0.12);
    color: #222958;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.contact-socials a:hover {
    transform: translateY(-2px);
    background: rgba(62,135,199,0.18);
    border-color: rgba(34,41,88,0.22);
}

/* Make the FA glyphs bigger */
.contact-socials i {
    font-size: 18px;
    line-height: 1;
}
/* ===========================
LEGAL / POLICY PAGES FIXES
=========================== */
body.legal-page .legal-hero {
    position: relative;
    background: #222958;
    color: #fff;
    padding: 56px 0 36px;
    overflow: hidden;
    min-height: 0 !important;
    height: auto !important;
}

body.legal-page .legal-hero::before {
    content: "";
    position: absolute;
    inset: -35% -20%;
    background:
    radial-gradient(circle at 20% 20%, rgba(62,135,199,.35), transparent 55%),
    radial-gradient(circle at 80% 40%, rgba(227,228,229,.18), transparent 60%);
    pointer-events: none;
}

body.legal-page .legal-hero .container {
    position: relative;
    z-index: 1;
}

/* Force hero text to be readable even if global h1 rules exist */
body.legal-page .legal-hero h1 {
    color: #fff !important;
    font-size: clamp(2rem, 2.2vw + 1rem, 3.25rem) !important;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 14px 0 10px;
    max-width: 18ch;
}

body.legal-page .legal-hero p,
body.legal-page .legal-hero .kicker,
body.legal-page .legal-hero .legal-meta {
    color: rgba(255,255,255,.88) !important;
    margin: 0 0 8px;
    max-width: 70ch;
}

/* If anything in your global CSS sets header to 100vh, this prevents it */
body.legal-page header,
body.legal-page .legal-hero {
    min-height: 0 !important;
}

/* Optional: tighten overall page spacing */
body.legal-page .legal-wrap {
    padding: 34px 0 52px;
}

body.legal-page .legal-hero {
    padding-top: 120px;
    /* adjust to match your header height */
}
body.legal-page .legal-hero .page-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}
body.legal-page .legal-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
    90deg,
    rgba(34,41,88,0.90) 0%,
    rgba(34,41,88,0.70) 45%,
    rgba(34,41,88,0.45) 100%
    );
    z-index: 0;
    pointer-events: none;
}

/* Ensure custom Directions button fully masks map UI underneath */
.btn.btn-directions {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 5;
    /* Solid background – no bleed-through */
    background: linear-gradient(90deg, #222958, #3e87c7);
    color: #ffffff;
    /* Hard stop for iframe showing through */
    opacity: 1;
    isolation: isolate;
    /* Slight depth so it clearly sits above map */
    box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}

.location-map {
    position: relative;
    isolation: isolate;
    /* creates a clean stacking context */
}

.btn.btn-directions:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.32);
}

/* ===========================
Back to Top – Branded Edge Control
=========================== */
.back-to-top {
    position: fixed;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #222958 0%, #3e87c7 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow:
    0 8px 22px rgba(0,0,0,.28),
    inset 0 0 0 1px rgba(255,255,255,.15);
    z-index: 99999;
    transition:
    opacity .35s ease,
    transform .35s ease,
    box-shadow .25s ease;
}

/* Visible state */
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Hover */
.back-to-top:hover {
    transform: translateY(-50%) translateX(-4px);
    box-shadow:
    0 12px 30px rgba(0,0,0,.35),
    inset 0 0 0 1px rgba(255,255,255,.25);
}

/* Icon */
.back-to-top i {
    font-size: 1.1rem;
}

/* Mobile: bottom-right instead (edge controls feel cramped mid-screen) */
@media (max-width: 768px) {
    .back-to-top {
        right: 16px;
        bottom: 22px;
        transform: none;
    }
    .back-to-top:hover {
        transform: translateY(-4px);
    }

}

.back-to-top::after {
    content: "Top";
    position: absolute;
    right: 52px;
    background: rgba(34,41,88,.95);
    color: #fff;
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity .2s ease, transform .2s ease;
    transform: translateX(6px);
}

.back-to-top:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* =========================================================
Cookie Consent + Preferences (Prevision style)
Uses: #222958, #3e87c7, #e3e4e5
========================================================= */
:root {
    --pr-navy:#222958;
    --pr-blue:#3e87c7;
    --pr-ice:#e3e4e5;
    --cookie-grad: linear-gradient(135deg, rgba(34,41,88,.96), rgba(62,135,199,.92));
    --cookie-border: rgba(255,255,255,.14);
    --cookie-shadow: 0 18px 55px rgba(0,0,0,.28);
}

/* ---------- Banner container ---------- */
.cookie-consent {
    position: fixed;
    left: auto;
    right: 84px;
    /* sits beside the cookie icon */
    bottom: 20px;
    transform-origin: right center;
    max-width: 720px;
    /* keeps it tidy */
    z-index: 99998;
    opacity: 0;
    transform: translateY(12px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.cookie-consent.is-visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.cookie-consent__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--cookie-grad);
    border: 1px solid var(--cookie-border);
    box-shadow: var(--cookie-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ---------- Banner text ---------- */
.cookie-consent__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px 0;
    color: #fff;
    font-weight: 650;
    font-size: 1rem;
}

.cookie-consent__emoji {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.10);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
    /* Emoji looks better centred if we bump it slightly */
    line-height: 1;
}

.cookie-consent__text p {
    margin: 0;
    color: rgba(255,255,255,.90);
    font-size: .92rem;
    line-height: 1.4;
    max-width: 78ch;
}

.cookie-consent__links {
    margin-top: 10px !important;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    font-size: .86rem;
    color: rgba(255,255,255,.75);
}

.cookie-consent__links a {
    color: rgba(255,255,255,.88);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.25);
}

.cookie-consent__links a:hover {
    border-bottom-color: rgba(255,255,255,.55);
}

/* ---------- Banner actions ---------- */
.cookie-consent__actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Override your global .btn styles only inside cookie UI */
.cookie-consent .btn,
.cookie-prefs .btn {
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 650;
    font-size: .92rem;
    line-height: 1;
    white-space: nowrap;
}

/* Make secondary buttons quiet + consistent */
.cookie-consent .btn.btn-secondary,
.cookie-prefs .btn.btn-secondary {
    background: rgba(255,255,255,.10);
    color: rgba(255,255,255,.92);
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: none;
}

.cookie-consent .btn.btn-secondary:hover,
.cookie-prefs .btn.btn-secondary:hover {
    background: rgba(255,255,255,.14);
    transform: translateY(-1px);
}

/* Primary: crisp, not shouty */
.cookie-consent .btn.btn-primary,
.cookie-prefs .btn.btn-primary {
    color: #fff;
    background: var(--pr-navy);
    border: 1px solid rgba(255,255,255,.0);
    box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

.cookie-consent .btn.btn-primary:hover,
.cookie-prefs .btn.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0,0,0,.22);
}

/* ---------- Preferences modal ---------- */
.cookie-prefs {
    position: fixed;
    inset: 0;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.cookie-prefs.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cookie-prefs__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10,12,26,.55);
}

.cookie-prefs__panel {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: min(520px, calc(100% - 36px));
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(34,41,88,.10);
    box-shadow: 0 22px 70px rgba(0,0,0,.35);
    transform: translateY(10px);
    transition: transform .2s ease;
}

.cookie-prefs.is-open .cookie-prefs__panel {
    transform: translateY(0);
}

.cookie-prefs__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(34,41,88,.10);
}

.cookie-prefs__header h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--pr-navy);
    font-weight: 750;
}

.cookie-prefs__close {
    font-size: 1.6rem;          /* Bigger X */
    font-weight: 700;           /* Bolder */
    line-height: 1;
    width: 40px;                /* Larger hit area */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f1f3f7;
    border: 1px solid rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-prefs__close:hover {
    background: #e4e8f2;
    transform: scale(1.05);
}
.cookie-prefs__body {
    padding: 16px 18px;
    color: rgba(34,41,88,.88);
}

.cookie-prefs__body p {
    margin-top: 0;
    line-height: 1.45;
}

.cookie-toggle {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid rgba(34,41,88,.08);
}

.cookie-toggle:first-of-type {
    border-top: none;
    padding-top: 6px;
}

.cookie-toggle__info strong {
    display: block;
    color: var(--pr-navy);
    margin-bottom: 2px;
}

.cookie-toggle__info span {
    display: block;
    font-size: .92rem;
    color: rgba(34,41,88,.72);
}

/* Locked pill */
.cookie-toggle__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .82rem;
    background: rgba(227,228,229,.7);
    color: rgba(34,41,88,.85);
    border: 1px solid rgba(34,41,88,.12);
}

.cookie-toggle__pill.is-locked {
    background: rgba(62,135,199,.14);
    border-color: rgba(62,135,199,.25);
    color: var(--pr-navy);
}

/* Switch styling (if you already have one, this will tidy it) */
.switch {
    position: relative;
    width: 48px;
    height: 28px;
    display: inline-block;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch .slider {
    position: absolute;
    inset: 0;
    background: rgba(34,41,88,.18);
    border-radius: 999px;
    transition: background .2s ease;
    box-shadow: inset 0 0 0 1px rgba(34,41,88,.10);
}

.switch .slider:before {
    content: "";
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s ease;
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

.switch input:checked + .slider {
    background: rgba(62,135,199,.75);
}

.switch input:checked + .slider:before {
    transform: translateX(20px);
}

/* Footer actions */
.cookie-prefs__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 18px 18px;
    border-top: 1px solid rgba(34,41,88,.10);
}

.cookie-prefs__fineprint {
    margin-top: 10px;
    font-size: .86rem;
    color: rgba(34,41,88,.65);
}

/* ---------- Floating cookie button ---------- */
/* Cookie FAB = icon only (no rounded square) */
/* Cookie FAB – icon only */
.cookie-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    z-index: 99999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, opacity .2s ease;
}

/* Cookie icon – navy fill, white outline */
.cookie-fab i {
    font-size: 2.1rem;
    color: var(--pr-navy);
    /* dark blue fill */
    line-height: 1;
    /* white outline */
    -webkit-text-stroke: 1.5px #ffffff;
    /* fallback outline for non-webkit */
    text-shadow:
    1px 0 0 #fff,
    -1px 0 0 #fff,
    0 1px 0 #fff,
    0 -1px 0 #fff,
    1px 1px 0 #fff,
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff;
}

/* Hover */
.cookie-fab:hover {
    transform: translateY(-2px);
}

.cookie-fab:hover i {
    color: var(--pr-blue);
}

/* Keyboard focus */
.cookie-fab:focus-visible {
    outline: none;
}

/* Hide when any modal is open */
body.modal-open .cookie-fab {
    opacity: 0;
    pointer-events: none;
}

/* Mobile: stack nicely */
@media (max-width: 720px) {
    .cookie-consent {
        left: 14px;
        right: 14px;
        bottom: 14px;
    }
    .cookie-consent__inner {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .cookie-consent__actions {
        justify-content: flex-start;
    }
    .cookie-fab {
        right: 14px;
        bottom: 14px;
    }
    .cookie-prefs__panel {
        right: 14px;
        bottom: 14px;
        width: calc(100% - 28px);
    }

}

/* Hide cookie FAB only when cookie prefs is open */
.cookie-prefs.is-open ~ .cookie-fab {
    opacity: 0;
    pointer-events: none;
}

.cookie-prefs {
    z-index: 100000;
}

.cookie-fab {
    z-index: 99999;
}


/* ===========================
Partners grid (tiles)
=========================== */
@media (max-width: 1100px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media (max-width: 640px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

.partner-tile {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: stretch;
    justify-items: stretch;
    gap: 10px;
    padding: 12px 12px 10px;
    border-radius: 16px;
    border: 1px solid rgba(34,41,88,.12);
    background: rgba(255,255,255,.8);
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.partner-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(62,135,199,.35);
    box-shadow: 0 14px 34px rgba(0,0,0,.10);
}

.partner-tile:focus-visible {
    outline: 3px solid rgba(62,135,199,.45);
    outline-offset: 3px;
}

.partner-tile__name {
    font-size: .92rem;
    font-weight: 600;
    color: #222958;
    text-align: center;
    line-height: 1.2;
    /* prevent long names wrecking layout */
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Remove button default styling */
.partner-tile {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(34,41,88,.12);
}

/* ===========================
Partner modal (white)
=========================== */
.partner-modal__panel {
    position: relative;
    width: min(720px, calc(100% - 28px));
    margin: 10vh auto 0;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(34,41,88,.12);
    box-shadow: 0 24px 70px rgba(0,0,0,.30);
    padding: 22px 22px 18px;
    color: #101828;
}

@media (max-width: 640px) {
    .partner-modal__panel {
        margin: 8vh auto 0;
        padding: 18px 16px 14px;
    }

}

.partner-modal__header {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 16px;
    align-items: center;
}

.partner-modal__logo {
    width: 74px;
    height: 74px;
    border-radius: 14px;
    border: 1px solid rgba(34,41,88,.12);
    background: #f7f8fb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.partner-modal__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partner-modal__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    font-size: .78rem;
    font-weight: 700;
    color: #222958;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(62,135,199,.12);
    border: 1px solid rgba(62,135,199,.25);
}

.partner-modal__body {
    margin-top: 14px;
    color: #344054;
    line-height: 1.6;
}

.partner-modal__footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 18px;
}

body.modal-open {
    overflow: hidden;
}

/* Section background to grey */
.partners-section {
    background: #f3f4f6;
    padding: 64px 0;
}

/* Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
}

@media (max-width: 1100px) {
    .partners-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 680px) {
    .partners-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

.partner-tile:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(62,135,199,.25), 0 14px 30px rgba(0,0,0,.10);
}


.partner-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

/* Subtle tag like modal */
.partner-tile__tag {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f2f4f9;
    color: #222958;
    font-weight: 600;
    white-space: nowrap;
}


/* -----------------------
Modal (white + pro)
----------------------- */
.partner-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 99999;
}

.partner-modal.is-open {
    display: block;
}

.partner-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15,18,40,.55);
    backdrop-filter: blur(6px);
}

.partner-modal__panel {
    position: relative;
    width: min(920px, calc(100% - 32px));
    margin: 10vh auto 0;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
    border: 1px solid rgba(34,41,88,.10);
    overflow: hidden;
}

.partner-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(34,41,88,.18);
    background: #fff;
    color: var(--pr-navy);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}

/* Layout requested:
| LOGO | Tag |
| LOGO | Title |
| LOGO | Text |
*/
.partner-modal__grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0;
    padding: 26px;
}

@media (max-width: 740px) {
    .partner-modal__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

}

.partner-modal__logoBox {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-right: 14px;
}

.partner-modal__logoBox img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(34,41,88,.10);
    padding: 14px;
}

.partner-modal__content {
    padding-left: 6px;
}

.partner-modal__tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--pr-navy);
    background: rgba(62,135,199,.10);
    border: 1px solid rgba(62,135,199,.22);
    border-radius: 999px;
    padding: 6px 10px;
    margin-bottom: 10px;
}

.partner-modal__name {
    margin: 0 0 10px 0;
    font-size: 1.6rem;
    color: var(--pr-navy);
}

.partner-modal__desc {
    margin: 0;
    color: #3b3f55;
    line-height: 1.6;
}

.partner-modal__actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    /* was larger */
    margin-bottom: 28px;
    /* reduce bottom spacing of section */
}

.partner-modal {
    position: fixed;
    inset: 0;
    z-index: 99990;
}

.partner-modal__backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.partner-modal__panel {
    position: relative;
    z-index: 2;
}
.partner-tile{
  position: relative;     /* IMPORTANT for the absolute tags */
  overflow: hidden;       /* keeps things tidy */
}
/* Tag wrapper */
.partner-tile__tags{
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-wrap: nowrap;      /* keep side-by-side */
  z-index: 2;
}

/* Each pill (force NOT absolute) */
.partner-tile__tag{
  position: static !important;   /* <-- the key fix */
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f2f4f8;
  color: var(--pr-navy);
  line-height: 1;
  white-space: nowrap;
}

.partner-tile{ position: relative; }
.partner-tile__tag{ display: inline-flex; }
.partner-modal__desc br{
  content: "";
  display: block;
  margin-bottom: 0.75rem;
}
.partner-modal__tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
/* Partners: reveal animation */
.partner-tile{
  will-change: transform, opacity;
}

.partner-tile.reveal-on-scroll{
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 520ms ease, transform 520ms ease;
}

.partner-tile.reveal-on-scroll.is-visible{
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .partner-tile.reveal-on-scroll{
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* ==========================
   Oppies modal (fixed + footer strip) — revised
   Fixes:
   - panel never overflows viewport
   - viewer uses available height and scales image to fit (no cropping)
   - footer strip + right button always visible
   ========================== */

.oppies-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px 14px;
  box-sizing: border-box;
}
.oppies-modal.is-open{ display: flex; }

.oppies-modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(10,12,30,.68);
  backdrop-filter: blur(4px);
}

/* Panel: ALWAYS fits inside viewport */
.oppies-modal__panel{
  position: relative;
  z-index: 1;

  width: min(1100px, calc(100vw - 28px));
  height: calc(100vh - 44px);      /* key: fixed to viewport */
  max-height: calc(100vh - 44px);

  display: grid;
  grid-template-rows: auto 1fr auto;

  background: rgba(255,255,255,.98);
  border: 1px solid rgba(34,41,88,.14);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(34,41,88,.28);
  overflow: hidden;
  box-sizing: border-box;
}

/* Header */
.oppies-modal__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(34,41,88,.10);
  background:
    radial-gradient(800px 240px at 12% 0%, rgba(62,135,199,.14), rgba(0,0,0,0) 60%),
    linear-gradient(180deg, rgba(34,41,88,.06), rgba(255,255,255,0));
}

.oppies-kicker{
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .78rem;
  opacity: .75;
  color: #222958;
}

.oppies-title{
  margin: 6px 0 6px;
  font-size: 1.35rem;
  color: #222958;
  font-weight: 900;
}

.oppies-subtitle{
  margin: 0;
  opacity: .82;
  color: rgba(34,41,88,.92);
  line-height: 1.5;
}

.oppies-close{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(34,41,88,.14);
  background: rgba(255,255,255,.92);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}
.oppies-close:hover{ background: rgba(62,135,199,.10); }

/* Body */
.oppies-modal__body{
  display:grid;
  grid-template-columns: 320px 1fr;
  min-height: 0;            /* IMPORTANT */
  overflow: hidden;         /* IMPORTANT: no sideways overflow */
}

.oppies-side{
  padding: 18px;
  border-right: 1px solid rgba(34,41,88,.10);
  background: rgba(34,41,88,.03);
  overflow: auto;
  min-height: 0;
}

.oppies-badge{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34,41,88,.14);
  background: rgba(255,255,255,.9);
  color: #222958;
  font-weight: 800;
  margin-bottom: 14px;
}

.oppies-copy p{
  margin: 0 0 16px;
  line-height: 1.65;
  color: rgba(34,41,88,.92);
}

.oppies-award-logo{
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(34,41,88,.12);
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 40px rgba(34,41,88,.10);
}
.oppies-award-logo img{
  width: 100%;
  height: auto;
  display:block;
}

.oppies-hint{
  margin-top: 12px;
  opacity: .72;
  font-size: .92rem;
}

/* Right column: make viewer consume available height */
.oppies-main{
  padding: 18px;
  min-width: 0;         /* IMPORTANT */
  min-height: 0;        /* IMPORTANT */
  overflow: hidden;     /* IMPORTANT: stop panel “pushing” wider/taller */
  display: flex;
  flex-direction: column;
}

/* Viewer fills remaining height in right column */
.oppies-viewer{
  margin-top: 0;
  border-radius: 20px;
  border: 1px solid rgba(34,41,88,.12);
  background: rgba(255,255,255,.95);
  box-shadow: 0 18px 55px rgba(34,41,88,.12);
  overflow: hidden;

  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;        /* IMPORTANT */
}

.oppies-viewer__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(34,41,88,.10);
  background: rgba(34,41,88,.03);
  flex: 0 0 auto;
}

.oppies-viewer__meta{
  display:flex;
  flex-direction:column;
  gap: 2px;
}

.oppies-viewer__count{
  font-weight: 900;
  color: #222958;
}
.oppies-viewer__caption{
  opacity: .75;
  color: rgba(34,41,88,.92);
  font-size: .92rem;
}

.oppies-viewer__controls{
  display:flex;
  gap: 10px;
}

.oppies-nav{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(34,41,88,.14);
  background: rgba(255,255,255,.92);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.oppies-nav:hover{ background: rgba(62,135,199,.10); }

/* Image area uses remaining height; image always fully visible */
.oppies-viewer__imgwrap{
  padding: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;         /* IMPORTANT */
}

.oppies-viewer__imgwrap img{
  max-width: 100%;
  max-height: 100%;      /* key: fit the available viewer height */
  width: auto;
  height: auto;
  object-fit: contain;
  display:block;
  border-radius: 16px;
  border: 1px solid rgba(34,41,88,.14);
  background: #f3f4f6;
}

/* Footer thumbnails: always visible, buttons never clip */
.oppies-footer{
  border-top: 1px solid rgba(34,41,88,.10);
  background: rgba(255,255,255,.98);
}

.oppies-footer__head{
  padding: 12px 14px 10px;
  font-weight: 900;
  color: #222958;
}

/* Footer thumbnails: buttons sit left + right of the strip */
.oppies-strip-bar{
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 12px;
  align-items: center;
  padding: 0 14px 14px;
  box-sizing: border-box;
}

.oppies-strip{
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 4px 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  min-width: 0;
}

.oppies-strip .oppies-thumb{
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  outline: none;
  position: relative;
}

.oppies-strip .oppies-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  border-radius: 14px;
  border: 1px solid rgba(34,41,88,.14);
  box-shadow: 0 10px 26px rgba(34,41,88,.10);
  background: #f3f4f6;
  transition: transform .16s ease, box-shadow .16s ease;
}

.oppies-strip .oppies-thumb:hover img{
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(34,41,88,.16);
}

.oppies-strip .oppies-thumb.is-active img{
  box-shadow: 0 0 0 4px rgba(62,135,199,.22), 0 16px 34px rgba(34,41,88,.16);
}

.oppies-strip-nav{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(34,41,88,.14);
  background: rgba(255,255,255,.96);
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 10px 26px rgba(34,41,88,.10);
}

.oppies-strip-nav:hover{ background: rgba(62,135,199,.10); }

.oppies-strip-nav--left{ left: 12px; }
.oppies-strip-nav--right{ right: 12px; }

.oppies-strip::-webkit-scrollbar{ height: 10px; }
.oppies-strip::-webkit-scrollbar-thumb{
  background: rgba(34,41,88,.18);
  border-radius: 999px;
}

/* Mobile layout */
@media (max-width: 900px){
  .oppies-modal{ padding: 14px 10px; }

  .oppies-modal__panel{
    height: calc(100vh - 28px);
    max-height: calc(100vh - 28px);
  }

  .oppies-modal__body{ grid-template-columns: 1fr; }

  .oppies-side{
    border-right: 0;
    border-bottom: 1px solid rgba(34,41,88,.10);
  }
}
.oppies-viewer,
.oppies-viewer__imgwrap,
.oppies-main,
.oppies-modal__body{
  min-height: 0;
}

.oppies-viewer__imgwrap img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.award-badge--link{
  text-decoration: none;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.award-badge--link:hover,
.award-badge--link:focus,
.award-badge--link:active{
  color: #ffffff;
}

.award-badge--link:hover span{
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

/* Carousel layout */
.testimonials-carousel {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 14px;
  align-items: center;
}

.tc-viewport {
  overflow: hidden;
}

.tc-track {
  display: flex;
  gap: 18px;
  transition: transform 0.45s ease;
  will-change: transform;
}

/* 1 per view on mobile */
.tc-track .testimonial-card {
  min-width: 100%;
}

/* 2 per view on desktop */
@media (min-width: 900px) {
  .tc-track .testimonial-card {
    min-width: calc(50% - 9px);
  }
}

.tc-nav {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.15);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.tc-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tc-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.tc-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  cursor: pointer;
}

.tc-dot.is-active {
  background: rgba(255,255,255,0.7);
}
/* =========================
   Testimonials + Carousel
   (tidied + de-duped + uniform cards + aligned logos + NO shadow)
   ========================= */

/* Brand tokens (local) */
:root{
  --pr-navy:#222958;
  --pr-blue:#3e87c7;
}

/* Base testimonials section */
.testimonials{
  padding: 100px 0;
  background: var(--bg-white);
}

/* Optional non-carousel grid (if used elsewhere) */
.testimonials-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  align-items: stretch;
}

/* Source cards (hidden; used by JS) */
.testimonial-source{ display:none !important; }

/* Original “static” cards styling (if used outside carousel) */
.testimonial-card{
  background: var(--bg-white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.quote-mark{
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}

.testimonial-text{
  font-style: italic;
  margin: 30px 0 20px;
  color: var(--text-dark);
}

.testimonial-author{
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.testimonial-author strong{
  color: var(--primary-color);
  display:block;
}
.testimonial-author span{
  color: var(--text-light);
  font-size: 0.9rem;
}
.testimonial-role{
  display:block;
  font-weight: 600;
  color: var(--text-light);
  margin-top: 2px;
}

/* =========================
   Carousel (tcar)
   ========================= */

.tcar{
  position: relative;
  margin-top: 26px;
}

.tcar__viewport{
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Track */
.tcar__track{
  display: flex;
  gap: 18px;
  will-change: transform;
  transition: transform .28s ease;
  background: transparent;
  padding: 0;
}

/* Items */
.tcar__item{
  flex: 0 0 calc((100% - 54px) / 4);
  min-width: 0;
  padding: 0;
}

/* 2-up tablet */
@media (max-width: 980px){
  .tcar__item{ flex-basis: calc((100% - 18px) / 2); }
}
/* 1-up mobile */
@media (max-width: 640px){
  .tcar__item{ flex-basis: 100%; }
}

/* Nav */
.tcar__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(34,41,88,0.14);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 12px 30px rgba(34,41,88,0.14);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor: pointer;
  z-index: 3;
}
.tcar__nav:disabled{
  opacity: .35;
  cursor: default;
}
.tcar__nav--left{ left: -6px; }
.tcar__nav--right{ right: -6px; }
@media (max-width: 640px){
  .tcar__nav--left{ left: -2px; }
  .tcar__nav--right{ right: -2px; }
}

/* Card */
.tcar__card{
  height: 100%;
  border-radius: 18px;
  border: 1px solid rgba(34,41,88,0.12);
  background: #fff;
  display:flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;

  /* ✅ NO shadow at all (normal + hover) */
  box-shadow: none;
  transition: transform .16s ease;
  min-height: 380px;
}
@media (max-width: 640px){
  .tcar__card{ min-height: 360px; }
}
.tcar__card:hover{
  transform: translateY(-2px); /* keep a subtle lift without shadow */
  box-shadow: none;
}

/* Snippet area (keep your in-card gradient) */
.tcar__snippet{
  position: relative;
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(34,41,88,0.08);
  background:
    radial-gradient(600px 240px at 20% 0%,
      rgba(62,135,199,0.14),
      rgba(0,0,0,0) 60%),
    linear-gradient(180deg,
      rgba(34,41,88,0.04),
      rgba(34,41,88,0.015));
  flex: 1;
}

.tcar__quote{
  position: absolute;
  top: 10px;
  left: 14px;
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
  color: rgba(34,41,88,0.12);
  pointer-events:none;
}

.tcar__text{
  margin: 0;
  color: rgba(34,41,88,0.82);
  line-height: 1.65;
  font-size: 0.98rem;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tcar__snippet::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height: 46px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    rgba(255,255,255,0.92) 70%,
    rgba(255,255,255,1)
  );
  pointer-events:none;
}

/* Body */
.tcar__body{
  padding: 14px 18px 0;
  flex: 0 0 auto; /* ✅ ensures footer can sit at bottom */
}

/* Name + role full width */
.tcar__who strong{
  display:block;
  color: var(--pr-navy);
  font-weight: 850;
  line-height: 1.15;
}
.tcar__who .testimonial-role{
  display:block;
  margin-top: 4px;
  line-height: 1.2;
}

/* Footer: logo left, read full right (no wrap) */
.tcar__footer{
  margin-top: auto;              /* ✅ pins footer to card bottom */
  padding: 12px 18px 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;         /* ✅ sits on the same bottom line */
}

/* Bottom-left logo slot: hug the left, don't reserve extra width */
.tcar__brandBottom{
  flex: 0 1 auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  margin-right: auto;            /* pushes Read full to the far right */
}

/* Logo sizing + alignment */
.tcar__company{
  max-width: 140px;
  height: 40px;
  display: flex;
  align-items: flex-end;         /* aligns with footer baseline */
  justify-content: flex-start;
  margin: 0;
}
.tcar__logo{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: 0.92;
  transform: translateY(0);      /* ✅ no upward nudge; keeps baseline alignment */
}

/* Read full link — NEVER wrap and sits bottom-right */
.tcar__more{
  flex: 0 0 auto;
  white-space: nowrap;
  background: none;
  border: none;
  padding: 0;
  color: var(--pr-blue);
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.tcar__more:hover{ text-decoration: underline; }
.tcar__more i{ font-size: .9em; }

/* Dots */
.tcar__dots{
  display:flex;
  justify-content:center;
  gap: 8px;
  margin-top: 16px;
}
.tcar__dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(34,41,88,0.25);
  background: rgba(34,41,88,0.12);
  cursor:pointer;
}
.tcar__dot.is-active{
  background: var(--pr-blue);
  border-color: rgba(62,135,199,0.9);
}

/* Extra safety: if some theme paints the “tray” via pseudo-elements */
.testimonials .tcar::before,
.testimonials .tcar::after,
.testimonials .tcar__viewport::before,
.testimonials .tcar__viewport::after,
.testimonials .tcar__track::before,
.testimonials .tcar__track::after{
  content: none !important;
  display: none !important;
}

/* =========================
   Modal (tmodal)
   ========================= */

.tmodal{
  position: fixed;
  inset: 0;
  display:none;
  z-index: 9999;
}
.tmodal.is-open{ display:block; }

.tmodal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(10,12,25,0.62);
}

.tmodal__panel{
  position: relative;
  width: min(840px, calc(100% - 28px));
  margin: 7vh auto;
  border-radius: 22px;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(34,41,88,0.14);
  box-shadow: 0 30px 90px rgba(0,0,0,0.30);
  overflow:hidden;
}

.tmodal__header{
  padding: 18px 20px;
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(34,41,88,0.10);
  background:
    radial-gradient(900px 280px at 20% 0%,
      rgba(62,135,199,0.14),
      rgba(0,0,0,0) 60%),
    linear-gradient(180deg,
      rgba(34,41,88,0.04),
      rgba(34,41,88,0.015));
}

.tmodal__kicker{
  font-weight: 800;
  letter-spacing: .06em;
  font-size: .78rem;
  text-transform: uppercase;
  opacity: .72;
}

.tmodal__title{
  font-weight: 900;
  color: var(--pr-navy);
  font-size: 1.15rem;
}

.tmodal__close{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(34,41,88,0.14);
  background: rgba(255,255,255,0.9);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

.tmodal__content{
  padding: 22px 22px 20px;
}

.tmodal__content .quote-mark{
  font-size: 56px;
  line-height: 1;
  font-weight: 900;
  color: rgba(34,41,88,0.14);
  margin-bottom: 10px;
}

.tmodal__text{
  margin: 0;
  color: rgba(34,41,88,0.86);
  line-height: 1.7;
  font-size: 1.02rem;
}

.tmodal__author{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(34,41,88,0.10);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.tmodal__author strong{
  display:block;
  font-weight: 900;
  color: var(--pr-navy);
}

/* Modal logo */
.tmodal__companyLogo{
  height: 44px;
  display:flex;
  align-items:center;
}
.tmodal__logo{
  max-height: 44px;
  max-width: 260px;
  width:auto;
  height:auto;
  object-fit: contain;
  opacity: .98;
}

/* Mobile tuning */
@media (max-width: 640px){
  .tcar__company{ height: 36px; }
}
.tmodal__text p{
  margin: 0 0 1em;
}

.tmodal__text p:last-child{
  margin-bottom: 0;
}
/* Video section */
.content-section--video{
  padding-top: 60px;
  padding-bottom: 80px;
  background: #fff; /* 👈 add this */
}


.video-lazy{
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  outline: none;
}

.video-lazy:focus-visible{
  box-shadow: 0 0 0 4px rgba(62,135,199,0.25);
}

.video-lazy__poster{
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(1.02);
}

/* subtle overlay for readability + “premium” feel */
.video-lazy__poster::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(80% 80% at 50% 50%, rgba(0,0,0,0.10), rgba(0,0,0,0.45));
}

/* Play button */
.video-lazy__play{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.video-lazy__playIcon{
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 18px 45px rgba(0,0,0,0.25);
  position: relative;
}

.video-lazy__playIcon::before{
  content:"";
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 18px solid rgba(34,41,88,0.95);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

/* Loaded iframe */
.video-lazy iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.stagger-item{
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease;
}

.stagger-item.is-in{
  opacity: 1;
  transform: translateY(0);
}
/* Video section overrides base content-section */
.content-section.content-section--video{
  background: #fff;
}
/* Best Practice Modal */
.bp-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.bp-modal.is-open{ display: block; }

.bp-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(10,12,25,0.62);
}

.bp-modal__panel{
  position: relative;
  width: min(880px, calc(100% - 28px));
  margin: 6vh auto;
  border-radius: 18px;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(34,41,88,0.14);
  overflow: hidden;
}

.bp-modal__header{
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(34,41,88,0.10);
  background: #fff;
}

.bp-modal__kicker{
  font-weight: 800;
  letter-spacing: .06em;
  font-size: .78rem;
  text-transform: uppercase;
  opacity: .72;
}

.bp-modal__title{
  font-weight: 900;
  color: #222958;
  font-size: 1.15rem;
  margin-top: 2px;
}

.bp-modal__meta{
  margin-top: 4px;
  font-size: .9rem;
  color: rgba(34,41,88,0.68);
}

.bp-modal__close{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(34,41,88,0.14);
  background: rgba(255,255,255,0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-modal__content{
  padding: 20px 22px 22px;
  max-height: 70vh;
  overflow: auto;
  color: rgba(34,41,88,0.86);
  line-height: 1.7;
}

.bp-modal__list{
  margin: 14px 0 0;
  padding-left: 18px;
}
.bp-modal__list li{
  margin: 12px 0;
}
.bp-modal__list p{
  margin: 6px 0 0;
  color: rgba(34,41,88,0.78);
}

.bp-modal__note{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(34,41,88,0.10);
  color: rgba(34,41,88,0.80);
}
#contactFormStatus { scroll-margin-top: 200px; }
/* ================================
   Case study testimonial carousel
   3-up desktop variant (scoped)
   Gap-aware + no clipped borders + optional peek
   ================================ */

.testimonials--three{
  --tcar-gap: 24px;   /* match your existing carousel gap if different */
  --tcar-safe: 2px;   /* prevents 1px border clipping on the right */
  --tcar-peek: 56px;  /* set to 0px if you DON'T want the peek */
}

/* Hide arrows when only one page */
.testimonials--three .tcar.tcar--single .tcar__nav{
  display: none;
}

/* Viewport: keep carousel clipping, but add a tiny safe inset */
.testimonials--three .tcar__viewport{
  overflow: hidden;
  padding-left:  var(--tcar-safe);
  padding-right: calc(var(--tcar-safe) + var(--tcar-peek));
  box-sizing: border-box;
}

/* Track: use variant gap + safe padding to avoid rounding issues */
.testimonials--three .tcar__track{
  gap: var(--tcar-gap);
  padding-right: var(--tcar-safe);
  box-sizing: border-box;
}

/* Desktop: 3 across, subtract gaps + safe padding + optional peek */
.testimonials--three .tcar__item{
  flex: 0 0 calc(
    (100% - (var(--tcar-gap) * 2) - (var(--tcar-safe) * 2) - var(--tcar-peek))
    / 3
  );
  box-sizing: border-box;
}

/* Tablet: 2 across */
@media (max-width: 980px){
  .testimonials--three{
    --tcar-peek: 0px; /* no peek on smaller screens */
  }

  .testimonials--three .tcar__viewport{
    padding-right: var(--tcar-safe);
  }

  .testimonials--three .tcar__item{
    flex-basis: calc(
      (100% - var(--tcar-gap) - (var(--tcar-safe) * 2))
      / 2
    );
  }
}

/* Mobile: 1 across */
@media (max-width: 640px){
  .testimonials--three .tcar__item{
    flex-basis: calc(100% - (var(--tcar-safe) * 2));
  }
}

/* More visible text before “Read full” */
.testimonials--three .tcar__text{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6; /* increase/decrease */
  overflow: hidden;
}
/* ================================
   Centre the 3-up carousel visually
   ================================ */

/* Let the carousel size itself to its content */
.testimonials--three .tcar{
  display: flex;
  justify-content: center;
}

/* Prevent the viewport from stretching full width */
.testimonials--three .tcar__viewport{
  width: auto;
  max-width: 100%;
}

/* Centre the track inside the viewport */
.testimonials--three .tcar__track{
  justify-content: center;
}
/* ================================
   Testimonials – 2-up variant
   ================================ */

.testimonials--two{
  --tcar-gap: 24px;
  --tcar-safe: 2px;
}

.testimonials--two .tcar{
  display: flex;
  justify-content: center;
}

.testimonials--two .tcar__viewport{
  overflow: hidden;
  padding: 0 var(--tcar-safe);
  box-sizing: border-box;
}

.testimonials--two .tcar__track{
  display: flex;
  gap: var(--tcar-gap);
  justify-content: center;
}

/* Desktop: 2 across */
.testimonials--two .tcar__item{
  flex: 0 0 calc(
    (100% - var(--tcar-gap) - (var(--tcar-safe) * 2)) / 2
  );
  box-sizing: border-box;
}

/* Tablet + mobile: 1 across */
@media (max-width: 980px){
  .testimonials--two .tcar__item{
    flex-basis: calc(100% - (var(--tcar-safe) * 2));
  }
}

/* Hide arrows/dots if only one page */
.testimonials--two .tcar.tcar--single .tcar__nav{
  display: none;
}
  /* Makes each card a vertical layout and pushes the CTA to the bottom */
  .uniform-cards .feature-item {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  /* Ensures the CTA always sits at the bottom and aligns across cards */
  .uniform-cards .case-study-cta {
    margin-top: auto;
    display: inline-block;
  }

  /* Optional: if your grid uses uneven rows, this helps keep heights consistent */
  .uniform-cards .feature-list,
  .uniform-cards {
    align-items: stretch;
  }
  /* Ensure all feature cards are equal height */
.feature-list {
  align-items: stretch;
}

/* Make each card a vertical flex container */
.feature-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Push the CTA link to the bottom */
.feature-item .case-study-cta {
  margin-top: auto;
}
.feature-item .case-study-cta {
  margin-top: auto;
  padding-top: 1rem;
}
/* Media container */
/* =========================================================
   Uniform Case Study Cards (image background + bottom full-width panel)
   ========================================================= */

/* Card */
.case-study-cards .feature-item{
  position: relative;
  display: flex;
  align-items: flex-end;          /* panel sits at bottom */
  min-height: 260px;              /* uniform height */
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(34,41,88,0.10);
  transform: translateZ(0);       /* avoids blurry overlays in some browsers */
}

/* Background image is applied via ::before (from cs-bg-* classes below) */
.cs-card-bg::before{
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
  z-index: 0;
}

/* Subtle dark overlay for consistency across photos */
.cs-card-bg::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.06) 0%,
    rgba(0,0,0,0.10) 55%,
    rgba(0,0,0,0.18) 100%
  );
  z-index: 1;
}

/* Content panel (bottom, full-width, slightly transparent) */
.case-study-cards .feature-item .card-content{
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;                      /* full width */
  padding: 22px 24px 18px;
  border-radius: 0;               /* flush to edges; card handles rounding */
  background: rgba(255,255,255,0.50); /* more transparent */
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-top: 1px solid rgba(34,41,88,0.10);

  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;              /* keeps alignment consistent */
}

/* Headings align (reserve space for 2 lines) */
.case-study-cards .feature-item h4{
  margin: 0;
  line-height: 1.2;
  color: #222958;
  min-height: calc(1.2em * 2);
}

/* Body text clamp so cards stay even */
.case-study-cards .feature-item p{
  margin: 0;
  color: rgba(34,41,88,0.80);
  line-height: 1.55;

  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* CTA pinned to bottom */
.case-study-cards .case-study-cta{
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #1f6fdc;
}

/* Hover polish */
.case-study-cards .feature-item:hover{
  box-shadow: 0 14px 34px rgba(34,41,88,0.14);
  transform: translateY(-2px);
}
.case-study-cards .feature-item:hover::before{
  transform: scale(1.06);
}

/* Per-card images */
.cs-bg-trade::before{
  background-image: url("../images/specialism1.jpg");
}
.cs-bg-housing::before{
  background-image: url("../images/specialism3.jpg");
}
.cs-bg-waste::before{
  background-image: url("../images/specialism2.jpg");
}

/* Responsive */
@media (max-width: 900px){
  .case-study-cards .feature-item{
    min-height: 240px;
  }
  .case-study-cards .feature-item .card-content{
    padding: 18px 18px 16px;
    min-height: 170px;
  }
  .case-study-cards .feature-item p{
    -webkit-line-clamp: 5;
  }
}
#contactFormSection { scroll-margin-top: 140px; }
@media (max-width: 768px){
  #contactFormSection { scroll-margin-top: 80px; }
}
/* Prevision By the Numbers - horizontal stats row */
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}

.numbers-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 26px 22px 24px;
    background-color: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

/* Icon container controls size */
.numbers-icon {
    width: 96px;
    height: 96px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon scales to container */
.numbers-icon img,
.numbers-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.numbers-text {
    flex: 1;
}

.numbers-value {
    font-size: 2.6rem;
    line-height: 1.1;
    margin: 0 0 4px;
    color: #222958;
}

.numbers-label {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
}

/* Tablet */
@media (max-width: 991px) {
    .numbers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .numbers-icon {
        width: 84px;
        height: 84px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .numbers-grid {
        grid-template-columns: 1fr;
    }

    .numbers-icon {
        width: 72px;
        height: 72px;
    }
}

/* Desktop enhancement */
@media (min-width: 992px) {
    .numbers-icon {
        width: 128px;
        height: 128px;
    }
}
/* === CATI page image helpers (add to styles.css) === */
.content-figure {
  margin: 28px 0;
}

.content-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.content-figure--wide img{
  width: 100%;
  height: 420px;        /* try 380–450px */
  object-fit: cover;
  border-radius: 16px;
}
.content-figure--wide img{
  filter: brightness(0.92) saturate(0.95);
}



/* Optional: float concept illustration on desktop, stack on mobile */
@media (min-width: 900px) {
  .content-figure--right {
    float: right;
    width: min(420px, 42%);
    margin: 8px 0 18px 28px;
  }
}

/* Make sure floats don’t leak into next section */
.content-section::after {
  content: "";
  display: table;
  clear: both;
}

.process-strip {
  margin: 18px auto 26px;
  max-width: 980px;
  text-align: center; /* optional, for safety */
}

.process-strip img {
  width: 75%;
  height: auto;
  display: block;
  margin: 0 auto; /* THIS centers the image */
}


.cta-section--pattern {
  background-image:
    url("../images/backgrounds/cta-abstract.jpg"),
    linear-gradient(135deg, #222958 0%, #3e87c7 100%);
  background-size: cover;
  background-position: center;
  background-blend-mode: soft-light;
}
.facility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 1100px) {
  .facility-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .facility-grid {
    grid-template-columns: 1fr;
  }
}
.facility-grid .feature-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.facility-grid .feature-item {
  text-align: center;
}
.facility-grid .feature-icon img {
  width: 48px;
  height: auto;
}
.facility-grid h4 {
  margin: 0;
}
.choice-list{
  list-style: none;
  padding-left: 0;
  margin: 18px auto 0;
  max-width: 800px;
}

.choice-list li{
  position: relative;
  padding-left: 30px;
  margin: 10px 0;
}

.choice-list li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #3e87c7;
  font-weight: 700;
}
@media (min-width: 900px) {
  .content-figure--right {
    float: right;
    width: min(420px, 42%);
    margin: 8px 0 18px 28px;
  }
}
.content-section::after { content:""; display: table; clear: both; }
/* ================================
   Case study media wrappers
   ================================ */


/* ================================
   Default media wrapper (used across the case study)
   ================================ */

.cs-media{
  border-radius: 14px;
  overflow: hidden;                 /* clips image to rounded corners */
  background: #f3f5f8;              /* subtle placeholder */
  max-width: 880px;                 /* calmer editorial width */
  margin: 18px auto 0;
  box-shadow: none;
  border: 1px solid rgba(34,41,88,0.08);
  padding: 0;

  /* Default crop for inline media images */
  max-height: 460px;
}

.cs-media img{
  display: block;
  width: 100%;
  height: 100%;                     /* enables cropping inside max-height wrapper */
  object-fit: cover;
  object-position: top;             /* keep top of image */
  filter: saturate(0.95) contrast(0.98);
}

/* Optional inset variant (only if you use .cs-media-inner elsewhere) */
.cs-media-inner{
  padding: 12px;
}
.cs-media-inner img{
  border-radius: 12px;
}

/* Compact media (charts/graphics) – never crop */
.cs-media-compact,
.cs-media--chart{
  max-width: 820px;
  margin: 16px auto 0;
  max-height: none;
}

.cs-media-compact img,
.cs-media--chart img{
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: none;
}

/* ================================
   Intro grid: 2 columns, 2 rows
   Left image spans both rows and should match height of both right cards
   (Requires 3 direct children: media, facts, brief)
   ================================ */

/* Intro grid: pack rows at the top (no stretching gaps) */
.cs-grid--intro{
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: max-content max-content; /* rows hug their content */
  column-gap: 24px;
  row-gap: 24px;                               /* adjust to taste (16–24) */

  align-items: start;                          /* items don't stretch */
  align-content: start;                        /* KEY: rows don't stretch */
}



/* Place right cards explicitly so their heights define the rows */
.cs-card--facts{
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

.cs-card--brief{
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}

/* Make the image wrapper fill the left grid cell height and crop */
.cs-card--media{
  grid-column: 1;
  grid-row: 1 / span 2;
  padding: 0;
  align-self: stretch;
  min-height: 0;
}

.cs-media--intro{
  height: 100%;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
}

.cs-media--intro img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* ================================
   Responsive
   ================================ */

@media (max-width: 980px){
  .cs-grid--intro{
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .cs-card--media,
  .cs-card--facts,
  .cs-card--brief{
    grid-column: auto;
    grid-row: auto;
  }

  /* When stacked, enforce a sensible crop height */
  .cs-media--intro{
    height: 100%;
  }

  .cs-media--intro img{
    height: 100%;
  }
}
/* Make the left image container a real fill-height box */
.cs-card--media{
  display: flex;          /* gives children a reliable height context */
}

.cs-card--media .cs-media--intro{
  flex: 1;
  height: 100%;           /* let flex sizing define height */
}

/* Force image to fill the box */
.cs-card--media .cs-media--intro img{
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: top;
  display: block;
}
.cs-card--media{ padding: 0 !important; }
.cs-media--intro{ line-height: 0; } /* kills baseline whitespace edge cases */
/* Intro variant must not inherit the generic max-height/max-width */
.cs-media.cs-media--intro{
  max-width: none;
  margin: 0;
  height: 100%;
}
.cs-media-trade{
  max-height: 630px;
}
.cs-media-house{
  max-height: 810px;
}
.cs-media-waste{
  max-height: 1020px;
}

/* What we did: text left, image right */
.cs-whatwedid{
  display: grid;
  grid-template-columns: 1fr 1.1fr; /* tweak ratios to taste */
  gap: 24px;
  align-items: stretch;
}

/* Left column stacks naturally */
.cs-whatwedid__left{
  min-width: 0;
}

/* Right image must be allowed to grow (override global .cs-media caps) */
.cs-media.cs-whatwedid__media{
  margin: 0;
  max-width: none;
  max-height: none;     /* important: removes the 460px ceiling */
  height: 100%;
  align-self: stretch;
}

/* Fill and crop */
.cs-media.cs-whatwedid__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive: stack on small screens */
@media (max-width: 980px){
  .cs-whatwedid{
    grid-template-columns: 1fr;
  }
  .cs-media.cs-whatwedid__media{
    height: 420px; /* sensible crop when stacked */
  }
}
.cs-media.cs-whatwedid__media img{ object-position: left center; }
/* ================================
   Quality / Evidence section
================================ */

/* Grid: chart left, bullets right */
.cs-quality__grid{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  margin-top: 16px;
  align-items: start;
}

/* -------------------------------
   Chart / figure styling
-------------------------------- */
.cs-media.cs-quality__chart{
  position: relative;
  margin: 0;
  max-width: none;
  max-height: none;
  background: rgba(243,245,248,0.8);
  border: 1px solid rgba(34,41,88,0.10);
  border-radius: 14px;
  padding: 12px;
}

/* Evidence label */
.cs-media.cs-quality__chart::before{
  content: "Evidence snapshot";
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(34,41,88,0.65);
  margin: 0 0 10px;
}

/* Chart image */
.cs-media.cs-quality__chart img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Caption */
.cs-media.cs-quality__chart figcaption{
  font-size: 0.9rem;
  line-height: 1.35;
  color: rgba(34,41,88,0.75);
  margin-top: 10px;
}

/* Remove inherited chart spacing */
.cs-quality .cs-media--chart{
  margin-top: 0;
}

/* -------------------------------
   Bullets / findings (STACKED)
-------------------------------- */

/* Force vertical stacking using flex (stable + predictable) */
.cs-quality__bullets{
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 4px; /* optical alignment with chart frame */
}

/* Individual bullet */
.cs-quality__bullets .cs-bullet{
  padding: 14px 14px 14px 16px;
  border-left: 3px solid rgba(34,41,88,0.12);
  background: rgba(243,245,248,0.55);
  border-radius: 12px;
}

/* Bullet heading */
.cs-quality__bullets .cs-bullet h3{
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
}

/* Bullet text */
.cs-quality__bullets .cs-bullet p{
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(34,41,88,0.85);
}

/* -------------------------------
   Responsive
-------------------------------- */
@media (max-width: 980px){
  .cs-quality__grid{
    grid-template-columns: 1fr;
  }
}
.cs-testimonials {
  background: #f8fafc;        /* soft panel background */
  border: 1px solid #e2e8f0;  /* subtle edge, not a shout */
  border-radius: 12px;
}
.cs-enabled__grid{
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: start;
  margin-top: 10px;
}

.cs-media.cs-enabled__media{
  margin: 0;
  max-width: none;
  max-height: none;   /* don’t crop diagrams / overviews */
}

.cs-media.cs-enabled__media img{
  height: auto;
  object-fit: contain;  /* feels “intentional diagram”, not “random photo crop” */
  filter: none;
}

@media (max-width: 980px){
  .cs-enabled__grid{ grid-template-columns: 1fr; }
}
.cs-enabled__grid{
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: start;
  margin-top: 10px;
}

.cs-media.cs-enabled__media{
  margin: 0;
  max-width: none;
  max-height: none;
}

.cs-media.cs-enabled__media img{
  height: auto;
  object-fit: contain; /* makes overview graphics feel intentional */
}

@media (max-width: 980px){
  .cs-enabled__grid{ grid-template-columns: 1fr; }
}
/* Show more of the RIGHT side of the image */
/* Right image must be allowed to grow (override global .cs-media caps) */
.cs-media.cs-whatwedid__media-waste{
  margin: 0;
  max-width: none;
  max-height: none;     /* important: removes the 460px ceiling */
  height: 100%;
  align-self: stretch;
}

/* Fill and crop */
.cs-media.cs-whatwedid__media-waste img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-media.cs-whatwedid__media-waste img{ object-position: right center; }
/* =========================
   Partners / Logos Section
   Cleaned + deduped
   Square cards: 100x100
   ========================= */

/* 3 Column Structure */
.partners-columns{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* Column Title */
.partners-column__title{
  font-size: 1.15rem;
  font-weight: 600;
  color: #000;
  margin: 0 0 16px;
  position: relative;
  padding: 6px 0;
}

.partners-column__title::after{
  content:"";
  display:block;
  margin-top:8px;
  height:1px;
  background:#e5e5e5;
}

/* Grid inside each column */
.partners-column__grid{
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 100px); /* fixed card size */
  justify-content: start;                 /* keeps columns tidy */
}

/* Square Cards (fixed 100x100) */
.partner-tile{
  width: 100px;
  height: 100px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.partner-tile:hover{
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

/* Focus state for accessibility */
.partner-tile:focus-visible{
  outline: 3px solid #1a5490;
  outline-offset: 2px;
}

/* Logo wrapper */
.partner-tile__logo{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Normal logos: contained with a little breathing room */
.partner-tile__logo img{
  width: 80%;
  height: 80%;
  object-fit: contain;
  display: block;
}

/* Full-bleed logos: touch all edges */
.partner-tile--fullbleed .partner-tile__logo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive: stack the 3 columns */
@media (max-width: 1024px){
  .partners-columns{
    grid-template-columns: 1fr;
    gap: 50px;
  }

  /* keep fixed cards, but allow wrapping nicely */
  .partners-column__grid{
    grid-template-columns: repeat(auto-fit, 100px);
  }
}
/* Bands container: columns sized by content */
.partners-bands{
  display: grid;
  grid-template-columns: repeat(3, max-content);
  column-gap: 40px;
  align-items: start;
  justify-content: center; /* center the whole block */
}

/* Each band (group) */
.partners-band{
  position: relative;
  padding-right: 40px; /* breathing room before divider */
}

/* Subtle vertical dividers between groups */
.partners-band:not(:last-child)::after{
  content:"";
  position: absolute;
  top: 34px;           /* starts around title baseline */
  right: 0;
  width: 1px;
  height: calc(100% - 34px);
  background: rgba(0,0,0,0.08);
}

/* Title (black) */
.partners-band__title{
  font-size: 1.05rem;
  font-weight: 600;
  color: #000;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.10); /* subtle underline */
}

/* Cards row: force single row on desktop */
.partners-band__row{
  display: flex;
  gap: 14px;
  flex-wrap: nowrap;     /* key: stay one row */
}

/* Fixed 100x100 cards */
.partner-tile{
  width: 100px;
  height: 100px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.partner-tile:hover{
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

.partner-tile:focus-visible{
  outline: 3px solid #1a5490;
  outline-offset: 2px;
}

.partner-tile__logo{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-tile__logo img{
  width: 80%;
  height: 80%;
  object-fit: contain;
  display: block;
}

.partner-tile--fullbleed .partner-tile__logo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive: stack bands, allow wrapping, remove vertical dividers */
@media (max-width: 1100px){
  .partners-bands{
    grid-template-columns: 1fr;
    row-gap: 36px;
    justify-content: stretch;
  }

  .partners-band{
    padding-right: 0;
  }

  .partners-band::after{
    display: none;
  }

  .partners-band__row{
    flex-wrap: wrap; /* let cards wrap on small screens */
  }
}
.why-photo-card{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  background: #fff;
}

/* Add padding only around the image */
.why-photo-card img{
  display: block;
  width: calc(100% - 20px);
  margin: 10px auto 0;   /* top spacing + horizontal centering */
  border-radius: 10px;
}



/* Subtle hover */
.why-photo-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
/* Why Prevision: polaroid + caption bar (scoped, no clashes) */
.why-prevision .why-photo-card{
  background:#fff;
  border-radius:12px;
  box-shadow: 0 18px 40px rgba(34,41,88,0.24);
  overflow:hidden;

  /* kill the old inset padding that makes alignment feel off */
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Image: inset like a polaroid photo */
.why-prevision .why-photo-card > img{
  display:block;
  width: calc(100% - 20px);
  margin: 10px auto 0;
  border-radius: 8px;
}

/* Caption bar: true centering */
.why-prevision .why-photo-caption{
  width: 100%;
  height: 40px;
  display:flex;
  align-items:center;
  justify-content:center;

  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  line-height: 1;

  /* remove any inherited spacing */
  margin: 0;
  padding: 0;
  text-align: center;
}
#team, #quality, #security {
    scroll-margin-top: 100px; /* adjust to match header height */
}
#ai {
    scroll-margin-top: 120px; /* adjust to match header height */
}
/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    padding: 120px 0 40px; /* bottom padding controls distance from bottom */
    overflow: hidden;

    display: flex;
    align-items: flex-end;   /* pushes content to bottom */
    justify-content: flex-start; /* keeps content left */

    color: #fff;
}

/* Background video */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Gradient / dark overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Container above video */
.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Hero content */
.hero-content {
    max-width: 1000px;
    text-align: left;
    margin: 0; /* removes centering */
}
/* Stage becomes a responsive grid */
.team-rain-stage{
  --bubble: 120px;
  --gap: 26px;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--bubble), 1fr));
  gap: var(--gap);

  justify-items: center;
  align-items: start;

  margin: 0 auto;
  max-width: calc((var(--bubble) * 6) + (var(--gap) * 5)); /* nice desktop cap */
}

/* Bubble is no longer absolute */
.team-bubble{
  width: var(--bubble);
  height: var(--bubble);
  border-radius: 50%;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;

  opacity: 0;
  transform: translate3d(0, var(--startY, -70vh), 0) scale(0.98);
  will-change: transform, opacity;

  transform-origin: center center;
  transition:
    transform 220ms cubic-bezier(.2,.9,.2,1),
    box-shadow 220ms ease,
    filter 220ms ease;
  z-index: 1;
}

.team-bubble img{
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease;
  will-change: transform;
}

/* Animate in */
.team-bubble.is-ready{
  animation: teamDropBounce var(--dur, 2.8s) cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes teamDropBounce{
  0%   { opacity: 0; transform: translate3d(0, var(--startY, -70vh), 0) scale(0.98); }
  15%  { opacity: 1; }
  70%  { transform: translate3d(0, 0, 0) scale(1); }
  82%  { transform: translate3d(0, -18px, 0) scale(1); }
  92%  { transform: translate3d(0, 0, 0) scale(1); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

/* Responsive sizing */
@media (max-width: 900px){
  .team-rain-stage{ --bubble: 96px; --gap: 18px; }
}
@media (max-width: 520px){
  .team-rain-stage{ --bubble: 78px; --gap: 14px; }
}

/* Hover/focus (desktop only) */
@media (hover:hover) and (pointer:fine){
  .team-bubble:hover{
    transform: translate3d(0, -4px, 0) scale(1.18);
    z-index: 50;
    box-shadow: 0 18px 44px rgba(0,0,0,0.28);
    filter: saturate(1.08);
  }
  .team-bubble:hover img{ transform: scale(1.05); }
}
.team-bubble:focus-visible{
  transform: translate3d(0, -4px, 0) scale(1.18);
  z-index: 50;
  box-shadow: 0 0 0 3px rgba(62,135,199,0.45), 0 18px 44px rgba(0,0,0,0.28);
  outline: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .team-bubble, .team-bubble img{
    transition: none !important;
    animation: none !important;
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}
/* =========================================================
   TEAM MODAL
   ========================================================= */
.team-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.team-modal.active {
  display: flex;
}

.team-modal-inner {
  position: relative;
  width: min(900px, calc(100% - 2rem));
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
}

.team-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 1.8rem;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
}

.team-modal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.team-modal-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.team-modal-content {
  text-align: left;
}

.team-modal-line {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  margin: 0.75rem 0;
}

#teamModalQA .p-small {
  margin: 0 0 0.9rem;
  line-height: 1.5;
}

/* Mobile modal layout */
@media (max-width: 720px) {
  .team-modal-grid {
    grid-template-columns: 1fr;
  }
}

  /* Stop the text feeling cramped */
  .content-section .container > div[style*="max-width: 800px"] {
    max-width: 100% !important;
    margin: 0 !important;
  }


/* Trust pills under Mission/Values: keep them readable */
@media (max-width: 520px) {
  .trust-strip {
    gap: 10px;
  }

  .trust-pill {
    align-items: flex-start;
    padding: 12px 12px;
  }

  .trust-pill img {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
  }
}
/* =========================================================
   Quality & Data Security (Assurance cards)
   Desktop: side-by-side
   Mobile: image above text
   ========================================================= */

.assurance-section {
  background: var(--bg-white);
}

.assurance-rows {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Card base (desktop) */
.assurance-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 18px;

  background: #fff;
  border: 1.5px solid var(--border-color);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  overflow: hidden;

  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.assurance-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(34, 41, 88, 0.28);
}

/* Content */
.assurance-content {
  padding: 18px 20px;
  min-width: 0; /* prevents overflow in grid */
}

.assurance-content h3 {
  margin: 0 0 8px;
  color: var(--text-dark);
  font-size: 1.2rem;
  line-height: 1.25;
}

.assurance-content p {
  margin: 0 0 12px;
  color: var(--text-light);
}

.assurance-meta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(34, 41, 88, 0.12);
}

.assurance-bullets {
  margin: 0 0 10px;
  padding-left: 18px;
  color: var(--text-light);
}

.assurance-bullets li {
  margin: 6px 0;
}

.assurance-commitments {
  margin: 0;
  padding-left: 20px;
  color: var(--text-light);
}

.assurance-commitments li {
  margin: 8px 0;
}

/* Badges */
.assurance-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
}

.assurance-badges a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid rgba(34, 41, 88, 0.12);
  border-radius: 12px;
  background: rgba(227, 228, 229, 0.28);
  transition: transform 180ms ease, background 180ms ease;
}

.assurance-badges a:hover {
  transform: translateY(-1px);
  background: rgba(227, 228, 229, 0.5);
}

.assurance-badges img {
  display: block;
  height: 40px;
  width: auto;
}

/* Media (desktop) */
.assurance-media {
  position: relative;
  min-height: 220px; /* ensures the right column doesn’t collapse */
}

.assurance-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Subtitle helper (if used) */
.assurance-subtitle {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

/* =========================================================
   Mobile: stack image above text
   ========================================================= */
@media (max-width: 900px) {
  .assurance-card {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .assurance-media {
    min-height: 0;
  }

  .assurance-media img {
    height: 220px;     /* banner image height */
  }

  .assurance-content {
    padding: 18px 18px 22px;
  }
}

@media (max-width: 520px) {
  .assurance-media img {
    height: 180px;
  }

  .assurance-content {
    padding: 16px;
  }

  .assurance-badges img {
    height: 28px;
  }
}
/* =========================
   Assurance Cards: Desktop (force side-by-side)
   ========================= */
@media (min-width: 901px) {
  .assurance-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px; /* text + fixed image column */
    gap: 18px;
    align-items: stretch;
  }

  .assurance-content {
    padding: 18px 20px;
  }

  .assurance-media {
    min-height: 220px;
  }

  .assurance-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

/* =========================
   Assurance Cards: Mobile (stack image above text)
   ========================= */
@media (max-width: 900px) {
  .assurance-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    overflow: hidden;
  }

  .assurance-media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
  }

  .assurance-content {
    padding: 18px 18px 22px;
  }
}

@media (max-width: 520px) {
  .assurance-media img { height: 180px; }
  .assurance-content { padding: 16px; }
}
/* ===== Assurance cards: FORCE desktop side-by-side ===== */
@media (min-width: 901px) {
  section#quality-security .assurance-rows > article.assurance-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: stretch;
  }

  section#quality-security .assurance-rows > article.assurance-card > .assurance-content {
    padding: 18px 20px;
    min-width: 0;
  }

  section#quality-security .assurance-rows > article.assurance-card > .assurance-media {
    min-height: 220px;
  }

  section#quality-security .assurance-rows > article.assurance-card > .assurance-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
  }
}

/* ===== Assurance cards: Mobile stack (single source of truth) ===== */
@media (max-width: 900px) {
  section#quality-security .assurance-rows > article.assurance-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    overflow: hidden;
  }

  section#quality-security .assurance-rows > article.assurance-card > .assurance-media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
  }

  section#quality-security .assurance-rows > article.assurance-card > .assurance-content {
    padding: 18px 18px 22px;
  }
}

@media (max-width: 520px) {
  section#quality-security .assurance-rows > article.assurance-card > .assurance-media img { height: 180px; }
  section#quality-security .assurance-rows > article.assurance-card > .assurance-content { padding: 16px; }
}
/* ===========================
   HOMEPAGE NEWS (DB cards)
   Compact + more columns
   =========================== */

.news-section{
  padding: 64px 0;
  background-color: var(--bg-light);
}

/* Grid: more cards per row */
.news-grid.blog-grid{
  display: grid;
  gap: 14px;
  margin-top: 12px;
  margin-bottom: 22px;

  /* 4-up on desktop, collapses nicely */
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px){
  .news-grid.blog-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 820px){
  .news-grid.blog-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px){
  .news-grid.blog-grid{
    grid-template-columns: 1fr;
  }
}

/* Card */
.news-post-card.post-card{
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(34,41,88,0.12);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(34,41,88,0.10);
  overflow: hidden;

  display: flex;
  flex-direction: column;
  height: 100%;

  transition: transform .16s ease, box-shadow .16s ease;
}
.news-post-card.post-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(34,41,88,0.14);
}

/* Media: make it shorter than 16:9 so the card isn't tall */
.news-post-card .post-card__media{
  aspect-ratio: 16 / 8;     /* shorter hero */
  background: #f3f4f6;
  overflow: hidden;
}
.news-post-card .post-card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%; /* face-safe crop */
  display: block;
}

/* Body: tighter */
.news-post-card .post-card__body{
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* Title: slightly smaller */
.news-post-card .post-card__title{
  margin: 0;
  color: #222958;
  font-weight: 850;
  font-size: 0.98rem;
  line-height: 1.25;

  /* clamp to 2 lines to keep cards uniform */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta pills: smaller */
.news-post-card .post-card__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  opacity: 0.82;
}
.news-post-card .meta-pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(34,41,88,0.06);
  border: 1px solid rgba(34,41,88,0.10);
}

/* Excerpt: clamp so height stays consistent */
.news-post-card .post-card__excerpt{
  margin: 0;
  opacity: 0.86;
  line-height: 1.45;
  font-size: 0.94rem;

  display: -webkit-box;
  -webkit-line-clamp: 3;   /* smaller blocks */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* On smaller screens, hide excerpt to fit more above the fold */
@media (max-width: 820px){
  .news-post-card .post-card__excerpt{ display: none; }
}

/* Footer: compact */
.news-post-card .post-card__footer{
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(34,41,88,0.08);
}

/* Read more link */
.read-more--text{
  background: none;
  border: none;
  padding: 0;
  color: #3e87c7;
  font-weight: 750;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
}
.read-more--text:hover{ text-decoration: underline; }

.news-section .cta-center{ margin-top: 20px; }

.content-section > .container > h2, 
.content-section > .container > h3,
.content-section > .container > p {
    text-align: center;
}
/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background-color: #222958;
    color: #ffffff;
    border-color: #222958;
    padding: 14px 36px;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: 'var(--primary-color)';
    border-color: var(--primary-color);
    border-radius: 999px;
}
.btn-special {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
    border-radius: 999px;
}
.btn-special:hover {
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}
.btn{
  display: inline-flex;          /* better for centering text */
  align-items: center;
  justify-content: center;
  box-sizing: border-box;        /* key with width:100% + padding + border */
}
.btn-primary{
  position: relative;
  overflow: hidden;      /* keeps the animated layer inside the pill */
}

.btn-primary::before{
  content:"";
  position:absolute;
  inset:0;               /* <-- full width/height, no guessing */
  border-radius:inherit; /* keep pill shape */
  transform: scaleX(0);
  transform-origin:left;
  transition: transform .3s ease;
  background: var(--secondary-color);
  z-index:0;
}

.btn-primary:hover::before{
  transform: scaleX(1);
}

.btn-primary{
  z-index:1;
}

.btn-primary > *{
  position:relative;
  z-index:1;             /* text stays above the animated layer */
}
.btn{
  transition: background-color .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.btn-full{
  width: 100%;
}
.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.cta-buttons .btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
}

.cta-buttons .btn-secondary:hover {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-header {
    padding: 10px 24px;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Optional: ensure secondary button looks intentional on light bg */
.cs-cta-actions .btn-secondary {
    background: transparent;
    border: 2px solid #222958;
    color: #222958;
}

.cs-cta-actions .btn-secondary:hover {
    background: rgba(34,41,88,0.06);
}

html, body{
  max-width: 100%;
  overflow-x: hidden;
}

/* newer browsers */
@supports (overflow: clip){
  html, body{ overflow-x: clip; }
}
.tcar__nav--left{ left: 10px; }
.tcar__nav--right{ right: 10px; }

@media (max-width: 640px){
  .tcar__nav--left{ left: 6px; }
  .tcar__nav--right{ right: 6px; }
}
.tcar,
.tcar__viewport{
  overflow-x: clip;
}

@supports not (overflow: clip){
  .tcar,
  .tcar__viewport{ overflow-x: hidden; }
}
/* =========================
   Client logo scrolling banner (stable + no seam jump)
   ========================= */

:root{
  /* Bigger number = slower */
  --marquee-speed: 70s;     /* desktop */
  --marquee-shift: 0;       /* set dynamically via JS */
  --logo-max-h: 60px;
  --logo-max-w: 140px;
  --logo-gap: 28px;
}

/* Mobile speed */
@media (max-width: 768px){
  :root{ --marquee-speed: 60s; }
}
@media (max-width: 480px){
  :root{ --marquee-speed: 52s; }
}

/* Section wrapper */
.client-banner{
  background: #ffffff;
  padding: 30px 0;
  overflow: hidden;
}

.client-banner .container{
  overflow: hidden;
}

/* Track (animated strip) */
.client-banner .client-banner-track{
  display: flex;
  align-items: center;
  width: max-content;

  will-change: transform;
  transform: translate3d(0,0,0);

  animation: client-banner-marquee var(--marquee-speed) linear infinite;
  animation-play-state: paused; /* start paused */
}

/* JS adds .is-ready once widths are stable */
.client-banner.is-ready .client-banner-track{
  animation-play-state: running;
}

/* Two identical sets */
.client-banner-inner{
  display: flex;
  align-items: center;
  gap: var(--logo-gap);
  padding-right: var(--logo-gap);
  width: max-content;
}

/* Logo boxes */
.client-banner-logo{
  flex: 0 0 auto;
  width: 160px;          /* stabilises layout */
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Default grayscale style */
.client-banner .client-banner-track img{
  display: block;
  max-height: var(--logo-max-h);
  max-width: var(--logo-max-w);
  width: auto;
  height: auto;

  filter: grayscale(1);
  opacity: 0.75;
  transition: opacity .25s ease, filter .25s ease;
}

/* Hover only on hover-capable devices */
@media (hover: hover) and (pointer: fine){
  .client-banner .client-banner-track img:hover{
    filter: none;
    opacity: 1;
  }
}

/* Mobile optimisation: filter whole layer once */
@media (hover: none) and (pointer: coarse){
  .client-banner .client-banner-track{
    filter: grayscale(1);
    opacity: 0.75;
  }
  .client-banner .client-banner-track img{
    filter: none;
    opacity: 1;
  }
}

/* Pixel-based animation (no -50% rounding issues) */
@keyframes client-banner-marquee{
  0%   { transform: translate3d(0,0,0); }
  100% { transform: translate3d(calc(-1px * var(--marquee-shift)),0,0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .client-banner .client-banner-track{
    animation: none;
    transform: none;
    filter: none;
    opacity: 1;
  }
}
/* =========================
   Footer (layout + links)
========================= */
.footer {
  background: linear-gradient(135deg, #222958 0%, #3e87c7 100%);
  color: #fff;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr 1.2fr; /* 4 columns */
  gap: 40px;
  align-items: start;
}

@media (max-width: 1100px) {
  .footer-content {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

.footer-column h4 {
  color: #fff;
  margin-bottom: 20px;
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column li {
  margin-bottom: 10px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #fff;
}

/* default footer link underline effect */
.footer a {
  position: relative;
  text-decoration: none;
}

.footer a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--pr-blue);
  opacity: 0;
  transform: scaleX(0.85);
  transform-origin: left;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.footer a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Make footer contact link look clickable */
.contact-info .map-link {
  display: inline-flex;
  align-items: center;
}

/* (Fix) This selector was broken in your original CSS */
.footer .footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  background: none;
  width: auto;
  height: auto;
  border-radius: 0;
  color: inherit;
}

.footer .icon {
  width: 22px;
  height: 22px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  margin-top: 40px; /* 👈 creates gap above divider */
  text-align: center;
}
.footer-bottom p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 10px;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Optional: spacing for portals block if you moved it under socials */
.footer-portals ul {
  margin-top: 12px;
}


/* =========================
   Map modal
========================= */
.map-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1100;
  padding: 20px;
}

.map-modal-overlay.active {
  display: flex;
}

.map-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.35);
}

.map-modal-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 0 12px;
}

.map-modal-body {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
}

.map-modal-body iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: rgba(34, 41, 88, 0.06);
  border: none;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  color: #222958;
}

.map-modal-close-btn {
  border: none;
  background: #222958;
  color: #fff;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
}

.map-modal-close-btn:hover {
  background: #3e87c7;
}


/* =========================
Footer social icons (locked centre)
========================= */
.footer-social {
  margin-top: 14px;
}

.footer-social-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e3e4e5;
  margin-bottom: 8px;
}

.footer-social-icons {
  display: flex;
  gap: 10px;
}

/* =========================
   Footer social icons (restore working alignment)
   Put this at the END of your footer CSS
========================= */
.footer-social {
  margin-top: 14px;
}

.footer-social-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e3e4e5;
  margin-bottom: 8px;
}

.footer-social-icons {
  display: flex;
  gap: 10px;
  border: none !important;
}

/* Prevent the global footer underline (::after) from touching social links */
.footer-social-icons a::after,
.footer-social-icons a::before {
  content: none !important;
  display: none !important;
}

/* Circle button */
.footer-social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(227, 228, 229, 0.18);
  border: 1px solid rgba(227, 228, 229, 0.25);
  color: #e3e4e5;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;
  text-decoration: none !important;

  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.footer-social-icons a:hover {
  background: #3e87c7;
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* Icon box */
.footer-social-icons a i {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 1em;
  height: 1em;
  font-size: 16px;
  line-height: 1 !important;
  color: inherit;
}

/* Centre the actual FA glyph */
.footer-social-icons a i::before {
  display: block;
  line-height: 1;
  transform: translateY(0.06em); /* your original tiny nudge */
}

/* Extra safety: no stray underlines/dividers leaking in */
.footer-social-icons * {
  border-bottom: none !important;
}
@media (max-width: 768px) {
  section.why-prevision .why-rows .why-row {
    display: block !important;
  }

  section.why-prevision .why-rows .why-row .why-col {
    width: 100% !important;
    max-width: 100% !important;
  }

  section.why-prevision .why-rows .why-row .why-col-text {
    max-width: 100% !important;
  }

  section.why-prevision .why-rows .why-row .why-col-image {
    margin-top: 14px !important;
  }
}
@media (max-width: 768px) {
  .page-hero--mobile-left .page-hero-bg {
    object-position: left center !important;
  }
}
/* Put this at the very bottom of styles.css */
.hero h1 { font-size: 2.2rem; }

@media (max-width: 1024px) {
  .hero h1 { font-size: 1.9rem; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 1.1rem; }
}
/* =========================
   Charitable Activities
   ========================= */
.charity-section {
  padding: 80px 0;
}

.charity-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 26px;
}

.charity-media__card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.charity-media__card img {
  width: 100%;
  height: auto;
  display: block;
}

.charity-content p {
  margin: 0 0 14px;
  opacity: 0.95;
}

.charity-links {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.charity-links__title {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.charity-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.charity-list a {
  text-decoration: none;
}

.charity-list a:hover {
  text-decoration: underline;
}

.charity-patron {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
  padding: 22px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.charity-patron__logo img {
  max-width: 260px;
  width: 100%;
  height: auto;
  display: block;
}

.charity-patron__text h3 {
  margin: 0 0 10px;
}

.charity-patron__text p {
  margin: 0 0 12px;
  opacity: 0.95;
}

.charity-patron__actions {
  margin-top: 10px;
}

/* Responsive */
@media (min-width: 980px) {
  .charity-grid {
    grid-template-columns: 5fr 7fr;
    gap: 46px;
  }

  .charity-patron {
    grid-template-columns: 280px 1fr;
    gap: 28px;
  }
}
.charity-list--two-col{
  list-style: disc;
  padding-left: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
}

@media (max-width: 640px){
  .charity-list--two-col{ grid-template-columns: 1fr; }
}
@media (min-width: 980px){
  .charity-patron{
    grid-template-columns: 1fr 280px;
  }

  .charity-patron__text{
    order: 1;
  }

  .charity-patron__logo{
    order: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
}
/* =========================================================
Hover Enhancements: Image Zoom (Scoped, motion-safe)
========================================================= */
.about-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: start;
}

.about-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.about-media {
    border-radius: 14px;
    overflow: hidden;
    background: #e3e4e5;
    border: 1px solid rgba(0,0,0,0.06);
}

.about-media img {
    width: 100%;
    height: auto;
    display: block;
}

.about-caption {
    font-size: 0.92rem;
    opacity: 0.85;
    margin-top: 10px;
}

.about-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 22px;
}

@media (max-width: 900px) {
    .about-photo-grid {
        grid-template-columns: 1fr;
    }

}

.about-photo {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    background: #e3e4e5;
}

.about-photo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .about-split {
        grid-template-columns: 1fr;
    }
    .about-photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-photo img {
        height: 150px;
    }

}



/* Ensure zoom never spills outside cards */
.about-media,
.about-photo,
.facility-slider,
.why-photo-card,
.cs-media,
.trusted-image {
  overflow: hidden;
}

/* Base transition for large images */
.about-media img,
.about-photo img,
.facility-slide,
.why-photo-card img,
.cs-media img,
.trusted-image img {
  transition: transform 260ms ease, filter 260ms ease;
  will-change: transform;
  transform: translateZ(0);
}

/* Hover zoom: desktop only */
@media (hover: hover) and (pointer: fine) {
  .about-media:hover img,
  .about-photo:hover img,
  .facility-slider:hover .facility-slide.is-active,
  .why-photo-card:hover img,
  .cs-media:hover img,
  .trusted-image:hover img {
    transform: scale(1.05);
    filter: saturate(1.04);
  }
}

/* Mission & Values: better mobile layout */
@media (max-width: 820px) {
  .about-split {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .about-card {
    order: -1;              /* image first, then text */
    max-width: 520px;
    margin: 0 auto;
  }

  .about-media img {
    width: 100%;
    height: auto;
    display: block;
  }
}
@media (max-width: 900px) {
    .about-photo-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 900px) {
    .about-split {
        grid-template-columns: 1fr;
    }
    .about-photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-photo img {
        height: 150px;
    }

}
.about-card .trust-strip{
    margin-top: 20px;
}
.about-card{
    display: flex;
    flex-direction: column;
}
.about-aside{
    display: flex;
    flex-direction: column;
}

.about-aside .trust-strip{
    margin-top: 22px;
}
.trust-strip{
    padding-top: 8px;
}
/* Don’t let reveal styles hide the bubble stage/bubbles */
.team-rain-section[data-reveal],
.team-rain-section[data-reveal] .team-bubble {
  opacity: 1 !important;
  transform: none !important;
}
/* Modal overlay */
.team-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(0,0,0,.55);

  /* iOS: allow overlay scrolling */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.team-modal.active{ display: block; }

/* The panel */
.team-modal-inner{
  position: relative;
  width: min(920px, 100%);
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;

  /* KEY: never exceed viewport height */
  max-height: calc(100dvh - 32px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* If you have a big image, keep it from forcing the panel huge */
.team-modal-image img{
  width: 100%;
  height: auto;
  max-height: 40dvh;
  object-fit: cover;
  display: block;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

/* Close button ALWAYS visible */
.team-modal-close{
  position: sticky;   /* sticks to top of scrolling panel */
  top: 0;
  margin-left: auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;

  border: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  font-size: 28px;
  line-height: 1;
  cursor: pointer;

  z-index: 10;
}

/* Optional: make the close button sit in the top-right corner */
.team-modal-inner .team-modal-close{
  float: right;
}

/* Prevent page behind from scrolling when modal open */
body.modal-open{
  overflow: hidden;
  height: 100%;
}
.team-modal-inner {
  position: relative; /* anchor for the close button */
}

/* Close button */
.team-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;   /* move it right away from the image */
  z-index: 20;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);

  font-size: 22px;
  line-height: 1;
  border: none;
  cursor: pointer;
}
.team-modal-image {
  padding-top: 12px;
}
/* =====================================
Case Study Cards - Force 2x2 Layout
===================================== */

.case-study-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}

.case-study-cards .feature-item {
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
}

/* Mobile: stack to single column */
@media (max-width: 768px) {
    .case-study-cards {
        grid-template-columns: 1fr;
    }
}