/* ==========================================================================
   SEO split sections + category hub page blocks (home, finance, construction)
   ========================================================================== */

/* ---- Category hub intro + tips ---- */
.cat-page-intro {
    margin-bottom: 3rem;
}

.cat-page-intro h1 {
    margin-bottom: 0.75rem;
}

.cat-page-lead {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 0 2rem;
    line-height: 1.65;
    color: var(--color-text-muted);
}

.cat-page-tips {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    margin-bottom: 3rem;
}

.cat-page-tips h2 {
    margin: 0 0 1.5rem;
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
    color: var(--color-secondary);
}

.cat-page-tips-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
}

.cat-page-tips-grid h3 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: var(--color-secondary);
}

.cat-page-tips-grid p {
    font-size: 0.9rem;
    margin: 0 0 1.25rem;
    line-height: 1.65;
    color: var(--color-text-muted);
}

.cat-page-tips-grid p:last-child {
    margin-bottom: 0;
}

.cat-page-empty {
    padding: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.cat-page-empty p {
    margin: 0;
    color: var(--color-text-muted);
}

/* ---- SEO split sections ---- */
.home-seo-sections {
    border-top: 1px solid var(--color-border);
    margin-top: 1rem;
}

.home-seo-split {
    padding: clamp(2.25rem, 4.5vw, 3.5rem) 0;
    border-bottom: 1px solid var(--color-border);
}

.home-seo-split-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.home-seo-split--reverse .home-seo-split-inner {
    direction: rtl;
}

.home-seo-split--reverse .home-seo-split-copy,
.home-seo-split--reverse .home-seo-split-visual {
    direction: ltr;
}

.home-seo-split-copy h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.25rem, 2.4vw, 1.55rem);
    line-height: 1.25;
    letter-spacing: -0.025em;
    color: var(--color-secondary);
}

.home-seo-split-copy p {
    margin: 0 0 0.85rem;
    font-size: 0.96rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.home-seo-split-copy p:last-child {
    margin-bottom: 0;
}

.home-seo-split-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.home-seo-illustration {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.home-seo-illo-concrete rect {
    animation: home-seo-stack 2.8s ease-in-out infinite;
}

.home-seo-illo-concrete rect:nth-child(2) { animation-delay: 0.2s; }
.home-seo-illo-concrete rect:nth-child(3) { animation-delay: 0.4s; }

.home-seo-illo-slab {
    animation: home-seo-pulse 2.4s ease-in-out infinite;
}

.home-seo-bar {
    transform-origin: bottom center;
    animation: home-seo-grow 2.2s ease-in-out infinite;
}

.home-seo-bar--2 { animation-delay: 0.15s; }
.home-seo-bar--3 { animation-delay: 0.3s; }
.home-seo-bar--4 { animation-delay: 0.45s; }

.home-seo-illo-trend {
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
    animation: home-seo-draw 3s ease-in-out infinite;
}

.home-seo-illo-dot {
    animation: home-seo-pulse 2s ease-in-out infinite;
}

.home-seo-illo-arrow--fwd {
    animation: home-seo-slide-right 2.4s ease-in-out infinite;
}

.home-seo-illo-arrow--back {
    animation: home-seo-slide-left 2.4s ease-in-out infinite;
}

.home-seo-illo-rate {
    animation: home-seo-fade 2.4s ease-in-out infinite;
}

.home-seo-illo-formula {
    stroke-dasharray: 180;
    stroke-dashoffset: 180;
    animation: home-seo-draw 2.8s ease-in-out infinite;
}

.home-seo-illo-formula--2 { animation-delay: 0.25s; }
.home-seo-illo-formula--3 { animation-delay: 0.5s; }
.home-seo-illo-formula--4 { animation-delay: 0.75s; }

.home-seo-illo-checkmark {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: home-seo-draw 2.2s ease-in-out infinite;
}

.home-seo-illo-house {
    animation: home-seo-pulse 3s ease-in-out infinite;
}

.home-seo-illo-pour-stream {
    animation: home-seo-pour 2s ease-in-out infinite;
}

.home-seo-illo-pour-pool {
    animation: home-seo-pulse 2.4s ease-in-out infinite;
}

.home-seo-illo-wheel {
    animation: home-seo-spin 4s linear infinite;
    transform-origin: center;
}

.home-seo-debt-card--1 { animation: home-seo-stack 2.6s ease-in-out infinite; }
.home-seo-debt-card--2 { animation: home-seo-stack 2.6s ease-in-out infinite 0.15s; }
.home-seo-debt-card--3 { animation: home-seo-stack 2.6s ease-in-out infinite 0.3s; }

.home-seo-coin--1 { animation: home-seo-stack 2.4s ease-in-out infinite; }
.home-seo-coin--2 { animation: home-seo-stack 2.4s ease-in-out infinite 0.12s; }
.home-seo-coin--3 { animation: home-seo-stack 2.4s ease-in-out infinite 0.24s; }
.home-seo-coin--4 { animation: home-seo-stack 2.4s ease-in-out infinite 0.36s; }

.home-seo-sheet--1 { animation: home-seo-stack 2.5s ease-in-out infinite; }
.home-seo-sheet--2 { animation: home-seo-stack 2.5s ease-in-out infinite 0.18s; }
.home-seo-sheet--3 { animation: home-seo-stack 2.5s ease-in-out infinite 0.36s; }

.home-seo-illo-roller {
    animation: home-seo-slide-right 2.2s ease-in-out infinite;
}

.home-seo-deck-plank {
    animation: home-seo-pulse 2.8s ease-in-out infinite;
}

.home-seo-illo-tree circle {
    animation: home-seo-pulse 3s ease-in-out infinite;
}

.home-seo-illo-waste {
    animation: home-seo-fade 2.4s ease-in-out infinite;
}

.home-seo-illo-trend--down {
    animation: home-seo-draw 3s ease-in-out infinite;
}

@keyframes home-seo-pour {
    0%, 100% { opacity: 0.5; transform: scaleY(0.85); }
    50% { opacity: 1; transform: scaleY(1); }
}

@keyframes home-seo-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes home-seo-stack {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes home-seo-pulse {
    0%, 100% { opacity: 0.65; }
    50% { opacity: 1; }
}

@keyframes home-seo-grow {
    0%, 100% { transform: scaleY(0.88); }
    50% { transform: scaleY(1); }
}

@keyframes home-seo-draw {
    0% { stroke-dashoffset: 220; opacity: 0.4; }
    45%, 55% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: -20; opacity: 0.75; }
}

@keyframes home-seo-slide-right {
    0%, 100% { transform: translateX(0); opacity: 0.7; }
    50% { transform: translateX(6px); opacity: 1; }
}

@keyframes home-seo-slide-left {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(-6px); opacity: 0.9; }
}

@keyframes home-seo-fade {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .home-seo-illo-concrete rect,
    .home-seo-illo-slab,
    .home-seo-bar,
    .home-seo-illo-trend,
    .home-seo-illo-dot,
    .home-seo-illo-arrow--fwd,
    .home-seo-illo-arrow--back,
    .home-seo-illo-rate,
    .home-seo-illo-formula,
    .home-seo-illo-checkmark,
    .home-seo-illo-house,
    .home-seo-illo-pour-stream,
    .home-seo-illo-pour-pool,
    .home-seo-illo-wheel,
    .home-seo-debt-card--1,
    .home-seo-debt-card--2,
    .home-seo-debt-card--3,
    .home-seo-coin--1,
    .home-seo-coin--2,
    .home-seo-coin--3,
    .home-seo-coin--4,
    .home-seo-sheet--1,
    .home-seo-sheet--2,
    .home-seo-sheet--3,
    .home-seo-illo-roller,
    .home-seo-deck-plank,
    .home-seo-illo-tree circle,
    .home-seo-illo-waste,
    .home-seo-illo-trend--down {
        animation: none;
        stroke-dashoffset: 0;
        transform: none;
        opacity: 1;
    }
}

@media (max-width: 1024px) {
    .home-seo-split-inner {
        grid-template-columns: 1fr;
    }

    .home-seo-split--reverse .home-seo-split-inner {
        direction: ltr;
    }

    .home-seo-split-visual {
        order: -1;
        max-width: 360px;
        margin: 0 auto;
    }

    .cat-page-tips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .home-seo-split-visual {
        max-width: 100%;
    }

    .cat-page-tips {
        padding: 1.75rem 1.25rem;
    }
}
