/* ============================================
   OBROFY CUSTOM OVERRIDES
   Tasks 4 & 5 — CTA Button + Sticky Header
   ============================================ */

/* ----- TASK 4: Orange Hero CTA Button ----- */
.hero-cta-orange,
.btn.hero-cta-orange {
    background-color: #FF6600 !important;
    color: #000000 !important;
    border: 2px solid #FF6600 !important;
    font-weight: 800 !important;
    transition: all 0.3s ease-in-out;
}

.hero-cta-orange span,
.hero-cta-orange .btn-double-text {
    color: #000000 !important;
    font-weight: 800 !important;
}

.hero-cta-orange:hover,
.hero-cta-orange:focus {
    background-color: #E65C00 !important;
    border-color: #E65C00 !important;
    color: #000000 !important;
    transform: scale(1.05);
}

.hero-cta-orange:hover span,
.hero-cta-orange:hover .btn-double-text {
    color: #000000 !important;
}

/* Same style for the form submit "Get My Free Audit" */
.btn-get-my-free-audit {
    background-color: #FF6600 !important;
    color: #000000 !important;
    border: 2px solid #FF6600 !important;
    font-weight: 800 !important;
    transition: all 0.3s ease-in-out;
}
.btn-get-my-free-audit:hover {
    background-color: #E65C00 !important;
    border-color: #E65C00 !important;
    color: #000000 !important;
    transform: scale(1.05);
}

/* ============================================
   TASK 5: STICKY HEADER — Forced override (kills theme's scroll-hide behavior)
   ============================================ */

/* Lock the header in place permanently */
header,
body header,
body > header,
html body header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    margin: 0 !important;
    transform: none !important;
    transition: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Override ANY transform that scroll JS might apply */
header.header-hide,
header.scrolled,
header.scroll-down,
header.scroll-up,
header[style*="transform"],
header[style*="display: none"] {
    position: fixed !important;
    top: 0 !important;
    transform: translateY(0) !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Force the inner navbar to stay too */
header .navbar {
    position: relative !important;
    transform: none !important;
}

/* Push content down so it doesn't hide behind fixed header */
body {
    padding-top: 95px !important;
}

@media (max-width: 991px) {
    body {
        padding-top: 75px !important;
    }
}
/* Force orange on form submit button (override request/index.php inline styles) */
.btn-submit,
button.btn-submit,
.btn.btn-submit,
button[type="submit"].btn-submit {
    background: #FF6600 !important;
    background-color: #FF6600 !important;
    color: #000000 !important;
    border: 2px solid #FF6600 !important;
    font-weight: 800 !important;
    transition: all 0.3s ease-in-out !important;
}

.btn-submit:hover,
button.btn-submit:hover,
.btn.btn-submit:hover {
    background: #E65C00 !important;
    background-color: #E65C00 !important;
    border-color: #E65C00 !important;
    color: #000000 !important;
    transform: scale(1.05) !important;
}

/* ============================================
   CENTER PRIMARY NAVIGATION (desktop only, >= 992px)
   Does NOT touch the "Get Free Audit" button.
   Nav column grows to fill the space between logo and CTA,
   and its menu is centered inside that space.
   ============================================ */
@media (min-width: 992px) {
    /* Let the middle (nav) column expand instead of hugging the logo */
    header .navbar .container-fluid > .menu-order.left-nav {
        flex: 1 1 auto !important;
    }
    /* Center the menu within the expanded nav column */
    header .navbar .menu-order.left-nav .navbar-collapse {
        justify-content: center !important;
    }
    /* Drop the small divider line that left-nav draws before the menu */
    header .navbar .left-nav .navbar-nav:before {
        content: none !important;
    }
}

/* ============================================
   SERVICE-PAGE HEROES — tighten top spacing + full decorative circle
   Shared markup across: service-local, service-website, service-media,
   seo-geo-services, performance-marketing, service-paid
   ============================================ */
@media (min-width: 992px) {
    /* 1) TOP SPACING: cut the large gap between navbar and hero content.
          Theme default is margin-top:116px; body already has 95px top padding
          for the fixed header, so 48px is plenty. min-height leaves room for
          the decorative circle to sit fully inside the hero. */
    .service-hero.top-space-margin {
        margin-top: 48px !important;
        min-height: 480px;
    }
    /* 2) ORANGE BLOB: show the ORIGINAL soft, feathered orange glow at its
          natural edges (no border-radius mask, no zoom-crop). Just size and
          position it so the WHOLE soft glow sits on-screen behind the heading,
          not clipped by the viewport edge or overflow:hidden. Low opacity. */
    .service-hero-blob {
        left: 0 !important;
        top: 70px !important;
        width: 400px !important;
        height: auto !important;
        max-width: 400px !important;
        opacity: 0.5;
    }
}

/* ============================================
   PLATFORMS SLIDER — reusable "We Work With These Platforms" marquee
   Used by the _platforms-slider.php partial (homepage + Paid Advertisement).
   ============================================ */
.platforms-section {
    background-color: #ffffff;
}
/* Orange #FF6600 brand accents */
.platforms-eyebrow {
    background-color: #FF6600;
}
.platforms-accent {
    color: #FF6600;
}

/* Marquee viewport: clips the track and softly fades both edges */
.platforms-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}

/* The moving belt = two identical groups; shifting it by 50% (one full group)
   lands the second group exactly where the first started → seamless loop. */
.platforms-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: platforms-scroll 35s linear infinite;
}
.platforms-marquee:hover .platforms-track {
    animation-play-state: paused;
}
.platforms-group {
    display: flex;
    flex: 0 0 auto;
}

@keyframes platforms-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Tiles */
.platforms-item {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
    margin: 0 14px;
    padding: 12px 26px 12px 12px;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    text-decoration: none;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.platforms-item:hover {
    border-color: #FF6600;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.platforms-monogram {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f4f4f5; /* neutral so the brand-colored glyph pops */
    font-size: 24px;
    line-height: 1;
}
.platforms-monogram i {
    line-height: 1;
}
.platforms-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}
.platforms-name {
    font-weight: 700;
    font-size: 16px;
    color: #232323;
    white-space: nowrap;
}

/* Respect users who prefer no motion */
@media (prefers-reduced-motion: reduce) {
    .platforms-track { animation: none; }
}

/* Still scrolls on mobile, just a touch more compact */
@media (max-width: 575px) {
    .platforms-item { margin: 0 9px; padding: 9px 20px 9px 9px; }
    .platforms-monogram { width: 40px; height: 40px; font-size: 20px; }
    .platforms-name { font-size: 14px; }
}

/* ============================================
   CHANNEL CARDS — animated brand-icon badges (performance-marketing channels grid)
   ============================================ */
.channel-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.channel-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12) !important;
}
.channel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background-color: #f4f4f5; /* neutral so brand colors read clearly */
    margin-bottom: 22px;
    animation: channel-float 3s ease-in-out infinite;
}
.channel-icon i {
    font-size: 26px;
    line-height: 1;
    color: #FF6600;
    transition: transform 0.3s ease;
}
.channel-card:hover .channel-icon i {
    transform: scale(1.15);
}
.channel-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}
.channel-card:hover .channel-logo {
    transform: scale(1.15);
}
@keyframes channel-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
/* Staggered float so the cards don't bob in unison */
.channels-grid .col:nth-child(1) .channel-icon { animation-delay: 0s; }
.channels-grid .col:nth-child(2) .channel-icon { animation-delay: 0.4s; }
.channels-grid .col:nth-child(3) .channel-icon { animation-delay: 0.8s; }
.channels-grid .col:nth-child(4) .channel-icon { animation-delay: 1.2s; }
.channels-grid .col:nth-child(5) .channel-icon { animation-delay: 1.6s; }
.channels-grid .col:nth-child(6) .channel-icon { animation-delay: 2.0s; }

@media (prefers-reduced-motion: reduce) {
    .channel-icon { animation: none; }
    .channel-card,
    .channel-icon i { transition: none; }
}

/* ============================================
   FOOTER SITEMAP — link columns + social icons
   (structure/links only; footer background colors unchanged)
   ============================================ */
.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links li:last-child {
    margin-bottom: 0;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    text-decoration: none;
    transition: color 0.25s ease, padding-left 0.25s ease;
}
.footer-links a:hover {
    color: #FF6600;
    padding-left: 4px;
}

.footer-social {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 20px;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.footer-social a:hover {
    background-color: #FF6600;
    color: #ffffff;
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 8px 18px rgba(255, 102, 0, 0.35);
}

/* ============================================
   CLUTCH TRUST BADGE — reusable partial (_clutch-badge.php)
   Layout: 5 gold stars + "5.0" + "on Clutch" + green "Verified".
   Truthful: Clutch only, 5.0, no review count. light = hero, dark = footer.
   ============================================ */
.clutch-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    border-radius: 40px;
    text-decoration: none;
    line-height: 1;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.clutch-badge .clutch-stars {
    color: #FFB100;
    font-size: 14px;
    letter-spacing: 1px;
    white-space: nowrap;
}
.clutch-badge .clutch-rating { font-weight: 800; font-size: 16px; }
.clutch-badge .clutch-on { font-size: 13px; opacity: 0.75; }
.clutch-badge .clutch-wordmark { font-weight: 800; font-size: 16px; letter-spacing: -0.3px; }
.clutch-badge .clutch-logo { height: 18px; width: auto; display: block; }
.clutch-badge .clutch-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #ffffff;
    background-color: #1FA463;
    border-radius: 20px;
    padding: 3px 9px 3px 7px;
}
.clutch-badge .clutch-verified i { font-size: 12px; }

/* Light variant — hero (on white) */
.clutch-badge--light {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.10);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.clutch-badge--light .clutch-rating,
.clutch-badge--light .clutch-on,
.clutch-badge--light .clutch-wordmark { color: #17313E; }
.clutch-badge--light:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
    border-color: rgba(255, 102, 0, 0.45);
}

/* Dark variant — footer (on dark) */
.clutch-badge--dark {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
}
.clutch-badge--dark .clutch-rating,
.clutch-badge--dark .clutch-on,
.clutch-badge--dark .clutch-wordmark { color: #ffffff; }
.clutch-badge--dark:hover {
    transform: translateY(-2px);
    border-color: #FF6600;
    background-color: rgba(255, 255, 255, 0.10);
}

/* ============================================
   WHY GROWTH STALLS — problem-framing cards (homepage)
   ============================================ */
.why-stalls-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 36px 32px;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.why-stalls-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
    border-color: rgba(255, 102, 0, 0.35);
}
.why-stalls-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background-color: rgba(255, 102, 0, 0.12);
    color: #FF6600;
    font-size: 26px;
    margin-bottom: 24px;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.why-stalls-card:hover .why-stalls-icon {
    transform: scale(1.08);
    background-color: #FF6600;
    color: #ffffff;
}
.why-stalls-title {
    font-size: 22px;
    font-weight: 600;
    color: #232323;
    margin-bottom: 12px;
}
.why-stalls-desc {
    font-size: 16px;
    line-height: 1.7;
    color: #6f6f6f;
    margin-bottom: 22px;
}
.why-stalls-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-weight: 600;
    font-size: 15px;
    color: #FF6600;
}
.why-stalls-cta i {
    font-size: 16px;
    transition: transform 0.3s ease;
}
.why-stalls-card:hover .why-stalls-cta i {
    transform: translateX(4px);
}

/* ============================================
   COMPARISON TABLE — reusable (_comparison-table.php)
   Highlights the Obrofy column as the winner; sticky first column;
   color-coded strength values; horizontal scroll on mobile.
   ============================================ */
.cmp-scroll {
    overflow-x: auto;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
    -webkit-overflow-scrolling: touch;
}
.cmp-table {
    width: 100%;
    min-width: 760px; /* forces horizontal scroll on narrow screens */
    border-collapse: collapse;
    background-color: #ffffff;
}
.cmp-table th,
.cmp-table td {
    padding: 15px 22px;
    text-align: center;
    font-size: 15px;
    color: #3c3c3c;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    white-space: nowrap;
}
.cmp-table tbody tr:last-child th,
.cmp-table tbody tr:last-child td { border-bottom: 0; }

.cmp-table thead th {
    font-size: 14px;
    font-weight: 700;
    color: #232323;
    background-color: #f6f6f7;
}

/* First column = factor label (sticky on desktop) */
.cmp-factor {
    text-align: left !important;
    font-weight: 600;
    color: #232323;
    background-color: #ffffff;
    position: sticky;
    left: 0;
    z-index: 2;
}
.cmp-table thead .cmp-factor {
    background-color: #f6f6f7;
    z-index: 3;
}

/* Obrofy winner column */
.cmp-table .cmp-obrofy {
    background-color: rgba(255, 102, 0, 0.07);
    border-left: 2px solid #FF6600;
    border-right: 2px solid #FF6600;
    color: #17313E;
    font-weight: 700;
}
.cmp-table thead th.cmp-obrofy {
    background-color: #FF6600;
    color: #ffffff;
}

/* Row hover */
.cmp-table tbody tr:hover th.cmp-factor,
.cmp-table tbody tr:hover td { background-color: #fafafa; }
.cmp-table tbody tr:hover td.cmp-obrofy { background-color: rgba(255, 102, 0, 0.13); }

/* Strength-coded values (competitor columns) */
.cmp-val {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
}
.cmp-val::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
}
.cmp-val--strong { color: #1FA463; }   /* green */
.cmp-val--mid { color: #E0941B; }       /* amber */
.cmp-val--weak { color: #9aa0a6; }      /* muted */
.cmp-val--neutral { color: #5f6368; }
.cmp-val--neutral::before { display: none; } /* contextual (High/Low) — no dot */

.cmp-note {
    margin: 22px auto 0;
    max-width: 820px;
    text-align: center;
    font-size: 16px;
    line-height: 1.7;
    color: #6f6f6f;
}

@media (max-width: 575px) {
    .cmp-table th, .cmp-table td { padding: 12px 16px; font-size: 14px; }
}

/* ============================================
   LOCATIONS PAGE — city cards grid (locations.php)
   ============================================ */
.loc-eyebrow { background-color: #FF6600; }
.loc-accent { color: #FF6600; }

.loc-card {
    display: block;
    height: 100%;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.loc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 102, 0, 0.35);
}
.loc-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #f4f4f5;
}
.loc-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.loc-card:hover .loc-card-media img { transform: scale(1.06); }
.loc-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background-color: #FF6600;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 30px;
}
.loc-card-body { padding: 24px 26px 26px; }
.loc-city {
    font-size: 21px;
    font-weight: 700;
    color: #232323;
    margin-bottom: 8px;
}
.loc-address {
    font-size: 15px;
    line-height: 1.6;
    color: #6f6f6f;
    margin-bottom: 18px;
}
.loc-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    font-size: 14px;
    color: #FF6600;
}
.loc-link i { transition: transform 0.3s ease; }
.loc-card:hover .loc-link i { transform: translate(3px, -3px); }

/* ============================================
   MEET THE TEAM — homepage team grid
   ============================================ */
.team-eyebrow { background-color: #FF6600; }
.team-accent { color: #FF6600; }
.team-linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    color: #232323;
    text-decoration: none;
    transition: color 0.25s ease;
}
.team-linkedin-link i { color: #0A66C2; font-size: 18px; }
.team-linkedin-link:hover { color: #FF6600; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
@media (min-width: 576px)  { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px)  { .team-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .team-grid { grid-template-columns: repeat(7, 1fr); } }

.team-card {
    text-align: center;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 26px 14px 22px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.team-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 102, 0, 0.5);
    box-shadow: 0 16px 36px rgba(255, 102, 0, 0.18);
}

/* fixed square box -> clean circle, any aspect ratio cropped via cover */
.team-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f4f4f5;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0);
    transition: box-shadow 0.35s ease;
}
.team-card:hover .team-avatar { box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.55); }
.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.team-initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 36px;
    line-height: 1;
}
.team-name {
    font-size: 17px;
    font-weight: 700;
    color: #232323;
    margin-bottom: 3px;
}
.team-position {
    font-size: 13px;
    font-weight: 600;
    color: #FF6600;
    margin-bottom: 0;
}

/* "+20 People" summary tile */
.team-avatar--more {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 102, 0, 0.10);
}
.team-avatar--more i { font-size: 40px; color: #FF6600; }
.team-more-count {
    font-size: 18px;
    font-weight: 800;
    color: #232323;
    margin-bottom: 2px;
}
.team-more-label {
    font-size: 13px;
    color: #6f6f6f;
}

/* ============================================
   MEET THE TEAM — interactive orbit (wide desktop only)
   Generic phone frame (NOT a trademarked design); avatars orbit and
   counter-rotate to stay upright. Falls back to .team-grid otherwise.
   ============================================ */
.team-orbit { display: none; }                 /* hidden by default -> grid is the fallback */

@media (min-width: 1200px) {
    .team-orbit { display: block; }
    .team-section .team-grid { display: none; } /* on wide desktop, orbit replaces the grid */
}

.team-orbit-stage {
    position: relative;
    width: 640px;
    height: 640px;
    margin: 0 auto;
}

/* Generic phone frame */
.team-phone {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 224px;
    height: 452px;
    background: #15171c;
    border-radius: 44px;
    padding: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
    z-index: 2;
}
.team-phone-island {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 88px;
    height: 22px;
    background: #000000;
    border-radius: 14px;
    z-index: 3;
}
.team-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 33px;
    overflow: hidden;
    background: linear-gradient(165deg, #ffffff 0%, #fff3ea 100%);
}
.team-screen-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    animation: team-screen-cycle 15.6s linear infinite;       /* 6 x 2.6s */
    animation-delay: calc(var(--i) * 2.6s);
}
.team-screen-av {
    width: 138px;
    height: 138px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.18);
}
.team-screen-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-screen-name { font-size: 21px; font-weight: 800; color: #232323; }
.team-screen-role { font-size: 14px; font-weight: 600; color: #FF6600; }

@keyframes team-screen-cycle {
    0%   { opacity: 0; }
    2%   { opacity: 1; }
    15%  { opacity: 1; }
    18%  { opacity: 0; }
    100% { opacity: 0; }
}

/* Rotating ring of avatars */
.team-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    z-index: 4;
    animation: team-orbit-spin 26s linear infinite;
}
.team-orbit-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 86px;
    height: 86px;
    margin: -43px 0 0 -43px;                                   /* center on ring origin */
    transform: rotate(var(--angle)) translateX(280px) rotate(calc(-1 * var(--angle)));
}
.team-orbit-av {
    display: block;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    overflow: hidden;
    background: #f4f4f5;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12), 0 0 0 3px #ffffff;
    transition: box-shadow 0.3s ease;
    animation: team-orbit-counter 26s linear infinite;         /* counter-rotate -> upright */
}
.team-orbit-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-orbit-av:hover { box-shadow: 0 8px 22px rgba(255, 102, 0, 0.32), 0 0 0 3px #FF6600; }
.team-orbit-av--more {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 102, 0, 0.12);
}
.team-orbit-av--more i { font-size: 30px; color: #FF6600; }

@keyframes team-orbit-spin    { to { transform: rotate(360deg); } }
@keyframes team-orbit-counter { to { transform: rotate(-360deg); } }

/* Pause the whole carousel on hover */
.team-orbit:hover .team-ring,
.team-orbit:hover .team-orbit-av,
.team-orbit:hover .team-screen-slide { animation-play-state: paused; }

/* Reduced motion: no animation -> always show the static grid, hide the orbit */
@media (prefers-reduced-motion: reduce) {
    .team-orbit { display: none !important; }
    .team-section .team-grid { display: grid !important; }
    .team-ring,
    .team-orbit-av,
    .team-screen-slide { animation: none !important; }
}

