/*
Theme Name: Perfect Salon Modern
Theme URI: https://www.perfectsalon.sk
Author: Perfect Salon
Description: Modern light Perfect Salon theme with native Bookly page support, Perfect Card styling, and built-in GDPR/cookie pages.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: perfect-salon-modern
*/

:root {
    --ink: #1e1721;
    --muted: #786a78;
    --pink: #db259f;
    --pink-deep: #8d247c;
    --rose: #fff2fa;
    --cream: #fffaf4;
    --paper: #ffffff;
    --line: rgba(219, 37, 159, .18);
    --shadow: 0 22px 60px rgba(31, 23, 32, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(219, 37, 159, .12), transparent 28rem),
        linear-gradient(180deg, #fff 0%, var(--rose) 48%, var(--cream) 100%);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.site-shell {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.brand strong {
    display: block;
    font-size: 20px;
    line-height: 1.1;
}

.brand span span {
    display: block;
    color: var(--pink);
    font-size: 13px;
    font-weight: 800;
}

.site-nav,
.menu-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.menu-toggle {
    display: none;
}

.menu-panel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.menu-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a,
.menu-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 800;
}

.site-nav a:hover,
.menu-links a:hover {
    color: var(--ink);
    background: var(--rose);
}

.menu-toggle {
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    color: var(--pink-deep);
    background: #fff;
    box-shadow: none;
}

.menu-toggle span {
    display: block;
    width: 17px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.menu-toggle strong {
    font-size: 13px;
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--pink-deep));
    box-shadow: 0 14px 34px rgba(219, 37, 159, .24);
    font-weight: 900;
    cursor: pointer;
}

.button.secondary {
    color: var(--pink-deep);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: none;
}

.hero {
    padding: 68px 0 48px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
    gap: 44px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--pink);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero h1,
.page-title {
    margin: 0;
    max-width: 780px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: .98;
    letter-spacing: 0;
}

.hero h1 span {
    color: var(--pink);
}

.hero-copy {
    margin: 20px 0 0;
    max-width: 660px;
    color: var(--muted);
    font-size: clamp(18px, 2.2vw, 22px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-card,
.page-panel,
.info-card,
.contact-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .86);
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 22px;
    display: grid;
    gap: 14px;
}

.hero-card img {
    border-radius: 8px;
    background: #fff;
}

.hero-facts,
.info-grid,
.contact-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.hero-facts span,
.info-card,
.contact-item {
    padding: 16px;
}

.hero-facts span {
    border-radius: 8px;
    background: var(--rose);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.section-band {
    padding: 58px 0;
    border-top: 1px solid var(--line);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
}

.info-card strong,
.contact-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--pink-deep);
}

.page-wrap {
    padding: 58px 0 72px;
}

.page-panel {
    padding: clamp(20px, 4vw, 36px);
}

.entry-content {
    display: grid;
    gap: 18px;
}

.entry-content > * {
    margin-top: 0;
    margin-bottom: 0;
}

.entry-content p,
.entry-content li {
    color: var(--muted);
}

.entry-content a {
    color: var(--pink-deep);
    font-weight: 800;
}

.entry-content hr {
    width: 100%;
    border: 0;
    border-top: 1px solid var(--line);
    margin: 12px 0;
}

.entry-content .bookly-form,
.entry-content [class*="bookly-form"],
.entry-content [id*="bookly"] {
    padding: clamp(14px, 3vw, 26px);
    border: 1px solid rgba(219, 37, 159, .16);
    border-radius: 8px;
    background: linear-gradient(145deg, #fffaf3, #fff3fa);
    color: #1f1720;
}

.entry-content .bookly-form *,
.entry-content [class*="bookly-form"] *,
.entry-content [id*="bookly"] * {
    color: inherit;
}

.booking-note {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--rose);
    color: var(--muted);
}

.team-page .site-shell {
    display: grid;
    gap: 18px;
}

.team-intro p:last-child {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.team-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--shadow);
}

.team-photo {
    overflow: hidden;
    border-radius: 8px;
    background: var(--rose);
    aspect-ratio: 4 / 5;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-copy {
    display: grid;
    align-content: start;
    gap: 10px;
}

.team-copy h2 {
    margin: 0;
    color: var(--pink-deep);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.08;
}

.team-copy .entry-content {
    gap: 10px;
}

.team-copy .entry-content p,
.team-copy .entry-content li {
    color: var(--muted);
}

.booking-page .header-inner {
    min-height: 56px;
    gap: 12px;
}

.booking-page .brand {
    gap: 9px;
}

.booking-page .brand img {
    width: 40px;
    height: 40px;
}

.booking-page .brand strong {
    font-size: 16px;
}

.booking-page .brand span span {
    font-size: 11px;
}

.booking-page .site-nav,
.booking-page .menu-links {
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
}

.booking-page .site-nav a,
.booking-page .menu-links a {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 13px;
    white-space: nowrap;
}

.booking-page .page-wrap {
    padding: 18px 0 44px;
}

.booking-page .page-panel {
    padding: clamp(12px, 2vw, 20px);
}

.booking-page .entry-content .bookly-form,
.booking-page .entry-content [class*="bookly-form"],
.booking-page .entry-content [id*="bookly"] {
    padding: clamp(10px, 2vw, 18px);
}

.site-footer {
    padding: 34px 0;
    background: #120d14;
    color: rgba(255, 255, 255, .78);
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-banner {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 80;
    width: min(590px, calc(100% - 32px));
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.cookie-banner p {
    margin: 6px 0;
    color: var(--muted);
}

.cookie-actions,
.cookie-settings {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.cookie-settings {
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.cookie-settings label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 880px) {
    .hero-grid,
    .hero-facts,
    .info-grid,
    .contact-strip {
        grid-template-columns: 1fr;
    }

    .header-inner {
        min-height: 62px;
        padding: 8px 0;
        gap: 12px;
    }

    .brand img {
        width: 42px;
        height: 42px;
    }

    .brand strong {
        font-size: 16px;
    }

    .brand span span {
        font-size: 11px;
    }

    .site-nav {
        position: relative;
        flex: 0 0 auto;
        justify-content: flex-end;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .menu-panel {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        width: min(280px, calc(100vw - 32px));
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(255, 255, 255, .98);
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        pointer-events: none;
        transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    }

    .site-nav.is-open .menu-panel {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .menu-links,
    .menu-panel {
        display: grid;
        justify-items: stretch;
    }

    .menu-links {
        gap: 4px;
    }

    .site-nav a,
    .menu-links a {
        width: 100%;
        min-height: 42px;
        justify-content: flex-start;
        padding: 9px 11px;
        white-space: normal;
    }

    .hero {
        padding-top: 44px;
    }

    .section-heading {
        display: grid;
        align-items: start;
    }

    .booking-page .header-inner {
        display: flex;
        min-height: 52px;
        padding: 6px 0;
    }

    .booking-page .brand span span {
        display: none;
    }

    .booking-page .brand img {
        width: 34px;
        height: 34px;
    }

    .booking-page .brand strong {
        font-size: 14px;
    }

    .booking-page .site-nav,
    .booking-page .menu-links {
        justify-content: flex-end;
        overflow: visible;
        scrollbar-width: auto;
    }

    .booking-page .menu-links,
    .booking-page .menu-panel { display: grid; }

    .team-grid,
    .team-card {
        grid-template-columns: 1fr;
    }

    .team-photo {
        max-height: 420px;
    }
}
