/* ============================================================
   DPP Labels — Page-specific Styles (Avery Europe Brand)
   Hero section, Tools (Calculator, Scanner, Readiness Check)
   ============================================================ */

/* --- Hero Section — Dark Blue, Square visual, grid layout --- */
.hero {
    position: relative;
    min-height: 85vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    background: var(--color-surface-dark);
    color: var(--color-text-inverse);
    padding: var(--space-32) 0 var(--space-24);
    overflow: hidden;
}

.hero__content {
    position: relative;
    z-index: 2;
}

.hero__kicker {
    display: inline-block;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--square-cyan);
    margin-bottom: var(--space-4);
}

.hero__title {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-6);
    color: var(--color-text-inverse);
}

.hero__text {
    font-size: var(--font-size-xl);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-inverse-muted);
    margin-bottom: var(--space-10);
    max-width: 600px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Hero visual — Square frame holding imagery */
.hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Floating squares in hero background (brand asset) */
.hero-label {
    position: absolute;
    background: rgba(10, 74, 143, 0.3);
    border: 2px solid rgba(10, 74, 143, 0.5);
    transform: rotate(var(--square-angle));
}

.hero-label--1 {
    width: 120px; height: 120px;
    top: 15%; right: 15%;
    background: rgba(0, 174, 239, 0.1);
    border-color: rgba(0, 174, 239, 0.3);
}

.hero-label--2 {
    width: 200px; height: 200px;
    top: 40%; right: 5%;
    background: rgba(252, 199, 0, 0.08);
    border-color: rgba(252, 199, 0, 0.2);
}

.hero-label--3 {
    width: 80px; height: 80px;
    bottom: 20%; right: 35%;
    background: rgba(236, 0, 140, 0.08);
    border-color: rgba(236, 0, 140, 0.2);
}


/* --- Readiness Check Wizard --- */
.wizard {
    background: var(--color-surface);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.wizard-header {
    background: var(--color-bg);
    padding: var(--space-6) var(--space-8);
    border-bottom: 1px solid var(--color-border);
}

.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-4);
    position: relative;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-border);
    z-index: 1;
}

.wizard-progress-bar {
    position: absolute;
    top: 12px;
    left: 0;
    height: 4px;
    background: var(--color-primary);
    z-index: 2;
    transition: width var(--transition-base);
}

.wizard-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;   /* Dots stay round — they're functional, not brand-shape */
    background: var(--color-surface);
    border: 4px solid var(--color-border);
    position: relative;
    z-index: 3;
    transition: all var(--transition-base);
}

.wizard-step-dot.active {
    border-color: var(--color-primary);
}

.wizard-step-dot.completed {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.wizard-body {
    padding: var(--space-8);
    min-height: 300px;
}

.wizard-step {
    display: none;
    animation: fadeIn 300ms ease;
}

.wizard-step.active {
    display: block;
}

.wizard-footer {
    padding: var(--space-6) var(--space-8);
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.option-card {
    border: 2px solid var(--color-border);
    padding: var(--space-4);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.option-card:hover {
    border-color: var(--color-primary);
    background: var(--color-bg);
}

.option-card.selected {
    border-color: var(--color-primary);
    background: rgba(10, 74, 143, 0.05);
}

.option-card input[type="radio"] {
    display: none;
}


/* --- ROI Calculator --- */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
}

.calc-inputs {
    background: var(--color-surface);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
}

.calc-range {
    width: 100%;
    margin-top: var(--space-3);
    margin-bottom: var(--space-6);
}

.calc-results {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    padding: var(--space-8);
    box-shadow: var(--shadow-xl);
}

.result-card {
    background: rgba(247, 245, 239, 0.1);
    padding: var(--space-6);
    margin-bottom: var(--space-4);
    text-align: center;
}

.result-value {
    font-family: var(--font-head);
    font-size: var(--font-size-4xl);
    font-weight: 900;
    color: var(--color-accent-warm);
    margin: var(--space-2) 0;
}


/* --- QR Demo Scanner --- */
.scanner-container {
    background: var(--color-surface-dark);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scanner-overlay {
    position: absolute;
    inset: 0;
    border: 40px solid rgba(10, 37, 64, 0.6);
}

.scanner-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(var(--square-angle));
    width: 250px;
    height: 250px;
    border: 3px solid var(--color-accent-warm);
    box-shadow: 0 0 0 4000px rgba(10, 37, 64, 0.6);
}

.scanner-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-accent-warm);
    box-shadow: 0 0 10px var(--color-accent-warm);
    animation: scan 2s linear infinite;
}

/* --- Content Media Layouts --- */
.content-media-hero {
    width: 100%;
    margin-bottom: var(--space-8);
    background: var(--color-surface);
    box-shadow: var(--shadow-lg);
}

.content-media-hero img,
.content-media-hero video {
    width: 100%;
    height: auto;
    display: block;
}

.section-media-layout {
    display: flex;
    flex-direction: column; /* Mobile first stack */
    gap: var(--space-6);
    margin: var(--space-8) 0;
}

.section-media-layout img,
.section-media-layout video {
    width: 100%;
    height: auto;
    box-shadow: var(--shadow-md);
    background: var(--color-surface);
}

@media (min-width: 1025px) {
    .section-media-layout--left,
    .section-media-layout--right {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: var(--space-10);
    }
    
    .section-media-layout--left .section-media-content {
        order: 2;
    }
    
    .section-media-layout--left .section-media-visual {
        order: 1;
    }
    
    .section-media-layout--right .section-media-content {
        order: 1;
    }
    
    .section-media-layout--right .section-media-visual {
        order: 2;
    }
}

/* --- Responsive (Pages) --- */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: 70vh;
    }
    
    .hero__visual {
        opacity: 0.25;
        position: absolute;
        right: 0;
        top: 0;
        width: 100%;
        height: 100%;
    }

    .calculator-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

@media (max-width: 768px) {
    .wizard-body {
        padding: var(--space-4);
    }
    
    .wizard-footer {
        padding: var(--space-4);
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .wizard-footer .btn {
        width: 100%;
    }
}
