/* ============================================
   HERO SECTION — Homepage Above-the-Fold
   Organic Urban — Split Layout with Carousel
   Desktop: text | image | Mobile: stacked
   ============================================ */

/* ============================================
   SECTION WRAPPER
   ============================================ */
.hero-premium {
    position: relative;
    background: var(--bg-cream, #FAF8F4);
    padding: 2rem 0 0;
    overflow: hidden;
    min-height: 100vh;
    box-sizing: border-box;
}

.hero-premium-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: calc(100vh - 2rem);
    box-sizing: border-box;
}

/* ============================================
   LEFT — Text Content
   ============================================ */
.hero-premium-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem 0;
}

.hero-premium-eyebrow {
    display: inline-block;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-sage, #7B9A7A);
    background: rgba(123, 154, 122, 0.1);
    border: 1px solid rgba(123, 154, 122, 0.2);
    padding: 3px 12px;
    border-radius: 20px;
    width: fit-content;
    white-space: nowrap;
}

.hero-premium-title {
    font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--text-dark, #1E1919);
    letter-spacing: -0.01em;
}

.hero-premium-subtitle {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-muted, #736C64);
    max-width: 440px;
}

/* ── Trust indicators below subtitle ─────── */
.hero-trust-row {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-top: 0.25rem;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 0.78rem;
    font-weight: 500;
    color: #8C8478;
    letter-spacing: 0.01em;
}

.hero-trust-item svg {
    width: 16px;
    height: 16px;
    color: var(--accent-sage, #7B9A7A);
    flex-shrink: 0;
}

/* CTA Buttons */
.hero-cta-group {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.6rem 1.2rem;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 0.85rem;
    font-weight: 550;
    letter-spacing: 0.02em;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
    position: relative;
    transform-style: preserve-3d;
}

.hero-cta--primary {
    background: var(--accent-sage, #7B9A7A);
    color: #fff;
    border: 1px solid var(--accent-sage, #7B9A7A);
    box-shadow: 0 4px 0 #566E56;
    transform: translateY(-2px);
}

.hero-cta--primary:hover {
    background: #6A8C69;
    border-color: #6A8C69;
    box-shadow: 0 4px 0 #4A5F4A;
    transform: translateY(-2px);
}

.hero-cta--primary:active {
    box-shadow: 0 1px 0 #566E56;
    transform: translateY(1px);
}

.hero-cta--secondary {
    background: #fff;
    color: var(--text-dark, #1E1919);
    border: 1px solid var(--border-soft, #E5E0D8);
    box-shadow: 0 4px 0 #D1Ccc4;
    transform: translateY(-2px);
}

.hero-cta--secondary:hover {
    border-color: var(--accent-sage, #7B9A7A);
    color: var(--accent-sage, #7B9A7A);
    background: #fafafa;
    box-shadow: 0 4px 0 #B8C5B8;
}

.hero-cta--secondary:active {
    box-shadow: 0 1px 0 #D1Ccc4;
    transform: translateY(1px);
}

/* ============================================
   CAROUSEL — Base (desktop only, hidden on mobile)
   ============================================ */
.hero-carousel-wrapper {
    display: none;
}

.hero-carousel-container {
    position: relative;
    border-radius: 28px;
    border: 1px solid #E7E2DA;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background: #f4f1ea;
}

.hero-carousel-track {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    min-height: 320px;
}

.hero-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    pointer-events: none;
}

.hero-carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.hero-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1);
}

.hero-carousel-slide.active img {
    animation: hero-ken-burns 5s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes hero-ken-burns {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-carousel-slide {
        transition-duration: 0.5s;
    }

    .hero-carousel-slide.active img {
        animation: none;
    }
}

.hero-carousel-slide--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8e4de 0%, #f0ebe3 100%);
    color: var(--text-muted, #736C64);
    font-size: 0.9rem;
}

.hero-carousel-prev,
.hero-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.hero-carousel-prev {
    left: 16px;
}

.hero-carousel-prev::before {
    content: "";
    width: 8px;
    height: 8px;
    border-left: 2px solid rgba(255, 255, 255, 0.9);
    border-bottom: 2px solid rgba(255, 255, 255, 0.9);
    transform: rotate(-45deg);
    margin-left: 2px;
}

.hero-carousel-next {
    right: 16px;
}

.hero-carousel-next::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255, 255, 255, 0.9);
    border-top: 2px solid rgba(255, 255, 255, 0.9);
    transform: rotate(45deg);
    margin-right: 2px;
}

.hero-carousel-prev:hover::before,
.hero-carousel-next:hover::before {
    border-color: #fff;
}

.hero-carousel-container:hover .hero-carousel-prev,
.hero-carousel-container:hover .hero-carousel-next {
    opacity: 1;
}

/* ============================================
   RIGHT — Product Image Cluster (2×2 grid) — legacy
   ============================================ */
.hero-category-block {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-category-heading {
    display: none;
}

.hero-product-cluster {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 1rem 0;
}

.hero-product-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
}

.hero-product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-product-card:hover img {
    transform: scale(1.06);
}

.hero-product-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 0.85rem 0.75rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 0.78rem;
    font-weight: 550;
    letter-spacing: 0.02em;
}

/* ============================================
   MOBILE — Premium restructure
   ============================================ */
@media screen and (max-width: 768px) {
    .hero-premium {
        padding: 10px 0 18px;
        min-height: unset;
        margin-bottom: 0;
    }

    .hero-premium-container {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 1rem;
        min-height: unset;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-premium-content {
        order: 1;
        padding: 0;
        gap: 0;
        text-align: center;
        align-items: center;
        margin-bottom: 0;
    }

    /* Slim pill — fixed 30px height, never grow when screen shrinks */
    .hero-premium-content .hero-premium-eyebrow,
    .hero-premium-eyebrow {
        font-size: 0.58rem;
        letter-spacing: 0.1em;
        height: 30px;
        max-height: 30px;
        min-height: 30px;
        padding: 0 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        margin: 0 0 0.1rem 0;
        border-width: 1px;
        border-color: rgba(123, 154, 122, 0.4);
        background: rgba(123, 154, 122, 0.08);
        box-sizing: border-box;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .hero-premium-title {
        font-size: 28px;
        line-height: 1.22;
        margin: 0 0 12px 0;
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .hero-premium-subtitle {
        font-size: 14px;
        max-width: 320px;
        line-height: 1.35;
        margin: 0.2rem 0 10px 0;
        color: #555;
    }

    /* Trust row — horizontal strip (override mobile-clean [class*="row"] column) */
    .hero-trust-row {
        flex-direction: row !important;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 0.75rem;
        margin: 0 0 14px 0;
    }

    .hero-trust-item {
        font-size: 0.7rem;
        flex-shrink: 0;
    }

    .hero-cta-group {
        display: grid;
        grid-template-columns: auto auto;
        justify-content: center;
        align-items: start;
        width: 100%;
        max-width: 100%;
        margin: 0;
        gap: 8px;
    }

    .hero-cta--full {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 0;
    }

    /* Slim hero CTAs — fixed 32px, never grow when screen shrinks */
    .hero-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        height: 32px;
        max-height: 32px;
        padding: 0 12px;
        font-size: 12.5px;
        font-weight: 600;
        box-sizing: border-box;
        border-radius: 999px;
        text-decoration: none;
        transition: all 0.25s ease;
        flex-shrink: 0;
        white-space: nowrap;
        overflow: hidden;
    }

    .hero-cta:not(.hero-cta--full) {
        width: auto;
        min-width: 120px;
        height: 32px;
        max-height: 32px;
        padding: 0 12px;
        font-size: 12.5px;
    }

    .hero-cta--full {
        width: 100%;
        height: 32px;
        max-height: 32px;
    }

    .hero-cta--primary {
        background-color: var(--accent-sage, #7B9A7A);
        color: #fff;
        border: 1px solid var(--accent-sage, #7B9A7A);
        box-shadow: 0 2px 0 #566E56;
        transform: translateY(-1px);
    }

    .hero-cta--primary:active {
        box-shadow: 0 0 0 #566E56;
        transform: translateY(1px);
    }

    .hero-cta--primary:hover {
        /* No hover on mobile typically */
        transform: none;
        box-shadow: 0 2px 0 #566E56;
    }

    .hero-cta--secondary {
        background: #fff;
        border: 1px solid rgba(92, 120, 92, 0.6);
        color: var(--accent-sage, #7B9A7A);
        box-shadow: 0 2px 0 #E0E0E0;
        transform: translateY(-1px);
    }

    .hero-cta--secondary:active {
        box-shadow: 0 0 0 #E0E0E0;
        transform: translateY(1px);
    }

    .hero-cta--secondary:hover {
        background: rgba(123, 154, 122, 0.06);
        border-color: var(--accent-sage, #7B9A7A);
    }

    .hero-category-block {
        order: 2;
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-top: 24px;
    }

    .hero-category-heading {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        margin: 0 0 0.5rem 0;
        gap: 0.5rem;
    }

    .hero-category-title {
        font-family: var(--font-sans, 'Inter', sans-serif);
        font-size: 0.9375rem;
        font-weight: 600;
        color: var(--text-dark, #1E1919);
        margin: 0;
        line-height: 1.25;
    }

    .hero-category-view-all {
        font-family: var(--font-sans, 'Inter', sans-serif);
        font-size: 0.75rem;
        font-weight: 500;
        color: var(--text-muted, #736C64);
        text-decoration: none;
        text-underline-offset: 4px;
        white-space: nowrap;
    }

    .hero-category-view-all:hover {
        color: var(--accent-sage, #7B9A7A);
    }

    .hero-product-cluster {
        display: flex;
        flex-direction: row;
        gap: 0.75rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 0 0.25rem;
        margin: 0 -0.25rem 0 0;
        scrollbar-width: none;
    }

    .hero-product-cluster::-webkit-scrollbar {
        display: none;
    }

    .hero-product-card {
        flex: 0 0 calc(50% - 0.375rem);
        min-width: calc(50% - 0.375rem);
        aspect-ratio: 1;
        border-radius: 12px;
        scroll-snap-align: start;
        box-shadow: none;
    }

    .hero-product-label {
        font-size: 0.8125rem;
        font-weight: 500;
        letter-spacing: 0.02em;
        padding: 1.5rem 0.75rem 0.5rem;
    }
}

/* ============================================
   TABLET — Adjusted proportions (769-1024px)
   ============================================ */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .hero-premium-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .hero-premium-title {
        font-size: 2rem;
    }

    .hero-product-cluster {
        gap: 10px;
    }

    .hero-trust-row {
        margin-top: 0.5rem;
    }
}

/* ============================================
   DESKTOP — Refined luxury (1024px+)
   Classic split: generous text | contained carousel
   ============================================ */
@media screen and (min-width: 1024px) {
    .hero-premium {
        min-height: 100vh;
        padding: 0;
        display: flex;
        align-items: stretch;
    }

    .hero-premium-container {
        display: grid;
        grid-template-columns: 52% 48%;
        gap: 3rem;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
        min-height: 100vh;
        align-items: center;
        width: 100%;
    }

    /* ── Left panel: text with breathing room ── */
    .hero-premium-content {
        padding: 3rem 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
    }

    .hero-premium-eyebrow {
        font-size: 0.72rem;
        letter-spacing: 0.18em;
        margin-bottom: 0;
        padding: 6px 16px;
    }

    .hero-premium-title {
        font-size: clamp(34px, 3vw, 46px);
        line-height: 1.12;
        margin-bottom: 0;
        margin-top: 0.5rem;
        color: #1E1A17;
    }

    .hero-premium-subtitle {
        font-size: 15.5px;
        line-height: 1.7;
        max-width: 420px;
        margin-bottom: 0;
        margin-top: 0.5rem;
        color: #7A7269;
    }

    /* Trust indicators */
    .hero-trust-row {
        margin-top: 0.5rem;
        margin-bottom: 0;
        gap: 1.75rem;
    }

    .hero-trust-item {
        font-size: 0.8rem;
        color: #918A82;
    }

    .hero-trust-item svg {
        width: 18px;
        height: 18px;
    }

    /* CTA group */
    .hero-cta-group {
        gap: 12px;
        margin-top: 0.5rem;
        flex-wrap: nowrap;
    }

    .hero-cta,
    .hero-cta--primary,
    .hero-cta--full {
        flex: 0 0 auto;
        padding: 13px 28px;
        font-size: 14.5px;
        border-radius: 10px;
    }

    .hero-cta--primary {
        box-shadow: 0 4px 16px rgba(123, 154, 122, 0.3);
    }

    /* ── Right panel: contained carousel with rounded corners ── */
    .hero-carousel-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 0;
        padding: 0;
    }

    .hero-carousel-container {
        width: 100%;
        height: 100%;
        min-height: 60vh;
        max-height: 65vh;
        border-radius: 24px;
        border: 1px solid #E7E2DA;
        box-shadow: 0 24px 64px rgba(0, 0, 0, 0.07);
        overflow: hidden;
        background: #f4f1ea;
    }

    .hero-carousel-track {
        width: 100%;
        height: 100%;
        min-height: 60vh;
        max-height: 65vh;
    }

    .hero-carousel-slide img {
        object-position: center 30%;
    }

    /* Nav arrows */
    .hero-carousel-prev,
    .hero-carousel-next {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.65);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .hero-carousel-prev:hover,
    .hero-carousel-next:hover {
        background: rgba(255, 255, 255, 0.85);
    }

    .hero-carousel-prev {
        left: 16px;
    }

    .hero-carousel-next {
        right: 16px;
    }
}

/* ============================================
   LARGE SCREENS (1440px+) — wider breathing room
   ============================================ */
@media screen and (min-width: 1440px) {
    .hero-premium-container {
        max-width: 1400px;
        padding: 0 3rem;
    }

    .hero-premium-title {
        font-size: 50px;
    }
}
