
:root {
    --header-color: #D49687;
    --text-dark: #333;

    --phone-size-pc: 46px;
    --phone-size-mobile: 36px;
}




/* ================= ZÁKLAD ================= */
* { box-sizing: border-box; margin:0; padding:0; }

body {
    font-family: 'Century Gothic', sans-serif;
    background: #D49687;
    padding-top: 150px; /* offset pre pevný header */
}

/* ================= HEADER ================= */
header {
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:150px;
    background: var(--header-color);
    z-index:1000;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    padding:10px 15px;
}







/* ================= HOME LINK PRE LOGO A TEXT ================= */
.header-top {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-text {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    margin-bottom: 10px;
}

.home-text:hover { cursor: pointer; }

.home-logo img {
    height: 60px;
    object-fit: contain;
    display: block;
}

.home-logo:hover { cursor: pointer; }

/* ================= NAVIGÁCIA ================= */
nav { margin-top:10px; z-index:2; }

nav ul {
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    justify-content:center;
    gap:20px;
}

nav a {
    text-decoration:none;
    color:#fff;
    font-weight:bold;
    padding:8px 12px;
    border-radius:8px;
    white-space:nowrap;
}

nav a.active,
nav a:hover {
    background-color: #b37468;
    transition: background-color 0.3s ease;
}

.hamburger {
    display:none;
    font-size:28px;
    color:#fff;
    cursor:pointer;
    z-index:1300;
    position:fixed;
    top:20px;
    right:15px;
}

/* ================= KONTAKT PÁS POD HEADEROM ================= */
.contact-info {
    background: #fff;
    text-align: center;
    padding: 20px 15px;
    z-index: 100;
    position: relative;
    width: 100%;
}

.contact-info p {
    margin: 5px 0;
    color: var(--header-color);
    font-weight: bold;
}



/* ================= INTRO / ILUSTRÁCIA ================= */
.intro-box {
    background: #fff;
    padding: 20px;
}

.intro-content {
    display: flex;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: flex-start;
}

.intro-text { flex:2; text-align:left; }
.intro-image { flex:3; text-align:center; }

.intro-text h2 {
    font-size:40px;
    color: var(--header-color);
    margin-bottom:20px;
}


.intro-text h1 {
    font-size: 40px;
    color: var(--header-color); /* rovnaká farba ako header */
    margin-bottom: 20px;
    font-weight: bold;
}


/* ================= ANIMÁCIA OBRÁZKA ================= */
.animated-img {
    width: 100%;
    transform: scale(1);
    opacity: 0;
    transition: transform 1.5s ease-out, opacity 1.5s ease-out;
}

.animated-img.loaded {
    transform: scale(1.05);
    opacity: 1;
}

/* ================= ADRESA A MAPA ================= */
.address-box {
    background: var(--header-color);
    color:#fff;
    text-align:center;
    padding:20px;
}

.address-box h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.map-container iframe {
    width: 100%;
    max-width: 1100px;
    height: 400px;
    border:0;
    margin: 0 auto;
    display: block;
}

/* ================= FOOTER ================= */
footer {
    background: #fff;
    text-align: center;
    padding: 20px;
    color: var(--header-color); /* farba rovnaká ako titul */
}


/* ================= PC ÚPRAVY ================= */
@media (min-width:769px) {
    header { height:150px; }
    body { padding-top:150px; }

    .intro-text h2, .address-box h2 {
        font-size: 26px;
    }



    .intro-content {
        flex-direction: row;
        text-align: left;
    }

    .intro-content .intro-text.center-text {
        text-align: center;
        margin: 0 auto;
    }
}

/* ================= MOBILE ================= */
@media (max-width:768px) {
    header { height:120px; }
    body { padding-top:120px; }

    .hamburger { display:block; }

    nav ul {
        flex-direction: column;
        position: fixed;
        top:0;
        right:0;
        width:70%;
        max-width:300px;
        height: auto;
        padding-bottom: 20px;
        background: linear-gradient(to bottom, rgba(179, 91, 79, 0.95), rgba(212, 150, 135, 0.95));
        padding:60px 20px 20px;
        margin:0;
        transform:translateX(100%);
        transition:transform 0.3s ease;
        z-index:1250;
        display:flex;
    }

    nav ul.show { transform:translateX(0); }
    nav a { font-size:18px; padding:10px; }

    .intro-text h2 { font-size:24px; line-height:1.25; margin-bottom:15px; }
    .address-box h2 { font-size:22px; margin-bottom:15px; }


    .intro-text h1 {
        font-size: 24px;
        line-height: 1.25;
        margin-bottom: 15px;
    }


    .intro-content { flex-direction: column; text-align: center; gap:20px; }
    .intro-text, .intro-image { width:100%; flex:auto; }

}





/* ================= HAMBURGER MENU – mobil ================= */
@media (max-width:768px) {

    .hamburger {
        display:block; /* hamburger viditeľný iba na mobile */
    }

    nav ul {
        flex-direction: column;
        position: fixed;
        top:0;
        right:0;
        width:70%;
        max-width:300px;
        height: auto;
        padding-bottom: 20px;
        background: linear-gradient(to bottom, rgba(179, 91, 79, 0.95), rgba(212, 150, 135, 0.95));
        padding:60px 20px 20px;
        margin:0;
        transform:translateX(100%);
        transition: transform 0.3s ease;
        z-index:1250;
        display:flex;
    }

    nav ul.show {
        transform: translateX(0);
    }

    nav ul li {
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.45s cubic-bezier(.22,.61,.36,1),
                    transform 0.45s cubic-bezier(.22,.61,.36,1);
        transition-delay: calc(var(--i) * 0.12s); /* stagger animácia */
    }

    nav ul.show li {
        opacity: 1;
        transform: translateY(0);
    }

    nav a {
        font-size: 18px;
        padding: 10px;
    }
}





/* ================= STREDOVÝ TEXT – iba pre index a mikrodermabráziu ================= */
.center-text {
    text-align: center;
}

.center-text h2 {
    text-align: center;
}

.center-text ~ .intro-image {
    display: flex;
    justify-content: center;
}

/* ================= CENNÍK TABUĽKA ================= */
.cennik-section {
    background: #fff;
    padding: 30px 20px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.cennik-section h2 {
    color: var(--header-color);
    font-size: 28px; /* menší titul */
    margin-bottom: 20px;
    text-align: center;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 0 auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

table td, table th {
    padding: 10px 12px;
    font-size: 16px;
}

/* Text služby vľavo, cena vpravo */
table td:first-child {
    text-align: left;
    font-weight: normal;
    word-break: break-word; /* zalamovanie textu služby, cena ostane vpravo */
}

table td:nth-child(2) {
    text-align: right;
    font-weight: 600; /* semibold namiesto bold */
    white-space: nowrap; /* cena nezalamuje riadok */
}

/* Každý druhý riadok jemne ružový – variácia na header */
table tr:nth-child(even) {
    background-color: rgba(212, 150, 135, 0.2); /* svetlo-ružová z header */
}

table tr:nth-child(odd) {
    background-color: #fff;
}

/* RESPONSIVE – mobil */
@media (max-width:768px) {
    table td, table th {
        padding: 8px 10px;
        font-size: 16px;
    }

    table td:nth-child(2) {
        font-size: 16px;
    }
}



/* ================= SLUŽBY – iba pre stránku služby ================= */
body.sluzby .intro-text p:first-of-type {
    text-align: left;       /* vetu „Ďalej u nás nájdete“ dolava */
    margin: 10px 0 20px 0;  /* mierne posunutie hore/dole */
    font-weight: normal;    /* obyčajný rez */
    color: inherit;         /* farba nemeníme */
}

body.sluzby .intro-text ul {
    list-style-type: disc;  /* klasické gulky */
    padding-left: 20px;     /* odsadenie guliek od okraja textu */
    margin: 0;
}

body.sluzby .intro-text ul li {
    color: var(--text-dark);   /* text čierny */
    text-align: left;          /* text vľavo */
    margin-bottom: 8px;        /* medzera medzi riadkami */
    position: relative;
}

body.sluzby .intro-text ul li::marker {
    color: var(--header-color); /* farebné gulky */
    font-size: 18px;
}

/* ================= Ostatné stránky – text stred ================= */
body:not(.sluzby) .intro-text p,
body:not(.sluzby) .intro-text ul {
    text-align: center;
    margin: 0 auto;
}

body:not(.sluzby) .intro-text ul li {
    display: inline-block;  /* gulky a text vedľa seba stred */
    text-align: center;
    margin: 0 10px 8px 10px;
}


/* ================= CENNÍK – obrázok pod tabuľkou (upravený) ================= */
.cennik-image-container {
    max-width: 1050px;   /* mierne užší ako tabuľka, aby nepretŕčal */
    margin: 20px auto;   /* medzera od tabuľky a centrovanie */
    overflow: hidden;    /* skryje prebytočný zoom */
}

.cennik-image-container img {
    width: 98%;          /* mierne menší než kontajner */
    display: block;
    margin: 0 auto;      /* centrovanie */
    transform: scale(1);
    opacity: 0;
    transition: transform 1.5s ease-out, opacity 1.5s ease-out;
}

.cennik-image-container img.loaded {
    transform: scale(1.03); /* jemný zoom */
    opacity: 1;
}



/* ================= ÚVODNÝ TEXT NA STRED – iba pre index ================= */
body:not(.sluzby) .intro-text.center-text {
    text-align: center;      /* celý blok textu na stred */
    margin: 0 auto;
}

body:not(.sluzby) .intro-text.center-text h2 {
    text-align: center;
    color: var(--header-color);  /* titulok farebný */
    margin-bottom: 20px;
}

body:not(.sluzby) .intro-text.center-text p {
    text-align: center;
    color: var(--text-dark);      /* text čierny */
    line-height: 1.6;
    max-width: 700px;             /* blok textu nebude príliš široký */
    margin: 0 auto;
}

/* ============================================ */
/* CENTROVANIE ÚVODNÉHO TEXTU – DEFINITÍVNE */
body:not(.sluzby) .intro-text {
    text-align: center !important;
}

body:not(.sluzby) .intro-text h2,
body:not(.sluzby) .intro-text p {
    display: block;       /* aby text-align fungovalo správne */
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* ================= KONTAKT – väčšie a klikateľné telefónne číslo ================= */
.contact-info .phone a {
    font-size: var(--phone-size-pc);
    font-weight: bold;
    color: var(--header-color);
    text-decoration: none;
}

.contact-info .phone a:hover {
    color: var(--header-color);
    text-decoration: none;
}

/* RESPONSIVE – mobil */
@media (max-width:768px) {
    .contact-info .phone a {
        font-size: var(--phone-size-mobile);
    }
}


/* ------------------- Kontajner obrázku ------------------- */
.intro-image {
    position: relative;
    width: 100%;
    max-width: 600px; /* podľa veľkosti podkladu */
    margin: 0 auto;
}

/* Podkladová fotka */
.animated-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===================== Klikateľný mobil – jednoduché ovládanie ===================== */
:root {
    --phone-width-pc: 586px;       /* veľkosť mobilu na PC */
    --phone-width-mobile: 430px;   /* veľkosť mobilu na mobile */
    --phone-top: 51%;              /* vertikálne posunutie */
    --phone-left: 60%;             /* horizontálne posunutie */
}

.phone-overlay {
    position: absolute;
    top: var(--phone-top);
    left: var(--phone-left);
    transform: translate(-50%, -50%);
    display: inline-block;
    cursor: pointer;
    z-index: 10;
    pointer-events: auto;
}

.phone-overlay img {
    width: var(--phone-width-pc);  /* ovláda sa cez premennú */
    height: auto;
    animation: pulse 2s ease-in-out infinite;
}

/* Pulz animácia */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ------------------- Responsive pre mobil ------------------- */
@media (max-width:768px) {
    .phone-overlay {
        top: var(--phone-top);      /* vertikálne posunutie rovnaké premennou */
        left: var(--phone-left);    /* horizontálne posunutie */
    }

    .phone-overlay img {
        width: var(--phone-width-mobile); /* veľkosť sa ovláda premennou */
        height: auto;
    }
}
