/*
Hidden Growth — O mnie
Korekta układu: równe marginesy, niższa pozycja intro,
wyrównanie dołu złotego tekstu z dołem zdjęcia.
*/

.about-page {
    background: var(--hg-graphite);
    color: #fff;
}

.about-page .about-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: clamp(300px, 22vw, 390px) 0 clamp(80px, 8vw, 130px);
    background: var(--hg-graphite);
}

.about-page .about-hero__wave {
    position: absolute;
    z-index: 0;
    top: 82px;
    left: 0;
    width: 100%;
    max-width: none;
    height: auto;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 1.15s ease, transform 1.15s ease;
    pointer-events: none;
}

.about-page .about-hero__wave.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.about-page .about-hero__inner {
    --about-side-margin: clamp(32px, 7.2vw, 140px);
    position: relative;
    z-index: 1;
    width: calc(100% - (2 * var(--about-side-margin)));
    max-width: none;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.about-page .about-hero__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(350px, 414px);
    gap: clamp(42px, 5vw, 92px);
    align-items: end;
    width: 100%;
}

.about-page .about-hero__intro {
    align-self: end;
    min-width: 0;
    padding: 0;
    margin: 0;
}

.about-page .about-hero__eyebrow {
    margin: 0 0 32px;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.9rem, 2.4vw, 3.25rem);
    line-height: 1.15;
}

.about-page .about-hero h1 {
    max-width: 1120px;
    margin: 0 0 0 var(--about-side-margin);
    color: var(--hg-gold-light);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(2rem, 2.7vw, 3.65rem);
    font-weight: 400;
    line-height: 1.17;
}

.about-page .about-hero__portrait-wrap {
    width: 414px;
    max-width: 100%;
    margin: 0 0 0 auto;
    opacity: 0;
    transform: translateX(72px);
    transition: opacity .9s .35s ease, transform .9s .35s ease;
}

.about-page .about-hero__portrait-wrap.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.about-page .about-hero__portrait {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    border-radius: 28px 28px 28px 135px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, .24);
}

.about-page .about-hero__body {
    width: 100%;
    max-width: none;
    margin: clamp(52px, 5vw, 82px) 0 0;
    padding: 0;
    font-size: clamp(1rem, 1.25vw, 1.28rem);
    line-height: 1.62;
}

.about-page .about-hero__body p {
    margin: 0 0 24px;
}

.about-page .about-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: clamp(42px, 5vw, 72px);
}

.about-page .about-hero__actions .hg-button {
    min-width: 240px;
}

@media (max-width: 1100px) {
    .about-page .about-hero {
        padding-top: clamp(250px, 25vw, 320px);
    }

    .about-page .about-hero__inner {
        width: calc(100% - (2 * clamp(24px, 4vw, 54px)));
    }

    .about-page .about-hero__top {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 368px);
        gap: 36px;
    }

    .about-page .about-hero__portrait-wrap {
        width: 368px;
    }

    .about-page .about-hero__portrait {
        border-bottom-left-radius: 120px;
    }
}

@media (max-width: 820px) {
    .about-page .about-hero {
        padding: clamp(170px, 31vw, 230px) 0 72px;
    }

    .about-page .about-hero__wave {
        top: 82px;
        width: 135%;
        left: 50%;
        transform: translate(-50%, -12px);
    }

    .about-page .about-hero__wave.is-visible {
        transform: translate(-50%, 0);
    }

    .about-page .about-hero__inner {
        width: calc(100% - 44px);
    }

    .about-page .about-hero__top {
        grid-template-columns: 1fr;
        gap: 42px;
        align-items: start;
    }

    .about-page .about-hero__portrait-wrap {
        grid-row: 1;
        width: min(80%, 420px);
        margin: 0 auto;
    }

    .about-page .about-hero__intro {
        grid-row: 2;
    }

    .about-page .about-hero__body {
        margin-top: 42px;
    }

    .about-page .about-hero h1 {
        margin-left: 0;
    }
}

@media (max-width: 560px) {
    .about-page .about-hero {
        padding-top: 150px;
    }

    .about-page .about-hero__wave {
        top: 82px;
        width: 175%;
    }

    .about-page .about-hero__inner {
        width: calc(100% - 32px);
    }

    .about-page .about-hero__portrait-wrap {
        width: 88%;
    }

    .about-page .about-hero__eyebrow {
        margin-bottom: 22px;
        font-size: 1.7rem;
    }

    .about-page .about-hero h1 {
        font-size: clamp(1.85rem, 8vw, 2.45rem);
    }

    .about-page .about-hero__body {
        font-size: .98rem;
        line-height: 1.62;
    }

    .about-page .about-hero__portrait {
        border-radius: 22px 22px 22px 115px;
    }

    .about-page .about-hero__actions {
        flex-direction: column;
        gap: 14px;
    }

    .about-page .about-hero__actions .hg-button {
        width: 100%;
        min-width: 0;
    }
}



/* Animacja wejścia napisu „O mnie” i złotego nagłówka — jak w HOME */
.about-page .about-hero__intro {
    opacity: 0;
    transform: translateX(-58px);
    transition:
        opacity .9s .18s ease,
        transform .9s .18s ease;
}

.about-page .about-hero__intro.is-visible {
    opacity: 1;
    transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
    .about-page .about-hero__wave,
    .about-page .about-hero__portrait-wrap,
    .about-page .about-hero__intro {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* Ciemna stopka dla strony „O mnie” */
body.page-template-page-about .site-footer,
body.page-template-page-about-php .site-footer {
    background: var(--hg-graphite);
    color: var(--hg-cream);
    border-top-color: rgba(198, 161, 69, .7);
}

body.page-template-page-about .site-footer a,
body.page-template-page-about-php .site-footer a,
body.page-template-page-about .site-footer p,
body.page-template-page-about-php .site-footer p,
body.page-template-page-about .site-footer .cookie-settings-button,
body.page-template-page-about-php .site-footer .cookie-settings-button {
    color: var(--hg-cream);
}

body.page-template-page-about .site-footer .footer-menu a,
body.page-template-page-about-php .site-footer .footer-menu a,
body.page-template-page-about .site-footer .footer-social h2,
body.page-template-page-about-php .site-footer .footer-social h2,
body.page-template-page-about .site-footer .footer-email span,
body.page-template-page-about-php .site-footer .footer-email span {
    color: var(--hg-gold-light);
}

body.page-template-page-about .site-footer__bottom,
body.page-template-page-about-php .site-footer__bottom {
    border-top-color: rgba(198, 161, 69, .65);
}


/* Logo przeznaczone dla ciemnej stopki na stronie „O mnie” */
body.page-template-page-about .site-footer .footer-brand img,
body.page-template-page-about-php .site-footer .footer-brand img {
    content: url("../images/footer/footer-logo-light.png");
}


/* Korekta ciemnej stopki: dolne linki ciemne na złotej grafice */
body.page-template-page-about .site-footer__bottom,
body.page-template-page-about-php .site-footer__bottom,
body.page-template-page-about .site-footer__bottom a,
body.page-template-page-about-php .site-footer__bottom a,
body.page-template-page-about .site-footer__bottom p,
body.page-template-page-about-php .site-footer__bottom p,
body.page-template-page-about .site-footer__bottom .cookie-settings-button,
body.page-template-page-about-php .site-footer__bottom .cookie-settings-button {
    color: var(--hg-graphite);
}

/* Adres e-mail pozostaje jasny i dostaje mocny cień dla czytelności */
body.page-template-page-about .site-footer .footer-email,
body.page-template-page-about-php .site-footer .footer-email,
body.page-template-page-about .site-footer .footer-email a,
body.page-template-page-about-php .site-footer .footer-email a,
body.page-template-page-about .site-footer .footer-email span,
body.page-template-page-about-php .site-footer .footer-email span,
body.page-template-page-about .site-footer .footer-email svg,
body.page-template-page-about-php .site-footer .footer-email svg {
    color: var(--hg-cream);
    fill: currentColor;
    text-shadow:
        0 2px 3px rgba(0, 0, 0, .76),
        0 4px 10px rgba(0, 0, 0, .68),
        0 0 16px rgba(0, 0, 0, .64);
    filter:
        drop-shadow(0 2px 2px rgba(0, 0, 0, .76))
        drop-shadow(0 5px 8px rgba(0, 0, 0, .64));
}

/* Responsywne podniesienie nagłówka „O mnie” i złotego tekstu */
@media (min-width: 821px) {
    .about-page .about-hero__intro {
        position: relative;
        top: clamp(-205px, -10vw, -145px);
    }
}

@media (max-width: 820px) {
    .about-page .about-hero__intro {
        top: auto;
    }
}

/* =========================================================
   O MNIE — standard przycisków Hidden Growth
   1) złoty -> ciemny
   2) przezroczysty jasny -> złoty
========================================================= */
.about-page .about-hero__actions .hg-button {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.about-page .about-hero__actions .hg-button::after {
    content: "";
    position: absolute;
    top: -48%;
    left: -38%;
    width: 24%;
    height: 196%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-290%) skewX(-22deg);
    background: linear-gradient(
        115deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.10) 30%,
        rgba(255,255,255,0.56) 49%,
        rgba(243,220,107,0.34) 56%,
        rgba(255,255,255,0.10) 70%,
        rgba(255,255,255,0) 100%
    );
    filter: blur(3px);
    animation: aboutButtonSheen 9s ease-in-out infinite;
}

.about-page .about-hero__actions .hg-button > * {
    position: relative;
    z-index: 2;
}

.about-page .about-hero__actions .hg-button--gold {
    border-color: rgba(198, 161, 69, .96);
    color: #24282e;
    background: linear-gradient(135deg, #f3dc6b 0%, #c6a145 52%, #f3dc6b 100%);
    box-shadow:
        0 10px 24px rgba(117, 88, 24, .30),
        inset 0 1px 0 rgba(255,255,255,.42);
}

.about-page .about-hero__actions .hg-button--gold:hover,
.about-page .about-hero__actions .hg-button--gold:focus-visible {
    border-color: #393e46;
    color: #fff;
    background: linear-gradient(135deg, #454b54 0%, #252a31 100%);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, .28),
        inset 0 1px 0 rgba(255,255,255,.09);
}

.about-page .about-hero__actions .hg-button--outline-light {
    border-color: rgba(255,255,255,.88);
    color: #fff;
    background: rgba(255,255,255,.025);
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.about-page .about-hero__actions .hg-button--outline-light:hover,
.about-page .about-hero__actions .hg-button--outline-light:focus-visible {
    border-color: rgba(198, 161, 69, .96);
    color: #24282e;
    background: linear-gradient(135deg, #f3dc6b 0%, #c6a145 52%, #f3dc6b 100%);
    box-shadow:
        0 10px 24px rgba(117, 88, 24, .30),
        inset 0 1px 0 rgba(255,255,255,.42);
}

@keyframes aboutButtonSheen {
    0%, 70%, 100% {
        opacity: 0;
        transform: translateX(-290%) skewX(-22deg);
    }
    73% {
        opacity: .65;
    }
    84% {
        opacity: .65;
        transform: translateX(590%) skewX(-22deg);
    }
    87% {
        opacity: 0;
        transform: translateX(590%) skewX(-22deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-page .about-hero__actions .hg-button::after {
        animation: none;
    }
}
