/* ============================================
   CONCEPTS.CSS — Website Concepts Showcase Page
   ============================================ */

/* ============================================
   1. HERO
   ============================================ */

.concepts-hero {
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    padding: 6rem 0 4rem;
}

.concepts-hero__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.concepts-hero__label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--purple-accent);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.concepts-hero__title {
    font-family: 'Geist', 'Inter', sans-serif;
    font-size: clamp(4.5rem, 12vw, 10rem);
    font-weight: 800;
    letter-spacing: -4px;
    line-height: 0.9;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.concepts-hero__sub {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.65;
}

/* ============================================
   2. STACKED CARDS
   ============================================ */

.concepts-stack {
    height: 500vh;
    position: relative;
}

.concepts-sticky-wrapper {
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
}

/* Progress indicator */
.concepts-progress {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.28);
    z-index: 100;
    pointer-events: none;
    user-select: none;
}
#concepts-progress-num {
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.4s ease;
}

.concept-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 55px);
    border-radius: 0;
    overflow: hidden;
    background: var(--bg-secondary);
    will-change: transform, opacity, filter;
    pointer-events: all;
    cursor: default;
}

/* ============================================
   3. CONCEPT CARD VISUALS (Real Image Layers)
   ============================================ */

/* Static z-index for fan ordering — card 0 on top */
.concept-card[data-index="0"] { z-index: 4; }
.concept-card[data-index="1"] { z-index: 3; }
.concept-card[data-index="2"] { z-index: 2; }
.concept-card[data-index="3"] { z-index: 1; }

.concept-card__visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* Background image — fills the entire card */
.concept-card__visual .cc-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    will-change: transform;
    transform: scale(1.06); /* pre-scale so parallax never shows edges */
}

/* Side / overlay images — promoted for GPU compositing */
.concept-card__visual .cc-left,
.concept-card__visual .cc-right,
.concept-card__visual .cc-smoke {
    will-change: transform;
}

/* Gradient overlay — dark at bottom for text legibility */
.concept-card__visual .cc-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.18) 50%, transparent 100%);
}

/* Light overlay for Clothing Brand (light background) */
.concept-card__visual .cc-overlay--light {
    background: linear-gradient(to top, rgba(246, 244, 239, 0.92) 0%, rgba(246, 244, 239, 0.45) 50%, transparent 100%);
}

/* --- Hagn: beer bottles --- */
.concept-card--hagn .cc-left,
.concept-card--hagn .cc-right {
    position: absolute;
    bottom: 0;
    height: 88%;
    width: auto;
    z-index: 2;
    object-fit: contain;
    object-position: bottom;
}
.concept-card--hagn .cc-left  { left: 0; }
.concept-card--hagn .cc-right { right: 0; }

/* --- Pizza: left/right food images --- */
.concept-card--pizza .cc-left,
.concept-card--pizza .cc-right {
    position: absolute;
    bottom: 0;
    height: 84%;
    width: auto;
    z-index: 2;
    object-fit: contain;
    object-position: bottom;
}
.concept-card--pizza .cc-left  { left: 0; }
.concept-card--pizza .cc-right { right: 0; }

/* --- Mexican: cowboy, cactus, smoke --- */
.concept-card--mexican .cc-left {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 86%;
    width: auto;
    z-index: 2;
    object-fit: contain;
    object-position: bottom;
}
.concept-card--mexican .cc-right {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 68%;
    width: auto;
    z-index: 2;
    object-fit: contain;
    object-position: bottom;
}
.concept-card--mexican .cc-smoke {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 3;
    opacity: 0.35;
    mix-blend-mode: screen;
}

/* --- Clothing Brand: wordmark --- */
.cc-wordmark {
    height: 2.2rem;
    width: auto;
    display: block;
    margin-bottom: 0.6rem;
}

/* Clothing Brand: subtle bottom fade for text readability (no overlay) */
.concept-card--clothing .concept-card__info {
    background: linear-gradient(to top, rgba(240, 236, 228, 0.72) 0%, transparent 80%);
    border-radius: 0 0 20px 20px;
}

/* Dark text overrides for Clothing Brand (light background) */
.concept-card__info--dark .concept-card__tag--dark {
    color: rgba(30, 20, 10, 0.6);
}
.concept-card__info--dark .concept-card__desc--dark {
    color: rgba(30, 20, 10, 0.55);
}
.concept-card__number--dark {
    color: rgba(30, 20, 10, 0.25);
}

/* ============================================
   4. CONCEPT CARD INFO
   ============================================ */

.concept-card__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    z-index: 2;
}

.concept-card__tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--purple-accent);
    opacity: 0.85;
    margin-bottom: 0.75rem;
}

.concept-card__name {
    font-family: 'Geist', 'Inter', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.concept-card__desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 420px;
    line-height: 1.6;
}

.concept-card__number {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    font-family: 'Geist', 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    opacity: 0.25;
    z-index: 2;
}

/* ============================================
   5. CTA SECTION
   ============================================ */

.concepts-cta {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.concepts-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(142, 68, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.concepts-cta__inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.concepts-cta__eyebrow {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--purple-accent);
    opacity: 0.75;
    margin-bottom: 1.5rem;
}

.concepts-cta__title {
    font-family: 'Geist', 'Inter', sans-serif;
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 0.95;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.concepts-cta__sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.concepts-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: var(--purple-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, transform 0.2s ease;
}

.concepts-cta__btn:hover {
    background: var(--purple-accent);
    transform: translateY(-2px);
}

/* ============================================
   6. SERVICE CARD LINK (index.html)
   ============================================ */

.service-card__link {
    display: inline-block;
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: var(--purple-accent);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
    position: relative;
    z-index: 1;
    -webkit-tap-highlight-color: transparent;
}

.service-card__link:hover {
    color: var(--purple-light);
}

.service-card__link:active,
.service-card__link:visited,
.service-card__link:focus {
    color: var(--purple-accent);
}

/* ============================================
   7. RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .concepts-hero {
        min-height: 50vh;
        padding: 4rem 0 3rem;
    }

    .concepts-hero__title {
        letter-spacing: -2px;
    }

    .concepts-sticky-wrapper {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .concept-card {
        height: calc(100% - 40px);
    }

    .concept-card__info {
        padding: 1.5rem;
    }

    .concept-card__name {
        font-size: clamp(1.6rem, 6vw, 2.5rem);
    }

    .concepts-cta__title {
        letter-spacing: -1px;
    }

    .concepts-cta__btn {
        padding: 0.9rem 2rem;
    }

    /* ---- Mobile image sizing ---- */

    /* Hagn beer bottles — smaller, more centred */
    .concept-card--hagn .cc-left,
    .concept-card--hagn .cc-right {
        height: 68%;
        opacity: 0.85;
    }

    /* Pizza food images — reduce */
    .concept-card--pizza .cc-left {
        height: 66%;
        left: 0;
    }
    .concept-card--pizza .cc-right {
        height: 66%;
        right: 0;
    }

    /* Mexican — smaller cowboy/cactus */
    .concept-card--mexican .cc-left {
        height: 64%;
    }
    .concept-card--mexican .cc-right {
        height: 50%;
    }

    /* Fan offset reduced so cards don't spill off screen */
    /* (JS uses FAN_OFFSET=22 — the CSS just needs the card to fit) */
}

@media (max-width: 480px) {
    .concept-card__desc {
        display: none;
    }

    /* Scale side images down on very small screens — visible but compact */
    .concept-card--hagn .cc-left,
    .concept-card--hagn .cc-right  { height: 58%; }
    .concept-card--pizza .cc-left,
    .concept-card--pizza .cc-right { height: 55%; }
    .concept-card--mexican .cc-left  { height: 56%; }
    .concept-card--mexican .cc-right { height: 42%; }
}
