/* Homepage (templates/index.html), following homepagedesign/design.md. Scoped to .st-* */

.st-home {
    --st-surface: #FFFFFF; --st-ivory: #FAF7EF; --st-ivory-2: #F6F3EB;
    --st-primary: #F4C430; --st-primary-hover: #E5B522; --st-ink: #242424; --st-muted: #68655E; --st-line: #EAE6DA;
    font-family: 'Inter', 'Poppins', sans-serif; color: var(--st-ink); background: var(--st-ivory); overflow-x: hidden;
}
.st-home h1, .st-home h2, .st-home h3, .st-home strong { font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif; }
.st-wrap { max-width: 1440px; margin: 0 auto; padding: 0 3rem; }
@media (max-width: 991.98px) {
 .st-wrap { padding: 0 2rem; } 
}
@media (max-width: 575.98px) {
 .st-wrap { padding: 0 1.25rem; } 
}

/* shared */
.st-section { padding: 5rem 0; }
.st-alt { background: var(--st-ivory-2); }
.st-eyebrow { display: inline-block; margin-bottom: .6rem; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #755b00; }
.st-h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.2; font-weight: 700; letter-spacing: -.025em; margin: 0 0 .75rem; color: var(--st-ink); }
.st-sub { font-size: 1rem; line-height: 1.7; color: var(--st-muted); max-width: 560px; margin: 0 0 1.5rem; }
.st-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; }
.st-head .st-sub { margin-bottom: 0; }
.st-link { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600; color: var(--st-ink); text-decoration: none; padding: .4rem 0; border-bottom: 1px solid var(--st-primary); }
.st-link:hover { color: #000; border-bottom-width: 2px; }

.st-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 48px; padding: 0 1.5rem;
    border-radius: 8px; font-size: .9rem; font-weight: 600; text-decoration: none; border: 1px solid transparent;
    transition: background-color .2s, border-color .2s, transform .2s;
}
.st-btn-primary { background: var(--st-primary); color: var(--st-ink); }
.st-btn-primary:hover { background: var(--st-primary-hover); color: var(--st-ink); transform: translateY(-1px); }
.st-btn-secondary { background: var(--st-surface); color: var(--st-ink); border-color: var(--st-line); }
.st-btn-secondary:hover { background: var(--st-ivory); border-color: var(--st-ink); color: var(--st-ink); }
.st-btn:focus-visible, .st-link:focus-visible, .st-cat:focus-visible, .st-chip:focus-visible { outline: 2px solid var(--st-ink); outline-offset: 2px; }
.st-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }

              /* stays solid underneath while the next fades in: no gap */

/* 2. collection cards */
.st-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
.st-cat {
    display: flex; flex-direction: column; gap: .9rem; padding: 1rem; background: var(--st-surface); border: 1px solid var(--st-line);
    border-radius: 16px; text-decoration: none; color: var(--st-ink);
    box-shadow: 0 2px 8px -2px rgba(36, 36, 36, .04); transition: box-shadow .2s cubic-bezier(.16, 1, .3, 1), transform .2s cubic-bezier(.16, 1, .3, 1);
}
.st-cat:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -6px rgba(36, 36, 36, .08); color: var(--st-ink); }
.st-cat-media { display: block; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--st-ivory); }
.st-cat-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.st-cat:hover .st-cat-media img { transform: scale(1.05); }
.st-cat-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.st-cat-row strong { display: block; font-size: 1.05rem; }
.st-cat-row small { display: block; font-size: .8rem; color: var(--st-muted); line-height: 1.35; margin-top: .15rem; }
.st-cat-row i { flex: 0 0 32px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #ebe8e0; font-size: .75rem; transition: background-color .2s; }
.st-cat:hover .st-cat-row i { background: var(--st-primary); }

/* category tile without a photo yet: quiet icon on the ivory surface (drop a photo into the view's spec to replace) */
.st-cat-icon { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(160deg, #F6F3EB, #EDE6D3); color: #755b00; font-size: 2.4rem; }

/* feature media */
.st-frame { border-radius: 20px; overflow: hidden; border: 1px solid var(--st-line); aspect-ratio: 4 / 3; background: var(--st-ivory-2); box-shadow: 0 8px 24px -6px rgba(36, 36, 36, .08); }
.st-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-points { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: 1rem; }
.st-points li { display: flex; gap: .9rem; align-items: flex-start; }
.st-points i { flex: 0 0 40px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(244, 196, 48, .22); color: #755b00; }
.st-points strong { display: block; font-size: .95rem; }
.st-points span { display: block; font-size: .85rem; color: var(--st-muted); line-height: 1.5; }
.st-mini { list-style: none; padding: 0; margin: 0 0 1.5rem; max-width: 420px; }
.st-mini li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--st-line); font-size: .92rem; }
.st-mini a { color: var(--st-ink); font-weight: 600; text-decoration: none; }
.st-mini a:hover { text-decoration: underline; }

/* mosaic */
.st-mosaic { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 1rem; aspect-ratio: 1 / 1; max-height: 560px; }
.st-mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; border: 1px solid var(--st-line); display: block; min-height: 0; }
.st-mosaic-a { grid-row: 1 / 3; }
.st-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.st-chip { padding: .45rem 1rem; border-radius: 999px; background: var(--st-ivory-2); border: 1px solid var(--st-line); font-size: .82rem; font-weight: 500; color: var(--st-ink); text-decoration: none; transition: background-color .2s, border-color .2s; }
.st-chip:hover { background: var(--st-primary); border-color: var(--st-primary); color: var(--st-ink); }

/* kitchen treasures (#traditional): copy and category links beside a photo mosaic, other food ranges underneath */
.st-tr-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.st-tr-note { margin: 0 0 1.5rem; max-width: 520px; font-size: .95rem; line-height: 1.7; color: var(--st-muted); }
.st-tr-list { list-style: none; margin: 0 0 1.75rem; padding: 0; max-width: 520px; border-top: 1px solid var(--st-line); }
.st-tr-list a { display: grid; grid-template-columns: 6.5rem 1fr auto; align-items: baseline; gap: .75rem; padding: .85rem 0; border-bottom: 1px solid var(--st-line); text-decoration: none; color: var(--st-ink); }
.st-tr-list strong { font-size: .98rem; }
.st-tr-list span { font-size: .88rem; line-height: 1.5; color: var(--st-muted); }
.st-tr-list i { color: var(--st-ink); transition: transform .2s; }
.st-tr-list a:hover i { transform: translateX(4px); }
.st-tr-list a:hover strong { text-decoration: underline; text-decoration-color: var(--st-primary); text-underline-offset: 4px; }
.st-tr-list a:focus-visible, .st-tr-tile:focus-visible, .st-tr-mini:focus-visible { outline: 2px solid var(--st-ink); outline-offset: 2px; }

.st-tr-media { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1rem; aspect-ratio: 6 / 5; }
.st-tr-tile { position: relative; display: block; min-height: 0; overflow: hidden; border-radius: 16px; border: 1px solid var(--st-line); background: var(--st-ivory-2); }
.st-tr-a { grid-row: 1 / 3; }
.st-tr-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.st-tr-tile:hover img { transform: scale(1.03); }
.st-tr-tag { position: absolute; left: .85rem; bottom: .85rem; padding: .3rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: var(--st-ink); }

.st-tr-more { margin-top: 4rem; padding-top: 2.25rem; border-top: 1px solid var(--st-line); }
.st-tr-more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: .5rem; }
.st-tr-mini { display: flex; align-items: center; gap: 1rem; padding: .75rem 1rem .75rem .75rem; background: var(--st-surface); border: 1px solid var(--st-line); border-radius: 14px; text-decoration: none; color: var(--st-ink); transition: transform .2s, box-shadow .2s; }
.st-tr-mini:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -6px rgba(36, 36, 36, .1); color: var(--st-ink); }
.st-tr-mini img { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.st-tr-mini span { flex: 1; min-width: 0; }
.st-tr-mini strong { display: block; font-size: .98rem; }
.st-tr-mini small { display: block; margin-top: .15rem; font-size: .82rem; line-height: 1.4; color: var(--st-muted); }
.st-tr-mini i { color: var(--st-ink); transition: transform .2s; }
.st-tr-mini:hover i { transform: translateX(4px); }

@media (max-width: 991.98px) {
    .st-tr-grid { grid-template-columns: 1fr; }
    .st-tr-more-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .st-tr-media { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 150px; aspect-ratio: auto; }
    .st-tr-a { grid-row: auto; grid-column: 1 / 3; }
    .st-tr-list a { grid-template-columns: 5.5rem 1fr auto; }
    .st-tr-more { margin-top: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
 .st-tr-tile img, .st-tr-mini, .st-tr-list i, .st-tr-mini i { transition: none; } 
}

/* solar: a calm sand background, clearly apart from the ivory product sections */
.st-solar { background: #ECE3CF; border: 0; }
.st-solar .st-sub, .st-solar .st-points span { color: #5a5446; }
.st-solar .st-points i { background: rgba(255, 255, 255, .6); }
.st-solar .st-btn-secondary { background: #fff; }
.st-solar .st-wrap { position: relative; }
.st-frame-solar { aspect-ratio: 4 / 3; }

/* souvenirs banner */
.st-banner { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 21 / 8; text-decoration: none; border: 1px solid var(--st-line); }
.st-banner img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.st-banner:hover img { transform: scale(1.03); }
.st-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(36, 36, 36, .6), transparent 60%); }
.st-banner-text { position: absolute; left: 1.75rem; bottom: 1.5rem; z-index: 1; color: #fff; display: flex; flex-direction: column; }
.st-banner-text strong { font-size: 1.4rem; }
.st-banner-text small { opacity: .9; }

/* trust */
.st-trust { border-top: 1px solid var(--st-line); border-bottom: 1px solid var(--st-line); background: var(--st-surface); padding: 3rem 0; }
.st-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.st-trust i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: rgba(244, 196, 48, .22); color: #755b00; margin-bottom: .9rem; }
.st-trust h3 { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.st-trust p { font-size: .85rem; line-height: 1.55; color: var(--st-muted); margin: 0; }

/* final CTA */
.st-cta-wrap { background: var(--st-ivory); }
.st-cta {
    text-align: center; padding: 4rem 2rem; border-radius: 24px; border: 1px solid var(--st-line);
    background: radial-gradient(circle at 50% 0%, rgba(244, 196, 48, .22), transparent 60%), var(--st-surface);
}
.st-cta .st-sub { margin-left: auto; margin-right: auto; }

/* dark editorial band (between millets and coffee) */
.st-band { background: #242424; color: #fff; text-align: center; padding: 4rem 0; }
.st-band .st-eyebrow { color: #F4C430; }
.st-band .st-h2 { color: #fff; max-width: 760px; margin-left: auto; margin-right: auto; }
.st-band .st-sub { color: rgba(255, 255, 255, .78); margin-left: auto; margin-right: auto; }
.st-band .st-actions { margin-bottom: 0; }
.st-btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.st-btn-outline-light:hover { background: #fff; color: #242424; border-color: #fff; }
@media (max-width: 575.98px) {
 .st-band { padding: 2.75rem 0; } 
}

/* empty category section */
.st-soon { padding: 2rem; text-align: center; border: 1px dashed var(--st-line); border-radius: 16px; background: rgba(255, 255, 255, .6); }
.st-soon p { margin: 0 0 1rem; color: var(--st-muted); }

/* responsive */
@media (max-width: 1199.98px) {
 .st-cats { grid-template-columns: repeat(3, 1fr); } 
}
@media (max-width: 991.98px) {
    .st-section { padding: 3.5rem 0; }
    
    
    .st-trust-grid { grid-template-columns: repeat(2, 1fr); }
    .st-banner { aspect-ratio: 16 / 7; }
}
@media (max-width: 767.98px) {
    /* category rail: horizontal snap scroll, as in the reference */
    .st-cats { display: flex; overflow-x: auto; gap: 1rem; padding-bottom: .75rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
    .st-cat { flex: 0 0 62%; scroll-snap-align: start; }
}
@media (max-width: 575.98px) {
    .st-section { padding: 2.75rem 0; }
    
    .st-btn { width: 100%; }
    .st-trust-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .st-cta { padding: 2.5rem 1.25rem; }
    .st-banner { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
    .st-cat, .st-cat-media img, .st-banner img, .st-btn { transition: none; }
    .st-cat:hover, .st-btn-primary:hover { transform: none; }
}

@media (min-width: 992px) {
    
    /* viewport - header(89) - hero padding(48) - frame padding+border(34) - tabs+gap(66) */
    
}

/* 1. hero: full-bleed slider (see index.html) */
.st-hero { position: relative; background: var(--st-ink); overflow: hidden; }
.st-slides { position: relative; height: clamp(520px, 80vh, 720px); }
.st-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.st-slide.is-leaving { opacity: 1; visibility: visible; z-index: 1; transition: none; }
.st-slide.is-active { opacity: 1; visibility: visible; z-index: 2; transition: opacity .9s ease; }
.st-slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.st-slide::after { content: ""; position: absolute; inset: 0; background:
    linear-gradient(90deg, rgba(36, 36, 36, .82) 0%, rgba(36, 36, 36, .58) 42%, rgba(36, 36, 36, .12) 100%),
    linear-gradient(0deg, rgba(36, 36, 36, .55) 0%, rgba(36, 36, 36, 0) 30%); }
.st-slide-content { position: relative; z-index: 1; width: 100%; }
.st-slide-copy { max-width: 52rem; padding-left: 4rem; padding-right: 4rem; }
.st-slide-title { margin: 0 0 1.25rem; max-width: 15em; font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.12; font-weight: 700; letter-spacing: -.03em; color: #fff; text-wrap: balance; }
.st-hl { color: var(--st-primary); }
.st-slide-text { margin: 0 0 2rem; max-width: 32rem; font-size: 1.1rem; line-height: 1.7; color: rgba(255, 255, 255, .88); text-wrap: pretty; }

.st-arrow { position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -24px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: rgba(36, 36, 36, .35); color: #fff; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.st-arrow:hover { background: var(--st-primary); border-color: var(--st-primary); color: var(--st-ink); }
.st-arrow:focus-visible, .st-dot-btn:focus-visible { outline: 2px solid var(--st-primary); outline-offset: 3px; }
.st-arrow-prev { left: 1.5rem; }
.st-arrow-next { right: 1.5rem; }
.st-dots { position: absolute; left: 0; right: 0; bottom: 1.75rem; z-index: 2; display: flex; justify-content: center; gap: .6rem; }
.st-dot-btn { width: 34px; height: 18px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.st-dot-btn::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .4); transition: background-color .3s; }
.st-dot-btn:hover::before { background: rgba(255, 255, 255, .75); }
.st-dot-btn.is-active::before { background: var(--st-primary); }

@media (max-width: 991.98px) {
    .st-slide-copy { padding-left: 3.5rem; padding-right: 3.5rem; }
}
@media (max-width: 767.98px) {
    .st-slides { height: clamp(500px, 78vh, 620px); }
    .st-slide { align-items: flex-end; }
    .st-slide::after { background: linear-gradient(0deg, rgba(36, 36, 36, .88) 0%, rgba(36, 36, 36, .62) 55%, rgba(36, 36, 36, .25) 100%); }
    .st-slide-content { padding-bottom: 5.25rem; }
    .st-slide-copy { padding: 0; max-width: none; }
    .st-slide-title { max-width: none; font-size: clamp(2rem, 9.2vw, 2.85rem); line-height: 1.12; margin-bottom: .85rem; }
    .st-slide-text { max-width: none; font-size: .96rem; line-height: 1.65; margin-bottom: 1.35rem; }
    /* the site-wide small-screen rule stretches every .st-btn to full width; the hero button keeps its natural size */
    .st-slide-copy .st-btn { width: fit-content; max-width: 100%; height: 44px; padding: 0 1.15rem; font-size: .85rem; white-space: nowrap; }
    .st-arrow { top: auto; bottom: 1rem; margin-top: 0; width: 40px; height: 40px; }
    .st-arrow-prev { left: auto; right: 4.1rem; }
    .st-arrow-next { right: 1.25rem; }
    .st-dots { left: 1.25rem; right: auto; bottom: 1.8rem; gap: .25rem; }
    .st-dot-btn { width: 22px; }
}
@media (max-width: 400px) { .st-slide-title br { display: none; } }          /* very narrow: let the title wrap naturally */
@media (prefers-reduced-motion: reduce) { .st-slide, .st-slide.is-active, .st-arrow, .st-dot-btn::before { transition: none; } }

.st-arrow[hidden], .st-dots[hidden] { display: none; }
