/*
 * Home (landing) page styles. Everything is scoped under .pp-home and uses the
 * existing Brand: logo brown #8f4b42, dark brown #6e3832, the site's light greys, pill
 * buttons and the DM Sans body font from the layout.
 */

.pp-home {
    --pp-red: #8f4b42;
    --pp-red-dark: #6e3832;
    --pp-red-soft: #f7eeec;
    --pp-ink: #1d1d1f;
    --pp-text: #333;
    --pp-muted: #6b6b6b;
    --pp-line: #ececec;
    --pp-band: #f6f6f6;
    --pp-card: #fff;
    --pp-radius: 14px;
    --pp-shadow: 0 1px 2px rgba(20, 20, 20, 0.06), 0 4px 14px rgba(20, 20, 20, 0.06);
    --pp-shadow-hover: 0 2px 4px rgba(20, 20, 20, 0.08), 0 12px 28px rgba(20, 20, 20, 0.12);
    --pp-ease: cubic-bezier(0.2, 0, 0, 1);
    color: var(--pp-text);
}

.pp-home p {
    text-align: left;
}

.pp-home ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ---------- Hero ---------- */
/* Every slide sits in the same frame (the 2923x926 banner shape), so the
 * hero never changes height between slides; images fill it with cover. */
.pp-hero .carousel-item {
    aspect-ratio: 2923 / 926;
    background: #f1f1f1;
    overflow: hidden;
}

.pp-hero .carousel-inner img,
.pp-hero .carousel-inner img.vh-height {
    width: 100%;
    height: 100% !important;
    max-height: none;
    object-fit: cover;
    object-position: center;
}

/* Slide dots: centred along the bottom edge */
.pp-hero .home-slider .carousel-indicators {
    left: 0;
    right: 0 !important;
    bottom: 0;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0 auto 16px;
    padding: 0;
}

.pp-hero .home-slider .carousel-indicators [data-bs-target] {
    flex: none;
    width: 10px;
    height: 10px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    opacity: 1;
    transition: width 250ms var(--pp-ease), background-color 250ms var(--pp-ease);
}

.pp-hero .home-slider .carousel-indicators [data-bs-target]::after {
    display: none;
}

.pp-hero .home-slider .carousel-indicators .active {
    width: 28px;
    background: var(--pp-red);
}

.pp-hero .carousel-control-prev,
.pp-hero .carousel-control-next {
    width: 64px;
    opacity: 1;
}

.pp-hero__arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--pp-ink);
    font-size: 18px;
    box-shadow: var(--pp-shadow);
    transition: background-color 200ms var(--pp-ease), color 200ms var(--pp-ease);
}

.pp-hero .carousel-control-prev:hover .pp-hero__arrow,
.pp-hero .carousel-control-next:hover .pp-hero__arrow {
    background: var(--pp-red);
    color: #fff;
}

/* ---------- Perks strip ---------- */
.pp-perks {
    border-bottom: 1px solid var(--pp-line);
    background: #fff;
}

.pp-perks__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 22px 0 !important;
}

.pp-perks__list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 4px 12px;
}

.pp-perks__list li + li {
    border-left: 1px solid var(--pp-line);
}

.pp-perks__list .pp-perks__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(145deg, #faf4f3 0%, #f1e3e0 100%);
    box-shadow: inset 0 0 0 1px rgba(143, 75, 66, 0.08);
    color: var(--pp-red);
}

.pp-perks__list strong {
    display: block;
    color: var(--pp-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.pp-perks__list span {
    display: block;
    color: var(--pp-muted);
    font-size: 13.5px;
    line-height: 1.4;
}

/* ---------- Sections ---------- */
.pp-section {
    padding: 56px 0;
}

.pp-section + .pp-section:not(.pp-section--band) {
    padding-top: 8px;
}

.pp-section--band {
    background: var(--pp-band);
    margin: 24px 0 32px;
}

.pp-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.pp-eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--pp-red);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pp-section__title {
    margin: 0;
    color: var(--pp-ink);
    font-size: clamp(1.45rem, 1.1rem + 1vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.pp-section__sub {
    margin: 6px 0 0;
    color: var(--pp-muted);
    font-size: 15px;
}

.pp-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    min-height: 44px;
    color: var(--pp-red);
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
}

.pp-link i {
    transition: transform 200ms var(--pp-ease);
}

.pp-link:hover {
    color: var(--pp-red-dark);
}

.pp-link:hover i {
    transform: translateX(3px);
}

/* ---------- Categories ---------- */
.pp-cats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.pp-cat {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    height: 100%;
    padding: 20px 18px 18px;
    border: 1px solid var(--pp-line);
    border-radius: var(--pp-radius);
    background: var(--pp-card);
    color: var(--pp-ink);
    transition: border-color 200ms var(--pp-ease), box-shadow 200ms var(--pp-ease), transform 200ms var(--pp-ease);
}

.pp-cat__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(145deg, #faf4f3 0%, #f1e3e0 100%);
    box-shadow: inset 0 0 0 1px rgba(143, 75, 66, 0.08);
    color: var(--pp-red);
    transition: background 200ms var(--pp-ease), color 200ms var(--pp-ease), transform 200ms var(--pp-ease);
}

.pp-cat__name {
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.3;
    padding-right: 18px;
}

.pp-cat__go {
    position: absolute;
    right: 16px;
    bottom: 18px;
    color: var(--pp-muted);
    transition: transform 200ms var(--pp-ease), color 200ms var(--pp-ease);
}

.pp-cat:hover {
    border-color: var(--pp-red);
    box-shadow: var(--pp-shadow-hover);
    color: var(--pp-ink);
}

.pp-cat:hover .pp-cat__icon {
    background: var(--pp-red);
    box-shadow: none;
    color: #fff;
    transform: translateY(-2px);
}

.pp-cat:hover .pp-cat__go {
    color: var(--pp-red);
    transform: translateX(3px);
}

/* ---------- Product rail ---------- */
.pp-rail {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}

/* Journals can hold more than one row on wide screens */
.pp-section--band .pp-rail {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.pp-rail__item {
    display: flex;
    min-width: 0;
}

/* Product card and button styles live in shop.css */

/* ---------- Call to action ---------- */
.pp-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
    padding: 44px 48px;
    border-radius: 20px;
    background: var(--pp-red);
    color: #fff;
    overflow: hidden;
}

.pp-cta::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.pp-cta__text h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
    font-weight: 700;
    line-height: 1.25;
}

.pp-cta__text p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    line-height: 1.6;
}

.pp-cta__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex: none;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .pp-cats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pp-rail,
    .pp-section--band .pp-rail {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    /* Keep only full rows: 4 books, 8 journals */
    .pp-rail__item:nth-child(n + 5) {
        display: none;
    }

    .pp-section--band .pp-rail__item:nth-child(n + 5) {
        display: flex;
    }

    .pp-section--band .pp-rail__item:nth-child(n + 9) {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .pp-perks__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 16px;
    }

    .pp-perks__list li + li {
        border-left: 0;
    }

    .pp-rail,
    .pp-section--band .pp-rail {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* Two full rows of three */
    .pp-rail__item:nth-child(n + 5),
    .pp-section--band .pp-rail__item:nth-child(n + 5) {
        display: flex;
    }

    .pp-rail__item:nth-child(n + 7),
    .pp-section--band .pp-rail__item:nth-child(n + 7) {
        display: none;
    }

    .pp-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 36px 32px;
    }
}

/* Phones: products scroll sideways inside their own row */
@media (max-width: 767.98px) {
    .pp-section {
        padding: 40px 0;
    }

    .pp-section__head {
        margin-bottom: 16px;
    }

    .pp-section__sub {
        font-size: 14px;
    }

    .pp-perks__list {
        gap: 12px;
        padding: 18px 0 !important;
    }

    .pp-perks__list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 0;
    }

    .pp-perks__list .pp-perks__icon {
        width: 42px;
        height: 42px;
        border-radius: 11px;
    }

    .pp-perks__icon .pp-icon {
        width: 23px;
        height: 23px;
    }

    .pp-perks__list strong {
        font-size: 14px;
    }

    .pp-perks__list span {
        font-size: 12.5px;
    }

    .pp-cats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .pp-cat {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 14px;
    }

    .pp-cat__icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .pp-cat__icon .pp-icon {
        width: 26px;
        height: 26px;
    }

    .pp-cat__name {
        font-size: 14px;
    }

    .pp-cat__go {
        display: none;
    }

    .pp-rail,
    .pp-section--band .pp-rail {
        display: flex;
        gap: 12px;
        margin: 0 -12px;
        padding: 4px 12px 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .pp-rail::-webkit-scrollbar {
        display: none;
    }

    .pp-rail__item,
    .pp-rail__item:nth-child(n + 5),
    .pp-rail__item:nth-child(n + 7),
    .pp-section--band .pp-rail__item:nth-child(n + 5),
    .pp-section--band .pp-rail__item:nth-child(n + 7),
    .pp-section--band .pp-rail__item:nth-child(n + 9) {
        display: flex;
        flex: 0 0 46%;
        scroll-snap-align: start;
    }

    .pp-card__body {
        padding: 12px 12px 14px;
    }

    .pp-card__title {
        font-size: 14px;
    }

    .pp-card__now {
        font-size: 16px;
    }

    .pp-btn--cart {
        padding: 8px 12px;
        font-size: 14px;
    }

    .pp-cta {
        padding: 28px 22px;
        border-radius: 16px;
    }

    .pp-cta__actions,
    .pp-cta__actions .pp-btn {
        width: 100%;
    }

    .pp-hero .carousel-control-prev,
    .pp-hero .carousel-control-next {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pp-card:hover .pp-card__media img,
    .pp-link:hover i,
    .pp-cat:hover .pp-cat__go {
        transform: none;
    }
}
