/* ============================================================
   SPECIALTIES CATEGORY PAGE  —  Mediterranean Pantry
   Prefix: .sp-*
   Sections: hero · intro · grid · crosslinks
   ============================================================ */

/* ── Shared containers ────────────────────────────────────── */
.sp-hero__inner,
.sp-intro__inner,
.sp-grid__inner,
.sp-crosslinks__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ── Shared typography helpers ────────────────────────────── */
.sp-section__eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7a5a16;
    margin-bottom: 14px;
}

.sp-section__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--color-dark-green);
    margin: 0 0 18px;
    line-height: 1.15;
}

.sp-section__title--light { color: #fff; }

.sp-section__line {
    width: 50px;
    height: 2px;
    background: var(--color-gold);
    margin-bottom: 28px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.sp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: background var(--transition-base), transform var(--transition-fast);
    margin-top: 32px;
}

.sp-btn--dark {
    background: var(--color-dark-green);
    color: #fff;
}

.sp-btn--dark:hover {
    background: var(--color-olive-green);
    transform: translateX(4px);
}

/* ============================================================
   1. HERO
   Full-height image with centred text overlay
   ============================================================ */
.sp-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-dark-green);
}

.sp-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: transform 8s ease-out;
}

.sp-hero:hover .sp-hero__bg { transform: scale(1); }

.sp-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(20, 39, 26, 0.55) 0%,
        rgba(20, 39, 26, 0.68) 60%,
        rgba(20, 39, 26, 0.80) 100%
    );
}

.sp-hero__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 780px;
}

.sp-hero__eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.sp-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 22px;
    line-height: 1.08;
}

.sp-hero__line {
    width: 60px;
    height: 2px;
    background: var(--color-gold);
    margin: 0 auto 28px;
}

.sp-hero__subtitle {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
    margin: 0 auto;
    max-width: 600px;
}

/* ============================================================
   2. INTRO
   Split: text left, image right
   ============================================================ */
.sp-intro {
    background: var(--color-cream, #faf5ee);
    padding: 100px 0;
}

.sp-intro__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.sp-intro__text {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--color-text-dark);
    margin: 0;
}

.sp-intro__visual {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.10);
}

.sp-intro__img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.sp-intro__visual:hover .sp-intro__img { transform: scale(1.03); }

.sp-intro .hero-scroll-indicator span {
    color: #4f5a49;
    opacity: 0.82;
}

.sp-intro .hero-scroll-indicator {
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    animation: none;
    margin-top: 24px;
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
}

/* ============================================================
   3. PRODUCT GRID
   4-column card layout on white background
   ============================================================ */
.sp-grid {
    background: #fff;
    padding: 100px 0;
}

.sp-grid__header {
    text-align: center;
    margin-bottom: 64px;
}

.sp-grid__header .sp-section__line {
    margin: 0 auto 0;
}

.sp-grid__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
}

/* ── Product card ─────────────────────────────────────────── */
.sp-card {
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-cream, #faf5ee);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    display: flex;
    flex-direction: column;
}

.sp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.10);
}

.sp-card__img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f0ebe1;
}

.sp-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.sp-card:hover .sp-card__img { transform: scale(1.06); }

.sp-card__tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--color-dark-green);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 3px;
}

.sp-card__body {
    padding: 24px 20px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sp-card__name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-dark-green);
    margin: 0;
    line-height: 1.25;
}

.sp-card__desc {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--color-text-dark);
    opacity: 0.8;
    margin: 0;
    flex: 1;
}

/* ============================================================
   4. CROSSLINKS
   3-column circle cards on dark green
   ============================================================ */
.sp-crosslinks {
    position: relative;
    background-image: url('/assets/images/homepage/bg-brand.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
}

.sp-crosslinks::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.72);
    z-index: 0;
    pointer-events: none;
}

.sp-crosslinks__inner {
    position: relative;
    z-index: 1;
}

.sp-crosslinks__header {
    text-align: center;
    margin-bottom: 60px;
    
}

.sp-crosslinks__header .sp-section__title--light {
    color: var(--color-dark-green);
}

.sp-crosslinks__header .sp-section__line {
    margin: 0 auto 24px;
}

.sp-crosslinks__subtitle {
    font-size: 1rem;
    color: var(--color-text-dark);
    margin: 0;
}

.sp-crosslinks__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    max-width: 840px;
    margin: 0 auto;
}

.sp-crosslink-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    transition: transform var(--transition-base);
}

.sp-crosslink-card:hover { transform: translateY(-6px); }

.sp-crosslink-card__circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(193, 154, 70, 0.35);
    transition: border-color var(--transition-base);
}

.sp-crosslink-card:hover .sp-crosslink-card__circle {
    border-color: var(--color-gold);
}

.sp-crosslink-card__circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sp-crosslink-card:hover .sp-crosslink-card__circle img { transform: scale(1.08); }

.sp-crosslink-card__name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark-green);
    text-align: center;
}

.sp-crosslink-card__arrow {
    display: flex;
    align-items: center;
    color: var(--color-dark-green);
    transition: transform var(--transition-fast);
}

.sp-crosslink-card:hover .sp-crosslink-card__arrow { transform: translateX(5px); }

/* ============================================================
   5. RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .sp-grid__list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .sp-hero__inner,
    .sp-intro__inner,
    .sp-grid__inner,
    .sp-crosslinks__inner {
        padding: 0 32px;
    }

    .sp-intro__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .sp-intro__img { height: 360px; }

    .sp-crosslinks__grid { gap: 32px; }

    .sp-crosslink-card__circle { width: 130px; height: 130px; }
}

@media (max-width: 768px) {
    .sp-hero { min-height: 70vh; }

    .sp-hero__inner,
    .sp-intro__inner,
    .sp-grid__inner,
    .sp-crosslinks__inner {
        padding: 0 24px;
    }

    .sp-intro { padding: 72px 0; }

    .sp-intro .hero-scroll-indicator span {
        color: #3f493a;
        opacity: 1;
        font-weight: 600;
    }

    .sp-grid { padding: 72px 0; }

    .sp-grid__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .sp-crosslinks { padding: 72px 0; }

    .sp-crosslinks__grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .sp-grid__list {
        grid-template-columns: 1fr;
    }

    .sp-intro .hero-scroll-indicator {
        margin-top: 20px;
    }

    .sp-btn {
        width: 100%;
        justify-content: center;
    }
}
