@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:ital,wght@0,100..900;1,100..900&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.socials a {
    height: 50px;
}

:root {
    --bg-color: #f2ddb0;
    --text-color: #333;
    --accent-font: 'Playfair Display', serif;
    --body-font: 'Poppins', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--body-font);
}

#pozadi {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

#pozadi .base {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,1), rgba(255,255,255,0.7)),
        url('img/pozadi2.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

#pozadi .bg-transition {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: -1;
}

/* NAVIGACE */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;

    p {
        color: #8d6728;
        font-weight: 700;
        transition: 0.3s ease-in-out;
    }
    p:hover {
        color: #ebd393;
    }
}

nav .address {
    display: flex;
    align-items: center;
    padding-left: 40px;
}

nav .address img {
    width: 30px;
    padding-right: 10px;
}

nav .address p {
    color: #8d6728;
    font-weight: 700;
}

nav .socials {
    display: flex;
    align-items: center;
    padding-right: 40px;
}

nav .socials img {
    width: 50px;
    height: 50px;
    margin-right: 20px;
}

/* SLUŽBY */
.sluzby {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 75vh;
}

.sluzby::before,
.sluzby::after {
    content: "";
    flex: 1;
}

.sluzby .sluzba {
    font-family: var(--body-font);
    text-transform: uppercase;
    padding: 0 50px;
    color:#8d6728;
    font-weight: 500;
    letter-spacing: 10px;
    text-decoration: none;
    transition: 0.5s ease-in-out;
}

.sluzby .sluzba:hover {
    color: #ebd393;
}

.sluzby .logo img {
    width: 370px;
}

.sluzby .logo h1 {
    text-align: center;
    font-family: var(--body-font);
    text-transform: uppercase;
    font-weight: 500;
    font-size: 30px;
    margin: 0;
    letter-spacing: 10px;
    color:#8d6728;
}

/* SECTIONS */
.sluzba-section {
    display: none;
    flex-direction: row;
}

.sluzba-section.active {
    display: flex;
    height: 100vh;
    width: 100vw;
    background: #f2ddb0;
}

.sluzba-section .info {
    width: 33.333%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.sluzba-section .info a {
    font-size: 24px;
    color: white;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.sluzba-section .info a:hover {
    color: #f2ddb0;
}


#kosmetika .info {
    background:
        linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)),
        url('img/kosmetika.png');
    background-size: cover;
    background-position: center;
}

#pedikúra .info {
    background:
        linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)),
        url('img/pedikura.png');
    background-size: cover;
    background-position: center;
}

#masáže .info {
    background:
        linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)),
        url('img/masaze.png');
    background-size: cover;
    background-position: center;
}

#vlasy-řasy .info {
    background:
        linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)),
        url('img/rasy.png');
    background-size: cover;
    background-position: center;
}

.sluzba-section .info h2 {
    font-size: 60px;
    font-family: var(--accent-font);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 20px 0;
}

.sluzba-section .info p {
    font-size: 24px;
    margin: 5px 0;
}

.sluzba-section .cenik {
    width: 66.666%;
    padding: 60px;
    overflow-y: auto;
}

/* Sekce názvy */
.section-title {
    font-family: var(--accent-font);
    color: #8d6728;
    font-weight: 900;
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 20px;
    letter-spacing: 10px;
}

/* Grid pro položky ceníku */
.pricelist-grid {
    display: grid;
    grid-template-columns: 1fr auto; /* Položka a cena */
    gap: 15px 10px;
    padding-bottom: 30px;
}

.item-name {
    grid-column: 1 / 2;
    font-weight: 400;
    font-size: 1rem;
    display: flex;
    align-items: center;
    white-space: nowrap; /* Ujistit se, že se název neláme */
    padding-right: 10px; /* Mezera před tečkami */
}

.item-price {
    grid-column: 2 / 3;
    font-weight: 700;
    font-size: 1rem;
    text-align: right;
}

/* Tečkovaná čára - klíčový prvek rozložení */
.dotted-line {
    grid-column: 1 / 3;
    order: -1; /* Umístí to před text v rámci řádku */
    height: 1px;
    border-bottom: 1px dotted var(--text-color);
    margin-left: 5px;
    margin-right: 5px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    width: 98%; /* Malá rezerva */
}

.pricelist-item {
    display: contents; /* Umožní dětem být přímo v gridu */
    position: relative;
}

.item-name, .item-price {
    background-color: var(--bg-color); /* Překryje tečky */
    color: var(--text-color);
    padding: 0 5px;
    position: relative;
    z-index: 2;
}

/* Speciální styly pro sekce */
.category-title {
    color: var(--text-color);
    font-weight: 700;
    margin-top: 5px;
    margin-bottom: 5px;
    grid-column: 1 / 3; /* Nadpis přes celou šířku */
}

.validity {
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 40px;
    padding: 10px 0;
}

/* Vzhled teček pro přesnou replikaci */
      
.item-name, .item-price {
    z-index: 2; /* Zajistí, že text je nad tečkami */
    background-color: var(--bg-color); /* Překryje tečky pod textem */
    display: inline-block;
}

.pricelist-grid .pricelist-item:not(.category-title-item) {
    display: flex;
    justify-content: space-between;
    grid-column: 1 / 3;
    position: relative;
    padding: 0;
}

.pricelist-grid .pricelist-item:not(.category-title-item) .item-name,
.pricelist-grid .pricelist-item:not(.category-title-item) .item-price {
    padding: 0 5px;
}

.pricelist-grid .pricelist-item:not(.category-title-item)::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 1px;
    border-bottom: 1px dotted var(--text-color);
    z-index: 1;
}

.pricelist-grid .pricelist-item:not(.category-title-item) .item-name {
    text-align: left;
}
.pricelist-grid .pricelist-item:not(.category-title-item) .item-price {
    text-align: right;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    margin-right: 40px;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: #8d6728;
    border-radius: 50%;
}

#pozadi.menu-active .bg-transition {
    opacity: 1;
    background: rgba(0,0,0,0.7);
}

#pozadi.menu-active .mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    inset: 0;
    z-index: 10;
}

.mobile-menu a {
    color: white;
    font-size: 24px;
    margin: 15px 0;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.mobile-menu .socials img {
    width: 50px;
    margin: 15px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* MEDIA QUERIES */

@media screen and (max-width: 1450px) {
    .sluzby .sluzba {
        letter-spacing: 0px;
    }

    .sluzba-section .info h2 {
        font-size: 40px;
        transition: 0.3s ease-in-out;
    }
}


@media screen and (max-width: 1115px) {
  .sluzba-section.active {
    flex-direction: column;
  }

  .sluzba-section.active .info,
  .sluzba-section.active .cenik {
    width: 100%;
  }
}

@media screen and (max-width: 1115px) {
    nav .socials, .sluzby .sluzba {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

@media screen and (max-width: 700px) {
    .sluzby .logo img {
        width: 300px;
    }

    .sluzby .logo h1 {
        text-align: center;
        font-family: var(--body-font);
        text-transform: uppercase;
        font-weight: 500;
        font-size: 20px;
        margin: 0;
        letter-spacing: 10px;
        color:#8d6728;
    }

    .sluzba-section .info {
        padding: 60px 20px;
    }

    .sluzba-section .info p {
        font-size: 16px;
    }

    .sluzba-section .cenik {
        padding: 60px 20px;
    }

    .sluzba-section .info a {
        font-size: 16px;
        color: white;
        cursor: pointer;
        transition: 0.3s ease-in-out;
    }

    .sluzba-section .cenik .pricelist-item span {
        font-size: 12px;
    }
}