/* =========================================================
   Hidden Growth — HOME CSS v5
   Cleaned layout, edge-to-edge sections.
   Scroll snapping disabled to avoid clipping/previous-section bleed.
========================================================= */

.home-snap-section {
    min-height: 100svh;
}

.home-snap-section > .hg-container,
.feature-grid.hg-container {
    width: 100%;
    max-width: none;
    padding-left: var(--hg-page-pad);
    padding-right: var(--hg-page-pad);
}

/* =========================
   1. HERO
========================= */

.hero-home {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: center;
    overflow: hidden;
    background: #6e645b;
    padding-top: var(--hg-header-height);
}

.hero-home__background,
.hero-home__overlay {
    position: absolute;
    inset: 0;
}

.hero-home__background {
    background: url("../images/home/hero-home.jpg") right 42% / cover no-repeat;
    opacity: 0;
    animation: heroBackground 1.25s ease forwards;
}

.hero-home__overlay {
    background: linear-gradient(
        90deg,
        rgba(36,37,39,.84) 0%,
        rgba(36,37,39,.72) 31%,
        rgba(36,37,39,.34) 56%,
        rgba(36,37,39,0) 84%
    );
    transform: translateX(-7%);
    opacity: 0;
    animation: heroOverlay 1s .35s ease forwards;
}

.hero-home .hg-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: clamp(34px, 3.7vw, 76px);
    padding-right: clamp(24px, 3vw, 60px);
}

.hero-home__content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.hero-home__content h1 {
    max-width: 780px;
    margin-bottom: 22px;
    font-family: var(--hg-font-serif);
    font-size: clamp(3.6rem, 5.2vw, 5.55rem);
    line-height: 1.08;
}

.hero-home__lead {
    margin: 0 0 34px;
    color: var(--hg-gold-light);
    font-family: var(--hg-font-serif);
    font-size: clamp(1.25rem, 1.7vw, 1.65rem);
}

.hero-home__copy {
    max-width: 620px;
    margin-bottom: 28px;
    font-weight: 700;
    line-height: 1.55;
}

.hero-home__actions {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}


/* =========================================================
   HOME — standardowe przyciski Hidden Growth
========================================================= */
.home-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 10px;
    transition: transform .28s ease, color .28s ease, background .28s ease,
                border-color .28s ease, box-shadow .28s ease;
}

.home-btn::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: -65%;
    left: -32%;
    width: 22%;
    height: 230%;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-300%) skewX(-22deg);
    background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.06) 30%, rgba(255,255,255,.52) 49%, rgba(255,255,255,.12) 67%, transparent 100%);
    filter: blur(4px);
    animation: hgHomeButtonSheen 7.2s ease-in-out infinite;
}

.home-btn--gold {
    border-color: rgba(108,82,20,.62);
    background: linear-gradient(135deg, #f8e982 0%, #d6b84b 48%, #b98b25 100%);
    color: #252a31;
    box-shadow: 0 9px 22px rgba(0,0,0,.28), 0 3px 10px rgba(198,161,69,.42), inset 0 1px 0 rgba(255,255,255,.48);
}

.home-btn--gold:hover,
.home-btn--gold:focus-visible {
    border-color: rgba(255,255,255,.22);
    background: linear-gradient(135deg, #343a43 0%, #20252c 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08);
}

.home-btn--outline-light {
    border-color: rgba(255,255,255,.92);
    background: rgba(255,255,255,.025);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.08);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.home-btn--outline-light:hover,
.home-btn--outline-light:focus-visible,
.home-btn--outline-dark:hover,
.home-btn--outline-dark:focus-visible {
    border-color: rgba(108,82,20,.58);
    background: linear-gradient(135deg, #f8e982 0%, #d6b84b 48%, #b98b25 100%);
    color: #252a31;
    box-shadow: 0 9px 22px rgba(0,0,0,.24), 0 3px 10px rgba(198,161,69,.42), inset 0 1px 0 rgba(255,255,255,.48);
}

.home-btn--outline-dark {
    border: 1.5px solid #343a43;
    background: transparent;
    color: #343a43;
    box-shadow: 0 7px 17px rgba(32,37,44,.10);
}

.home-btn--outline-dark::before {
    background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0) 30%, rgba(198,161,69,.38) 49%, rgba(255,255,255,0) 68%, transparent 100%);
}

@keyframes hgHomeButtonSheen {
    0%, 66%, 100% { opacity: 0; transform: translateX(-300%) skewX(-22deg); }
    70% { opacity: .86; }
    84% { opacity: 0; transform: translateX(680%) skewX(-22deg); }
}

@media (prefers-reduced-motion: reduce) {
    .home-btn::before { animation: none; display: none; }
}

.hero-animate {
    opacity: 0;
    transform: translateX(-38px);
    animation: heroText .8s ease forwards;
}

.hero-animate:nth-child(1) { animation-delay: .6s; }
.hero-animate:nth-child(2) { animation-delay: .75s; }
.hero-animate:nth-child(3) { animation-delay: .9s; }
.hero-animate:nth-child(4) { animation-delay: 1.05s; }
.hero-animate:nth-child(5) { animation-delay: 1.2s; }

@keyframes heroBackground {
    to { opacity: 1; }
}

@keyframes heroOverlay {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes heroText {
    to { opacity: 1; transform: translateX(0); }
}

/* =========================
   2. INTRO + FEATURE CARDS
========================= */

.home-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--hg-cream);
    padding-top: clamp(86px, 7vw, 120px);
    padding-bottom: clamp(64px, 6vw, 96px);
}

.home-intro .hg-container--narrow {
    max-width: none;
}

.home-intro h2 {
    max-width: 1380px;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--hg-font-heading);
    font-size: clamp(2rem, 3vw, 3.05rem);
    line-height: 1.08;
}

.section-kicker {
    color: var(--hg-gold);
    font-family: var(--hg-font-ui);
    font-weight: 700;
    letter-spacing: .24em;
}

.home-intro .hg-container--narrow > p:not(.section-kicker) {
    max-width: 1220px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.02rem, 1.15vw, 1.18rem);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(16px, 1.8vw, 28px);
    margin-top: clamp(44px, 4.4vw, 66px);
}

.feature-card {
    position: relative;
    min-height: clamp(138px, 8.5vw, 175px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 74px 22px 30px;
    border-radius: var(--hg-radius);
    background: var(--hg-graphite);
    color: #fff;
    text-align: center;
    font-size: clamp(.98rem, 1.05vw, 1.16rem);
    font-weight: 700;
    line-height: 1.38;
}

.feature-card--1,
.feature-card--2,
.feature-card--3 {
    grid-column: span 2;
}

.feature-card--4,
.feature-card--5 {
    grid-column: span 3;
}

.feature-card__icon {
    position: absolute;
    right: 14px;
    bottom: 12px;
    width: clamp(56px, 4.8vw, 82px);
    max-height: clamp(56px, 4.8vw, 82px);
    object-fit: contain;
    transition: filter .3s ease, transform .3s ease;
}

.feature-card:hover .feature-card__icon {
    filter: brightness(1.28) drop-shadow(0 0 7px rgba(243,220,107,.65));
    transform: scale(1.035);
}

/* =========================
   3. METHOD
========================= */

.method-section {
    display: grid;
    align-items: center;
    background: var(--hg-graphite);
    color: #fff;
    padding-top: clamp(76px, 5.2vw, 98px);
    padding-bottom: clamp(48px, 4.2vw, 70px);
}

.method-header {
    display: grid;
    grid-template-columns: minmax(165px, 220px) minmax(620px, 1fr);
    gap: clamp(28px, 3.3vw, 58px);
    align-items: center;
    margin-bottom: clamp(26px, 2.8vw, 42px);
}

.method-badge {
    width: clamp(160px, 13.5vw, 220px);
    margin-inline: auto;
}

.method-header__copy {
    text-align: center;
}

.method-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 8px;
}

.method-eyebrow__icon {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.method-header h2 {
    margin-bottom: 10px;
    font-family: var(--hg-font-serif);
    font-size: clamp(1.9rem, 2.7vw, 2.7rem);
    line-height: 1.08;
}

.method-header__copy > p:last-child {
    max-width: 920px;
    margin-inline: auto;
    color: var(--hg-gold-light);
    font-size: clamp(1.08rem, 1.55vw, 1.42rem);
    line-height: 1.35;
}

.method-grid {
    width: min(100%, 1560px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 30px) clamp(32px, 4vw, 70px);
}

.method-card {
    min-height: clamp(122px, 8.1vw, 158px);
    padding: 8px 26px 14px;
    border: 3px solid var(--hg-gold);
    border-radius: 26px;
    box-shadow: inset 0 0 0 5px var(--hg-graphite), inset 0 0 0 7px var(--hg-gold);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.method-card__number {
    display: block;
    color: var(--hg-gold-light);
    font-family: var(--hg-font-serif);
    font-size: clamp(1.55rem, 1.7vw, 1.95rem);
    line-height: 1;
    letter-spacing: .22em;
}

.method-card h3 {
    margin: 5px 0 8px;
    color: var(--hg-gold-light);
    font-family: var(--hg-font-ui);
    font-size: clamp(.72rem, .78vw, .9rem);
    line-height: 1.1;
    letter-spacing: .28em;
}

.method-card p {
    max-width: 92%;
    margin: 0 auto;
    font-size: clamp(.68rem, .73vw, .82rem);
    font-weight: 700;
    line-height: 1.35;
}

/* =========================
   4. ABOUT
========================= */

.about-home {
    display: grid;
    align-items: center;
    background: var(--hg-cream);
    padding-top: clamp(92px, 7vw, 122px);
    padding-bottom: clamp(66px, 5.5vw, 88px);
}

.about-home__background-art {
    position: absolute;
    top: 0;
    left: 38.5%;
    width: clamp(220px, 18vw, 340px);
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: .50;
    pointer-events: none;
}

.about-home__intro {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    margin: 0 auto clamp(38px, 3.5vw, 54px);
    text-align: center;
}

.about-home__intro .eyebrow {
    font-family: var(--hg-font-ui);
    font-size: clamp(.68rem, .75vw, .82rem);
    letter-spacing: .34em;
}

.about-home__intro h2 {
    max-width: 1500px;
    margin: 0 auto 28px;
    font-family: var(--hg-font-serif);
    font-size: clamp(1.95rem, 2.45vw, 2.65rem);
    line-height: 1.08;
}

.about-home__intro p {
    max-width: 1180px;
    margin: 0 auto;
    font-size: clamp(1rem, 1.1vw, 1.16rem);
    line-height: 1.55;
}

.about-home__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(300px, 370px) minmax(520px, 760px);
    gap: clamp(62px, 6.5vw, 125px);
    align-items: center;
    justify-content: center;
}

.about-home__photo {
    width: 100%;
    max-width: 370px;
    aspect-ratio: 4 / 5.15;
    object-fit: cover;
    object-position: center top;
    border-radius: 0 105px 0 105px;
}

.about-home__content {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
}

.about-home__content .eyebrow {
    max-width: 760px;
    margin: 0 auto 14px;
    font-family: var(--hg-font-ui);
    font-size: clamp(.7rem, .78vw, .86rem);
    letter-spacing: .32em;
    text-align: center;
}

.about-home__content h3 {
    max-width: 760px;
    margin: 0 auto 22px;
    font-family: var(--hg-font-serif);
    font-size: clamp(1.12rem, 1.3vw, 1.42rem);
    line-height: 1.22;
    text-align: center;
}

.about-home__box {
    max-width: 760px;
    margin: 18px auto 0;
    padding: 34px 54px;
    border-radius: 18px;
    background: var(--hg-graphite);
    color: #fff;
    text-align: center;
    font-size: clamp(1rem, 1.08vw, 1.14rem);
    line-height: 1.65;
}

.about-home__box p {
    margin: 0;
}

.about-home__box p + p {
    margin-top: 26px;
}

.about-home__button {
    float: right;
    margin-top: 26px;
    min-width: 230px;
    font-size: 1rem;
}

/* =========================
   5. FOR WHOM
========================= */

.for-whom {
    display: grid;
    align-items: center;
    background: var(--hg-beige);
    padding-top: clamp(84px, 7vw, 118px);
    padding-bottom: clamp(70px, 6vw, 96px);
}

.for-whom__art {
    position: absolute;
    inset: 0 auto 0 0;
    width: 43%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    opacity: .92;
    pointer-events: none;
}

.for-whom__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(360px, .9fr) minmax(560px, 1.25fr);
    gap: clamp(70px, 8vw, 150px);
    align-items: center;
}

.for-whom__heading h2 {
    max-width: 520px;
    font-family: var(--hg-font-serif);
    font-size: clamp(2rem, 3.25vw, 3.05rem);
    line-height: 1.18;
}

.for-whom__content {
    font-size: clamp(1.02rem, 1.16vw, 1.2rem);
}

.check-item {
    display: grid;
    grid-template-columns: clamp(58px, 5vw, 82px) 1fr;
    gap: 18px;
    align-items: center;
    margin-top: 25px;
}

.check-item img {
    width: clamp(56px, 5vw, 78px);
}

/* =========================
   6. TRANSFORMATION
========================= */

.transformation {
    display: grid;
    align-items: center;
    background: var(--hg-graphite);
    color: #fff;
    padding-top: clamp(90px, 7vw, 120px);
    padding-bottom: clamp(72px, 6vw, 100px);
}

.transformation h2 {
    font-family: var(--hg-font-serif);
    font-size: clamp(2rem, 3.35vw, 3.25rem);
}

.transformation__grid {
    width: min(100%, 1500px);
    margin: clamp(46px, 5vw, 76px) auto 0;
    display: grid;
    grid-template-columns: minmax(270px, .78fr) minmax(330px, .72fr) minmax(270px, .78fr);
    gap: clamp(16px, 2.2vw, 42px);
    align-items: center;
}

.transformation__column:first-child {
    justify-self: end;
    width: min(100%, 420px);
}

.transformation__column:last-child {
    justify-self: start;
    width: min(100%, 420px);
}

.transformation__column h3 {
    color: var(--hg-gold-light);
    font-family: var(--hg-font-ui);
    letter-spacing: .28em;
}

.transformation__column ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-weight: 700;
}

.transformation__column li + li {
    margin-top: 20px;
}

.transformation__image {
    width: 100%;
    max-width: 390px;
    margin-inline: auto;
}

/* =========================
   7. FINAL CTA
========================= */

.final-cta {
    display: grid;
    align-items: stretch;
    background: var(--hg-cream);
    overflow: hidden;
    padding-top: clamp(96px, 8.2vw, 142px);
    padding-bottom: 0;
}

.final-cta h2 {
    text-align: center;
    font-family: var(--hg-font-heading);
    font-size: clamp(2.85rem, 4.8vw, 5rem);
    line-height: 1;
    margin-bottom: clamp(6px, .7vw, 10px);
}

.final-cta .gold-line {
    margin-bottom: clamp(18px, 2.4vw, 36px);
}

.final-cta__grid {
    display: grid;
    grid-template-columns: minmax(420px, .82fr) minmax(650px, 1.18fr);
    align-items: start;
    gap: clamp(10px, 2vw, 34px);
    min-height: calc(100svh - 255px);
}

.final-cta__copy {
    align-self: start;
    padding-left: clamp(52px, 7.2vw, 150px);
    padding-top: clamp(72px, 6.2vw, 112px);
}

.final-cta__copy p {
    max-width: 540px;
    margin: 0 auto clamp(34px, 3.5vw, 54px);
    font-size: clamp(1.65rem, 2.3vw, 2.3rem);
    line-height: 1.38;
    text-align: center;
}

.final-cta__copy .hg-button {
    display: flex;
    width: fit-content;
    min-width: 230px;
    margin-inline: auto;
}

.final-cta__art {
    position: relative;
    justify-self: end;
    align-self: start;
    width: clamp(650px, 56vw, 980px);
    height: clamp(390px, 38vw, 620px);
    min-height: 0;
    margin-right: calc(-1 * var(--hg-page-pad));
    margin-top: clamp(46px, 4.2vw, 78px);
}

.final-cta__paper {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right bottom;
}

.final-cta__door {
    position: absolute;
    right: 14%;
    bottom: 15%;
    width: 22%;
    height: auto;
}

/* =========================
   TABLET
========================= */

@media (max-width: 1100px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-card,
    .feature-card--1,
    .feature-card--2,
    .feature-card--3,
    .feature-card--4,
    .feature-card--5 {
        grid-column: auto;
    }

    .method-header {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .method-grid {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
        width: min(100%, 900px);
    }

    .about-home__grid {
        grid-template-columns: minmax(280px, 330px) minmax(420px, 1fr);
        gap: 48px;
    }

    .for-whom__grid {
        grid-template-columns: 1fr 1.25fr;
        gap: 50px;
    }

    .transformation__grid {
        gap: 24px;
    }

    .transformation__column:first-child,
    .transformation__column:last-child {
        width: auto;
        justify-self: stretch;
    }

    .final-cta__grid {
        grid-template-columns: 1fr 1fr;
    }

    .final-cta__copy {
        padding-top: clamp(44px, 5vw, 72px);
    }

    .final-cta__art {
        width: clamp(560px, 58vw, 760px);
        height: clamp(350px, 42vw, 500px);
        margin-right: calc(-1 * var(--hg-page-pad));
        margin-top: clamp(34px, 4vw, 60px);
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 720px) {
    .home-snap-section {
        min-height: auto;
        scroll-snap-align: none;
    }

    .home-snap-section > .hg-container,
    .feature-grid.hg-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero-home {
        min-height: 670px;
        padding-top: var(--hg-header-height);
    }

    .hero-home__background {
        background-position: 65% center;
    }

    .hero-home__overlay {
        background: linear-gradient(90deg, rgba(28,29,31,.9) 0%, rgba(28,29,31,.76) 68%, rgba(28,29,31,.45) 100%);
    }

    .hero-home__content h1 {
        font-size: clamp(2.9rem, 14vw, 4.3rem);
    }

    .hero-home__actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 330px;
        gap: 14px;
    }

    .home-intro,
    .method-section,
    .about-home,
    .for-whom,
    .transformation,
    .final-cta {
        display: block;
        padding-top: 64px;
        padding-bottom: 60px;
    }

    .feature-grid,
    .method-grid,
    .about-home__grid,
    .for-whom__grid,
    .transformation__grid,
    .final-cta__grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: 132px;
    }

    .method-header {
        grid-template-columns: 1fr;
    }

    .method-badge {
        width: 180px;
    }

    .method-card {
        min-height: 148px;
    }

    .method-card p {
        font-size: .82rem;
    }

    .about-home__background-art {
        left: 50%;
        width: 230px;
        height: 100%;
        opacity: .28;
        transform: translateX(-50%);
    }

    .about-home__photo {
        max-width: 330px;
        margin-inline: auto;
    }

    .about-home__content {
        max-width: none;
        text-align: center;
    }

    .about-home__box {
        padding: 28px 22px;
    }

    .about-home__button {
        float: none;
        margin-inline: auto;
    }

    .for-whom__art {
        width: 100%;
        opacity: .28;
    }

    .for-whom__heading h2 {
        max-width: none;
    }

    .transformation__grid {
        grid-template-areas:
            "before"
            "image"
            "after";
    }

    .transformation__column:first-child {
        grid-area: before;
        justify-self: stretch;
        width: auto;
    }

    .transformation__image {
        grid-area: image;
        max-width: 310px;
    }

    .transformation__column:last-child {
        grid-area: after;
        justify-self: stretch;
        width: auto;
    }

    .final-cta__copy {
        padding-left: 0;
        padding-top: 0;
        text-align: center;
    }

    .final-cta__copy p {
        margin: 0 auto 36px;
        font-size: clamp(1.45rem, 7vw, 2rem);
    }

    .final-cta__art {
        width: min(112%, 560px);
        height: auto;
        aspect-ratio: 1.42 / 1;
        margin-left: auto;
        margin-right: -14px;
    }

    .final-cta__paper {
        object-fit: contain;
        object-position: right bottom;
    }

    .final-cta__door {
        right: 14%;
        bottom: 15%;
        width: 22%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}


/* v13 — Block 5 eyebrow visibility */
.for-whom .eyebrow {
    color: var(--hg-graphite);
}
