/* Home page redesign (2026-11-04, live 2026-11-06). Loaded only by home_store_content.php.
   Brand colours from style.css: accent #1fbbe7, dark #232323, font Roboto. */

/* ---- Hero banner (below the menu bar) ---- */
.cd-hero {
    position: relative;
    overflow: hidden;
    background: #232323;
    min-height: clamp(260px, 30vw, 440px);
    display: flex;
    align-items: center;
}
.cd-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center; /* keep the stylus in view when the sides are cropped (phones, tablets) */
}
.cd-hero::after { /* darken the left side so the text stays readable on any photo */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.15) 100%);
}
.cd-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--con-width, 1600px);
    margin: 0 auto;
    padding: 40px 40px;
    color: #fff;
}
.cd-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: #fff;
    color: #232323;
    padding: 6px 12px;
    border-radius: 3px;
    margin: 0 0 18px;
}
.cd-hero-eyebrow svg { width: 18px; height: 18px; flex: none; }
.cd-hero .cd-hero-title { /* h1 on home, h2 on shop */
    color: #fff;
    font-size: clamp(30px, 4.2vw, 58px);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 14px;
    max-width: 16em;
}
.cd-hero .cd-hero-title span { color: #1fbbe7; }
.cd-hero p {
    color: #fff;
    font-size: clamp(16px, 1.5vw, 21px);
    font-weight: 300;
    line-height: 1.45;
    margin: 0 0 26px;
    max-width: 34em;
}
.cd-hero-btn {
    display: inline-block;
    background: #1fbbe7;
    color: #fff !important;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none !important;
    padding: 14px 32px;
    border-radius: 3px;
    transition: background .15s;
}
.cd-hero-btn:hover, .cd-hero-btn:focus-visible { background: #1599bf; }

/* ---- Canadian owned / shipping strip ---- */
.cd-trust {
    background: #f4f4f4;
    border-bottom: 1px solid #e2e2e2;
}
.cd-trust ul {
    list-style: none;
    margin: 0 auto;
    padding: 22px 40px;
    max-width: var(--con-width, 1600px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.cd-trust li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0;
}
.cd-trust svg { width: 46px; height: 46px; flex: none; }
.cd-trust strong {
    display: block;
    font-size: 19px;
    font-weight: 700;
    color: #232323;
    line-height: 1.2;
}
.cd-trust small {
    display: block;
    font-size: 15px;
    color: #555;
    line-height: 1.3;
}

/* ---- About / vinyl story ---- */
.cd-story {
    background: radial-gradient(ellipse at 85% 30%, rgba(31,187,231,.18), transparent 55%), #161616;
    color: #fff;
    padding: 64px 40px 0;
}
.cd-story-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}
.cd-story-eyebrow {
    color: #1fbbe7;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin: 0 0 12px;
}
.cd-story h2 {
    color: #fff;
    font-size: clamp(32px, 4vw, 54px);
    font-weight: 700;
    line-height: 1.08;
    margin: 0 0 22px;
}
.cd-story h2 span {
    display: block;
    font-family: 'Lobster', cursive;
    font-weight: 400;
    color: #1fbbe7;
    font-size: 1.1em;
    margin-top: 4px;
}
.cd-story p {
    color: #d8d8d8;
    font-size: clamp(16px, 1.25vw, 19px);
    font-weight: 300;
    line-height: 1.65;
    margin: 0 0 16px;
    max-width: 40em;
}
.cd-story p em { color: #fff; font-style: italic; font-weight: 400; }
.cd-story-link {
    display: inline-block;
    margin-top: 8px;
    color: #1fbbe7 !important;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none !important;
    border-bottom: 2px solid currentColor;
    padding-bottom: 2px;
}
.cd-story-link:hover, .cd-story-link:focus-visible { color: #fff !important; }

/* spinning record (pure CSS) */
.cd-story-record { display: flex; justify-content: center; }
.cd-record {
    width: min(100%, 380px);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle, transparent 0 31%, rgba(255,255,255,.05) 31.5% 32%, transparent 32.5%),
        repeating-radial-gradient(circle, #111 0 2px, #1d1d1d 2.5px 4px),
        #111;
    box-shadow: 0 20px 50px rgba(0,0,0,.6), inset 0 0 0 6px #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: cd-spin 6s linear infinite;
}
.cd-record::before { /* light sheen; counter-rotates so it stays still while the record turns */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 20deg, transparent 0 10%, rgba(255,255,255,.12) 14%, transparent 20% 60%, rgba(255,255,255,.08) 64%, transparent 70%);
    animation: cd-spin 6s linear infinite reverse;
}
.cd-record-label {
    width: 34%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #1fbbe7;
    color: #fff;
    font-size: clamp(12px, 1.1vw, 15px);
    line-height: 1.15;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .1em;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(0,0,0,.25);
}
.cd-record-label b { font-size: 1.9em; letter-spacing: .02em; }
.cd-record-label::after { /* spindle hole */
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #161616;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
@keyframes cd-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .cd-record, .cd-record::before { animation: none; }
}

.cd-story-stats {
    list-style: none;
    max-width: 1300px;
    margin: 56px auto 0;
    padding: 28px 0 34px;
    border-top: 1px solid rgba(255,255,255,.12);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}
.cd-story-stats li { margin: 0; }
.cd-story-stats b {
    display: block;
    color: #fff;
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 700;
    line-height: 1.1;
}
.cd-story-stats span {
    display: block;
    color: #1fbbe7;
    font-size: 14px;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-top: 6px;
}

@media screen and (max-width: 900px) {
    .cd-story { padding: 44px 16px 0; }
    .cd-story-inner { grid-template-columns: 1fr; gap: 36px; }
    .cd-story-record { order: -1; }
    .cd-record { width: min(60vw, 240px); }
    .cd-story-stats { grid-template-columns: 1fr; gap: 18px; margin-top: 40px; }
}

@media screen and (max-width: 900px) {
    .cd-hero-content { padding: 32px 16px; }
    .cd-hero::after { background: rgba(0,0,0,.6); }
    .cd-trust ul { grid-template-columns: 1fr; padding: 18px 16px; gap: 14px; }
    .cd-trust li { justify-content: flex-start; }
    .cd-trust svg { width: 38px; height: 38px; }
}

/* ---- Featured item (replaces the shop list on the home page, 2026-11-04). Markup: storeFeaturedDrop()
   in toolboxes/store_preview_toolbox.php; item chosen at the top of home_store_content_preview.php. ---- */
.cd-featured { background: #f4f4f4; padding: 56px 40px 64px; }
.cd-featured-inner { max-width: 1300px; margin: 0 auto; }
.cd-featured-head { text-align: center; margin: 0 0 28px; }
.cd-featured-eyebrow {
    font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #1599bf; margin: 0 0 6px;
}
.cd-featured-head h2 { font-size: clamp(28px, 3vw, 42px); font-weight: 700; color: #232323; margin: 0; line-height: 1.1; }
ul.cdFeatureItem { list-style: none; margin: 0; padding: 0; }
.cdFeatureCard {
    display: grid;
    grid-template-columns: minmax(260px, 480px) 1fr;
    gap: 44px;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    padding: 32px;
}
.cdFtImg { position: relative; }
.cdFtImg::before { /* soft cyan glow behind the cover */
    content: ""; position: absolute; inset: 8% -4% -4% 8%; border-radius: 12px;
    background: linear-gradient(135deg, #1fbbe7, #0e6d95); opacity: .18; z-index: 0;
}
.cdFtImg img {
    position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain;
    background: #fff; border-radius: 8px; box-shadow: 0 12px 28px rgba(0,0,0,.25);
}
.cdFtBadges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.cdFtBadge {
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    padding: 4px 9px; border-radius: 3px; background: #ececec; color: #444;
}
.cdFtBadgeHot { background: #ffd400; color: #232323; }
.cdFtArtist { font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #1599bf; margin: 0 0 4px; }
.cdFtTitle { font-size: clamp(26px, 2.8vw, 40px); font-weight: 700; color: #232323; line-height: 1.1; margin: 0 0 16px; }
.cdFtText { font-size: 17px; line-height: 1.6; color: #555; margin: 0 0 20px; max-width: 38em; }
.cdFtMeta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 26px; padding: 14px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.cdFtMeta dt { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #888; margin: 0; }
.cdFtMeta dd { font-size: 15px; color: #232323; margin: 2px 0 0; }
.cdFtBuy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.cdFtPrice { font-size: 34px; font-weight: 700; color: #232323; }
.cdFtPrice.cdFtAsk { font-size: 22px; color: #1599bf; }
.cdFeatureCard a.addToCartButton {
    display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; margin: 0; width: auto;
    background: #1fbbe7; color: #fff; border: 2px solid #1fbbe7; border-radius: 6px; text-decoration: none;
    font-size: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transition: background .15s;
}
.cdFeatureCard a.addToCartButton:hover { background: #1599bf; border-color: #1599bf; }
.cdFeatureCard a.addToCartButton svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* reset the site-wide inline card rule for .addToCartButton span */
.cdFeatureCard a.addToCartButton span {
    display: inline; max-width: none; width: auto; margin: 0; padding: 0; background: none; border: 0;
    color: inherit; font: inherit; letter-spacing: inherit; white-space: nowrap;
}
.cdFeatureCard.inCart a.addToCartButton { background: #fff; color: #1599bf; }
.cdFtMore { font-size: 15px; font-weight: 700; color: #232323; text-decoration: none; border-bottom: 2px solid #1fbbe7; padding-bottom: 2px; }
.cdFtMore:hover { color: #1599bf; }
@media screen and (max-width: 900px) {
    .cd-featured { padding: 40px 16px 48px; }
    .cdFeatureCard { grid-template-columns: 1fr; gap: 26px; padding: 20px; }
    .cdFtImg { max-width: 420px; margin: 0 auto; width: 100%; }
}
@media screen and (max-width: 1060px) {
    .cdFeatureCard a.addToCartButton { display: inline-flex; width: auto; padding: 0 22px; }
}

/* Three featured products side by side (2026-11-06), stacked on phones. Overrides the single-card layout above. */
ul.cdFeatureGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
ul.cdFeatureGrid.cdFeatureCount1 { grid-template-columns: minmax(0, 1fr); max-width: 440px; margin: 0 auto; }
ul.cdFeatureGrid.cdFeatureCount2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; margin: 0 auto; }
ul.cdFeatureGrid.cdFeatureCount4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cdFeatureGrid .cdFeatureCard { display: flex; flex-direction: column; gap: 20px; padding: 24px; }
.cdFeatureGrid .cdFtImg::before { display: none; }
.cdFeatureGrid .cdFtImg img { box-shadow: none; }
.cdFeatureGrid .cdFtBody { display: flex; flex-direction: column; flex: 1 1 auto; }
.cdFeatureGrid .cdFtTitle { font-size: clamp(21px, 1.7vw, 26px); margin: 0 0 12px; }
.cdFeatureGrid .cdFtText { font-size: 16px; margin: 0 0 16px; }
.cdFeatureGrid .cdFtMeta { margin: 0 0 20px; padding: 12px 0; }
.cdFeatureGrid .cdFtBuy { margin-top: auto; justify-content: space-between; }
.cdFeatureGrid .cdFtPrice { font-size: 28px; }
.cd-featured-more { text-align: center; margin: 32px 0 0; }
@media screen and (max-width: 1100px) {
    ul.cdFeatureGrid.cdFeatureCount4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 900px) {
    ul.cdFeatureGrid, ul.cdFeatureGrid.cdFeatureCount2, ul.cdFeatureGrid.cdFeatureCount4 { grid-template-columns: 1fr; }
}

/* ---- "Follow along" band (2026-11-04): Linktree link between the Featured item and the footer ---- */
.cd-follow { background: #232323; padding: 34px 40px; }
.cd-follow-inner { max-width: 1300px; margin: 0 auto; display: flex; align-items: center; gap: 28px; }
.cd-follow-yuji { width: 110px; height: auto; flex: none; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.cd-follow-text { flex: 1 1 auto; min-width: 0; }
.cd-follow-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #1fbbe7; margin: 0 0 4px; }
.cd-follow h2 { font-size: clamp(20px, 2vw, 28px); font-weight: 700; color: #fff; margin: 0 0 6px; line-height: 1.2; }
.cd-follow p { font-size: 16px; color: #bdbdbd; margin: 0; }
.cd-follow-btn {
    flex: none; display: inline-block; padding: 14px 24px; border-radius: 6px; background: #1fbbe7; color: #fff;
    font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; transition: background .15s;
}
.cd-follow-btn:hover { background: #1599bf; color: #fff; }
@media screen and (max-width: 700px) {
    .cd-follow { padding: 30px 16px; }
    .cd-follow-inner { flex-direction: column; text-align: center; gap: 16px; }
    .cd-follow-yuji { width: 90px; }
}
