/**
 * MADLEN — globalny system layoutu.
 *
 * Mobile-first.
 *
 * Ten plik określa:
 * - wspólny kontener,
 * - odstępy sekcji,
 * - podstawowe grid/flex utilities,
 * - breakpointy całego projektu.
 *
 * Konkretne sekcje HERO, SERVICES itd. mają własne pliki CSS.
 */


/* ============================================================
 * GŁÓWNY OBSZAR STRONY
 * ============================================================ */

.site {
    width: 100%;
    min-height: 100vh;
    overflow-x: clip;
}

.site-main {
    width: 100%;
}


/* ============================================================
 * CONTAINER
 *
 * Na telefonie zachowujemy około 16 px odstępu od krawędzi,
 * zgodnie z zaakceptowanym layoutem.
 * ============================================================ */

.container {
    width: min(
        calc(100% - (2 * var(--madlen-container-padding))),
        var(--madlen-container-max)
    );

    margin-inline: auto;
}

.container--narrow {
    max-width: 47.5rem;
}

.container--wide {
    max-width: var(--madlen-container-max);
}


/* ============================================================
 * SEKCJE
 * ============================================================ */

.section {
    position: relative;
    width: 100%;
    padding-block: var(--madlen-section-space);
}

.section--compact {
    padding-block: 2.5rem;
}

.section--flush {
    padding-block: 0;
}


/* ============================================================
 * PODSTAWOWE UKŁADY
 * ============================================================ */

.stack {
    display: flex;
    flex-direction: column;
}

.stack--xs {
    gap: 0.5rem;
}

.stack--sm {
    gap: 0.75rem;
}

.stack--md {
    gap: 1rem;
}

.stack--lg {
    gap: 1.5rem;
}

.stack--xl {
    gap: 2rem;
}


.cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}


.grid {
    display: grid;
    gap: 1rem;
}


/* ============================================================
 * MEDIA / OBRAZY
 * ============================================================ */

.media-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-contain {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* ============================================================
 * VISUALLY HIDDEN
 *
 * Element pozostaje dostępny dla czytników ekranu.
 * ============================================================ */

.screen-reader-text {
    position: absolute !important;

    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;

    border: 0;
}


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

@media (min-width: 48rem) {
    :root {
        --madlen-container-padding: 1.5rem;
        --madlen-section-space: 5rem;
    }

    .grid--2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ============================================================
 * DESKTOP
 * ============================================================ */

@media (min-width: 64rem) {
    :root {
        --madlen-container-padding: 2rem;
        --madlen-section-space: 6rem;
    }

    .grid--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* ============================================================
 * SZEROKI DESKTOP
 * ============================================================ */

@media (min-width: 80rem) {
    :root {
        --madlen-container-padding: 2.5rem;
    }
}


/* ==========================================================
   FOOTER
   Mocny wizualny finał strony, zgodny z identyfikacją Madlen.
   ========================================================== */

.site-footer {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 8vw, 7rem) 0 1.5rem;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(22, 131, 135, 0.25),
            transparent 32rem
        ),
        #003d46;
    color: rgba(255, 255, 255, 0.78);
}

.site-footer__inner {
    position: relative;
}

.site-footer__top {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 3rem;
}

.site-footer__brand {
    max-width: 360px;
}

.site-footer__logo {
    display: inline-block;
    width: min(290px, 78vw);
    margin-bottom: 1.5rem;
    padding: 1rem 1.2rem;
    border-radius: 18px;
    background: #ffffff;
}

.site-footer__logo img {
    display: block;
    width: 100%;
    height: auto;
}

.site-footer__brand-text {
    max-width: 32ch;
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.site-footer__address {
    color: #ffffff;
    font-size: 0.9rem;
    font-style: normal;
    line-height: 1.7;
}

.site-footer__heading {
    margin: 0 0 1.2rem;
    color: #e1b45a;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-footer__nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
}

.site-footer__nav a {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 650;
    text-decoration: none;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
    color: #e1b45a;
}

.site-footer__booking {
    max-width: 320px;
}

.site-footer__booking > p:not(.site-footer__heading) {
    margin: 0 0 1.5rem;
    line-height: 1.65;
}

.site-footer__booksy {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 48px;
    padding: 0.8rem 1.1rem;
    border-radius: 12px;
    background: #ffffff;
    color: #003d46;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease;
}

.site-footer__booksy:hover,
.site-footer__booksy:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.20);
}

.site-footer__qr {
    width: max-content;
    max-width: 180px;
}

.site-footer__qr-image {
    overflow: hidden;
    width: 145px;
    padding: 0.55rem;
    border-radius: 18px;
    background: #ffffff;
}

.site-footer__qr-image img {
    display: block;
    width: 100%;
    height: auto;
}

.site-footer__qr p {
    margin: 0.7rem 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.76rem;
    text-align: center;
}
.site-footer__bottom {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-top: 1.5rem;
    border-top:
        1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.76rem;
}

.site-footer__bottom p {
    margin: 0;
}

.site-footer__bottom a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}


@media (min-width: 48rem) {

    .site-footer__top {
        grid-template-columns:
            minmax(280px, 1.5fr)
            minmax(130px, 0.65fr)
            minmax(240px, 1fr);
    }

    .site-footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

}


@media (min-width: 70rem) {

    .site-footer__top {
        grid-template-columns:
            minmax(300px, 1.4fr)
            minmax(130px, 0.55fr)
            minmax(240px, 0.95fr)
            auto;
        align-items: start;
    }

}

/* ==========================================================
   FOOTER — GOOGLE MAPS
   Interaktywna mapa salonu pomiędzy nawigacją a Booksy.
   ========================================================== */

.site-footer__map {
    min-width: 0;
}

.site-footer__map-frame {
    overflow: hidden;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
}

.site-footer__map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 180px;
    border: 0;
}

.site-footer__map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.site-footer__map-link:hover,
.site-footer__map-link:focus-visible {
    color: #e1b45a;
}

@media (max-width: 47.999rem) {

    .site-footer__map-frame {
        max-width: 100%;
        aspect-ratio: 16 / 10;
    }

}

@media (min-width: 48rem) and (max-width: 79.999rem) {

    .site-footer__top {
        grid-template-columns:
            minmax(260px, 1.15fr)
            minmax(220px, 1fr);
    }

    .site-footer__map-frame {
        max-width: 100%;
    }

}

@media (min-width: 80rem) {

    .site-footer__top {
        grid-template-columns:
            minmax(280px, 1.2fr)
            minmax(100px, 0.45fr)
            minmax(240px, 0.95fr)
            minmax(220px, 0.9fr)
            auto;
        gap: clamp(1.5rem, 2.2vw, 2.5rem);
        align-items: start;
    }

    .site-footer__map-frame {
        max-width: 280px;
    }

}

/* ==========================================================
   FOOTER — TELEFON
   ========================================================== */

.site-footer__phone {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.85rem 0 0;
}

.site-footer__phone span {
    opacity: 0.78;
}

.site-footer__phone a {
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

.site-footer__phone a:hover,
.site-footer__phone a:focus-visible {
    text-decoration: underline;
}
