/* =================================================================
   SMARTIVO PRODUCTS PAGE — REDESIGNED CSS
   Three distinct sections:
   1. Touch Panels   — dark luxury, gold accents
   2. Hotel DND Edge — deep navy/slate, cool modern
   3. Real Installs  — warm cream/champagne, inverted palette
   ================================================================= */

.products-page {
    background-color: var(--bg-color);
}

/* ----------------------------------------------------------------
   Shared Utilities
   ---------------------------------------------------------------- */
.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.2rem;
    position: relative;
    padding-left: 2rem;
}

.section-eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1.2rem;
    height: 1px;
    background: var(--accent);
}

/* ----------------------------------------------------------------
   SECTION 1A: TOUCH PANEL HERO
   ---------------------------------------------------------------- */
.tp-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 190px 5% 4vh;
}

.tp-hero__bg-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(
        circle,
        rgba(212, 184, 134, 0.08) 0%,
        rgba(212, 184, 134, 0.03) 40%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.tp-hero__content {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.tp-hero__tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
    /* GSAP init */
    opacity: 0;
    transform: translateY(30px);
}

.tp-hero__title {
    font-size: clamp(3.5rem, 7vw, 7rem);
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    /* GSAP init */
    opacity: 0;
    transform: translateY(50px);
}

.tp-hero__title em {
    font-style: italic;
    color: var(--accent);
}

.tp-hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    /* GSAP init */
    opacity: 0;
    transform: translateY(30px);
}

.tp-hero__product-showcase {
    position: relative;
    z-index: 10;
    margin-top: 2rem;
    width: 100%;
    max-width: 550px;
    perspective: 1200px;
}

.tp-hero__product-img {
    position: relative;
    /* GSAP init */
    opacity: 0;
    transform: translateY(80px) rotateX(8deg);
    transform-style: preserve-3d;
}

.tp-hero__product-img::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 10%;
    width: 80%;
    height: 60px;
    background: radial-gradient(ellipse, rgba(212,184,134,0.12) 0%, transparent 70%);
    filter: blur(15px);
    pointer-events: none;
}

.tp-hero__product-img img {
    width: 100%;
    height: auto;
    max-height: 40vh; /* Constraint so the panel stays onscreen */
    object-fit: contain;
    filter: drop-shadow(0 30px 50px rgba(0,0,0,0.7));
}

/* Scroll cue */
.tp-hero__scroll-cue {
    margin-top: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    animation: fadeInCue 1.5s 2s forwards;
}

.tp-hero__scroll-cue span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

@keyframes fadeInCue {
    to { opacity: 1; }
}

/* ----------------------------------------------------------------
   SECTION 1B: TOUCH PANEL COLLECTION
   ---------------------------------------------------------------- */
.tp-collection {
    padding: 12vh 5% 10vh;
    position: relative;
}

.tp-collection__header {
    text-align: center;
    margin-bottom: 5rem;
    /* GSAP init */
    opacity: 0;
    transform: translateY(40px);
}

.tp-collection__header h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.tp-collection__header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.tp-collection__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

/* Product Card */
.tp-card {
    background: rgba(255,255,255,0.015);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 28px;
    padding: 3rem 2rem 2.5rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    /* GSAP init */
    opacity: 0;
    transform: translateY(50px);
}

.tp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,184,134,0.3), transparent);
    opacity: 0;
    transition: opacity 0.5s;
}

.tp-card:hover {
    transform: translateY(-12px);
    background: rgba(255,255,255,0.03);
    border-color: rgba(212,184,134,0.15);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 80px rgba(212,184,134,0.03);
}

.tp-card:hover::before {
    opacity: 1;
}

.tp-card__image {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
}

.tp-card__image img {
    max-width: 85%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.5));
}

.tp-card:hover .tp-card__image img {
    transform: scale(1.08) translateY(-5px);
}

.tp-card__info h3 {
    font-size: 1.3rem;
    font-weight: 500;
    font-family: var(--font-sans);
    margin-bottom: 0.4rem;
}

.tp-card__info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.tp-card__colors {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.color-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.08);
    cursor: pointer;
    transition: all 0.3s;
}

.color-swatch.active {
    border-color: var(--accent);
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(212,184,134,0.3);
}

.color-swatch:hover {
    transform: scale(1.2);
}

/* ----------------------------------------------------------------
   SECTION 1C: TOUCH PANEL FEATURES
   ---------------------------------------------------------------- */
.tp-features {
    padding: 8vh 5% 10vh;
    position: relative;
}

.tp-features__row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.tp-features__item {
    text-align: center;
    padding: 3rem 1.5rem;
    border-radius: 24px;
    background: rgba(255,255,255,0.015);
    border: 1px solid rgba(255,255,255,0.03);
    transition: all 0.4s ease;
    /* GSAP init */
    opacity: 0;
    transform: translateY(40px);
}

.tp-features__item:hover {
    background: rgba(255,255,255,0.03);
    border-color: rgba(212,184,134,0.1);
    transform: translateY(-5px);
}

.tp-features__icon {
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.tp-features__item h4 {
    font-size: 1.15rem;
    font-family: var(--font-sans);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.tp-features__item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ----------------------------------------------------------------
   SECTION 1D: TOUCH PANEL SPECS
   ---------------------------------------------------------------- */
.tp-specs {
    padding: 6vh 5% 12vh;
}

.tp-specs__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1300px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.tp-specs__item {
    text-align: center;
    padding: 3rem 1rem;
    border-right: 1px solid rgba(255,255,255,0.05);
    /* GSAP init */
    opacity: 0;
    transform: translateY(30px);
}

.tp-specs__item:last-child {
    border-right: none;
}

.tp-specs__value {
    display: block;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--accent);
    font-family: var(--font-sans);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.tp-specs__label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================================================================
   SECTION 2: HOTEL DND — EDGE SERIES
   A distinct visual zone: deep charcoal with a cool blue undertone
   ================================================================ */
.edge-section {
    position: relative;
    padding: 0 5% 12vh;
    background: linear-gradient(
        180deg,
        var(--bg-color) 0%,
        #0a0e14 5%,
        #0d1117 50%,
        #0a0e14 95%,
        var(--bg-color) 100%
    );
}

.edge-section__divider {
    display: flex;
    justify-content: center;
    padding: 8vh 0;
}

.divider-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
}

.edge-section__header {
    text-align: center;
    margin-bottom: 6rem;
    /* GSAP init */
    opacity: 0;
    transform: translateY(40px);
}

.edge-section__header h2 {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.edge-section__header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.edge-section__showcase {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

/* Edge Product Row */
.edge-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    /* GSAP init */
    opacity: 0;
    transform: translateY(60px);
}

.edge-product--reverse {
    direction: rtl;
}

.edge-product--reverse > * {
    direction: ltr;
}

.edge-product__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.edge-product__glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212,184,134,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.edge-product__img {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 25px 40px rgba(0,0,0,0.6));
    position: relative;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.edge-product:hover .edge-product__img {
    transform: scale(1.04) translateY(-5px);
}

.edge-product__info {
    padding: 2rem 0;
}

.edge-product__badge {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    border: 1px solid rgba(212,184,134,0.3);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.edge-product__info h3 {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.edge-product__info p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 450px;
}

.edge-product__features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.edge-product__features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.edge-product__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* Color variants strip */
.edge-section__colors {
    max-width: 1000px;
    margin: 6rem auto 0;
    text-align: center;
    /* GSAP init */
    opacity: 0;
    transform: translateY(40px);
}

.edge-section__colors h4 {
    font-size: 1.1rem;
    font-family: var(--font-sans);
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.edge-color-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.edge-color-option {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    cursor: pointer;
}

.edge-color-option:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(212,184,134,0.15);
    transform: translateY(-5px);
}

.edge-color-option img {
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.5));
}

.edge-color-option span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ================================================================
   SECTION 3: REAL-WORLD INSTALLATIONS
   Warm, inverted palette: cream/beige/champagne
   Uses Cormorant Garamond for an editorial feel
   ================================================================ */
.real-section {
    position: relative;
    padding: 12vh 5% 10vh;
    background: linear-gradient(
        180deg,
        var(--bg-color) 0%,
        #f5efe6 4%,
        #f0e9de 50%,
        #ebe4d8 100%
    );
    overflow: hidden;
}

.real-section__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212,184,134,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(180,150,100,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.real-section__content {
    position: relative;
    z-index: 10;
    max-width: 1300px;
    margin: 0 auto;
}

.real-section__header {
    text-align: center;
    margin-bottom: 5rem;
    /* GSAP init */
    opacity: 0;
    transform: translateY(40px);
}

.real-section__header .real-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    color: #9a7d52;
    margin-bottom: 1.2rem;
    position: relative;
    padding-left: 2rem;
}

.real-section__header .real-eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1.2rem;
    height: 1px;
    background: #9a7d52;
}

.real-section__header h2 {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    color: #2a2218;
    line-height: 1.1;
    margin-bottom: 1.2rem;
}

.real-section__header p {
    font-size: 1.1rem;
    color: #6b5d4f;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
    font-family: var(--font-sans);
}

/* Gallery Grid */
.real-section__gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.real-gallery__item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    /* GSAP init */
    opacity: 0;
    transform: translateY(50px);
}

.real-gallery__item--wide {
    grid-column: 1 / -1;
}

.real-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.real-gallery__item--wide img {
    height: 450px;
}

.real-gallery__item:not(.real-gallery__item--wide) img {
    height: 350px;
}

.real-gallery__item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(30,24,16,0.7) 0%, transparent 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.real-gallery__item:hover::after {
    opacity: 1;
}

.real-gallery__item:hover img {
    transform: scale(1.05);
}

.real-gallery__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 5;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.real-gallery__item:hover .real-gallery__caption {
    opacity: 1;
    transform: translateY(0);
}

.real-gallery__location {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.real-gallery__caption p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.4;
    max-width: 400px;
}

/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-banner {
    padding: 15vh 5%;
    text-align: center;
    background: linear-gradient(
        to top,
        rgba(212,184,134,0.05) 0%,
        var(--bg-color) 100%
    );
}

.cta-banner__inner {
    max-width: 700px;
    margin: 0 auto;
    /* GSAP init */
    opacity: 0;
    transform: translateY(40px);
}

.cta-banner h2 {
    font-size: clamp(2.5rem, 4.5vw, 4.5rem);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.cta-banner p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.cta-banner__actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1200px) {
    .tp-collection__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .tp-collection__grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .tp-features__row {
        grid-template-columns: repeat(2, 1fr);
    }

    .tp-specs__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tp-specs__item:nth-child(2) {
        border-right: none;
    }

    .edge-product {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .edge-product--reverse {
        direction: ltr;
    }

    .edge-product__info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .edge-product__info p {
        max-width: 100%;
    }

    .edge-product__features {
        align-items: center;
    }

    .real-section__gallery {
        grid-template-columns: 1fr;
    }

    .real-gallery__item--wide img,
    .real-gallery__item:not(.real-gallery__item--wide) img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .tp-hero__title {
        font-size: 3rem;
    }

    .tp-hero__subtitle {
        font-size: 1.05rem;
    }

    .tp-collection__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .tp-features__row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tp-specs__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .edge-section__header h2,
    .real-section__header h2 {
        font-size: 2.5rem;
    }

    .edge-product__info h3 {
        font-size: 2rem;
    }

    .edge-color-strip {
        grid-template-columns: 1fr;
    }

    .cta-banner h2 {
        font-size: 2.5rem;
    }

    .cta-banner__actions {
        flex-direction: column;
        gap: 1rem;
    }

    .real-gallery__item--wide img,
    .real-gallery__item:not(.real-gallery__item--wide) img {
        height: 250px;
    }
}
