/* ═══════════════════════════════════════════════
   SPRUCE UP — homepage.css
   Sections: Hero → Products → Impact → Video →
             Logos → Applications → Services → CTA
═══════════════════════════════════════════════ */

/* ── Shared section tokens ── */
:root {
    --hp-yellow:    #F5C800;
    --hp-charcoal:  #1C1C1C;
    --hp-dark:      #141414;
    --hp-dark-2:    #1e1e1e;
    --hp-white:     #ffffff;
    --hp-gray:      #f4f4f4;
    --hp-text-dim:  rgba(255,255,255,0.55);
    --hp-text-mid:  rgba(255,255,255,0.75);
    --hp-border:    rgba(255,255,255,0.08);
    --hp-font:      'Poppins', sans-serif;
    --hp-display:   'Poppins', sans-serif;
    --hp-radius:    6px;
    --hp-transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ── Homepage: header overlaps hero — remove inherited body padding-top ── */
body.page-template-page-homepage,
body.home {
    padding-top: 0;
}

/* ── Reset for page ── */
.hp-section { width: 100%; }

/* ── Inner container ── */
.hp-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

/* ── Eyebrow label ── */
.hp-eyebrow {
    display: inline-block;
    font-family: var(--hp-font);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--hp-yellow);
    margin-bottom: 12px;
}

/* ── Section title (dark bg) ── */
.hp-section-title {
    font-family: var(--hp-display);
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.12;
    color: var(--hp-white);
    margin: 0 0 12px;
}

/* ── Section title (light bg) ── */
.hp-section-title--dark {
    color: var(--hp-charcoal);
}

.hp-section-desc {
    font-family: var(--hp-font);
    font-size: 14px;
    line-height: 1.7;
    color: var(--hp-text-dim);
    margin: 0;
    max-width: 480px;
}

.hp-section-desc--dark {
    color: #666;
}

/* ═══════════════════════════════════════
   1. HERO
═══════════════════════════════════════ */
.hp-hero {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: center;
    background: var(--hp-charcoal);
    overflow: hidden;
}

/* Filler image placeholder */
.hp-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hp-hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    display: block;
}

/* Gradient overlay — lightened so background image is more visible */
.hp-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(20,20,20,0.72) 0%,
        rgba(20,20,20,0.48) 45%,
        rgba(20,20,20,0.05) 100%
    );
    z-index: 1;
}

.hp-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 48px 80px;
    width: 100%;
}

.hp-hero__content {
    max-width: 580px;
}

.hp-hero__title {
    font-family: var(--hp-display);
    font-size: clamp(38px, 5.5vw, 68px);
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.06;
    color: var(--hp-white);
    margin: 0 0 18px;
}

.hp-hero__title em {
    font-style: normal;
    color: var(--hp-yellow);
}

.hp-hero__sub {
    font-family: var(--hp-font);
    font-size: 16px;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    line-height: 1.65;
    margin: 0 0 36px;
    max-width: 440px;
}

.hp-hero__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Primary CTA */
.hp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--hp-font);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 12px 26px;
    border-radius: var(--hp-radius);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background var(--hp-transition), transform var(--hp-transition), color var(--hp-transition), border-color var(--hp-transition);
}

.hp-btn--primary {
    background: var(--hp-yellow);
    color: var(--hp-charcoal);
}

.hp-btn--primary:hover {
    background: #e0b500;
    transform: translateY(-2px);
}

.hp-btn--outline {
    background: transparent;
    color: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(255,255,255,0.25);
}

.hp-btn--outline:hover {
    border-color: rgba(255,255,255,0.6);
    color: var(--hp-white);
}

.hp-btn--dark {
    background: var(--hp-charcoal);
    color: var(--hp-white);
    border: 1.5px solid rgba(255,255,255,0.12);
}

.hp-btn--dark:hover {
    background: #2a2a2a;
}

.hp-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Hero scroll indicator */
.hp-hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: hp-bounce 2s ease infinite;
}

.hp-hero__scroll span {
    font-family: var(--hp-font);
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
}

.hp-hero__scroll-arrow {
    width: 18px;
    height: 18px;
    color: rgba(255,255,255,0.3);
}

@keyframes hp-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

/* ═══════════════════════════════════════
   2. PRODUCTS
═══════════════════════════════════════ */
.hp-products {
    background: #f5f5f5;
    padding: 80px 0;
}

.hp-products__head {
    margin-bottom: 40px;
}

.hp-products__head-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.hp-products__category-label {
    font-family: var(--hp-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--hp-charcoal);
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(28,28,28,0.12);
}

/* Product cards grid */
.hp-products__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.hp-product-card {
    background: #ffffff;
    border: 1px solid rgba(28,28,28,0.1);
    border-radius: var(--hp-radius);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: border-color var(--hp-transition), transform var(--hp-transition), box-shadow var(--hp-transition);
}

.hp-product-card:hover {
    border-color: var(--hp-yellow);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

/* Image placeholder */
.hp-product-card__img {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.hp-product-card__img-filler {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Landscape SVG filler */
.hp-product-card__img-filler svg {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.hp-product-card__body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hp-product-card__series {
    font-family: var(--hp-font);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--hp-yellow);
    margin-bottom: 5px;
    display: block;
}

.hp-product-card__name {
    font-family: var(--hp-display);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--hp-charcoal);
    margin: 0 0 6px;
}

.hp-product-card__desc {
    font-family: var(--hp-font);
    font-size: 12px;
    color: #666666;
    line-height: 1.6;
    margin: 0 0 16px;
    flex: 1;
}

.hp-product-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--hp-font);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hp-yellow);
    text-decoration: none;
    transition: gap var(--hp-transition);
}

.hp-product-card:hover .hp-product-card__link {
    gap: 10px;
}

.hp-product-card__link svg {
    width: 12px;
    height: 12px;
}

/* ═══════════════════════════════════════
   3. IMPACT STATS
═══════════════════════════════════════ */
.hp-impact {
    background: var(--hp-white);
    padding: 60px 0;
    border-top: 3px solid var(--hp-yellow);
}

.hp-impact__title {
    font-family: var(--hp-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--hp-charcoal);
    text-align: center;
    margin: 0 0 36px;
    letter-spacing: 0.02em;
}

.hp-impact__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
}

.hp-stat {
    text-align: center;
    padding: 20px 16px;
    border-right: 1px solid rgba(0,0,0,0.08);
}

.hp-stat:last-child {
    border-right: none;
}

.hp-stat__number {
    font-family: var(--hp-display);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    color: var(--hp-charcoal);
    letter-spacing: 0.02em;
    display: block;
    line-height: 1;
    margin-bottom: 6px;
}

.hp-stat__number em {
    font-style: normal;
    color: var(--hp-yellow);
}

/* yellow accent on number — using pseudo on parent */
.hp-stat__label {
    font-family: var(--hp-font);
    font-size: 11px;
    color: #888;
    line-height: 1.4;
    display: block;
}

/* ═══════════════════════════════════════
   4. VIDEO — PROOF IN ACTION
═══════════════════════════════════════ */
.hp-video {
    background: #f5f5f5;
    padding: 80px 0;
}

.hp-video__title {
    font-family: var(--hp-display);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 700;
    color: var(--hp-charcoal);
    text-align: center;
    letter-spacing: 0.04em;
    margin: 0 0 32px;
}

.hp-video__embed-wrap {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}

.hp-video__embed {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--hp-radius);
    overflow: hidden;
    background: #111;
    position: relative;
}

.hp-video__embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Video filler placeholder */
.hp-video__filler {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #1a1a1a;
    cursor: pointer;
    position: relative;
}

/* When a YouTube thumbnail is loaded as background */
.hp-video__filler--has-thumb {
    background-size: cover;
    background-position: center;
}

.hp-video__play {
    width: 64px;
    height: 64px;
    background: #FF0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hp-video__filler:hover .hp-video__play {
    transform: scale(1.1);
}

.hp-video__play svg {
    width: 24px;
    height: 24px;
    color: white;
    margin-left: 4px;
}

.hp-video__label {
    font-family: var(--hp-font);
    font-size: 12px;
    color: #888888;
    letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════
   5. RECOGNISED BY + CLIENTS (white bg)
═══════════════════════════════════════ */
.hp-logos {
    background: var(--hp-white);
    padding: 60px 0;
}

.hp-logos__block {
    margin-bottom: 44px;
}

.hp-logos__block:last-child {
    margin-bottom: 0;
}

.hp-logos__label {
    font-family: var(--hp-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--hp-charcoal);
    margin: 0 0 20px;
    letter-spacing: 0.02em;
}

.hp-logos__row {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

/* Logo placeholder boxes */
.hp-logo-item {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.55;
    filter: grayscale(1);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.hp-logo-item:hover {
    opacity: 1;
    filter: grayscale(0);
}

.hp-logo-item__filler {
    height: 36px;
    padding: 0 16px;
    background: #ebebeb;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--hp-font);
    font-size: 11px;
    font-weight: 600;
    color: #999;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

/* ═══════════════════════════════════════
   6. APPLICATIONS
═══════════════════════════════════════ */
.hp-applications {
    background: #ffffff;
    padding: 80px 0 0;
}

.hp-applications__head {
    margin-bottom: 36px;
}

/* 3-col grid for applications */
.hp-applications__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    border-radius: var(--hp-radius);
    margin-bottom: 0;
}

.hp-app-card {
    background: #ffffff;
    border: 1px solid rgba(28,28,28,0.09);
    border-radius: 10px;
    padding: 28px 26px;
    transition: box-shadow var(--hp-transition), transform var(--hp-transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.hp-app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--hp-yellow);
    transition: height 0.3s ease;
}

.hp-app-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.09);
    transform: translateY(-2px);
}

.hp-app-card:hover::before {
    height: 100%;
}

.hp-app-card__name {
    font-family: var(--hp-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--hp-charcoal);
    margin: 0 0 8px;
    text-decoration: none;
}

.hp-app-card__desc {
    font-family: var(--hp-font);
    font-size: 12px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
    text-decoration: none;
}

/* ═══════════════════════════════════════
   7. SERVICES STRIP (within applications section)
═══════════════════════════════════════ */
.hp-services {
    background: #ffffff;
    padding: 56px 0 80px;
}

.hp-services__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.hp-services__see-all {
    font-family: var(--hp-font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #a07800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--hp-transition);
}

.hp-services__see-all:hover { gap: 10px; }
.hp-services__see-all svg { width: 12px; height: 12px; }

.hp-services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.hp-service-card {
    background: #ffffff;
    border: 1px solid rgba(28,28,28,0.09);
    border-radius: 10px;
    padding: 24px 22px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: box-shadow var(--hp-transition), transform var(--hp-transition), border-color var(--hp-transition);
}

.hp-service-card:hover {
    border-color: rgba(245,200,0,0.5);
    box-shadow: 0 6px 24px rgba(0,0,0,0.09);
    transform: translateY(-2px);
}

.hp-service-card__name {
    font-family: var(--hp-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--hp-charcoal);
    margin: 0 0 8px;
    letter-spacing: 0.02em;
}

.hp-service-card__desc {
    font-family: var(--hp-font);
    font-size: 12px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

/* ═══════════════════════════════════════
   8. FINAL CTA BAND
═══════════════════════════════════════ */
.hp-final-cta {
    background: var(--hp-yellow);
    padding: 72px 0;
    text-align: center;
}

.hp-final-cta__title {
    font-family: var(--hp-display);
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 800;
    color: var(--hp-charcoal);
    margin: 0 0 10px;
    letter-spacing: 0.02em;
}

.hp-final-cta__sub {
    font-family: var(--hp-font);
    font-size: 15px;
    color: rgba(28,28,28,0.65);
    margin: 0 0 32px;
}

.hp-final-cta__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
═══════════════════════════════════════ */
.hp-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hp-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hp-reveal--delay-1 { transition-delay: 0.1s; }
.hp-reveal--delay-2 { transition-delay: 0.2s; }
.hp-reveal--delay-3 { transition-delay: 0.3s; }
.hp-reveal--delay-4 { transition-delay: 0.4s; }
.hp-reveal--delay-5 { transition-delay: 0.5s; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .hp-inner { padding: 0 32px; }
    .hp-hero__inner { padding: 80px 32px 60px; }
    .hp-impact__grid { grid-template-columns: repeat(3, 1fr); gap: 1px; }
    .hp-stat { border-right: 1px solid rgba(0,0,0,0.08); border-bottom: 1px solid rgba(0,0,0,0.08); }
    .hp-services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hp-inner { padding: 0 20px; }
    .hp-hero__inner { padding: 60px 20px 40px; }
    .hp-hero { min-height: 60vh; }

    .hp-products { padding: 60px 0; }
    .hp-products__grid { grid-template-columns: 1fr; gap: 14px; }

    .hp-impact { padding: 48px 0; }
    .hp-impact__grid { grid-template-columns: repeat(2, 1fr); }
    .hp-stat { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.08); }

    .hp-applications__grid { grid-template-columns: 1fr; }
    .hp-services__grid { grid-template-columns: 1fr 1fr; }

    .hp-products__head-inner { flex-direction: column; align-items: flex-start; }
    .hp-video { padding: 60px 0; }
    .hp-logos { padding: 48px 0; }
}

@media (max-width: 480px) {
    .hp-hero__title { font-size: 34px; }
    .hp-impact__grid { grid-template-columns: repeat(2, 1fr); }
    .hp-services__grid { grid-template-columns: 1fr; }
    .hp-applications__grid { grid-template-columns: 1fr; }
    .hp-final-cta__actions { flex-direction: column; align-items: stretch; }
    .hp-final-cta__actions .hp-btn { justify-content: center; }
}

/* ══════════════════════════════════════════════════════════
   3-COLUMN PRODUCT GRID
══════════════════════════════════════════════════════════ */
.hp-products__grid--3 {
    grid-template-columns: repeat(3, 1fr) !important;
}
.hp-products__grid--4 {
    grid-template-columns: repeat(4, 1fr) !important;
}

/* Product card badges (HERO, NEW, COMING SOON) */
.hp-product-card__img { position: relative; }
.hp-product-card__badge {
    position: absolute;
    top: 10px; left: 10px;
    font-family: var(--su-font, 'Poppins', sans-serif);
    font-size: 9px; font-weight: 800;
    letter-spacing: .14em; text-transform: uppercase;
    padding: 3px 9px; border-radius: 4px;
    pointer-events: none;
}
.hp-product-card__badge--hero { background: #FFCD11; color: #1C1C1C; }
.hp-product-card__badge--new  { background: #1D9E75; color: #fff; }
.hp-product-card__badge--soon { background: rgba(28,28,28,.7); color: rgba(255,255,255,.8); }

/* Client disclaimer */
.hp-clients-disclaimer {
    font-family: var(--su-font, 'Poppins', sans-serif);
    font-size: 10px;
    line-height: 1.6;
    color: #aaa;
    margin: 24px auto 0;
    max-width: 960px;
    text-align: left;
    padding: 0 32px 4px;
    display: block;
}

/* App cards as links */
a.hp-app-card {
    text-decoration: none; cursor: pointer;
    transition: border-color .2s ease, transform .2s ease;
}
a.hp-app-card:hover {
    border-color: #FFCD11;
    transform: translateY(-2px);
}
a.hp-app-card *,
a.hp-app-card *:hover {
    text-decoration: none;
}

/* CTA card inside product grid */
.hp-product-card--cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px 32px;
    background: var(--su-yellow);
    border-radius: 10px;
    text-decoration: none;
    min-height: 280px;
}
.hp-product-card--cta__title {
    font-family: var(--su-font);
    font-size: 20px;
    font-weight: 700;
    color: var(--su-charcoal);
    margin: 0 0 12px;
}
.hp-product-card--cta__desc {
    font-family: var(--su-font);
    font-size: 14px;
    color: var(--su-charcoal);
    opacity: 0.75;
    margin: 0 0 24px;
    line-height: 1.55;
}

/* ══════════════════════════════════════════════════════════
   MARQUEE LOGOS (Recognised by + Our clients)
══════════════════════════════════════════════════════════ */
.hp-logos { overflow: hidden; }
.hp-logos__label {
    font-family: var(--su-font);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(28,28,28,0.35);
    margin: 0 0 20px;
}
.hp-marquee {
    width: 100%;
    overflow: hidden;
    padding: 12px 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.hp-marquee__track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
}
.hp-marquee--ltr .hp-marquee__track {
    animation: marquee-ltr 30s linear infinite;
}
.hp-marquee--rtl .hp-marquee__track {
    animation: marquee-rtl 30s linear infinite;
}
@keyframes marquee-ltr {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes marquee-rtl {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}
.hp-marquee__img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.55;
    flex-shrink: 0;
    transition: opacity 0.2s;
}
.hp-marquee__img:hover { opacity: 0.85; }

/* ══════════════════════════════════════════════════════════
   OUR PRESENCE
══════════════════════════════════════════════════════════ */
.hp-presence { background: #ffffff; padding: 72px 0; }
.hp-presence__top { margin-bottom: 36px; }
.hp-presence__body {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    align-items: center;
}
.hp-presence__map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.10);
    border: 1px solid rgba(28,28,28,0.08);
    background: #f9f9f7;
    padding: 16px;
}
.hp-presence__stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.hp-presence__stat {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #ffffff;
    border: 1px solid rgba(28,28,28,0.08);
    border-left: 4px solid #F5C800;
    border-radius: 10px;
    padding: 20px 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.hp-presence__stat:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.09);
    transform: translateX(3px);
}
.hp-presence__stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    background: rgba(245,200,0,0.1);
    border: 1px solid rgba(245,200,0,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #a07800;
}
.hp-presence__stat-icon svg { width: 20px; height: 20px; }
.hp-presence__stat-num {
    display: block;
    font-family: var(--hp-font);
    font-size: 30px;
    font-weight: 800;
    color: #1C1C1C;
    line-height: 1;
    letter-spacing: -0.02em;
}
.hp-presence__stat-label {
    display: block;
    font-family: var(--hp-font);
    font-size: 12px;
    font-weight: 500;
    color: #777777;
    margin-top: 4px;
    letter-spacing: 0.01em;
}

/* ── LEAFLET MAP wrapper (height + radius set inline in PHP <style> block) ── */

/* Responsive presence */
@media (max-width: 860px) {
    .hp-presence__body {
        grid-template-columns: 1fr;
    }
    .hp-presence__stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }
}
@media (max-width: 640px) {
    .hp-products__grid--3 {
        grid-template-columns: 1fr !important;
    }
    .hp-products__grid--4 {
        grid-template-columns: 1fr !important;
    }
}
@media (min-width: 641px) and (max-width: 900px) {
    .hp-products__grid--3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .hp-products__grid--4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ════════════════════════════════════════════
   V4 OVERRIDES & FIXES
════════════════════════════════════════════ */

/* ── Uniform H2 size across homepage ── */
.hp-impact__title,
.hp-video__title,
.hp-logos__label,
.hp-section-title,
.hp-services__head .hp-section-title,
.hp-presence__top .hp-section-title {
    font-size: 32px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    line-height: 1.2 !important;
}
/* Impact title and video title match */
.hp-impact__title { color: var(--hp-charcoal) !important; }
.hp-video__title  { color: var(--hp-yellow) !important; }

/* Services "We Back Every Machine…" — same H2 */
.hp-services__head > div > h2,
.hp-services .hp-section-title {
    font-size: 32px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    line-height: 1.2 !important;
}

/* ── Our Presence: white bg, dark text ── */
.hp-presence {
    background: #ffffff !important;
    padding: 80px 0 !important;
}
.hp-presence__top .hp-eyebrow { color: #a07a00 !important; }
.hp-presence__top .hp-section-title { color: var(--hp-charcoal) !important; }
/* Presence section yellow top accent */
.hp-presence { border-top: 3px solid var(--hp-yellow); }

/* ── MARQUEE — fix images showing correctly ── */
.hp-logos {
    background: #ffffff;
    padding: 60px 0 !important;
    overflow: hidden;
}

/* Section labels inside logos section — dark text */
.hp-logos .hp-logos__label {
    font-family: var(--su-font, 'Poppins', sans-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #aaa !important;
    margin: 0 0 16px;
    text-align: center;
}

/* Marquee wrapper fix */
.hp-marquee {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.hp-marquee__track {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;
    will-change: transform;
}
.hp-marquee--ltr .hp-marquee__track {
    animation: marquee-ltr-v4 28s linear infinite;
}
.hp-marquee--rtl .hp-marquee__track {
    animation: marquee-rtl-v4 28s linear infinite;
}
@keyframes marquee-ltr-v4 {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes marquee-rtl-v4 {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* recognised-by images — keep original colours, no grayscale */
.hp-marquee--ltr .hp-marquee__img {
    height: 64px;
    width: auto;
    object-fit: contain;
    filter: none;
    opacity: 1;
    flex-shrink: 0;
    transition: opacity 0.2s;
}
/* client logos — white on dark sections; here bg is white so use grayscale */
.hp-marquee--rtl .hp-marquee__img {
    height: 56px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.6;
    flex-shrink: 0;
    transition: opacity 0.2s, filter 0.2s;
}
.hp-marquee--rtl .hp-marquee__img:hover {
    opacity: 1;
    filter: none;
}

/* Logos section inter-spacing */
.hp-logos .hp-inner { margin-bottom: 8px; }

/* ── Blog section spacing in footer ── */
.su-footer__links .su-tag--sm { vertical-align: middle; }

/* ════════════════════════════════════════════════════════
   V4 CAROUSEL — replaces broken marquee
   Both "Recognized by" and "Our clients" use .hp-carousel
════════════════════════════════════════════════════════ */

/* Section wrapper */
.hp-logos {
    background: #ffffff;
    padding: 64px 0 56px;
    overflow: hidden;
}

/* Section headings — dark because bg is white */
.hp-logos__heading {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #1C1C1C;
    letter-spacing: 0.02em;
    margin: 0 0 20px;
    line-height: 1.2;
}

/* Carousel strip */
.hp-carousel {
    width: 100%;
    overflow: hidden;
    /* Fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    padding: 12px 0;
}

/* Inner track — must be wider than container, images side by side */
.hp-carousel__track {
    display: inline-flex;
    align-items: center;
    gap: 56px;
    white-space: nowrap;
    /* width set to auto so it stretches as far as images go */
}

/* LTR animation — "Recognized by" scrolls left */
.hp-carousel--ltr .hp-carousel__track {
    animation: hp-scroll-ltr 22s linear infinite;
}

/* RTL animation — "Our clients" scrolls right */
.hp-carousel--rtl .hp-carousel__track {
    animation: hp-scroll-rtl 28s linear infinite;
}

@keyframes hp-scroll-ltr {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes hp-scroll-rtl {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Pause on hover */
.hp-carousel:hover .hp-carousel__track {
    animation-play-state: paused;
}

/* Image styles — Recognized by: keep natural colours */
.hp-carousel__img {
    height: 72px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    /* no filter — show as-is */
}

/* Client logos: slightly muted, greyscale */
.hp-carousel__img--client {
    height: 56px;
    max-width: 130px;
    filter: grayscale(0.6) opacity(0.7);
    transition: filter 0.2s ease, opacity 0.2s ease;
}
.hp-carousel__img--client:hover {
    filter: grayscale(0) opacity(1);
}

/* Responsive */
@media (max-width: 768px) {
    .hp-carousel__img           { height: 54px; }
    .hp-carousel__img--client   { height: 42px; }
    .hp-carousel__track         { gap: 36px; }
    .hp-logos__heading          { font-size: 24px; }
}
@media (max-width: 480px) {
    .hp-carousel__img           { height: 40px; }
    .hp-carousel__img--client   { height: 32px; }
    .hp-carousel__track         { gap: 24px; }
}

/* ════════════════════════════════════════════════════════
   V4 OUR PRESENCE — white background, dark text
════════════════════════════════════════════════════════ */
.hp-presence {
    background: #ffffff !important;
    border-top: 3px solid #F5C800;
    padding: 80px 0 !important;
}

/* Eyebrow: yellow on white needs darker yellow */
.hp-presence .hp-eyebrow {
    color: #a07800 !important;
}

/* Title: charcoal */
.hp-presence .hp-section-title {
    color: #1C1C1C !important;
}

/* ════════════════════════════════════════════════════════
   V4 UNIFORM H2 SIZE — all section headings same size
════════════════════════════════════════════════════════ */
.hp-impact__title,
.hp-video__title,
.hp-section-title,
.hp-logos__heading {
    font-size: 32px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    line-height: 1.2 !important;
}

/* Services "We Back Every Machine We Build" inline H2 */
.hp-services__head .hp-section-title,
.hp-services__head h2 {
    font-size: 32px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    line-height: 1.2 !important;
    margin: 4px 0 0 !important;
}

/* Impact title on white bg stays charcoal */
.hp-impact__title { color: #1C1C1C !important; }

/* Video title now on light gray — charcoal */
.hp-video__title { color: #1C1C1C !important; }

/* Section titles and descriptions for light-flipped sections */
.hp-products .hp-section-title,
.hp-applications .hp-section-title,
.hp-services .hp-section-title,
.hp-video .hp-section-title { color: #1C1C1C !important; }

.hp-products .hp-section-desc,
.hp-applications .hp-section-desc,
.hp-services .hp-section-desc { color: #666666 !important; }

.hp-products .hp-eyebrow,
.hp-applications .hp-eyebrow,
.hp-services .hp-eyebrow { color: #a07800 !important; }

/* ════════════════════════════════════════════════════════
   V4 HERO HEIGHT — slightly reduced
════════════════════════════════════════════════════════ */
.hp-hero { min-height: 74vh !important; }
@media (max-width: 768px) { .hp-hero { min-height: 60vh !important; } }

/* ════════════════════════════════════════════════════════
   LOGOS SECTION — v4 final (proper marquee)
════════════════════════════════════════════════════════ */

.hp-logos-section {
    background: #ffffff;
    padding: 56px 0 60px;
    overflow: hidden;
    border-top: 1px solid #f0f0f0;
}

.hp-logos-block {
    margin-bottom: 40px;
}
.hp-logos-block:last-child {
    margin-bottom: 0;
}

.hp-logos-block__eyebrow {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: #aaa;
    margin: 0 0 18px;
    text-align: center;
}

/* Fade edges */
.hp-marquee-wrap {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    padding: 8px 0;
}

/* The strip: inline-flex so images sit in a row wider than viewport */
.hp-marquee-strip {
    display: inline-flex;
    align-items: center;
    gap: 48px;
    white-space: nowrap;
}

/* LTR — "Recognized by" scrolls left */
.hp-marquee-wrap--ltr .hp-marquee-strip {
    animation: hp-ltr 22s linear infinite;
}

/* RTL — "Our clients" scrolls right */
.hp-marquee-wrap--rtl .hp-marquee-strip {
    animation: hp-rtl 26s linear infinite;
}

@keyframes hp-ltr {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes hp-rtl {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Pause on hover */
.hp-marquee-wrap:hover .hp-marquee-strip {
    animation-play-state: paused;
}

/* Recognised-by images — show natural colours, taller */
.hp-marquee-wrap--ltr .hp-marquee-strip img {
    height: 80px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Client logos — slightly muted */
.hp-marquee-wrap--rtl .hp-marquee-strip img {
    height: 64px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    filter: grayscale(0.4) opacity(0.75);
    transition: filter 0.2s ease;
}
.hp-marquee-wrap--rtl .hp-marquee-strip img:hover {
    filter: none;
}

/* Divider line between the two blocks */
.hp-logos-block--clients {
    padding-top: 40px;
    border-top: 1px solid #f0f0f0;
}

/* Responsive */
@media (max-width: 768px) {
    .hp-marquee-wrap--ltr .hp-marquee-strip img { height: 60px; }
    .hp-marquee-wrap--rtl .hp-marquee-strip img { height: 48px; }
    .hp-marquee-strip { gap: 28px; }
}
@media (max-width: 480px) {
    .hp-marquee-wrap--ltr .hp-marquee-strip img { height: 40px; }
    .hp-marquee-wrap--rtl .hp-marquee-strip img { height: 34px; }
    .hp-marquee-strip { gap: 16px; }
}
