/* ==========================================================================
   Homepage SEO copy — banded layout
   Loaded only by front/index.blade.php. Scoped entirely under .seo so it
   cannot leak into the rest of the site; app.css is left untouched.
   ========================================================================== */

.seo {
    --seo-accent: #ff0c00;
    --seo-ink: #232323;
    --seo-body: #55555c;
    --seo-muted: #8a8a92;
    --seo-line: #e8e8ea;
    --seo-soft: #f7f7f8;
    --seo-radius: 10px;

    padding: 30px 0 70px;
}

/* --------------------------------------------------------- shared typography */

/*
 * The copy used to run the full width of .container-fluid, which put ~180
 * characters on a line. Everything textual is capped to a readable measure.
 */
.seo__intro {
    max-width: 820px;
    margin: 0 auto;
}

.seo__title {
    margin: 0 0 26px;
    font-size: 27px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--seo-ink);
    text-align: center;
}

.seo__paragraph {
    margin: 0 0 18px;
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--seo-body);
}

.seo__paragraph--lead {
    font-size: 18px;
    line-height: 1.65;
    font-weight: 500;
    color: var(--seo-ink);
}

/*
 * Scoped to the prose containers only. The category tiles and the product
 * cards further down are links too, and they carry their own styling from
 * app.css — a blanket `.seo a` rule repaints their titles red.
 */
.seo__paragraph a,
.seo__band-lede a,
.seo__feature-text a,
.seo__offer-text a {
    color: var(--seo-accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 12, 0, 0.28);
    transition: border-color 0.15s ease;
}

.seo__paragraph a:hover,
.seo__band-lede a:hover,
.seo__feature-text a:hover,
.seo__offer-text a:hover {
    border-bottom-color: var(--seo-accent);
}

/* ------------------------------------------------------------------- bands */

.seo__band {
    margin: 55px 0;
}

.seo__heading {
    position: relative;
    margin: 0 0 14px;
    padding-bottom: 16px;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--seo-ink);
    text-align: center;
}

.seo__heading::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 44px;
    height: 3px;
    margin-left: -22px;
    background: var(--seo-accent);
}

.seo__band-lede {
    max-width: 700px;
    margin: 0 auto 34px;
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--seo-muted);
    text-align: center;
}

/* -------------------------------------------------------- advantage cards */

.seo__features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.seo__feature {
    padding: 28px 24px;
    background: #fff;
    border: 1px solid var(--seo-line);
    border-radius: var(--seo-radius);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.seo__feature:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 12, 0, 0.35);
    box-shadow: 0 10px 26px rgba(35, 35, 35, 0.08);
}

.seo__feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: rgba(255, 12, 0, 0.08);
    color: var(--seo-accent);
}

.seo__feature-icon svg {
    width: 23px;
    height: 23px;
}

.seo__feature-title {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
    color: var(--seo-ink);
}

.seo__feature-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--seo-body);
}

/* ------------------------------------------------------- category tiles */

.seo__cats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    margin-bottom: 45px;
}

.seo__cat {
    display: block;
    border: 1px solid var(--seo-line);
    border-radius: var(--seo-radius);
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.seo__cat:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 12, 0, 0.35);
    box-shadow: 0 10px 26px rgba(35, 35, 35, 0.08);
}

.seo__cat-media {
    display: block;
    background: var(--seo-soft);
    padding: 14px;
}

.seo__cat-media img {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: contain;
}

.seo__cat-name {
    display: block;
    padding: 12px 10px 14px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--seo-ink);
}

.seo__cat:hover .seo__cat-name {
    color: var(--seo-accent);
}

/* ------------------------------------------------------------ offer list */

.seo__offers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.seo__offer {
    padding-left: 20px;
    border-left: 3px solid var(--seo-line);
    transition: border-color 0.18s ease;
}

.seo__offer:hover {
    border-left-color: var(--seo-accent);
}

.seo__offer-title {
    margin: 0 0 8px;
    font-size: 15.5px;
    line-height: 1.45;
    font-weight: 700;
    color: var(--seo-ink);
}

.seo__offer-text {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--seo-body);
}

/* --------------------------------------------------------- product strip */

.seo__band--products {
    padding: 40px 0 10px;
    border-top: 1px solid var(--seo-line);
    border-bottom: 1px solid var(--seo-line);
}

/* ------------------------------------------------------- closing / toggle */

/*
 * Collapsed with max-height rather than display:none so the copy stays in the
 * DOM and in the crawlable source.
 */
.seo__more {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}

.seo__more.is-open {
    max-height: 2000px;
}

.seo__more-btn {
    display: block;
    margin: 22px auto 0;
    padding: 11px 30px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--seo-ink);
    background: transparent;
    border: 1px solid var(--seo-line);
    border-radius: 40px;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.seo__more-btn:hover {
    color: var(--seo-accent);
    border-color: var(--seo-accent);
}

.seo__more-btn::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin: -3px 0 0 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.seo__more-btn[aria-expanded="true"]::after {
    transform: rotate(-135deg);
    margin-top: 2px;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1199px) {
    .seo__cats {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .seo__features {
        grid-template-columns: repeat(2, 1fr);
    }

    .seo__cats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .seo {
        padding: 20px 0 50px;
    }

    .seo__title {
        font-size: 22px;
    }

    .seo__heading {
        font-size: 19px;
    }

    .seo__paragraph--lead {
        font-size: 16.5px;
    }

    .seo__band {
        margin: 40px 0;
    }

    .seo__offers {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .seo__features,
    .seo__cats {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .seo__feature {
        padding: 20px 18px;
    }

    .seo__cat-media img {
        height: 90px;
    }
}

/*
 * On a phone a two-up feature grid leaves ~160px for the body copy, which
 * breaks the sentences into ribbons. Tiles keep their pairing; text does not.
 */
@media (max-width: 479px) {
    .seo__features {
        grid-template-columns: 1fr;
    }
}
