/* ==========================================================================
   About Page — "O nas"
   ========================================================================== */

/* ---------- Reveal Animations ---------- */
[data-reveal] {
    --reveal-delay: 0ms;
}

[data-reveal-child] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay);
}

[data-reveal].is-visible [data-reveal-child] {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
[data-reveal].is-visible [data-reveal-child]:nth-child(1) { --reveal-delay: 0ms; }
[data-reveal].is-visible [data-reveal-child]:nth-child(2) { --reveal-delay: 120ms; }
[data-reveal].is-visible [data-reveal-child]:nth-child(3) { --reveal-delay: 240ms; }
[data-reveal].is-visible [data-reveal-child]:nth-child(4) { --reveal-delay: 360ms; }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    [data-reveal-child] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Shared ---------- */
.about-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-alt);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}

.about-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-gold);
    flex-shrink: 0;
}

.about-section {
    padding: var(--space-10) 0;
}

.about-section-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.about-section-header h2 {
    margin-top: var(--space-2);
}

/* ---------- Placeholder (replace with real images) ---------- */
.about-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    height: 100%;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    color: var(--color-gray-dark);
    font-size: var(--text-xs);
    overflow: hidden;
}

/* ===================================================================
   SEKCJA 1: Hero
   =================================================================== */
.about-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

@media (min-width: 768px) {
    .about-hero {
        min-height: 520px;
    }
}

.about-hero__image-wrap {
    position: absolute;
    inset: 0;
}

.about-hero__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.3);
    font-size: var(--text-sm);
}

.about-hero__overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: var(--space-10) 0 var(--space-8);
    background: linear-gradient(to top, rgba(69, 55, 49, 0.92) 0%, rgba(69, 55, 49, 0.6) 60%, transparent 100%);
}

.about-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-alt);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-gold);
    margin-bottom: var(--space-3);
}

.about-hero__kicker::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-gold);
    flex-shrink: 0;
}

.about-hero__title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--color-white);
    max-width: 700px;
    margin-bottom: var(--space-4);
    line-height: 1.15;
}

.about-hero__lead {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    line-height: 1.7;
    margin: 0;
}

/* ===================================================================
   SEKCJA 2 & 4: Split — tekst + zdjęcia obok
   =================================================================== */
.about-split {
    display: grid;
    gap: var(--space-8);
    align-items: center;
}

@media (min-width: 768px) {
    .about-split {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-10);
    }

    .about-split--reverse .about-split__content {
        order: 2;
    }

    .about-split--reverse .about-split__visual {
        order: 1;
    }
}

.about-split__title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.about-split__content p {
    color: var(--color-gray-dark);
    line-height: 1.8;
}

/* Visual: overlapping two images */
.about-split__visual {
    position: relative;
    min-height: 380px;
}

.about-split__img--main {
    width: 75%;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-split__img--accent {
    position: absolute;
    bottom: -16px;
    right: 0;
    width: 50%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--color-bg);
}

/* Mosaic variant (section 4) */
.about-mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-3);
}

.about-mosaic__item--tall {
    grid-row: 1 / 3;
}

.about-mosaic__item--tall .about-placeholder {
    min-height: 380px;
}

.about-mosaic__item--top .about-placeholder,
.about-mosaic__item--bottom .about-placeholder {
    min-height: 180px;
}

.about-mosaic__item {
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* ===================================================================
   SEKCJA 3: Opinie skopiowane z home page
   =================================================================== */
.reviews-section {
    background: var(--color-bg);
    padding: var(--space-10) 0 var(--space-12) 0;
    position: relative;
}

.reviews-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--color-gold) 50%, transparent 100%);
    opacity: 0.55;
}

.reviews-section__header {
    margin-bottom: var(--space-8);
}

.review-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px 26px 24px;
    position: relative;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.review-card__q {
    position: absolute;
    top: -10px;
    left: 18px;
    font-family: var(--font-heading);
    font-size: 68px;
    line-height: 1;
    color: var(--color-gold);
    user-select: none;
}

.review-card__text {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    line-height: 1.55;
    color: var(--color-dark);
    margin: 0 0 var(--space-5);
    font-style: normal;
}

.review-card__author {
    display: block;
    margin-top: auto;
}

.review-card__name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-dark);
    font-style: normal;
}

.review-card__unit {
    display: block;
    font-style: normal;
    font-size: 12px;
    color: var(--color-gray-dark);
    margin-top: 2px;
}

.reviews-slider {
    position: relative;
    overflow: hidden;
}

.reviews-slider__track {
    display: flex;
    gap: var(--space-6);
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.reviews-slider__track .review-card {
    flex: 0 0 calc((100% - 2 * var(--space-6)) / 3);
    min-width: 0;
}

@media (max-width: 767px) {
    .reviews-slider__track .review-card {
        flex: 0 0 100%;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .reviews-slider__track .review-card {
        flex: 0 0 calc((100% - var(--space-6)) / 2);
    }
}

/* ===================================================================
   SEKCJA 5: Wartości
   =================================================================== */
.about-section--values {
    background: var(--color-white);
}

.about-values__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}

@media (min-width: 480px) {
    .about-values__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .about-values__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.about-value {
    padding: var(--space-6) var(--space-5);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.about-value:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.about-value__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--color-gold);
    color: var(--color-dark);
    margin-bottom: var(--space-4);
}

.about-value__title {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.about-value__desc {
    font-size: var(--text-sm);
    color: var(--color-gray-dark);
    line-height: 1.7;
    margin: 0;
}

/* ===================================================================
   SEKCJA 6: Galeria — asymetryczny grid
   =================================================================== */
.about-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .about-gallery {
        grid-template-columns: 1.6fr 1fr;
    }
}

.about-gallery__item {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-placeholder--gallery {
    min-height: 260px;
}

@media (min-width: 768px) {
    .about-placeholder--gallery {
        min-height: 320px;
    }
}

/* ===================================================================
   SEKCJA 7: CTA
   =================================================================== */
.about-cta {
    padding: var(--space-10) 0;
}

.about-cta__inner {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-8) var(--space-6);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.about-cta__title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-3);
}

.about-cta__desc {
    font-size: var(--text-lg);
    color: var(--color-gray-dark);
    max-width: 540px;
    margin-inline: auto;
    margin-bottom: var(--space-6);
}

.about-cta__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* ===================================================================
   Customizer images — ensure real imgs fill their containers
   =================================================================== */
.about-hero__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-split__img img,
.about-mosaic__item img,
.about-gallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.about-mosaic__item--tall img {
    min-height: 380px;
}

.about-gallery__item img {
    min-height: 260px;
}

@media (min-width: 768px) {
    .about-gallery__item img {
        min-height: 320px;
    }
}

.about-grid__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}
