/* ------------------ */
/*     Variables      */
/* ------------------ */

:root {
    --primary-color: #fff;
    --secondary-color: #3A4147;
    --accent-color: #C0A76E;
}

html {
    scroll-behavior: smooth;
    scroll-padding: var(--scroll-padding, 6rem);
}


/* ------------------ */
/*       Reset        */
/* ------------------ */

/* Box sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Margin */
body, h1, h2, h3, h4, h5, h6, figure, picture {
    margin: 0;
}

/* Text wrap */
/* h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
} */

/* Body set up */
body {
    line-height: 1.5;
    min-height: 100vh;
}

/* Images */
img, picture {
    max-width: 100%;
    display: block;
}

/* Form */
input, button, textarea, select {
    font: inherit;
}

/* Removes animations for people that have turned them off */
@media(prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ------------------ */
/*  Utility classes   */
/* ------------------ */

.container {
    max-width: 1024px;
    margin-inline: auto;
    padding-inline: 2em;
}

.flex {
    display: flex;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.margin-top {
    margin-top: 3rem;
    display: inline-block;
}

/* ------------------ */
/*       Styles       */
/* ------------------ */

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
}

h1 {
    font-family: 'Playfair', serif !important;
    font-weight: 400;
    font-size: clamp(2rem, 8vw, 4rem);;
    margin-bottom: clamp(0.6rem, 1vw, 1rem);
    color: var(--secondary-color);
}

h2 {
    font-family: 'Playfair', serif !important;
    color: var(--secondary-color);
    font-weight: 400;
    font-size: clamp(2rem, 8vw, 4rem);
    text-align: center;
    margin-top: clamp(4.5rem, 10vw, 7.6rem);
    margin-bottom: clamp(1.8rem, 1.5vw, 2rem);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
}

h2::before, h2::after {
    content: "";
    height: 1px;
    background-color: var(--secondary-color);
    display: block;
}

.h2--norm::before,
.h2--norm::after {
    content: "";
    display: none;
}

.h2--norm {
    font-family: 'Playfair', serif !important;
    font-weight: 400;
    font-size: clamp(1rem, 8vw, 3rem);;
    margin-bottom: clamp(0.6rem, 1vw, 1rem);
    color: var(--primary-color);
    text-align: center;
    display: block;
    margin-block: 0;
}

h3 {
    color: var(--secondary-color);
    font-size: clamp(1rem, 4vw, 1.4rem);
    font-weight: 500;
    margin-top: clamp(1rem, 4vw, 1.4rem);
    margin-bottom: clamp(0.4rem, 3vw, 0.6rem);

}

p {
    margin-block: 0 clamp(0.4rem, 1vw, 0.8rem);
    font-size: clamp(0.75rem, 3.4vw, 1rem);
    color: var(--secondary-color);
    text-align: justify;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    font-size: clamp(0.75rem, 3.4vw, 1rem);

}

img {
    margin-bottom: 1rem;
}

.img-sm {
    margin-block: clamp(1rem, 3vw, 2.4rem);
}

@media (min-width: 700px) {
    .img-sm {
        max-width: 70%;
        margin-inline: auto;
    }
}

.button {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.5em 1em;
    text-decoration: none;
    font-weight: 300;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    display: inline-block;
}

@media (min-width: 426px) {
    .button {
        font-size: 1rem;
    }
}

/* ------------------ */
/*        Body        */
/* ------------------ */


/* HEADER - NAVIGATION */

.primary-header { 
    position: fixed; 
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0; 
    margin-top: 0;

}

.logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding-block: 0.4em 0.5em;
    background-color: var(--primary-color);
    width: 100vw;
} 

/* .img-logo {
    flex-basis: 100%;
    width: 10%;
} */

.img-logo img {
    /* width: 100%; */
    max-height: 4.8rem;
    margin-bottom: 0;
}

.krasnaspetrou img {
    width: 80px;
}

.sothys img{
    width: 180px;
}

.beauren img{
    width: 150px;
}

.mobile-nav-toggle {
    display: none;
}

.primary-navigation {
    display: flex;
    list-style: none;
    gap: 2rem;
    padding: 0;
    margin: 0;
    background-color: var(--secondary-color);
    justify-content: center;
    padding-block: 0.8em;
}

.nav-link {
    text-decoration: none;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 0.15rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.nav-link:hover, .nav-link:focus {
    color: var(--accent-color);
}

.nav-link:active {
    color: var(--accent-color);
}

@media (max-width: 710px) {
    .logos {
        background-color: var(--secondary-color);
        justify-content: flex-start;
        padding-inline: min(1.5rem, 9vw) 4.7rem;
        gap: 1rem;
        min-height: 4rem;
        padding-block: 0.6em;
        /* zda vidět pouze loga */
        position: fixed;
        z-index: 1000;
    }

    .logo {
        z-index: 1001;
        min-width: none;
    }

    .primary-navigation {
        position: fixed;
        z-index: 999;
        inset: 0 0 0 30%;
        flex-direction: column;
        justify-content: flex-start;
        padding: min(25vh, 15rem) 2rem;
        background-color: var(--secondary-color);
        transform: translateX(100%);
        transition: transform 500ms ease-in-out;
    }

    .mobile-nav-toggle {
        display: block;
        position: absolute;
        z-index: 9999;
        top: min(6vw, 2rem);
        right: min(6vw, 2rem);
        border: 0;
        background: url(./img/hamburger-icon.svg);
        background-repeat: no-repeat;
        background-position: center;
        object-fit: fit;
        width: 1.5rem;
        aspect-ratio: 1;
    }
} 

@media (max-width: 369px) {
    .logos {
        padding-right: clamp(5.2rem, 19vw, 6rem);
    }
}

 .primary-navigation[data-visible="true"] {
    transform: translateX(0%);
 
}

/* MAIN */

main {
    margin-top: clamp(5rem, 25vw, 9rem);
}

@media (min-width: 710px) {
    main {
        margin-top: 188px;
    }
}

/* HERO SECTION */

.hero-section {
    background-image: linear-gradient(0deg, rgba(58, 66, 71, 0.7), rgba(58, 66, 71, 0.7)), url(img/salon-mobile.jpeg);
    background-position: center;
    background-size: cover;
    padding-block: 15rem 13rem;
    color: var(--primary-color);
    margin-top: -2rem;
    height: 88vh;
}

.hero-section h1, .hero-section p {
    color: var(--primary-color);
}


.hero {
    display: flex;
    flex-direction: column;
}

.socials {
    display: flex;
    gap: 1rem;
    align-items: flex-start; 
    margin-top: clamp(0.5rem, 4vw, 1.2rem);
}

.call-button {
    min-height: 2rem;
}

.facebook, .instagram {
     min-width: 2rem;
}

@media (min-width: 426px) {
    .call-button {
        min-height: 2.5rem;
    }

    .facebook, .instagram {
        min-width: 2.5rem;
   }
}

.hero-section {
    margin-top: -3rem;
}

@media (min-width: 768px) {
    .hero-section {
        background-image: linear-gradient(0deg, rgba(58, 66, 71, 0.7), rgba(58, 66, 71, 0.7)), url(img/salon-desktop.jpeg);
        padding-block: 10rem 12.3rem;
        height: 83vh;
    }
}

/* O MĚ */

.img-Petra {
    margin-bottom: 1rem;
}

.phone::before {
    content: "";
    display: inline-block;
    width: clamp(0.75rem, 3.4vw, 1rem);
    height: clamp(0.75rem, 3.4vw, 1rem);
    background-image: url(img/phone-icon.svg);
    margin-right: 0.8rem;
}

.location {
    display: block;
    margin-block: 0 clamp(0.4rem, 1vw, 0.8rem);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.location::before {
    content: "";
    display: inline-block;
    width: clamp(0.75rem, 3.4vw, 1rem);
    height: clamp(0.75rem, 3.4vw, 1rem);
    background-image: url(img/location-icon.svg);
    background-size: contain;
    margin-right: 0.8rem;
}

@media (min-width: 620px) {
    .o-mne {
        display: grid;
        grid-template-areas: 
                    "img text"
                    "moto text";
        column-gap: 2rem;

    }

    .o-mne-img {
        grid-area: img;
        max-height: 460px;
    }

    .o-mne-moto {
        grid-area: moto;
    }
    
    .o-mne-text {
        grid-area: text;
    }

    .o-mne div {
        flex-basis: 100%;
    }
}

@media (min-width: 869px) {
    .o-mne {
        grid-template-areas: 
                    "img moto"
                    "img text";
    }

    .o-mne-text {
        grid-area: text;
        justify-self: start;
    }
}

/* CITÁT */

.citat {
    margin-top: clamp(4.5rem, 10vw, 7.6rem);
    background-color: var(--secondary-color);
    padding-block: 3rem;
}

.citat-text {
    font-family: 'Playfair', serif !important;
    color: var(--primary-color);
    font-weight: 400;
    font-size: clamp(2rem, 8vw, 4rem);
    text-align: center;
    line-height: 110%;
    padding-inline: 1em;
    max-width: 1224px;
    margin-inline: auto;
}

.citat-text::before {
    content: "\201c";
    color: var(--accent-color);
    font-size: clamp(4rem, 12vw, 6rem);

}

.citat-text::after {
    content: "\201d";
    color: var(--accent-color);
    font-size: clamp(4rem, 12vw, 6rem);
}

/* SLUZBY */

.sluzby span {
    margin-left: 1.5rem;
}

.iframe-video {
    max-width: 100%;
    display: block;
    margin-inline: auto;
    margin-block: clamp(1rem, 4vw, 2.5rem);
}


@media (min-width: 550px) {
    .sluzby-box {
        display: flex;
        column-gap: 2rem;
        /* align-items: center; */
    }

    .sluzby-img {
        aspect-ratio: 1;
        max-width: 250px;
    }
    
    .sluzby-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .kosmetika-text, .liceni-text, .skola-text {
        flex-basis: 100%;
        max-width: 45ch;
    }

    .kosmetika-img, .liceni-img, .skola-img {
        flex-basis: 80%;
    }
}

.video-nadpis {
    margin-block: 3rem -0.5rem;
}

/* GALERIE */

.galerie {
    display: grid;
    grid-template-areas: 
                "foto1 foto1"
                "foto2 foto3"
                "foto4 foto4"
                "foto4 foto4"
                "foto5 foto5";
    grid-auto-columns: 1fr;
    gap: 1rem;
}

.galerie img {
    max-height: 420px;
    margin: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.foto1 {
    grid-area: foto1;
}

.foto2 {
    grid-area: foto2;
}

.foto3 {
    grid-area: foto3;
}

.foto4 {
    grid-area: foto4;
}

.foto5 {
    grid-area: foto5;
}

@media (min-width: 705px) {
    .galerie {
        grid-template-areas: 
                    "foto4 foto2 foto5"
                    "foto4 foto3 foto5"
                    "foto1 foto1 foto1";
        gap: 2rem;
        grid-auto-rows: 180px;
    }
}

/* KONTAKT */

.iframe-map {
    max-width: 100%;
    height: 60%;
    margin-top: 1rem;
    display: block;
    margin: 0 auto;
    margin-top: 2rem;
    /* outline: var(--secondary-color) 2px solid; */
}


@media (min-width:734px) {
    .kontakt-box {
        display: flex;
    }

    .kontakt-box div {
        flex-basis: 100%;
        margin-bottom: 1rem;
    }

    .iframe-map {
        height: 15rem;
    }
}

/* FOOTER */

footer {
    margin-top: clamp(4.5rem, 10vw, 7.6rem);
    background-color: var(--secondary-color);
    padding-block: 1rem;
    padding-inline: clamp(1rem, 5vw, 2rem);
}

.line {
    height: 1px;
    background-color: var(--accent-color);
    margin-top: 0.5rem;
}

footer h3, footer p, footer a {
    color: var(--primary-color);
}

footer h3 {
    font-weight: 400;
    margin-block: 1rem 0.3rem;
    font-size: clamp(1rem, 4vw, 1.18rem);

}

footer a {
    margin-top: 0;
}

.footer-logo {
    max-height: 4.8rem;
    display: flex;
    justify-content: left;
    margin-bottom: 0;
}

.copyright {
    margin-top: 1rem;
    text-align: right;
}

@media (min-width: 500px) {
    .footer-flex {
        display: flex;
        justify-content: space-between;
    }

    .footer-flex div {
        max-width: 15ch;
    }
}

@media (min-width: 700px) {
    .footer-flex div {
        max-width: 100%;
    }
}

/* ------------------ */
/*     Kosmetika      */
/* ------------------ */

.kosmetika-h2 h2 {
    margin-top: 0; /* Overwrite the margin-top */
    margin-bottom: 0; /* Overwrite the margin-bottom */
    display: block !important;
    margin-bottom: 1em;
    font-family: 'Playfair', serif !important;
    font-weight: 400;
    font-size: clamp(2rem, 8vw, 4rem);;
    margin-bottom: clamp(0.6rem, 1vw, 1rem);

}

.sothys-margin {
    margin-top: 1rem;
}

.cos-box {
    background-color: var(--accent-color);
    color: var(--primary-color);
    /* margin-top: 1rem; */
    padding: 0 1.2rem;
}

.cos-box h3, .cos-box p {
    margin: 0;
    color: var(--primary-color);
}

.osetreni {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    row-gap: 0.6rem;
    padding-block: 1.2rem;
}
title {
    flex-basis: 100%;
}

.text {
    flex-basis: 100%;
}

.cas {
    flex-basis: 40%;
    font-weight: 400;
}

.cena {
    flex-basis: 40%;
    text-align: right;
    font-weight: 500;
    align-self: flex-end;
}

.title-b {
    flex-basis: 100%;
}

.cas-b {
    flex-basis: 50%;
    font-weight: 400;
}

.cena-b {
    flex-basis: 50%;
    text-align: right;
    font-weight: 500;
    align-self: flex-end;

}


@media (min-width: 518px) {
    .cos-box {
        padding-inline: 2rem;
    }

    .title {
        flex-basis: 75%;
        order: 1;
    }
    
    .text {
        flex-basis: 75%;
        order: 3;
    }
    
    .cas {
        flex-basis: 20%;
        order: 2;
        text-align: right;
    }
    
    .cena {
        flex-basis: 20%;
        order: 4;
    }
}

@media (min-width: 720px) {
    .cos-box {
        padding: 1rem 5rem;
    }

    .osetreni {
        padding-block: 1rem;
    }
}

/* sothys */
.hidden {
    display: none;
}

.hidden[data-visible="true"] {
    display: block;
}

.hidden[data-visible="false"] {
    display: none;
}


/* Miracletox/cellstory */
.hidden-b {
    display: none;
}

.hidden-b[data-visible="true"] {
    display: block;
}

.hidden-b[data-visible="false"] {
    display: none;
}

/* air in */
.hidden-a {
    display: none;
}

.hidden-a[data-visible="true"] {
    display: block;
}

.hidden-a[data-visible="false"] {
    display: none;
}

.img-sm-ver {
    max-height: 15rem;
    margin-inline: auto;
    margin-block: clamp(1rem, 3vw, 2.4rem);
}

