/* ============================================================
   SPIRO PILATES — about-page.css
   Style dla pełnej strony /o-nas/ (page-o-nas.php)
   ============================================================ */

/* ══════════════════════════════════════════════════════════════
   FILOZOFIA
══════════════════════════════════════════════════════════════ */
.sa-philosophy {
    padding: 100px 0;
    background: var(--cta);
}

.sa-philosophy__inner {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 80px;
    align-items: start;
}

.sa-philosophy__quote-block {
    position: sticky;
    top: 120px;
}

.sa-philosophy__mark {
    display: block;
    font-family: var(--font-title);
    font-size: 96px;
    line-height: 0.7;
    color: var(--accent);
    margin-bottom: 24px;
    opacity: 0.6;
}

.sa-philosophy__quote {
    font-family: var(--font-title);
    font-size: clamp(20px, 2.5vw, 32px);
    font-weight: 300;
    line-height: 1.4;
    color: #fff;
    font-style: normal;
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}

.sa-philosophy__quote em {
    font-style: italic;
    color: var(--accent);
}

.sa-philosophy__author {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    font-style: normal;
}

.sa-philosophy__values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px 40px;
}

.sa-philosophy__num {
    display: block;
    font-size: 10px;
    letter-spacing: 0.25em;
    color: var(--accent);
    margin-bottom: 12px;
}

.sa-philosophy__val-title {
    font-family: var(--font-title);
    font-size: clamp(18px, 1.8vw, 22px);
    font-weight: 400;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.sa-philosophy__val-text {
    font-size: clamp(12px, 1.1vw, 13px);
    line-height: 1.85;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   GALERIA
══════════════════════════════════════════════════════════════ */
.sa-gallery {
    background: var(--bg);
    padding: 0;
    overflow: hidden;
    width: 100%;
}

.sa-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 520px;
    gap: 0;
    width: 100%;
}

.sa-gallery__item {
    overflow: hidden;
    background: #c9c9b0;
    min-width: 0;
}

.sa-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.22,1,0.36,1);
}

.sa-gallery__item:hover img {
    transform: scale(1.05);
}

.sa-gallery__item:nth-child(1) img { object-position: center 60%; }
.sa-gallery__item:nth-child(2) img { object-position: center 35%; }
.sa-gallery__item:nth-child(3) img { object-position: center 50%; }
.sa-gallery__item:nth-child(4) img { object-position: center 30%; }

/* ══════════════════════════════════════════════════════════════
   END CTA
══════════════════════════════════════════════════════════════ */
.sa-end-cta {
    padding: 80px 0;
    background: var(--bg);
    border-top: 1px solid var(--line);
}

.sa-end-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.sa-end-cta__title {
    font-family: var(--font-title);
    font-size: clamp(26px, 3vw, 44px);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 12px;
    color: var(--text);
}

.sa-end-cta__title em {
    font-style: italic;
    color: var(--muted);
}

.sa-end-cta__sub {
    font-size: clamp(13px, 1.2vw, 14px);
    color: var(--muted);
    margin: 0;
}

.sa-end-cta__btns {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* ── Przyciski CTA ───────────────────────────────────────── */
.sa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    border: 1.5px solid var(--cta);
    transition:
        background 0.3s cubic-bezier(0.22,1,0.36,1),
        color 0.3s cubic-bezier(0.22,1,0.36,1),
        transform 0.3s cubic-bezier(0.22,1,0.36,1),
        box-shadow 0.3s ease;
}

.sa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15,42,34,0.15);
}

.sa-btn--solid {
    background: var(--cta);
    color: #fff;
}

.sa-btn--solid:hover {
    background: var(--text);
    border-color: var(--text);
    color: var(--accent);
}

.sa-btn--ghost {
    background: transparent;
    color: var(--cta);
}

.sa-btn--ghost:hover {
    background: var(--cta);
    color: #fff;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */

/* Tablet landscape */
@media (max-width: 1100px) {
    .sa-philosophy {
        padding: 80px 0;
    }
    .sa-philosophy__inner {
        gap: 60px;
    }
    .sa-philosophy__values {
        gap: 36px 32px;
    }
    .sa-gallery__grid {
        grid-template-rows: 420px;
    }
}

/* Tablet portrait */
@media (max-width: 900px) {
    .sa-philosophy {
        padding: 72px 0;
    }
    .sa-bg-img {
        background-position: center 70% !important;
    }
    .sa-philosophy__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .sa-philosophy__quote-block {
        position: static;
        max-width: 560px;
    }
    .sa-philosophy__mark {
        font-size: 72px;
    }
    .sa-philosophy__values {
        grid-template-columns: 1fr 1fr;
        gap: 36px 28px;
    }
    .sa-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 48vw);
    }
    .sa-end-cta {
        padding: 64px 0;
    }
    .sa-end-cta__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }
    .sa-end-cta__btns {
        width: 100%;
    }
}

/* Large phone */
@media (max-width: 640px) {
    .sa-philosophy {
        padding: 60px 0;
    }
    .sa-bg-img {
        background-position: center 75% !important;
    }
    .sa-philosophy__inner {
        gap: 40px;
    }
    .sa-philosophy__mark {
        font-size: 56px;
        margin-bottom: 16px;
    }
    .sa-philosophy__values {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .sa-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 56vw);
    }
    .sa-end-cta {
        padding: 52px 0;
    }
    .sa-end-cta__btns {
        flex-direction: column;
    }
    .sa-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
}

/* Small phone */
@media (max-width: 420px) {
    .sa-philosophy {
        padding: 48px 0;
    }
    .sa-bg-img {
        background-position: center 80% !important;
    }
    .sa-philosophy__mark {
        font-size: 44px;
    }
    .sa-philosophy__values {
        gap: 24px;
    }
    .sa-philosophy__val-title {
        font-size: 18px;
    }
    .sa-gallery__grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 75vw);
    }
    .sa-end-cta {
        padding: 40px 0;
    }
    .sa-end-cta__title {
        font-size: 26px;
    }
    .sa-btn {
        font-size: 11px;
        letter-spacing: 0.08em;
    }
}