/**
 * Product Landing Page — Dedicated Styles
 *
 * Loaded only on pages using the "Product Landing Page" template.
 * Uses theme CSS variables + --lp-accent (set per-page from ACF).
 *
 * @package DENTI_B2B
 */

/* ═══════════════════════════════════════════
   HERO Section
   ═══════════════════════════════════════════ */
.lp-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--color-primary, #003560);
    overflow: hidden;
}

.lp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(20, 20, 20, 0.82) 0%,
        rgba(243, 110, 33, 0.45) 60%,
        rgba(243, 110, 33, 0.25) 100%
    );
    z-index: 1;
}

.lp-hero-inner {
    position: relative;
    z-index: 2;
    padding: 80px 0 100px;
    max-width: 780px;
}

.lp-hero-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.lp-brand-logo {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.lp-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.02em;
}

.lp-hero-headline {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.lp-hero-subheadline {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin: 0 0 32px;
    max-width: 600px;
}

.lp-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.lp-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 2;
    line-height: 0;
}

.lp-hero-wave svg {
    width: 100%;
    height: 60px;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.lp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--lp-accent, #f27131);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(242, 113, 49, 0.3);
}

.lp-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(242, 113, 49, 0.4);
    filter: brightness(1.1);
    color: #fff;
}

.lp-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: var(--lp-accent, #f27131);
    border: 2px solid var(--lp-accent, #f27131);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.lp-btn-secondary:hover {
    background: var(--lp-accent, #f27131);
    color: #fff;
}

.lp-btn-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.25);
    text-decoration: none;
    transition: all 0.3s ease;
}

.lp-btn-phone:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* ═══════════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════════ */
.lp-breadcrumb {
    padding: 16px 0;
    font-size: 0.85rem;
    color: #94a3b8;
    background: #f4f5fa;
}

.lp-breadcrumb a {
    color: #64748b;
    text-decoration: none;
}

.lp-breadcrumb a:hover {
    color: var(--lp-accent, #f27131);
}

.lp-breadcrumb span[aria-hidden] {
    margin: 0 8px;
    color: #cbd5e1;
}

/* ═══════════════════════════════════════════
   SECTION SHARED
   ═══════════════════════════════════════════ */
.lp-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.lp-section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 8px 0 0;
}

.product-landing-page .section-gap {
    padding: 64px 0;
}

/* ═══════════════════════════════════════════
   FEATURES GRID
   ═══════════════════════════════════════════ */
.lp-features {
    background: #f4f5fa;
}

.lp-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.lp-feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.lp-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border-color: var(--lp-accent, #f27131);
}

.lp-feature-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
    line-height: 1;
}

.lp-feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.lp-feature-card p {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ═══════════════════════════════════════════
   VIDEO DEMO
   ═══════════════════════════════════════════ */
.lp-video {
    background: #fff;
}

.lp-video-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.08);
    padding-top: 56.25%; /* 16:9 */
    background: #0f172a;
}

.lp-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ═══════════════════════════════════════════
   SPECIFICATIONS TABLE
   ═══════════════════════════════════════════ */
.lp-specs {
    background: #fff;
}

.lp-specs-table-wrap {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
}

.lp-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.lp-specs-table th,
.lp-specs-table td {
    padding: 14px 24px;
    text-align: left;
    font-size: 0.95rem;
    border-bottom: 1px solid #f1f5f9;
}

.lp-specs-table th {
    font-weight: 700;
    color: #0f172a;
    width: 40%;
    background: rgba(0, 53, 96, 0.03);
}

.lp-specs-table td {
    color: #475569;
}

.lp-specs-table tr.even {
    background: #fafbfc;
}

.lp-specs-table tr:last-child th,
.lp-specs-table tr:last-child td {
    border-bottom: none;
}

/* ═══════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════ */
.lp-gallery {
    background: #f4f5fa;
}

.lp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.lp-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    display: block;
}

.lp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.lp-gallery-item:hover img {
    transform: scale(1.08);
}

.lp-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
}

.lp-gallery-item:hover .lp-gallery-overlay {
    opacity: 1;
}

/* ═══════════════════════════════════════════
   SOFT MODE FEATURE BAND
   ═══════════════════════════════════════════ */
.lp-softmode-band {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1a00 50%, #F36E21 100%);
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}

.lp-softmode-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://ane.vn/wp-content/uploads/mectron-landing/bg_arrow_pattern.png') center/cover no-repeat;
    opacity: 0.05;
}

.lp-softmode-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.lp-softmode-content h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.lp-softmode-content .lp-softmode-tagline {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    margin: 0 0 24px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.lp-softmode-content p {
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0 0 32px;
}

.lp-softmode-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.lp-softmode-visual img {
    border-radius: 16px;
    max-width: 280px;
    width: 100%;
}

.lp-softmode-logo-badge {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.lp-softmode-logo-badge img {
    max-width: 140px;
    filter: none;
    border-radius: 8px;
}

/* ═══════════════════════════════════════════
   RELATED MECTRON PRODUCTS
   ═══════════════════════════════════════════ */
.lp-related-products {
    background: #f4f5fa;
}

.lp-related-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.lp-related-product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.lp-related-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.1);
    border-color: var(--lp-accent, #F36E21);
}

.lp-related-product-img {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lp-related-product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.lp-related-product-card:hover .lp-related-product-img img {
    transform: scale(1.05);
}

.lp-related-product-info {
    padding: 20px 24px 24px;
}

.lp-related-product-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lp-accent, #F36E21);
    margin-bottom: 8px;
}

.lp-related-product-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
    line-height: 1.3;
}

.lp-related-product-info p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lp-related-product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--lp-accent, #F36E21);
}

@media (max-width: 768px) {
    .lp-softmode-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .lp-softmode-visual {
        justify-content: center;
    }
    .lp-related-products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 1024px) {
    .lp-related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ═══════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════ */
.lp-testimonials {
    background: #fff;
}

.lp-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.lp-testimonial-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 28px;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.3s ease;
}

.lp-testimonial-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.lp-testimonial-quote {
    margin-bottom: 12px;
    opacity: 0.5;
}

.lp-testimonial-text {
    font-size: 1rem;
    color: #334155;
    line-height: 1.7;
    font-style: italic;
    margin: 0 0 20px;
}

.lp-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lp-author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--lp-accent, #f27131);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.lp-testimonial-author strong {
    display: block;
    font-size: 0.92rem;
    color: #0f172a;
}

.lp-testimonial-author span {
    display: block;
    font-size: 0.82rem;
    color: #94a3b8;
}

/* ═══════════════════════════════════════════
   RELATED PRODUCT CTA
   ═══════════════════════════════════════════ */
.lp-product-cta {
    background: #f4f5fa;
}

.lp-product-cta-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.lp-product-thumb {
    flex: 0 0 240px;
}

.lp-product-thumb img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.lp-product-info {
    flex: 1;
}

.lp-product-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 8px 0 12px;
}

.lp-product-info > p {
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 24px;
}

.lp-product-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   FINAL CTA
   ═══════════════════════════════════════════ */
.lp-final-cta {
    background: linear-gradient(135deg, var(--color-primary, #003560), var(--color-secondary, #0d6eaf));
    padding: 64px 0;
}

.lp-final-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.lp-final-cta h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
}

.lp-final-cta p {
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-size: 1.05rem;
}

.lp-final-cta-actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.lp-final-cta .lp-btn-primary {
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* ═══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════ */

/* Tablet Landscape */
@media (max-width: 1024px) {
    .lp-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lp-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .lp-final-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .lp-final-cta-actions {
        justify-content: center;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .lp-hero-inner {
        padding: 60px 0 80px;
    }

    .lp-hero-headline {
        font-size: 1.8rem;
    }

    .lp-hero-subheadline {
        font-size: 1.05rem;
    }

    .product-landing-page .section-gap {
        padding: 48px 0;
    }

    .lp-section-header h2 {
        font-size: 1.6rem;
    }

    .lp-features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .lp-feature-card {
        padding: 24px 20px;
        text-align: left;
        display: flex;
        gap: 16px;
        align-items: flex-start;
    }

    .lp-feature-icon {
        font-size: 1.8rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .lp-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .lp-product-cta-inner {
        flex-direction: column;
        text-align: center;
        padding: 28px;
    }

    .lp-product-thumb {
        flex: 0 0 auto;
        max-width: 200px;
    }

    .lp-product-actions {
        justify-content: center;
    }

    .lp-specs-table th,
    .lp-specs-table td {
        padding: 12px 16px;
        font-size: 0.88rem;
    }

    .lp-specs-table th {
        width: 45%;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .lp-hero-inner {
        padding: 48px 0 70px;
    }

    .lp-hero-headline {
        font-size: 1.5rem;
    }

    .lp-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .lp-btn-primary,
    .lp-btn-secondary,
    .lp-btn-phone {
        justify-content: center;
        text-align: center;
    }

    .lp-hero-brand {
        flex-direction: column;
        align-items: flex-start;
    }

    .lp-gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .lp-final-cta h2 {
        font-size: 1.4rem;
    }

    .lp-final-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .lp-testimonials-grid {
        grid-template-columns: 1fr;
    }
}
