/* ═══════════════════════════════════════════════════════
   SPRUCE UP — products.css  v1
   Sections: Hero · Categories · Find by Need · Why · CTA
═══════════════════════════════════════════════════════ */

:root {
    --sp-yellow:   #F5C800;
    --sp-charcoal: #1C1C1C;
    --sp-dark:     #141414;
    --sp-white:    #ffffff;
    --sp-gray:     #f4f4f4;
    --sp-border:   rgba(28,28,28,0.1);
    --sp-text-dim: #666666;
    --sp-font:     'Poppins', sans-serif;
    --sp-radius:   6px;
    --sp-ease:     cubic-bezier(0.4,0,0.2,1);
    --sp-trans:    0.22s var(--sp-ease);
}

.sp-section { width: 100%; }

.sp-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

/* ── Scroll reveal ── */
.sp-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.sp-reveal.is-visible { opacity: 1; transform: none; }
.sp-reveal--d1 { transition-delay: 0.08s; }
.sp-reveal--d2 { transition-delay: 0.16s; }
.sp-reveal--d3 { transition-delay: 0.24s; }
.sp-reveal--d4 { transition-delay: 0.32s; }


/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.sp-hero {
    background: var(--sp-white);
    padding: 56px 0 48px;
    border-bottom: 1px solid var(--sp-border);
}

.sp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--sp-font);
    font-size: 11px;
    color: var(--sp-text-dim);
    margin-bottom: 24px;
}
.sp-breadcrumb a {
    color: var(--sp-text-dim);
    text-decoration: none;
}
.sp-breadcrumb a:hover { color: var(--sp-charcoal); }

.sp-hero__title {
    font-family: var(--sp-font);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    color: var(--sp-charcoal);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 16px;
    max-width: 720px;
}

.sp-hero__accent {
    width: 40px;
    height: 3px;
    background: var(--sp-yellow);
    border-radius: 2px;
    margin-bottom: 20px;
}

.sp-hero__desc {
    font-family: var(--sp-font);
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    max-width: 680px;
    margin: 0 0 32px;
}

.sp-hero__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap; /* wraps gracefully on very small screens */
}


/* ════════════════════════════════════════
   BUTTONS
════════════════════════════════════════ */
.sp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--sp-font);
    font-size: 13px;
    font-weight: 600;
    padding: 13px 24px;
    border-radius: var(--sp-radius);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--sp-trans);
    letter-spacing: 0.02em;
    border: 1.5px solid transparent;
    white-space: nowrap; /* prevent wrapping/bleeding */
    flex-shrink: 0;
}
.sp-btn svg { width: 13px; height: 13px; flex-shrink: 0; transition: transform var(--sp-trans); }
.sp-btn:hover svg { transform: translateX(3px); }

.sp-btn--yellow {
    background: var(--sp-yellow);
    color: var(--sp-charcoal);
    border-color: var(--sp-yellow);
}
.sp-btn--yellow:hover { background: #e0b500; border-color: #e0b500; }

.sp-btn--dark {
    background: var(--sp-charcoal);
    color: #ffffff;
    border-color: var(--sp-charcoal);
}
.sp-btn--dark:hover { background: #333333; border-color: #333333; }

.sp-btn--outline {
    background: transparent;
    color: var(--sp-charcoal);
    border-color: var(--sp-charcoal);
}
.sp-btn--outline:hover { background: var(--sp-charcoal); color: var(--sp-white); }

.sp-btn--outline-light {
    background: transparent;
    color: var(--sp-white);
    border-color: rgba(255,255,255,0.4);
}
.sp-btn--outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
}
.sp-btn--yellow-solid {
    background: var(--sp-yellow);
    color: var(--sp-charcoal);
    border-color: var(--sp-yellow);
}
.sp-btn--yellow-solid:hover { background: #e0b500; border-color: #e0b500; }


/* ════════════════════════════════════════
   SHARED SECTION TITLES
════════════════════════════════════════ */
.sp-section-title {
    font-family: var(--sp-font);
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 700;
    color: var(--sp-charcoal);
    letter-spacing: -0.01em;
    margin: 0 0 8px;
}
.sp-section-sub {
    font-family: var(--sp-font);
    font-size: 13px;
    color: var(--sp-text-dim);
    margin: 0 0 40px;
}


/* ════════════════════════════════════════
   PRODUCT CATEGORIES
════════════════════════════════════════ */
.sp-cats {
    background: var(--sp-gray);
    padding: 64px 0;
}

.sp-cats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.sp-cat-card {
    background: var(--sp-white);
    border-radius: var(--sp-radius);
    border: 1px solid var(--sp-border);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;  /* card itself is a flex column */
}
.sp-cat-card:hover {
    box-shadow: 0 12px 48px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Image */
.sp-cat-card__img {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #e8e8e8;
}
.sp-cat-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.sp-cat-card:hover .sp-cat-card__img img { transform: scale(1.03); }

.sp-cat-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--sp-charcoal);
    color: var(--sp-white);
    font-family: var(--sp-font);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    padding: 5px 10px;
    border-radius: 20px;
}

/* Body — flex column, fills remaining card height */
.sp-cat-card__body {
    padding: 28px 28px 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex: 1;  /* stretch to fill card */
}

/* Capabilities pushed up, CTA always at bottom */
.sp-cat-card__caps { margin-bottom: 24px; flex: 1; }

.sp-cat-card__name {
    font-family: var(--sp-font);
    font-size: 20px;
    font-weight: 700;
    color: var(--sp-charcoal);
    margin: 0 0 10px;
}

.sp-cat-card__desc {
    font-family: var(--sp-font);
    font-size: 13px;
    line-height: 1.7;
    color: #555;
    margin: 0 0 18px;
}

/* Quick specs */
.sp-cat-card__specs {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 14px 0;
    border-top: 1px solid var(--sp-border);
    border-bottom: 1px solid var(--sp-border);
    margin-bottom: 18px;
}
.sp-cat-card__spec {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--sp-font);
    font-size: 11px;
    color: #444;
    font-weight: 500;
}
.sp-cat-card__spec svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--sp-charcoal);
}

/* Capabilities */
.sp-cat-card__caps { margin-bottom: 24px; }
.sp-cat-card__caps-label {
    display: block;
    font-family: var(--sp-font);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: rgba(28,28,28,0.45);
    margin-bottom: 12px;
}
.sp-cat-card__caps-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.sp-cat-card__caps-list li {
    font-family: var(--sp-font);
    font-size: 12px;
    color: #444;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.sp-cat-card__caps-list li::before {
    content: '✓';
    color: var(--sp-charcoal);
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* CTA button */
.sp-cat-card__cta {
    display: block;
    width: 100%;
    box-sizing: border-box; /* prevent width overflow */
    background: var(--sp-charcoal);
    color: var(--sp-white);
    font-family: var(--sp-font);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 15px;
    border-radius: var(--sp-radius);
    text-decoration: none;
    transition: background var(--sp-trans);
    letter-spacing: 0.02em;
}
.sp-cat-card__cta:hover { background: #333; }


/* ════════════════════════════════════════
   FIND BY NEED
════════════════════════════════════════ */
/* ════════════════════════════════════════
   PRODUCT APPLICATIONS — full-width 4-col grid
════════════════════════════════════════ */
.sp-applications {
    background: #ffffff;
    padding: 72px 0;
    border-top: 1px solid rgba(28,28,28,0.07);
}

.sp-applications__head {
    margin-bottom: 36px;
}
.sp-applications__head .sp-eyebrow {
    display: block;
    font-family: var(--sp-font);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #a07800;
    margin-bottom: 8px;
}

/* 4-column grid — all 4 apps in one row */
.sp-applications__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.sp-app-card {
    background: #ffffff;
    border: 1px solid rgba(28,28,28,0.09);
    border-radius: 10px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.sp-app-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.09);
    transform: translateY(-2px);
    border-color: rgba(245,200,0,0.4);
}

.sp-app-card__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(245,200,0,0.1);
    border: 1px solid rgba(245,200,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a07800;
}
.sp-app-card__icon svg { width: 20px; height: 20px; }

.sp-app-card__label {
    display: block;
    font-family: var(--sp-font);
    font-size: 14px;
    font-weight: 700;
    color: var(--sp-charcoal);
    margin-bottom: 4px;
}
.sp-app-card__desc {
    display: block;
    font-family: var(--sp-font);
    font-size: 12px;
    color: #666666;
    line-height: 1.6;
}

/* ════════════════════════════════════════
   SERVICE & SUPPORT — separate section
════════════════════════════════════════ */
.sp-support {
    background: #f5f5f3;
    padding: 72px 0;
    border-top: 1px solid rgba(28,28,28,0.07);
}

.sp-support__head {
    margin-bottom: 36px;
}
.sp-support__head .sp-eyebrow {
    display: block;
    font-family: var(--sp-font);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #a07800;
    margin-bottom: 8px;
}

/* 4-column service cards */
.sp-support__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.sp-svc-card {
    background: #ffffff;
    border: 1px solid rgba(28,28,28,0.09);
    border-radius: 10px;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}
.sp-svc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--sp-yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.sp-svc-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.09);
    transform: translateY(-2px);
}
.sp-svc-card:hover::before { transform: scaleX(1); }

.sp-svc-card__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(245,200,0,0.1);
    border: 1px solid rgba(245,200,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a07800;
}
.sp-svc-card__icon svg { width: 18px; height: 18px; }

.sp-svc-card__label {
    display: block;
    font-family: var(--sp-font);
    font-size: 14px;
    font-weight: 700;
    color: var(--sp-charcoal);
}
.sp-svc-card__desc {
    display: block;
    font-family: var(--sp-font);
    font-size: 12px;
    color: #666666;
    line-height: 1.65;
}


/* ════════════════════════════════════════
   WHY SPRUCE UP — white bg, 3×2 grid
════════════════════════════════════════ */
.sp-why {
    background: #ffffff;
    padding: 80px 0;
    border-top: 1px solid rgba(28,28,28,0.07);
}

.sp-why__head {
    text-align: center;
    margin-bottom: 48px;
}
.sp-why__head .sp-eyebrow {
    display: block;
    font-family: var(--sp-font);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #a07800;
    margin-bottom: 10px;
}
.sp-why__head .sp-section-title {
    color: var(--sp-charcoal);
    margin-bottom: 10px;
}
.sp-why__head .sp-section-sub {
    color: #666666;
    font-size: 15px;
}

/* 3 columns × 2 rows */
.sp-why__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.sp-why-col {
    background: #ffffff;
    border: 1px solid rgba(28,28,28,0.09);
    border-radius: 12px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.sp-why-col:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.09);
    transform: translateY(-2px);
}

.sp-why-col__icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(245,200,0,0.1);
    border: 1px solid rgba(245,200,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a07800;
    margin-bottom: 16px;
    flex-shrink: 0;
}
.sp-why-col__icon svg { width: 18px; height: 18px; }

.sp-why-col__title {
    font-family: var(--sp-font);
    font-size: 15px;
    font-weight: 700;
    color: var(--sp-charcoal);
    margin: 0 0 14px;
    letter-spacing: 0.01em;
}

.sp-why-col__points {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1;
}
.sp-why-col__points li {
    font-family: var(--sp-font);
    font-size: 12px;
    color: #555555;
    line-height: 1.55;
    padding-left: 14px;
    position: relative;
}
.sp-why-col__points li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #a07800;
    font-size: 14px;
    line-height: 1.3;
}

.sp-why-col__close {
    font-family: var(--sp-font);
    font-size: 11.5px;
    font-weight: 700;
    font-style: italic;
    color: #a07800;
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(28,28,28,0.08);
    line-height: 1.5;
}
.sp-cat-card__sub {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--sp-font);
    font-size: 12px;
    font-weight: 600;
    color: #1D9E75;
    background: rgba(29,158,117,0.07);
    border: 1px solid rgba(29,158,117,0.18);
    border-radius: 6px;
    padding: 7px 12px;
    margin: 14px 0 18px;
}
.sp-cat-card__sub svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #1D9E75;
}

/* Sub-headline mechanism line on category cards */


/* ════════════════════════════════════════
   BOTTOM CTA BAND
════════════════════════════════════════ */
.sp-cta-band {
    background: #ffffff;
    border-top: 1px solid rgba(28,28,28,0.08);
    padding: 72px 48px;
    text-align: center;
}

.sp-cta-band__title {
    font-family: var(--sp-font);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    color: var(--sp-charcoal);
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}
.sp-cta-band__desc {
    font-family: var(--sp-font);
    font-size: 14px;
    line-height: 1.7;
    color: #666666;
    margin: 0 0 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.sp-cta-band__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}


/* ════════════════════════════════════════
   RECOGNIZED BY + OUR CLIENTS — 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;
}
.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;
}
.hp-marquee-strip {
    display: inline-flex;
    align-items: center;
    gap: 48px;
    white-space: nowrap;
}
.hp-marquee-wrap--ltr .hp-marquee-strip { animation: hp-ltr 22s linear infinite; }
.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); }
}
.hp-marquee-wrap:hover .hp-marquee-strip { animation-play-state: paused; }
.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;
}
.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; }
.hp-logos-block--clients { padding-top: 40px; border-top: 1px solid #f0f0f0; }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1024px) {
    .sp-inner { padding: 0 32px; }
    .sp-cats__grid { grid-template-columns: 1fr; }
    .sp-applications__grid { grid-template-columns: repeat(2, 1fr); }
    .sp-support__grid { grid-template-columns: repeat(2, 1fr); }
    .sp-why__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sp-inner { padding: 0 20px; }
    .sp-hero { padding: 40px 0 36px; }
    .sp-cats { padding: 48px 0; }
    .sp-applications { padding: 48px 0; }
    .sp-support { padding: 48px 0; }
    .sp-why { padding: 48px 0; }
    .sp-cta-band { padding: 56px 20px; }
    .sp-applications__grid { grid-template-columns: repeat(2, 1fr); }
    .sp-support__grid { grid-template-columns: repeat(2, 1fr); }
    .sp-why__grid { grid-template-columns: repeat(2, 1fr); }
    .sp-cat-card__caps-list { grid-template-columns: 1fr; }
    .sp-hero__actions { flex-direction: row; flex-wrap: wrap; }
    .sp-cta-band__actions { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .sp-applications__grid { grid-template-columns: 1fr; }
    .sp-support__grid { grid-template-columns: 1fr; }
    .sp-why__grid { grid-template-columns: 1fr; }
}
