/**
 * EasyIntrastat: Themed icons and section styling. Backgrounds stay clean for a professional, readable experience.
 */

/* ========== Flow step icons – larger, more detailed, two-tone ========== */
.flow-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    border-radius: 14px;
    flex-shrink: 0;
}
.flow-icon--upload {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.15) 0%, rgba(234, 179, 8, 0.12) 100%);
    border: 1px solid rgba(37, 99, 235, 0.2);
}
.flow-icon--validate {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.18) 0%, rgba(234, 179, 8, 0.08) 100%);
    border: 1px solid rgba(37, 99, 235, 0.25);
}
.flow-icon--confirm {
    background: linear-gradient(145deg, rgba(234, 179, 8, 0.12) 0%, rgba(37, 99, 235, 0.12) 100%);
    border: 1px solid rgba(234, 179, 8, 0.25);
}
.flow-icon svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

/* ========== Pillar icons – detailed, alternating blue/gold ========== */
.viz-pillar-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    border-radius: 14px;
    flex-shrink: 0;
}
.viz-pillar-icon svg {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}
.viz-pillar:nth-child(1) .viz-pillar-icon {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.2) 0%, rgba(37, 99, 235, 0.08) 100%);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: var(--company-primary);
}
.viz-pillar:nth-child(2) .viz-pillar-icon {
    background: linear-gradient(145deg, rgba(234, 179, 8, 0.2) 0%, rgba(234, 179, 8, 0.08) 100%);
    border: 1px solid rgba(234, 179, 8, 0.35);
    color: #b45309;
}
.viz-pillar:nth-child(3) .viz-pillar-icon {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.18) 0%, rgba(234, 179, 8, 0.1) 100%);
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: var(--company-primary);
}
.viz-pillar:nth-child(4) .viz-pillar-icon {
    background: linear-gradient(145deg, rgba(234, 179, 8, 0.18) 0%, rgba(37, 99, 235, 0.1) 100%);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #b45309;
}

/* ========== Knowledge card icons – detailed, colored ========== */
.knowledge-card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    border-radius: 12px;
}
.knowledge-card-icon svg {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}
.knowledge-card:nth-child(1) .knowledge-card-icon {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.15) 0%, rgba(234, 179, 8, 0.08) 100%);
    border: 1px solid rgba(37, 99, 235, 0.25);
}
.knowledge-card:nth-child(2) .knowledge-card-icon {
    background: linear-gradient(145deg, rgba(234, 179, 8, 0.12) 0%, rgba(37, 99, 235, 0.12) 100%);
    border: 1px solid rgba(234, 179, 8, 0.3);
}

/* ========== Contact block icons – with color ========== */
.contact-block-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    border-radius: 10px;
}
.contact-block-icon svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.contact-block:nth-child(1) .contact-block-icon {
    background: rgba(37, 99, 235, 0.12);
    color: var(--company-primary);
}
.contact-block:nth-child(2) .contact-block-icon {
    background: rgba(37, 99, 235, 0.1);
    color: #0a66c2;
}
.contact-block:nth-child(3) .contact-block-icon {
    background: linear-gradient(145deg, rgba(234, 179, 8, 0.12) 0%, rgba(37, 99, 235, 0.08) 100%);
    color: var(--company-primary);
}

/* Clean backgrounds: no watermarks or shapes that could distract or look unclear.
   Page backgrounds use the existing soft site background only (company-bg). */

.website-container > * {
    position: relative;
    z-index: 1;
}

/* Home hero: keep only the gradient accent bar (no background shape) */
.page-home .company-hero--landing {
    overflow: hidden;
}
.page-home .company-hero--landing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--company-primary) 0%, var(--company-yellow) 100%);
    border-radius: var(--radius-lg, 12px) var(--radius-lg, 12px) 0 0;
}

/* About: no watermark; keep section heading style */
.page-about .company-section h2 {
    border-left: 4px solid var(--company-primary);
    padding-left: 1rem;
    margin-left: 0;
}

/* Section heading variety – keep cohesive */
.page-home .services-section h2::after {
    width: 56px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--company-primary), var(--company-yellow));
}
.page-team .company-hero--small h1 {
    border-bottom: 3px solid var(--company-yellow);
    padding-bottom: 0.5rem;
    display: inline-block;
}
.page-contact .company-hero--small h1 {
    box-shadow: inset 0 -2px 0 var(--company-primary);
    padding-bottom: 2px;
}
.page-knowledge .company-hero--small h1 {
    border-left: 4px solid var(--company-yellow);
    padding-left: 1rem;
}
.page-news .company-hero--small h1 {
    border-bottom: 2px solid var(--company-border);
    padding-bottom: 0.5rem;
}

.company-hero--landing {
    position: relative;
    overflow: hidden;
}
.company-section {
    position: relative;
}

/* ========== About: How we work – 4-step flow with icons ========== */
.how-we-work-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0 2.5rem;
    padding: 0 0.5rem;
}
.how-we-work-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    max-width: 140px;
    padding: 1.25rem 1rem;
    background: var(--bg-secondary, #fff);
    border: 1px solid var(--company-border);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.how-we-work-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
}
.how-we-work-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    color: var(--company-primary);
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.1) 0%, rgba(234, 179, 8, 0.06) 100%);
    border-radius: 10px;
}
.how-we-work-icon svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}
.how-we-work-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--company-text);
    text-align: center;
    line-height: 1.3;
}
.how-we-work-arrow {
    color: var(--company-primary);
    font-size: 1.25rem;
    opacity: 0.7;
}

/* Dynamic entrance: steps and arrows animate in when section is visible */
.how-we-work-flow--dynamic .how-we-work-step,
.how-we-work-flow--dynamic .how-we-work-arrow {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.how-we-work-flow--dynamic .how-we-work-icon {
    transition: transform 0.4s ease;
}
.company-section.is-visible .how-we-work-flow--dynamic .how-we-work-step,
.company-section.is-visible .how-we-work-flow--dynamic .how-we-work-arrow {
    opacity: 1;
    transform: translateY(0);
}
.company-section.is-visible .how-we-work-flow--dynamic .how-we-work-step:nth-child(1) { transition-delay: 0s; }
.company-section.is-visible .how-we-work-flow--dynamic .how-we-work-arrow:nth-child(2) { transition-delay: 0.1s; }
.company-section.is-visible .how-we-work-flow--dynamic .how-we-work-step:nth-child(3) { transition-delay: 0.2s; }
.company-section.is-visible .how-we-work-flow--dynamic .how-we-work-arrow:nth-child(4) { transition-delay: 0.3s; }
.company-section.is-visible .how-we-work-flow--dynamic .how-we-work-step:nth-child(5) { transition-delay: 0.4s; }
.company-section.is-visible .how-we-work-flow--dynamic .how-we-work-arrow:nth-child(6) { transition-delay: 0.5s; }
.company-section.is-visible .how-we-work-flow--dynamic .how-we-work-step:nth-child(7) { transition-delay: 0.6s; }

/* Slight icon scale-in for extra dynamism */
.how-we-work-flow--dynamic .how-we-work-icon {
    transform: scale(0.85);
}
.company-section.is-visible .how-we-work-flow--dynamic .how-we-work-step .how-we-work-icon {
    transform: scale(1);
}
.company-section.is-visible .how-we-work-flow--dynamic .how-we-work-step:nth-child(1) .how-we-work-icon { transition-delay: 0.05s; }
.company-section.is-visible .how-we-work-flow--dynamic .how-we-work-step:nth-child(3) .how-we-work-icon { transition-delay: 0.25s; }
.company-section.is-visible .how-we-work-flow--dynamic .how-we-work-step:nth-child(5) .how-we-work-icon { transition-delay: 0.45s; }
.company-section.is-visible .how-we-work-flow--dynamic .how-we-work-step:nth-child(7) .how-we-work-icon { transition-delay: 0.65s; }

@media (max-width: 640px) {
    .how-we-work-flow { flex-direction: column; }
    .how-we-work-step { max-width: 100%; }
    .how-we-work-arrow { transform: translateY(16px) rotate(90deg); }
    .company-section.is-visible .how-we-work-flow--dynamic .how-we-work-arrow {
        transform: translateY(0) rotate(90deg);
    }
}

/* Dark mode */
html[data-theme="dark"] .flow-icon--upload,
html[data-theme="dark"] .flow-icon--validate {
    background: linear-gradient(145deg, rgba(96, 165, 250, 0.22) 0%, rgba(250, 204, 21, 0.12) 100%);
    border-color: rgba(96, 165, 250, 0.35);
}
html[data-theme="dark"] .flow-icon--confirm {
    background: linear-gradient(145deg, rgba(250, 204, 21, 0.18) 0%, rgba(96, 165, 250, 0.12) 100%);
    border-color: rgba(250, 204, 21, 0.3);
}
html[data-theme="dark"] .viz-pillar-icon {
    border-color: rgba(255,255,255,0.15);
}
