/* ============================================================
   Deadhead Chemist — Homepage Sections CSS
   All ss-* classes used in the homepage block content
   ============================================================ */

/* ── Shared utilities ── */
.ss-container {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
}
.ss-section {
    padding-block: clamp(3.5rem, 7vw, 6rem);
}
.ss-section--alt {
    background: #0e252c;
    position: relative;
}
.ss-section--alt::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 60px, rgba(127,71,220,0.012) 60px, rgba(127,71,220,0.012) 61px);
    pointer-events: none;
}
.ss-section__header { margin-bottom: 3rem; }
.ss-section__sub { color: #9db4b8; font-size: 1.05rem; margin-top: 0.5rem; line-height: 1.65; }
.ss-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7f47dc;
    margin-bottom: 0.6rem;
}

/* ── Buttons ── */
.ss-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: var(--font-body, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif);
}
.ss-btn--accent  { background: #7f47dc; color: #081418; border-color: #7f47dc; }
.ss-btn--accent:hover { background: #6a34c4; border-color: #6a34c4; color: #081418; box-shadow: 0 0 24px rgba(127,71,220,0.4); transform: translateY(-1px); }
.ss-btn--outline { background: transparent; color: #7f47dc; border-color: #7f47dc; }
.ss-btn--outline:hover { background: rgba(127,71,220,0.1); color: #7f47dc; }
.ss-btn--lg { padding: 0.9rem 2.25rem; font-size: 1rem; }


/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.ss-hero {
    position: relative;
    min-height: min(90vh, 820px);
    display: flex;
    align-items: center;
    background: #0b1c22 url('../images/hero-banner-wide.png') center right / cover no-repeat;
    overflow: hidden;
    padding-inline: clamp(1rem, 4vw, 2rem);
}
.ss-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4,7,4,0.96) 0%, rgba(4,7,4,0.9) 38%, rgba(4,7,4,0.55) 65%, rgba(4,7,4,0.35) 100%),
        radial-gradient(ellipse 80% 80% at 70% 50%, rgba(127,71,220,0.10) 0%, transparent 65%);
    pointer-events: none;
}
@media (max-width: 860px) {
    .ss-hero__overlay {
        background:
            linear-gradient(180deg, rgba(4,7,4,0.92) 0%, rgba(4,7,4,0.86) 55%, rgba(4,7,4,0.95) 100%),
            radial-gradient(ellipse 80% 80% at 70% 50%, rgba(127,71,220,0.10) 0%, transparent 65%);
    }
}
.ss-hero__glow {
    position: absolute;
    width: 600px; height: 600px;
    top: -200px; right: -100px;
    background: radial-gradient(circle, rgba(127,71,220,0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: heroGlow 8s ease-in-out infinite;
}
@keyframes heroGlow { 0%,100%{transform:scale(1) translateY(0)} 50%{transform:scale(1.15) translateY(-20px)} }

.ss-hero__content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding-block: 5rem;
    animation: heroIn 0.8s ease both;
}
@keyframes heroIn { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }

.ss-hero__badge {
    display: inline-block;
    background: rgba(127,71,220,0.1);
    border: 1px solid rgba(127,71,220,0.35);
    color: #7f47dc;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}
.ss-hero__h1 {
    font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 0.95;
    color: #eef6f6;
    letter-spacing: 0.03em;
    margin: 0 0 0.75rem;
}
.ss-hero__h2 {
    font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 500;
    color: #9db4b8;
    line-height: 1.4;
    margin: 0 0 1.25rem;
}
.ss-hero__sub {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: #eef6f6;
    line-height: 1.7;
    max-width: 620px;
    margin-bottom: 2rem;
}
.ss-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}
.ss-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}
.ss-hero__trust span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: #9db4b8;
    font-weight: 500;
}
.ss-hero__trust svg { color: #7f47dc; flex-shrink: 0; }
.ss-hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}
.ss-hero__scroll span {
    display: block;
    width: 2px; height: 44px;
    background: linear-gradient(to bottom, #7f47dc, transparent);
    margin: 0 auto;
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:1} 50%{opacity:0.2} }


/* ══════════════════════════════════════════════
   FEATURES STRIP
   ══════════════════════════════════════════ */
.ss-features {
    background: #123039;
    border-top: 1px solid #1e2a1e;
    border-bottom: 1px solid #1e2a1e;
    padding-block: 1.5rem;
}
.ss-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}
.ss-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    transition: background 0.2s;
}
.ss-feature:hover { background: rgba(127,71,220,0.05); }
.ss-feature__icon {
    flex-shrink: 0;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    background: rgba(127,71,220,0.1);
    border: 1px solid rgba(127,71,220,0.2);
    border-radius: 14px;
}
.ss-feature strong {
    display: block;
    color: #eef6f6;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}
.ss-feature p { color: #9db4b8; font-size: 0.85rem; line-height: 1.55; margin: 0; }


/* ══════════════════════════════════════════════
   WHY ORDER
   ══════════════════════════════════════════ */
.ss-why {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: start;
}
.ss-why__media { position: relative; }
.ss-why__img-wrap {
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: #123039;
    border: 1px solid #1e2a1e;
    display: flex; align-items: center; justify-content: center;
    font-size: 8rem;
}
.ss-why__img-placeholder { font-size: 7rem; }
.ss-why__stat-card {
    position: absolute;
    background: #123039;
    border: 1px solid rgba(127,71,220,0.3);
    border-radius: 16px;
    padding: 0.9rem 1.25rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.ss-why__stat-card { bottom: -1rem; left: -1.5rem; }
.ss-why__stat-card--2 { bottom: 4.5rem; right: -1.5rem; }
.ss-why__stat-num { font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; font-size: 2rem; color: #7f47dc; line-height: 1; }
.ss-why__stat-label { font-size: 0.75rem; color: #9db4b8; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.ss-why__content h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 1.5rem; }
.ss-why__list { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 0.5rem; }
.ss-why__item { display: flex; gap: 1rem; align-items: flex-start; }
.ss-why__num {
    flex-shrink: 0;
    width: 32px; height: 32px;
    background: rgba(127,71,220,0.12);
    border: 1px solid rgba(127,71,220,0.3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: #7f47dc;
}
.ss-why__item strong { display: block; color: #eef6f6; margin-bottom: 0.25rem; font-size: 0.95rem; }
.ss-why__item p { color: #9db4b8; font-size: 0.875rem; line-height: 1.6; margin: 0; }


/* ══════════════════════════════════════════════
   CATEGORIES
   ══════════════════════════════════════════ */
.ss-cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 1rem;
}
.ss-cat-card {
    display: flex;
    flex-direction: column;
    background: #123039;
    border: 1px solid #1e2a1e;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s ease;
}
.ss-cat-card:hover {
    border-color: #7f47dc;
    box-shadow: 0 0 20px rgba(127,71,220,0.18);
    transform: translateY(-3px);
}
.ss-cat-card__icon {
    aspect-ratio: 1/1;
    background: #0e252c;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.75rem;
    transition: transform 0.3s ease;
}
.ss-cat-card:hover .ss-cat-card__icon { transform: scale(1.1); }
.ss-cat-card__body { padding: 0.85rem 1rem; }
.ss-cat-card__body strong { display: block; color: #eef6f6; font-size: 0.9rem; margin-bottom: 3px; line-height: 1.3; }
.ss-cat-card__body span { color: #9db4b8; font-size: 0.78rem; }


/* ══════════════════════════════════════════════
   EDUCATIONAL GRID
   ══════════════════════════════════════════ */
.ss-edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.ss-edu-card {
    background: #123039;
    border: 1px solid #1e2a1e;
    border-radius: 20px;
    padding: 1.75rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ss-edu-card:hover { border-color: rgba(127,71,220,0.3); box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
.ss-edu-card__icon { font-size: 2.25rem; margin-bottom: 1rem; }
.ss-edu-card h3 { font-size: 1.15rem; margin-bottom: 0.65rem; color: #eef6f6; }
.ss-edu-card p { color: #9ab89a; font-size: 0.9rem; line-height: 1.7; margin: 0; }
.ss-edu-warning {
    background: rgba(255,184,0,0.06);
    border: 1px solid rgba(255,184,0,0.2);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    color: #c8b870;
    font-size: 0.875rem;
    line-height: 1.6;
}


/* ══════════════════════════════════════════════
   WHY AWESOME
   ══════════════════════════════════════════ */
.ss-awesome {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}
.ss-awesome__content h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 1.25rem; }
.ss-awesome__content p { color: #eef6f6; font-size: 1rem; line-height: 1.8; margin-bottom: 1rem; }
.ss-awesome__stats { display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.ss-awesome__stat { text-align: center; }
.ss-awesome__stat-n { display: block; font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; font-size: 2.5rem; color: #7f47dc; line-height: 1; }
.ss-awesome__stat span { font-size: 0.78rem; color: #9db4b8; text-transform: uppercase; letter-spacing: 0.05em; }
.ss-awesome__card {
    background: #123039;
    border: 1px solid #1e2a1e;
    border-radius: 24px;
    padding: 2rem;
}
.ss-awesome__card h4 { font-size: 1.1rem; margin-bottom: 1.25rem; color: #eef6f6; }
.ss-strain-list { display: flex; flex-direction: column; gap: 0.65rem; }
.ss-strain {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #1a2a1a;
}
.ss-strain:last-child { border: none; }
.ss-strain__dot {
    width: 8px; height: 8px;
    background: #7f47dc;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.35rem;
}
.ss-strain strong { display: block; color: #eef6f6; font-size: 0.9rem; }
.ss-strain span { color: #9db4b8; font-size: 0.8rem; }


/* ══════════════════════════════════════════════
   MICRODOSING
   ══════════════════════════════════════════ */
.ss-micro { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.ss-micro__content h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 1.25rem; }
.ss-micro__content p { color: #eef6f6; font-size: 1rem; line-height: 1.8; margin-bottom: 1rem; }
.ss-micro__protocols { display: flex; flex-direction: column; gap: 0.65rem; margin-top: 1.5rem; }
.ss-micro__protocol {
    background: #123039;
    border: 1px solid #1e2a1e;
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.ss-micro__protocol strong { font-size: 0.85rem; }
.ss-micro__protocol span { color: #9db4b8; font-size: 0.82rem; line-height: 1.5; }
.ss-micro__card {
    background: #123039;
    border: 1px solid #1e2a1e;
    border-radius: 24px;
    padding: 2rem;
}
.ss-micro__card h4 { font-size: 1.1rem; margin-bottom: 1.25rem; color: #eef6f6; }
.ss-micro__benefit { display: flex; align-items: center; gap: 0.65rem; padding: 0.55rem 0; border-bottom: 1px solid #1a2a1a; }
.ss-micro__benefit:last-of-type { border: none; }
.ss-micro__benefit svg { flex-shrink: 0; }
.ss-micro__benefit span { color: #eef6f6; font-size: 0.9rem; }


/* ══════════════════════════════════════════════
   TRUST + SHIPPING
   ══════════════════════════════════════════ */
.ss-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.ss-trust__content h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1.25rem; }
.ss-trust__content p { color: #eef6f6; font-size: 1rem; line-height: 1.8; margin-bottom: 1rem; }
.ss-trust__badges { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1.75rem; }
.ss-trust__badge {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: #123039;
    border: 1px solid #1e2a1e;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    transition: border-color 0.2s;
}
.ss-trust__badge:hover { border-color: rgba(127,71,220,0.25); }
.ss-trust__badge > span { font-size: 1.25rem; flex-shrink: 0; }
.ss-trust__badge strong { display: block; color: #eef6f6; font-size: 0.85rem; margin-bottom: 2px; }
.ss-trust__badge div > span { color: #9db4b8; font-size: 0.78rem; }
.ss-trust__shipping h3 { font-size: 1.35rem; margin-bottom: 1.5rem; }
.ss-ship-steps { display: flex; flex-direction: column; gap: 1.25rem; }
.ss-ship-step { display: flex; gap: 1.25rem; }
.ss-ship-step__n {
    flex-shrink: 0;
    width: 40px; height: 40px;
    background: #7f47dc;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #081418;
    position: relative;
}
.ss-ship-step:not(:last-child) .ss-ship-step__n::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% + 1.25rem);
    background: linear-gradient(to bottom, rgba(127,71,220,0.3), transparent);
}
.ss-ship-step strong { display: block; color: #eef6f6; font-size: 1rem; margin-bottom: 0.35rem; }
.ss-ship-step p { color: #9db4b8; font-size: 0.875rem; line-height: 1.65; margin: 0; }


/* ══════════════════════════════════════════════
   PROVINCE PILLS
   ══════════════════════════════════════════ */
.ss-provs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.65rem; }
.ss-prov-pill {
    background: #123039;
    border: 1px solid #1e2a1e;
    border-radius: 9999px;
    padding: 0.45rem 1.1rem;
    color: #eef6f6;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.18s ease;
}
.ss-prov-pill:hover { border-color: #7f47dc; color: #7f47dc; background: rgba(127,71,220,0.07); }


/* ══════════════════════════════════════════════
   SEO TEXT BLOCK
   ══════════════════════════════════════════ */
.ss-seo-block { display: grid; grid-template-columns: 1fr 280px; gap: 4rem; margin-bottom: 2rem; }
.ss-seo-block__main h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
.ss-seo-block__main h3 { font-size: 1.2rem; margin-top: 1.75rem; margin-bottom: 0.65rem; }
.ss-seo-block__main p { color: #9ab89a; font-size: 0.95rem; line-height: 1.8; margin-bottom: 0.75rem; }
.ss-seo-aside-card {
    background: #123039;
    border: 1px solid #1e2a1e;
    border-radius: 20px;
    padding: 1.5rem;
    position: sticky;
    top: calc(72px + 1rem);
}
.ss-seo-aside-card h4 { font-size: 1rem; margin-bottom: 1rem; color: #eef6f6; }
.ss-seo-aside-card a { display: block; color: #9ab89a; font-size: 0.875rem; padding: 0.45rem 0; border-bottom: 1px solid #1a2a1a; text-decoration: none; transition: color 0.2s; }
.ss-seo-aside-card a:hover { color: #7f47dc; }
.ss-seo-aside-card a:last-child { border: none; }
.ss-legal { color: #4a6a4a; font-size: 0.8rem; line-height: 1.65; font-style: italic; margin-top: 2rem; }


/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .ss-why, .ss-awesome, .ss-micro, .ss-trust { grid-template-columns: 1fr; gap: 3rem; }
    .ss-seo-block { grid-template-columns: 1fr; }
    .ss-seo-aside-card { position: static; }
    .ss-why__media { max-height: 320px; }
    .ss-why__stat-card, .ss-why__stat-card--2 { display: none; }
}
@media (max-width: 768px) {
    .ss-features__grid { grid-template-columns: 1fr; }
    .ss-cats-grid { grid-template-columns: repeat(2, 1fr); }
    .ss-edu-grid { grid-template-columns: 1fr; }
    .ss-trust__badges { grid-template-columns: 1fr; }
    .ss-hero__h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
    .ss-hero__actions { flex-direction: column; align-items: flex-start; }
    .ss-awesome__stats { gap: 1.25rem; }
}
@media (max-width: 480px) {
    .ss-cats-grid { grid-template-columns: 1fr; }
    .ss-hero { min-height: 75vh; }
}

/* ── Hide categories section on mobile ── */
@media (max-width: 768px) {
    /* Target the section wrapper added by setup.php */
    .ss-cats-section {
        display: none !important;
    }
    /* Fallback: modern :has() for browsers that support it */
    section:has(.ss-cats-grid) {
        display: none !important;
    }
    /* Also hide the grid itself if the section wrapper isn't present */
    .ss-cats-grid {
        display: none !important;
    }
}

/* ── Hide why-order image placeholder on mobile ── */
@media (max-width: 768px) {
    .ss-why__media {
        display: none !important;
    }
}

/* ══════════════════════════════════════════════
   HERO OVERRIDE v11.2.4 — full-width stacked hero + readable copy + larger banner
   ══════════════════════════════════════════ */
.sbc-hero {
    background: linear-gradient(180deg, var(--sbc-dark-2, #081418) 0%, var(--sbc-bg, #0b1c22) 100%);
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--sbc-line, rgba(255,255,255,0.09));
}
.sbc-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 42px;
    align-items: start;
}
.sbc-hero__copy {
    max-width: 980px;
    margin-inline: auto;
    text-align: center;
}
.sbc-hero .sbc-hero__copy h1,
.sbc-hero h1 {
    color: var(--sbc-ink, #eef6f6);
    font-size: clamp(2.4rem, 5.2vw, 4.2rem);
    line-height: 1.12;
    margin-bottom: 18px;
}
.sbc-hero p.sbc-lede {
    color: var(--sbc-ink-soft, #9db4b8);
    font-size: 1.15rem;
    max-width: 68ch;
    margin-inline: auto;
    line-height: 1.6;
}
.sbc-hero__cta {
    justify-content: center;
    margin-top: 28px;
}
.sbc-hero__points {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 22px;
    gap: 10px 28px;
    padding: 0;
    list-style: none;
}
.sbc-hero__points li { color: var(--sbc-ink, #eef6f6); font-size: 0.95rem; }
.sbc-hero__points li::before { content: "✓"; color: var(--sbc-orange, #7f47dc); margin-right: 6px; }

.sbc-hero__media {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-template-columns: none;
}
.sbc-hero__banner {
    width: 100%;
    height: auto;
    min-height: 420px;
    max-height: 640px;
    object-fit: contain;
    border-radius: var(--sbc-radius-lg, 16px);
    box-shadow: 0 24px 70px rgba(0,0,0,0.55);
    background: var(--sbc-surface, #123039);
}
@media (min-width: 900px) {
    .sbc-hero__banner { min-height: 540px; }
}
@media (max-width: 768px) {
    .sbc-hero__grid { gap: 30px; }
    .sbc-hero__copy { text-align: left; padding: 0 6px; }
    .sbc-hero__cta,
    .sbc-hero__points { justify-content: flex-start; }
    .sbc-hero p.sbc-lede { margin-inline: 0; }
    .sbc-hero__banner { min-height: 280px; max-height: 420px; }
}
