/* home page, storefront style: a dark hero, then calm white sections with one pink accent; builds on styles.css */

.store-wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding-inline: 16px;
}

.section {
    padding-block: 72px;
    border-top: 1px solid var(--border);
}

.section:first-child {
    border-top: 0;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px 24px;
    margin-bottom: 28px;
}

.store-section-title {
    font-family: "Archivo Black", sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.section-sub {
    max-width: 480px;
    color: var(--muted);
}

.section-link {
    font-size: 14px;
    font-weight: 600;
}

.section-link i {
    margin-left: 4px;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.section-link:hover {
    color: var(--pink);
}

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

.stars {
    display: inline-flex;
    gap: 2px;
    font-size: 12px;
    color: #e0a400;
}

/* a tile is the shared frame for every picture on the page */

.tile {
    display: block;
    aspect-ratio: 1;
    padding: 10%;
    background-color: #f3f2f4;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tile-photo {
    padding: 0;
    background-color: var(--black);
}

.tile-photo img {
    object-fit: cover;
    transition: transform 0.4s ease;
}

a:hover > .tile {
    box-shadow: inset 0 0 0 1px rgba(10, 10, 10, 0.18);
}

a:hover > .tile-photo img {
    transform: scale(1.03);
}

.tile-name {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.tile-meta {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: var(--muted);
}

.tile-meta i {
    margin-right: 2px;
}

/* top bar */

.store-top {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--black);
}

.store-top::after {
    content: "";
    display: block;
    height: 2px;
    background: var(--brand);
}

.store-top-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 32px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 12px 16px;
}

.store-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Archivo Black", sans-serif;
    font-size: 15px;
    color: white;
}

.store-brand img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
}

.store-nav {
    display: flex;
    gap: 26px;
    margin-left: auto;
    font-size: 14px;
    font-weight: 500;
    color: #d5d8de;
}

.store-nav a:hover {
    color: white;
}

.store-icons {
    display: flex;
    gap: 2px;
}

.store-icons .link {
    color: white;
}

/* hero */

.store-hero {
    color: white;
    background-color: var(--black);
}

.store-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 72px 16px 80px;
}

.store-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
}

.store-headline {
    margin-top: 16px;
    font-family: "Archivo Black", sans-serif;
    font-size: clamp(34px, 4.4vw, 52px);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.store-lead {
    max-width: 460px;
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.55;
    color: #b8bcc4;
}

.store-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.store-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
    background-color: var(--logo-pink);
    border: 1px solid var(--logo-pink);
    border-radius: 6px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.store-button:hover {
    background-color: white;
    border-color: white;
}

.store-button-ghost {
    color: white;
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.35);
}

.store-button-ghost:hover {
    color: var(--black);
}

.store-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 32px;
    font-size: 14px;
    color: #b8bcc4;
    list-style: none;
}

.store-facts i {
    margin-right: 6px;
    font-size: 12px;
    color: var(--logo-pink);
}

.store-facts a {
    color: inherit;
}

.store-facts a:hover {
    color: white;
}

.store-collage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.collage-item {
    display: block;
    overflow: hidden;
    background-color: white;
    border-radius: 8px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.collage-item img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    padding: 12% 12% 6%;
    object-fit: contain;
}

.collage-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 14px 14px;
    font-size: 13px;
    line-height: 1.3;
    color: var(--black);
}

.collage-label span {
    font-weight: 600;
}

.collage-label b {
    font-weight: 500;
    color: var(--muted);
}

.collage-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.price-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 36px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 16px;
    font-size: 14px;
    color: var(--muted);
    list-style: none;
    border-bottom: 1px solid var(--border);
}

.price-strip span {
    font-weight: 600;
    color: var(--text);
}

/* how it works: four steps joined by a light line */

.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
}

/* the line runs from the first icon to the last, behind the icons */
.steps::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 12.5%;
    right: 12.5%;
    border-top: 1px solid var(--border);
}

.step {
    padding-inline: 16px;
    text-align: center;
}

.step-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    font-size: 17px;
    color: var(--pink);
    background: #fdeaf5;
    border-radius: 50%;
    box-shadow: 0 0 0 8px var(--background);
}

.step h3 {
    font-size: 17px;
    font-weight: 700;
}

.step p {
    max-width: 230px;
    margin: 6px auto 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted);
}

.review {
    max-width: 640px;
    margin: 56px auto 0;
    text-align: center;
}

.review blockquote {
    font-size: 19px;
    font-weight: 500;
    line-height: 1.5;
    text-wrap: balance;
}

.review figcaption {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--muted);
}

/* categories, popular designs and made-to-order services */

.category-grid,
.popular-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px 16px;
}

/* eight categories sit in two even rows */
.category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 16px;
}

.service .tile {
    aspect-ratio: 4 / 3;
}

.category,
.popular-card,
.service {
    display: block;
    min-width: 0;
}

/* questions */

.faq-list {
    max-width: 760px;
    border-top: 1px solid var(--border);
}

.faq details {
    border-bottom: 1px solid var(--border);
}

.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    flex-shrink: 0;
    font-size: 20px;
    font-weight: 400;
    color: var(--muted);
    transition: transform 0.2s ease;
}

.faq details[open] summary::after {
    transform: rotate(45deg);
}

.faq summary:focus-visible {
    outline: 2px solid var(--pink);
    outline-offset: 2px;
}

.faq details p {
    max-width: 620px;
    padding: 0 0 18px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--muted);
}

/* footer */

.store-footer {
    color: #b8bcc4;
    background-color: var(--black);
}

.store-footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 32px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 56px 16px 32px;
    font-size: 14px;
    line-height: 1.6;
}

.store-footer-inner a {
    display: block;
    color: white;
}

.store-footer-inner a:hover {
    color: var(--logo-pink);
}

.store-footer-about {
    max-width: 320px;
}

.store-footer-name {
    margin-bottom: 8px;
    font-family: "Archivo Black", sans-serif;
    font-size: 18px;
    color: white;
}

.store-footer-heading {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: white;
}

.store-footer-copy {
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 16px 28px;
    font-size: 13px;
    border-top: 1px solid #23252b;
}

/* tablets */

@media (max-width: 900px) {
    .store-hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
        padding-block: 48px 56px;
    }

    .store-collage {
        max-width: 560px;
    }

    .section {
        padding-block: 56px;
    }

    .steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        max-width: 520px;
    }

    .steps::before {
        top: 24px;
        bottom: 24px;
        left: 24px;
        right: auto;
        border-top: 0;
        border-left: 1px solid var(--border);
    }

    .step {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        column-gap: 16px;
        padding-inline: 0;
        text-align: left;
    }

    .step-icon {
        grid-row: span 2;
        margin: 0;
    }

    .step h3 {
        align-self: end;
    }

    .step p {
        max-width: none;
        margin: 4px 0 0;
    }

    .popular-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .store-footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* phones: the menu moves to its own scrollable row under the logo */

@media (max-width: 640px) {
    .store-icons {
        margin-left: auto;
    }

    .store-nav {
        order: 3;
        width: 100%;
        gap: 6px;
        margin-left: 0;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .store-nav a {
        flex-shrink: 0;
        padding: 6px 12px;
        border: 1px solid #2c2f36;
        border-radius: 6px;
    }

    .store-headline {
        font-size: 34px;
    }

    .store-collage {
        gap: 10px;
    }

    .price-strip {
        justify-content: flex-start;
        gap: 6px 20px;
    }

    .review blockquote {
        font-size: 17px;
    }

    .category-grid,
    .popular-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
    }

    .store-footer-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding-top: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .collage-item,
    .tile,
    .tile-photo img,
    .section-link i,
    .faq summary::after {
        transition: none;
    }
}
