/* ════════════════════════════════════════
   SHARED STYLES — Thai massage website
   Pages: index.html, cenik.html, gallery.html
   ════════════════════════════════════════ */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Merriweather', serif;
    background-color: #F9F4F0;
    color: #2D2D2D;
    line-height: 1.6;
    font-size: 17px;
}

h1, h2, h3 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: #81053D;
    margin-top: 0;
}

/* ── Header ── */
header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
    background-color: rgba(129, 5, 61, 0.85);
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
    filter: invert(1) sepia(1) saturate(8) hue-rotate(0deg) brightness(0.85);
}

/* Hamburger toggle (CSS-only) */
#menu-toggle {
    display: none;
}

.menu-icon {
    display: block;
    cursor: pointer;
    padding: 8px;
    min-height: 44px;
    min-width: 44px;
}

.menu-icon span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #D4AF37;
    margin: 5px 0;
    transition: 0.3s;
}

nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(129, 5, 61, 0.95);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#menu-toggle:checked ~ nav {
    max-height: 200px;
}

nav a {
    display: block;
    text-decoration: none;
    color: #D4AF37;
    padding: 14px 16px;
    font-size: 15px;
    min-height: 44px;
    transition: color 0.3s;
}

nav a:hover {
    color: #fff;
}

/* ── Hero ── */
.hero {
    position: relative;
    text-align: center;
    padding: 80px 16px 40px;
    background: url('../gallery/hero-blur.jpg');
    background-size: cover;
    background-position: center top;
    overflow: hidden;
}

.hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center top;
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
    z-index: 0;
}

.hero-bg-layer.active {
    opacity: 1;
    transform: translateX(0);
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(249, 244, 240, 0.3) 0%, rgba(249, 244, 240, 0.68) 30%);
    z-index: 1;
    pointer-events: none;
}

.hero h1, .hero p, .hero a {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 32px;
    margin-bottom: 12px;
    color: #81053D;
}

/* ── Footer ── */
.footer {
    background: linear-gradient(rgba(129, 5, 61, 0.85), rgba(129, 5, 61, 0.85)), url('../bg_jana.jpg');
    background-size: cover;
    background-position: center top;
    color: #D4AF37;
    padding: 32px 16px;
    text-align: center;
    font-size: 15px;
}

.footer h2 {
    color: #D4AF37;
    font-size: 20px;
    margin-bottom: 15px;
}

.footer p {
    margin: 0 0 10px;
}

.footer a {
    color: #D4AF37;
    text-decoration: none;
    display: inline-block;
    min-height: 44px;
    min-width: 44px;
    padding: 4px 2px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    transition: color 0.2s ease;
}

.footer a.phone-link::after,
.footer a.email-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 2px;
    right: 2px;
    height: 1.5px;
    background: #D4AF37;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.2s ease;
}

.footer a.phone-link:hover::after,
.footer a.phone-link:active::after,
.footer a.email-link:hover::after,
.footer a.email-link:active::after {
    transform: scaleX(1);
}

.footer a.phone-link:hover,
.footer a.phone-link:active,
.footer a.email-link:hover,
.footer a.email-link:active {
    color: #fff;
}

.footer .hours {
    color: #D4AF37;
    font-size: 16px;
    font-weight: 600;
    margin-top: 12px;
}

/* ════════════════════════════════════════
   DESKTOP ENHANCEMENTS (min-width: 769px)
   ════════════════════════════════════════ */
@media (min-width: 769px) {
    body {
        font-size: 16px;
    }

    header {
        padding: 20px 50px;
    }

    .logo-img {
        height: 45px;
    }

    .menu-icon {
        display: none;
    }

    nav {
        position: static;
        display: flex;
        align-items: center;
        background: none;
        max-height: none;
        overflow: visible;
    }

    nav a {
        display: inline;
        padding: 0;
        margin-left: 20px;
        min-height: auto;
    }

    .hero {
        padding: 120px 20px 60px;
    }

    .hero h1 {
        font-size: 48px;
        margin-bottom: 16px;
    }

    .footer {
        padding: 40px 20px;
        font-size: 14px;
    }
}
