/* About Page Styles (Based on Companies Page) */
/* CSS variables are defined in design-system.css */

/* ═══════════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════════ */

.about-hero {
    background-color: var(--dark-hero);
    color: var(--text-inverse);
    padding: var(--hero-padding-top-desktop) 0 var(--hero-padding-bottom-desktop);
    text-align: center;
    position: relative;
    width: 100%;
    /* background-image set inline in PHP */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 0;
}

.about-hero.hero-light {
    position: relative;
}

.about-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(33, 48, 53, 0.60) 0%,
            rgba(22, 22, 21, 0.85) 100%);
    z-index: 0;
}

.about-hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 var(--container-padding, 20px);
}

.about-hero-label {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.about-hero-title {
    font-size: var(--hero-title-size);
    font-weight: var(--hero-title-weight);
    margin: 0 0 1.5rem 0;
    color: white;
    line-height: var(--hero-title-line-height);
    letter-spacing: var(--hero-title-letter-spacing);
    text-wrap: balance;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.about-hero-subtitle {
    font-size: var(--hero-subtitle-size);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

/* Hero Divider */
.hero-divider {
    position: absolute;
    top: 92px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(var(--container-width, 1280px) - 40px);
    max-width: calc(100% - 40px);
    height: 1px;
    background-color: var(--divider);
    border: none;
    z-index: 2;
}

@media (max-width: 1023px) {
    .hero-divider {
        top: 68px;
    }
}

.about-hero-actions {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   CONTAINER & GENERAL
   ═══════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════
   CONTAINER & GENERAL
   ═══════════════════════════════════════════════════════════════════════ */

.about-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 5;
}

.section-header-center {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text);
    margin: 0 0 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   ZIG-ZAG SECTION
   ═══════════════════════════════════════════════════════════════════════ */

.zig-zag-section {
    padding: var(--section-spacing-desktop) 20px;
}

@media (max-width: 991px) {
    .zig-zag-section {
        padding: 75px 20px;
    }
}

@media (max-width: 768px) {
    .zig-zag-section {
        padding: var(--section-spacing-mobile) 20px;
    }
}

.zig-zag-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.zig-zag-item:not(:first-child) {
    padding-top: var(--section-spacing-desktop);
}

@media (max-width: 991px) {
    .zig-zag-item:not(:first-child) {
        padding-top: 75px;
    }
}

@media (max-width: 768px) {
    .zig-zag-item:not(:first-child) {
        padding-top: var(--section-spacing-mobile);
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   INTRO GRID SECTION
   ═══════════════════════════════════════════════════════════════════════ */

.about-grid-intro {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (max-width: 991px) {
    .about-grid-intro {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* CARDS */
.about-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 3rem;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

/* Large Card (Kto sme) */
.about-card-large {
    background: white;
}

/* Highlight Card (Filozofia) */
.about-card-highlight {
    background: linear-gradient(135deg, var(--dark-hero) 0%, var(--dark-deep) 100%);
    color: white;
    border: none;
}

.about-card-highlight .about-title {
    color: white;
}

.about-card-highlight .about-text {
    color: rgba(255, 255, 255, 0.8);
}

.about-card-highlight .about-icon-wrapper {
    background: rgba(255, 255, 255, 0.1);
}

.about-card-highlight .about-icon-wrapper svg {
    color: var(--primary);
}

/* Card Header */
.about-card-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.about-card-highlight .about-card-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.about-icon-wrapper {
    width: 52px;
    height: 52px;
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-icon-wrapper svg {
    color: var(--text);
    width: 24px;
    height: 24px;
}

.about-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
    line-height: 1.2;
}

.about-text-lead {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   VALUES SECTION (Čo nás vystihuje)
   ═══════════════════════════════════════════════════════════════════════ */

.about-section-full {
    background-color: var(--bg-subtle);
    width: 100%;
    padding: var(--section-spacing-desktop) 20px;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .about-section-full {
        padding: 75px 20px;
    }
}

@media (max-width: 768px) {
    .about-section-full {
        padding: var(--section-spacing-mobile) 20px;
    }
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.value-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: none;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.value-item:hover {
    border-color: var(--border-light);
}

.value-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--bg-subtle);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.value-icon svg {
    width: 32px;
    height: 32px;
}

.value-content h3 {
    font-size: var(--h4-size);
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--text);
}

.value-content p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════
   INDUSTRIES & VISION GRID
   ═══════════════════════════════════════════════════════════════════════ */

.about-grid-mixed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (max-width: 991px) {
    .about-grid-mixed {
        grid-template-columns: 1fr;
    }
}

/* Industries Card */
.industries-card {
    background: white;
}

.about-text-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.industry-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text);
    transition: all 0.3s ease;
}

.industry-box:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: translateX(5px);
}

.industry-box svg {
    color: var(--primary);
}

/* Vision Card */
.vision-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vision-card .about-title {
    color: white;
    margin-bottom: 1rem;
}

.vision-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.vision-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.vision-goal {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.2rem;
    border-left: 4px solid white;
}

/* ═══════════════════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════════════════ */

.about-cta-modern {
    background: var(--cta-bg, #19262B);
    border-radius: var(--radius-xl);
    padding: 4rem;
    position: relative;
    overflow: hidden;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    /* Background image handled inline */
    background-size: cover;
    background-position: center;
}

.about-cta-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(22, 22, 21, 0.95) 0%, rgba(22, 22, 21, 0.8) 100%);
    z-index: 1;
}

.cta-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.cta-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-decoration {
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 300px;
    height: 300px;
    z-index: 1;
    opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════════════════
   ZIG-ZAG CONTENT & IMAGES
   ═══════════════════════════════════════════════════════════════════════ */

.zig-zag-reverse .zig-zag-image {
    order: 2;
}

.zig-zag-reverse .zig-zag-content {
    order: 1;
}

.zig-zag-image {
    display: flex;
    align-items: center;
}

/* Prvý item - obrázok vľavo */
.zig-zag-item:first-child .zig-zag-image {
    justify-content: flex-start;
}

/* Reverse item (druhý) - obrázok vpravo */
.zig-zag-item.zig-zag-reverse .zig-zag-image {
    justify-content: flex-end;
}

.zig-zag-image img {
    width: 512px;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
    aspect-ratio: 1/1;
}

.zig-zag-content {
    padding: 1rem;
}

.zig-zag-content .about-title {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.zig-zag-content h2 {
    margin-block: 1rem;
}

.zig-zag-content .about-text-lead {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.zig-zag-content .about-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

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

@media (max-width: 991px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-cta-modern {
        flex-direction: column;
        text-align: center;
        padding: 3rem 2rem;
    }

    .cta-content-wrapper {
        margin: 0 auto;
    }

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

@media (max-width: 768px) {

    /* Responsive Zig-Zag */
    .zig-zag-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Na mobile obrázky stredované */
    .zig-zag-image {
        justify-content: center;
        margin: 0 auto;
    }

    .zig-zag-reverse .zig-zag-image {
        order: -1;
        /* Image always on top on mobile */
    }

    .zig-zag-reverse .zig-zag-content {
        order: 1;
    }

    .zig-zag-content {
        padding: 0;
        text-align: center;
    }

    .zig-zag-content .about-icon-wrapper {
        margin: 0 auto;
    }

    .zig-zag-content .about-title {
        font-size: 1.75rem;
    }

    .about-hero {
        padding: var(--hero-padding-top-mobile) 0 var(--hero-padding-bottom-mobile);
    }

    .zig-zag-item:not(:last-child) {
        padding-bottom: var(--section-spacing-mobile);
    }

    .value-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

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