/* =============================================================
   Limark Wellness — homepage.css
   Editorial homepage: Aesop × ARMRA × Navee × Nua synthesis
   ============================================================= */

/* ============================================================
   HERO — EDITORIAL DUAL-BRAND SHOWCASE
   ============================================================ */

.hero-editorial {
    position: relative;
    background: var(--off-white);
    padding: clamp(16px, 1.6vw, 24px);
    overflow: hidden;
}

.hero-editorial__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(16px, 1.6vw, 24px);
    position: relative;
    z-index: 2;
}
@media (min-width: 1024px) {
    .hero-editorial__grid { grid-template-columns: 1fr 1fr; }
}

.hero-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: clamp(24px, 2.2vw, 36px);
    display: flex;
    min-height: 600px;
    padding: clamp(2rem, 4.5vw, 4rem);
    color: var(--text-primary);
    text-decoration: none;
    transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
@media (min-width: 1024px) {
    .hero-panel {
        min-height: calc(100vh - var(--header-h) - 48px);
        max-height: 860px;
    }
}
.hero-panel:hover {
    text-decoration: none;
    color: inherit;
    box-shadow: 0 24px 60px rgba(27, 31, 75, 0.12);
}
.hero-panel:hover .hero-panel__product img {
    transform: translate(0, 0) rotate(3deg) scale(1.04);
}

.hero-panel__bg {
    position: absolute; inset: 0;
    z-index: -3;
}
.hero-panel--safease .hero-panel__bg {
    background:
        radial-gradient(ellipse at 85% 10%, rgba(74,35,102,0.28) 0%, transparent 48%),
        radial-gradient(ellipse at 20% 95%, rgba(158,42,109,0.18) 0%, transparent 58%),
        linear-gradient(148deg, #F4EDF8 0%, #E8DCEC 48%, #DCC9DF 100%);
}
.hero-panel--limark .hero-panel__bg {
    background:
        radial-gradient(ellipse at 15% 10%, rgba(27,42,91,0.22) 0%, transparent 48%),
        radial-gradient(ellipse at 85% 95%, rgba(212,168,75,0.30) 0%, transparent 58%),
        linear-gradient(148deg, #F6F0E6 0%, #EBDDC3 48%, #D9C299 100%);
}

/* Paper grain texture */
.hero-panel__noise {
    position: absolute; inset: 0;
    z-index: -2;
    background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.04) 1px, transparent 1.5px);
    background-size: 20px 20px;
    opacity: 0.55;
    pointer-events: none;
    mix-blend-mode: multiply;
}

/* Decorative element in corner */
.hero-panel__decor {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}
.hero-panel__decor img { width: 100%; height: 100%; display: block; }
.hero-panel__decor--botanical {
    top: 18%; right: 4%;
    width: 26%; max-width: 140px;
    aspect-ratio: 160 / 300;
}
.hero-panel--safease .hero-panel__decor--botanical img { filter: brightness(0) saturate(100%) invert(16%) sepia(46%) saturate(2500%) hue-rotate(262deg) brightness(90%) contrast(92%); opacity: 0.35; }
.hero-panel__decor--circles {
    top: 8%; right: 8%;
    width: 30%; max-width: 200px;
    aspect-ratio: 1/1;
}
.hero-panel--limark .hero-panel__decor--circles img { filter: brightness(0) saturate(100%) invert(13%) sepia(80%) saturate(1400%) hue-rotate(215deg) brightness(92%) contrast(95%); opacity: 0.25; }

/* Panel content grid */
.hero-panel__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: clamp(1.25rem, 2.5vw, 2rem);
    width: 100%;
}

.hero-panel__head {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    align-items: flex-start;
}
.hero-panel__eyebrow { margin: 0; color: var(--text-secondary); }
.hero-panel--safease .hero-panel__eyebrow { color: var(--safease-purple); opacity: 0.7; }
.hero-panel--limark  .hero-panel__eyebrow { color: var(--limark-navy); opacity: 0.7; }

.hero-panel__logo img {
    display: block;
    height: clamp(38px, 5vw, 56px);
    width: auto;
    max-width: 260px;
}

.hero-panel__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    max-width: 560px;
}
.hero-panel__heading {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5.2vw, 4.5rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.025em;
    margin: 0;
    color: var(--text-primary);
}
.hero-panel__heading em {
    font-style: italic;
    font-weight: 400;
}
.hero-panel--safease .hero-panel__heading em { color: var(--safease-purple); }
.hero-panel--limark  .hero-panel__heading em { color: var(--limark-berry); }

.hero-panel__sub {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.55;
    color: var(--text-secondary);
    max-width: 48ch;
    margin: 0;
}

.hero-panel__cta-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.hero-panel__rating {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fs-sm);
    color: var(--text-secondary);
}
.hero-panel__rating .star-rating { font-size: var(--fs-sm); color: var(--limark-berry); }

/* Product image — large, drifts from corner */
.hero-panel__product {
    position: absolute;
    right: -8%;
    bottom: -10%;
    width: 54%;
    max-width: 460px;
    aspect-ratio: 1 / 1;
    z-index: 1;
    pointer-events: none;
    filter: drop-shadow(0 26px 40px rgba(27, 31, 75, 0.15));
}
.hero-panel__product img {
    width: 100%; height: 100%;
    object-fit: contain;
    transform: rotate(-4deg);
    transition: transform 0.8s var(--ease);
}
.hero-panel__product--limark img { aspect-ratio: 2/3; object-fit: contain; transform: rotate(2deg); }

@media (max-width: 767px) {
    .hero-panel__product {
        position: relative; right: auto; bottom: auto;
        width: 100%; max-width: 280px;
        margin: 0.5rem auto 0;
        aspect-ratio: 1/1;
    }
    .hero-panel__product img { transform: rotate(0); }
    .hero-panel__product--limark { max-width: 200px; aspect-ratio: 2/3; }
}

@media (min-width: 1024px) {
    .hero-panel__product { right: -14%; bottom: -16%; width: 62%; }
}

.hero-panel__tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

.tab-pill {
    padding: 0.65em 1.1em;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.hero-panel--safease .tab-pill { color: var(--safease-purple); }
.hero-panel--limark  .tab-pill { color: var(--limark-navy); }

.hero-panel .btn--primary { align-self: flex-start; }

/* ============================================================
   PHILOSOPHY — Editorial manifesto
   ============================================================ */

.philosophy {
    position: relative;
    background: var(--off-white);
    padding-block: clamp(5rem, 12vw, 10rem);
    overflow: hidden;
}

.philosophy .container {
    position: relative;
    z-index: 2;
}

.philosophy__heading {
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 1.5rem 0 2rem;
}
.philosophy__heading em {
    font-style: italic;
    color: var(--limark-berry);
}
.philosophy__text {
    font-size: clamp(1.1rem, 1.6vw, 1.375rem);
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 58ch;
    margin-inline: auto;
}
.philosophy__cta { margin-top: 2.25rem; }

/* ============================================================
   FEATURED PRODUCTS STRIP
   ============================================================ */

.featured-products { background: var(--white); }

.featured-products__scroll {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}
@media (max-width: 767px) {
    .featured-products__scroll {
        grid-auto-flow: column;
        grid-template-columns: none;
        grid-auto-columns: 80%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 0 var(--space-md) 1rem;
        margin: 0 calc(-1 * var(--space-md));
        scrollbar-width: none;
    }
    .featured-products__scroll::-webkit-scrollbar { display: none; }
    .featured-products__scroll > * { scroll-snap-align: start; }
}
@media (min-width: 768px) {
    .featured-products__scroll { grid-template-columns: repeat(3, 1fr); }
}
.product-card__link-wrap { display: contents; }

/* ============================================================
   BRAND STORY BLOCKS
   ============================================================ */

.brand-story {
    padding-block: clamp(4rem, 9vw, 8rem);
    position: relative;
    overflow: hidden;
}
.brand-story--safease {
    background: linear-gradient(180deg, var(--white) 0%, var(--safease-bg) 100%);
}
.brand-story--limark {
    background: linear-gradient(180deg, var(--safease-bg) 0%, var(--limark-bg) 100%);
}

.brand-story .container { position: relative; z-index: 2; }

.brand-story__grid {
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    grid-template-columns: 1fr;
    align-items: center;
}
@media (min-width: 1024px) {
    .brand-story__grid { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 6rem); }
    .brand-story__grid--reverse > :first-child { order: 2; }
}

.brand-story__media {
    position: relative;
    margin: 0;
}
.brand-story__media-frame {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 24px 60px rgba(27, 31, 75, 0.08);
}
.brand-story__media-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}
.brand-story__media:hover .brand-story__media-frame img { transform: scale(1.05); }
.brand-story__caption {
    position: absolute;
    left: 1.25rem; bottom: 1.25rem;
    padding: 0.6em 1em;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: var(--fs-sm);
    color: var(--text-primary);
}

.brand-story__text .eyebrow { margin-bottom: 1rem; }
.brand-story__text h2 {
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
}
.brand-story__text h2 em { font-style: italic; }
.brand-story--safease .brand-story__text h2 em { color: var(--safease-purple); }
.brand-story--limark  .brand-story__text h2 em { color: var(--limark-berry); }
.brand-story__text p {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    max-width: 54ch;
}
.brand-story__text .lead {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(1.25rem, 2vw, 1.625rem);
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 1.5rem;
}
.brand-story--safease .brand-story__text .lead { color: var(--safease-purple); }
.brand-story--limark  .brand-story__text .lead { color: var(--limark-navy); }
.brand-story__text .check-list { margin: 1.5rem 0 2rem; }
.brand-story__text .btn { margin-top: 0.5rem; }

/* ============================================================
   WELLNESS CIRCLE (COMBOS)
   ============================================================ */

.wellness-circle {
    background: var(--limark-bg);
    padding-block: clamp(4rem, 9vw, 8rem);
    position: relative;
    overflow: hidden;
}
.wellness-circle .container { position: relative; z-index: 2; }

.wellness-circle .section-head h2 em {
    font-style: italic;
    color: var(--limark-berry);
}

.combo-grid {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: 1fr;
}
@media (min-width: 768px) { .combo-grid { grid-template-columns: repeat(2, 1fr); } }

.combo-card {
    background: var(--white);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color var(--t-default), transform var(--t-default), box-shadow var(--t-default);
}
.combo-card:hover {
    border-color: var(--limark-navy);
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(27, 42, 91, 0.08);
}
.combo-card__brands {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.combo-card__plus {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    color: var(--text-tertiary);
    font-weight: 400;
}
.combo-card__media {
    aspect-ratio: 7 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--warm-gray);
    margin-bottom: 0.5rem;
}
.combo-card__media img { width: 100%; height: 100%; object-fit: cover; }
.combo-card h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.15;
}
.combo-card p {
    color: var(--text-secondary);
    font-size: var(--fs-base);
    line-height: 1.6;
    margin: 0;
}
.combo-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: auto;
}
.combo-card .btn { align-self: flex-start; margin-top: 0.5rem; }
