/* PolQuant About Page Styles */
/* Structure matched to PPA benchmark (o-zwiazku) */

/* Hero Section */
.about-hero {
    position: relative;
    height: 50vh;
    background-image: url('/assets/corporate-skyline.jpg');
    background-size: cover;
    background-position: center;
}

.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
}

/* Page Header with Separator Line */
.page-header {
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.page-header h1 {
    color: var(--color-text-primary);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: var(--font-weight-black);
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

.header-separator {
    width: 100%;
    height: 1px;
    background-color: var(--color-border);
}

/* Benefit Sections */
.benefit-section {
    padding: var(--spacing-md) 0 var(--spacing-xl);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.benefit-section:last-child {
    border-bottom: none;
}

.benefit-section-no-border {
    border-bottom: none;
}

.benefit-text {
    width: 100%;
}

/* Section numbers (01, 02, 03) */
.benefit-number {
    color: var(--color-text-secondary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-weight-normal);
    opacity: 0.3;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.benefit-section h2 {
    color: var(--color-text-primary);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-md);
    font-weight: var(--font-weight-black);
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.benefit-section p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-secondary);
    letter-spacing: -0.01em;
    max-width: 900px;
}

/* Benefit images */
.benefit-image {
    width: 100%;
    margin-top: var(--spacing-md);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.benefit-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Stats Section - Full Width Teal */
.stats-section {
    background-color: var(--color-accent);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 3rem 1.5rem;
    margin-top: var(--spacing-xl);
    margin-bottom: 0;
}

.stats-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.stats-header {
    margin-bottom: 2.5rem;
}

.stats-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    display: block;
    margin-bottom: 1rem;
    opacity: 0;
    animation: statsFadeInUp 0.6s ease-out forwards;
}

.stats-header h2 {
    color: var(--color-bg-primary);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0;
    max-width: 500px;
    opacity: 0;
    animation: statsFadeInUp 0.6s ease-out 0.15s forwards;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
}

.stat-item {
    padding-left: 1.5rem;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
    animation: statsFadeInUp 0.6s ease-out forwards;
}

.stat-item:nth-child(1) { animation-delay: 0.3s; }
.stat-item:nth-child(2) { animation-delay: 0.45s; }
.stat-item:nth-child(3) { animation-delay: 0.6s; }
.stat-item:nth-child(4) { animation-delay: 0.75s; }

.stat-number {
    display: block;
    color: var(--color-bg-primary);
    font-size: clamp(3.5rem, 12vw, 5rem);
    font-weight: var(--font-weight-bold);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.stat-description {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
}

@keyframes statsFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Board Table */
.board-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--spacing-md);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.board-table thead {
    background: var(--color-text-primary);
}

.board-table th {
    color: var(--color-bg-primary);
    padding: 1.2rem 1rem;
    text-align: left;
    font-size: 0.85rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.board-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-primary);
    font-weight: var(--font-weight-medium);
}

.board-table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.board-table tbody tr:last-child td {
    border-bottom: none;
}

/* Documents List */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    width: 100%;
}

.document-link {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    background: #ffffff;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
}

.document-link:hover {
    border-color: var(--color-accent);
    background: var(--color-bg-secondary);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.document-icon {
    width: 40px;
    height: 40px;
    margin-right: var(--spacing-sm);
    flex-shrink: 0;
    stroke: var(--color-accent);
}

.document-info {
    flex: 1;
}

.document-title {
    color: var(--color-text-primary);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.document-description {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* ==========================================
   DESKTOP STYLES
   ========================================== */
@media (min-width: 1024px) {
    .about-hero {
        height: 60vh;
        background-position: center 30%;
    }

    .page-header {
        padding: var(--spacing-lg) 0 var(--spacing-sm);
    }

    .page-header h1 {
        font-size: 2.5rem;
        margin-bottom: var(--spacing-sm);
    }

    .benefit-section {
        padding: var(--spacing-sm) 0 var(--spacing-lg);
    }

    .benefit-number {
        font-size: 2.5rem;
        margin-bottom: var(--spacing-xs);
    }

    .benefit-section h2 {
        font-size: 2rem;
        margin-bottom: var(--spacing-sm);
    }

    .benefit-section p {
        font-size: 1.05rem;
        margin-bottom: var(--spacing-md);
        max-width: 800px;
    }

    .benefit-image {
        margin-top: var(--spacing-sm);
        overflow: visible;
        border-radius: 0;
    }

    .benefit-image img {
        height: 350px;
        border-radius: var(--radius-lg);
    }

    /* Two-column layout for benefit sections */
    .benefit-section-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
        align-items: start;
    }

    .benefit-section-row .benefit-image {
        margin-top: 0;
    }

    .benefit-section-row .benefit-image img {
        height: 100%;
        min-height: 350px;
    }

    /* Stretch image to match content height */
    .benefit-section-row:has(.benefit-image-stretch) {
        align-items: stretch;
    }

    .benefit-image-stretch {
        position: relative;
    }

    .benefit-image-stretch img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Stats desktop layout */
    .stats-section {
        padding: 4rem 2rem;
    }

    .stats-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: start;
    }

    .stats-header {
        margin-bottom: 0;
    }

    .stats-header h2 {
        font-size: 2.2rem;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem 2rem;
    }

    .stat-number {
        font-size: 4.5rem;
    }

    .stat-item {
        padding-left: 2rem;
    }

    /* Table and documents */
    .board-table th,
    .board-table td {
        padding: 1rem 0.8rem;
    }

    .documents-list {
        gap: 0.25rem;
        margin-top: var(--spacing-sm);
    }

    .document-link {
        padding: 2.4rem 1.2rem;
    }

    .document-icon {
        width: 32px;
        height: 32px;
    }

    .document-title {
        font-size: 0.95rem;
    }

    .document-description {
        font-size: 0.85rem;
    }
}

/* ==========================================
   MOBILE & TABLET STYLES
   ========================================== */
@media (max-width: 1023px) {
    .benefit-section {
        padding: var(--spacing-sm) 0;
        width: 100%;
    }

    .benefit-section-row {
        display: block;
        width: 100%;
    }

    .benefit-section-row .benefit-text {
        width: 100%;
    }

    .benefit-section-row .board-table {
        width: 100%;
    }

    /* Reverse order on mobile: text first, image second */
    .benefit-section-row-mobile-reverse {
        display: flex;
        flex-direction: column;
    }

    .benefit-section-row-mobile-reverse .benefit-text {
        order: 1;
    }

    .benefit-section-row-mobile-reverse .benefit-image {
        order: 2;
    }

    .documents-list {
        width: 100%;
        align-self: stretch;
    }

    .document-link {
        width: 100%;
        box-sizing: border-box;
    }

    .board-table {
        font-size: 0.9rem;
    }
}

/* Mobile-only */
@media (max-width: 768px) {
    .about-hero {
        height: 40vh;
    }

    .page-header {
        padding: var(--spacing-lg) 0 var(--spacing-xs);
    }

    .benefit-number {
        font-size: 2rem;
    }

    .board-table th,
    .board-table td {
        padding: 0.9rem 0.7rem;
    }

    .board-table th:nth-child(2),
    .board-table td:nth-child(2) {
        width: 45%;
    }

    /* Taller stretch images on mobile */
    .benefit-image-stretch img {
        height: 500px;
        position: relative;
    }
}

/* Stack table on very small screens */
@media (max-width: 480px) {
    .board-table thead {
        display: none;
    }

    .board-table,
    .board-table tbody,
    .board-table tr {
        display: block;
        width: 100%;
    }

    .board-table tr {
        margin-bottom: var(--spacing-sm);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        padding: var(--spacing-sm);
        background: var(--color-bg-secondary);
    }

    .board-table td {
        display: block;
        text-align: left;
        padding: var(--spacing-xs);
        border: none;
        position: relative;
        padding-left: 40%;
    }

    .board-table td:before {
        content: attr(data-label);
        font-weight: var(--font-weight-semibold);
        color: var(--color-text-primary);
        display: block;
        position: absolute;
        left: var(--spacing-sm);
        top: var(--spacing-xs);
        text-transform: uppercase;
        font-size: 0.75rem;
        opacity: 0.7;
    }
}
