/* Spices page (templates/spices_page.html). Layout only: fonts, colours and the button/link styles come from the
   homepage design system (home_stitch.css: .st-home variables, Inter body, Plus Jakarta Sans headings, .st-btn, .st-link). */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.sp-page [id] { scroll-margin-top: 80px; }
.sp-wrap { max-width: 1240px; margin: 0 auto; padding: 0 2rem; }
@media (max-width: 575.98px) { .sp-wrap { padding: 0 1.25rem; } }

.sp-section { padding: 5.5rem 0; }
.sp-label { display: block; margin-bottom: .75rem; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #755b00; }
.sp-h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.2; font-weight: 700; letter-spacing: -.025em; margin: 0; color: var(--st-ink); }
.sp-italic { font-style: italic; font-size: 1rem; line-height: 1.7; color: var(--st-muted); margin: .9rem 0 0; }
.sp-center { text-align: center; margin-bottom: 3.5rem; }
.sp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 3rem; margin-bottom: 2.75rem; }
.sp-head .sp-italic { max-width: 360px; margin: 0; }

/* hero */
.sp-hero { position: relative; display: flex; align-items: center; justify-content: center; min-height: clamp(540px, 88vh, 820px); background: var(--st-ink); text-align: center; overflow: hidden; }
.sp-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; filter: saturate(1.12) contrast(1.04); }
.sp-hero::after { content: ""; position: absolute; inset: 0; background:
    radial-gradient(ellipse at 50% 46%, rgba(36, 36, 36, .46) 0%, rgba(36, 36, 36, .12) 70%),
    linear-gradient(180deg, rgba(36, 36, 36, .5) 0%, rgba(36, 36, 36, .28) 45%, rgba(36, 36, 36, .78) 100%); }
.sp-hero-inner { position: relative; z-index: 1; padding-top: 5.5rem; padding-bottom: 5.5rem; }
.sp-hero-eyebrow { display: inline-block; margin-bottom: 1.4rem; padding-bottom: .55rem; border-bottom: 1px solid rgba(244, 196, 48, .7); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--st-primary); }
.sp-hero-title { max-width: 860px; margin: 0 auto 1.5rem; font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.08; font-weight: 700; letter-spacing: -.035em; color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.sp-hero-title em { font-style: italic; color: var(--st-primary); }
.sp-hero-text { max-width: 640px; margin: 0 auto 2.5rem; font-size: 1.125rem; line-height: 1.75; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.sp-hero .st-btn { height: 54px; padding: 0 2rem; font-size: .95rem; box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .5); }

/* story */
.sp-story-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.sp-story-media { position: relative; margin: 0; }
.sp-story-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 60%; border-radius: 4px; box-shadow: 0 20px 44px -18px rgba(36, 36, 36, .35); }
.sp-story-media figcaption { position: absolute; right: -1.5rem; bottom: -1.5rem; max-width: 250px; padding: .95rem 1.2rem; background: var(--st-surface); border: 1px solid var(--st-line); border-radius: 4px; box-shadow: 0 12px 30px -10px rgba(36, 36, 36, .22); font-size: .95rem; font-style: italic; line-height: 1.5; color: var(--st-ink); }
.sp-story-media figcaption span { display: block; margin-bottom: .3rem; font-size: .65rem; font-style: normal; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #755b00; }
.sp-story-copy .sp-h2 { margin-bottom: 1.5rem; }
.sp-story-copy p { margin: 0 0 1.25rem; font-size: 1rem; line-height: 1.8; color: var(--st-muted); max-width: 560px; }
.sp-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 2rem 0 0; padding: 1.25rem 1.4rem; background: var(--st-ivory-2); border: 1px solid var(--st-line); border-radius: 4px; }
.sp-facts li { display: flex; flex-direction: column; gap: .2rem; }
.sp-facts i { margin-bottom: .35rem; font-size: .95rem; color: #755b00; }
.sp-facts strong { font-size: .8rem; font-weight: 700; line-height: 1.3; color: var(--st-ink); }
.sp-facts span { font-size: .72rem; line-height: 1.4; color: var(--st-muted); }
@media (max-width: 991.98px) {
    .sp-story-grid { grid-template-columns: 1fr; }
    .sp-story-media { max-width: 520px; margin: 0 auto 1.5rem; }
    .sp-story-media figcaption { right: 1rem; bottom: -1.25rem; }
}
@media (max-width: 575.98px) { .sp-facts { grid-template-columns: 1fr; gap: 1rem; } }

/* the journey: three cards joined by a fine line */
.sp-journey { background: var(--st-ivory-2); }
.sp-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin: 0; padding: 2.25rem 0 0; }
.sp-steps::before { content: ""; position: absolute; top: 0; left: 16.6%; right: 16.6%; height: 1px; background: var(--st-line); }
.sp-step { position: relative; background: var(--st-surface); padding: 1.1rem 1.1rem 1.75rem; border: 1px solid var(--st-line); border-radius: 4px; box-shadow: 0 8px 24px -6px rgba(36, 36, 36, .08); }
.sp-step::before { content: ""; position: absolute; top: -2.25rem; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--st-primary); }
.sp-step::after { content: ""; position: absolute; top: -2.25rem; left: 50%; width: 1px; height: 2.25rem; background: var(--st-line); }
.sp-step-media { position: relative; margin: 0 0 1.25rem; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; }
.sp-step-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.sp-step:hover .sp-step-media img { transform: scale(1.04); }
.sp-step-media figcaption { position: absolute; top: .8rem; left: .8rem; padding: .3rem .65rem; background: rgba(36, 36, 36, .78); color: #fff; font-size: .65rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border-radius: 2px; }
.sp-label-accent { margin-bottom: .5rem; }
.sp-step h3 { font-size: 1.3rem; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; margin: 0 0 .6rem; color: var(--st-ink); }
.sp-step p { margin: 0; font-size: .95rem; line-height: 1.7; color: var(--st-muted); }
@media (max-width: 991.98px) {
    .sp-steps { grid-template-columns: 1fr; padding-top: 0; gap: 1.5rem; }
    .sp-steps::before, .sp-step::before, .sp-step::after { display: none; }
}

/* meet the spices: one card per subcategory */
.sp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.sp-spice { display: flex; flex-direction: column; background: var(--st-surface); border: 1px solid var(--st-line); border-radius: 4px; overflow: hidden; text-decoration: none; box-shadow: 0 8px 24px -6px rgba(36, 36, 36, .08); transition: transform .25s ease, box-shadow .25s ease; }
.sp-spice:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -8px rgba(36, 36, 36, .16); }
.sp-spice-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--st-ivory-2); }
.sp-spice-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.sp-spice:hover .sp-spice-media img { transform: scale(1.05); }
.sp-spice-body { display: flex; flex-direction: column; gap: .4rem; padding: 1.35rem 1.5rem 1.6rem; flex: 1; }
.sp-spice strong { font-size: 1.3rem; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; color: var(--st-ink); }
.sp-spice-text { font-size: .92rem; line-height: 1.7; color: var(--st-muted); }
.sp-spice-link { margin-top: auto; padding-top: .6rem; font-size: .8rem; font-weight: 600; color: var(--st-ink); }
.sp-spice-link i { margin-left: .35rem; transition: transform .2s; }
.sp-spice:hover .sp-spice-link i { transform: translateX(4px); }
.sp-spice:focus-visible { outline: 2px solid var(--st-ink); outline-offset: 3px; }
@media (max-width: 991.98px) { .sp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .sp-grid { grid-template-columns: 1fr; } }

/* products */
.sp-collection { background: var(--st-ivory-2); }
.sp-empty { text-align: center; color: var(--st-muted); font-style: italic; margin: 0; }

@media (max-width: 767.98px) {
    .sp-section { padding: 3.75rem 0; }
    .sp-hero { min-height: 560px; }
    .sp-hero-inner .st-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .sp-step-media img, .sp-spice, .sp-spice-media img, .sp-spice-link i { transition: none; }
    .sp-step:hover .sp-step-media img, .sp-spice:hover .sp-spice-media img { transform: none; }
}
