/**
 * SAMARI CORPORATE — LANDING PAGES & MODULAR SECTIONS CSS
 *
 * Provides styling for full-width landing pages, brand showcase hubs,
 * interactive comparison sliders, dynamic product grids, and enterprise solution topologies.
 */

/* 1. Full-Width Landing Canvas Reset */
.samari-landing-canvas {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
}

.samari-landing-content > * {
    width: 100%;
}

.samari-landing-section {
    padding: 80px 0;
    position: relative;
}

.samari-landing-section.section-sm {
    padding: 50px 0;
}

.samari-landing-section.section-dark {
    background-color: var(--color-navy, #1b2d40);
    color: #ffffff;
}

.samari-landing-section.section-subtle {
    background-color: #f8fafc;
}

.samari-landing-section.section-gradient {
    background: linear-gradient(135deg, #0d1b2a 0%, #1b2d40 60%, #17385c 100%);
    color: #ffffff;
}

/* 2. Hero Landing Showcase */
.samari-hero-landing {
    position: relative;
    padding: 100px 0 80px;
    background: radial-gradient(circle at 85% 25%, rgba(40, 121, 185, 0.3) 0%, transparent 60%),
                radial-gradient(circle at 15% 85%, rgba(82, 170, 214, 0.15) 0%, transparent 50%),
                linear-gradient(140deg, #0a1420 0%, #1b2d40 65%, #173451 100%);
    color: #ffffff;
    overflow: hidden;
}

.samari-hero-landing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    opacity: 0.7;
}

.samari-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.samari-eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(82, 170, 214, 0.12);
    border: 1px solid rgba(82, 170, 214, 0.35);
    color: #93c5fd;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.samari-eyebrow-pill .pulsing-dot {
    width: 8px;
    height: 8px;
    background: #52aad6;
    border-radius: 50%;
    box-shadow: 0 0 10px #52aad6;
    animation: heroPulse 2s infinite ease-in-out;
}

@keyframes heroPulse {
    0%, 100% { opacity: 0.6; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
}

.samari-hero-title {
    font-size: 46px;
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 18px;
}

.samari-hero-title .text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #bae6fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.samari-hero-lead {
    font-size: 17px;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 32px;
    max-width: 620px;
}

.samari-hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.samari-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.samari-hero-stat-item strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.samari-hero-stat-item span {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Media Card */
.samari-hero-media-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    position: relative;
    text-align: center;
}

.samari-hero-media-card img {
    max-height: 340px;
    width: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.4));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.samari-hero-media-card:hover img {
    transform: scale(1.05) translateY(-5px);
}

.samari-hero-media-caption {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.samari-hero-media-caption h4 {
    margin: 0;
    font-size: 15px;
    color: #ffffff;
    font-weight: 700;
}

.samari-hero-media-caption span {
    font-size: 12px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* 3. Interactive ColorHunter Day/Night Slider */
.samari-comparison-wrap {
    max-width: 980px;
    margin: 0 auto;
}

.samari-comparison-slider {
    position: relative;
    width: 100%;
    height: 520px;
    border-radius: 14px;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.3);
    background: #000000;
    cursor: ew-resize;
}

.samari-comparison-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.samari-comparison-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* IR Night (Underneath) */
.samari-comparison-ir img {
    filter: grayscale(100%) contrast(120%) brightness(85%);
}

/* ColorHunter (Overlay Clipped) */
.samari-comparison-colorhunter {
    width: 50%;
    z-index: 2;
    border-right: 3px solid #ffffff;
}

.samari-comparison-colorhunter img {
    width: 980px;
    max-width: none;
}

/* Slider Drag Handle */
.samari-slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 46px;
    background: #2879b9;
    border: 3px solid #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.45);
    cursor: ew-resize;
    pointer-events: none;
    transition: transform 0.15s ease, background 0.15s ease;
}

.samari-comparison-slider:active .samari-slider-handle {
    transform: translate(-50%, -50%) scale(1.15);
    background: #1b2d40;
}

/* Comparison Badges */
.samari-badge-label {
    position: absolute;
    top: 20px;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.samari-badge-ir {
    right: 20px;
    background: rgba(15, 23, 42, 0.85);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.samari-badge-color {
    left: 20px;
    background: rgba(217, 119, 6, 0.9);
    color: #ffffff;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.samari-slider-instructions {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 4. Brand & Series Sticky Navigation */
.samari-series-sticky-bar {
    position: sticky;
    top: 0;
    z-index: 95;
    background: rgba(27, 45, 64, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0;
    transition: all 0.3s ease;
}

.samari-series-pills {
    display: flex;
    gap: 10px;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
}

.samari-series-pills::-webkit-scrollbar {
    display: none;
}

.samari-series-pill-btn {
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.samari-series-pill-btn:hover,
.samari-series-pill-btn.active {
    background: #2879b9;
    color: #ffffff;
    border-color: #2879b9;
    box-shadow: 0 4px 12px rgba(40, 121, 185, 0.35);
}

/* 5. Dynamic Product Catalog Showcase */
.samari-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.samari-landing-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.samari-landing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px -8px rgba(15, 23, 42, 0.12);
    border-color: #cbd5e1;
}

.samari-card-thumb-wrap {
    height: 220px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.samari-card-thumb-wrap img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.samari-landing-card:hover .samari-card-thumb-wrap img {
    transform: scale(1.06);
}

.samari-card-badge-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #1b2d40;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.samari-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.samari-card-sku {
    font-size: 12px;
    font-weight: 700;
    color: #2879b9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.samari-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.35;
}

.samari-card-title a {
    color: inherit;
    text-decoration: none;
}

.samari-card-title a:hover {
    color: #2879b9;
}

.samari-card-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.samari-card-badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e8f4fc;
    color: #174a70;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
}

.samari-card-badge-chip svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
}

.samari-card-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.samari-card-price {
    font-weight: 800;
    color: #1b2d40;
    font-size: 15px;
}

/* 6. Solution Topology / Security Architecture Showcase */
.samari-topology-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
    margin-top: 40px;
}

.samari-topology-step {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 26px 20px;
    text-align: center;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.samari-topology-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.1);
    border-color: #52aad6;
}

.samari-topology-number {
    width: 36px;
    height: 36px;
    background: #2879b9;
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.samari-topology-icon {
    width: 56px;
    height: 56px;
    background: #e8f4fc;
    color: #2879b9;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.samari-topology-step h4 {
    font-size: 17px;
    font-weight: 700;
    color: #1b2d40;
    margin-bottom: 8px;
}

.samari-topology-step p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* 7. RFP / Consultation CTA Strip */
.samari-landing-cta {
    background: linear-gradient(135deg, #1b2d40 0%, #2879b9 100%);
    color: #ffffff;
    padding: 70px 0;
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(40, 121, 185, 0.35);
}

.samari-cta-content {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.samari-cta-content h3 {
    font-size: 34px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 14px;
}

.samari-cta-content p {
    font-size: 16px;
    color: #e2e8f0;
    margin-bottom: 28px;
    line-height: 1.6;
}

.samari-cta-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
    .samari-hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .samari-hero-title {
        font-size: 36px;
    }
    .samari-hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .samari-comparison-slider {
        height: 380px;
    }
    .samari-topology-wrap {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .samari-hero-title {
        font-size: 30px;
    }
    .samari-comparison-slider {
        height: 280px;
    }
    .samari-topology-wrap {
        grid-template-columns: 1fr;
    }
}
