/*
Theme Name: Divine
Description: Custom theme for divinemassage.pl - warm light palette taken from the logo background.
Version: 0.1.0
Requires PHP: 8.2
Text Domain: divine
*/

:root {
    --greige: #D4C7B7;
    --greige-deep: #C3B4A1;
    --ivory: #F1EAE1;
    --surface: #FBF7F2;
    --ink: #141210;
    --text: #231F1B;
    --muted: #6E6458;
    --brass: #9A7345;
    --line: #D8CEC2;
    --line-soft: #E6DED4;
    --f-d: "Prata", "Times New Roman", serif;
    --f-b: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --ivory: #15120F;
        --surface: #1D1915;
        --text: #EBE1D4;
        --muted: #A29686;
        --brass: #C99C63;
        --line: #332C25;
        --line-soft: #282219;
    }
}

:root[data-theme="dark"] {
    --ivory: #15120F;
    --surface: #1D1915;
    --text: #EBE1D4;
    --muted: #A29686;
    --brass: #C99C63;
    --line: #332C25;
    --line-soft: #282219;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--ivory);
    color: var(--text);
    font-family: var(--f-b);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 92px; /* room for the sticky booking bar */
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 20px; }

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

/* ---- masthead ---- */
.masthead { background: var(--greige); color: var(--ink); }
.masthead .wrap { padding-block: 26px 20px; text-align: center; }
.masthead .brand { display: block; width: min(460px, 82%); margin: 0 auto 18px; }
.masthead .brand img { display: block; width: 100%; }
.masthead nav ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px;
    font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
}
.masthead nav a { text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.masthead nav a:hover,
.masthead nav .current-menu-item > a { border-bottom-color: var(--ink); }
.masthead .wrap { position: relative; }
.masthead .lang-switch { position: absolute; top: 14px; right: 20px; }
.masthead .lang-switch ul { gap: 4px 14px; font-size: 11px; }
.masthead .lang-switch a { opacity: .6; }
.masthead .lang-switch a:hover, .masthead .lang-switch a[aria-current] { opacity: 1; border-bottom-color: var(--ink); }

/* ---- section furniture ---- */
section { padding-block: 66px; }
section + section { border-top: 1px solid var(--line); }
.label {
    display: flex; align-items: center; gap: 16px;
    font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
    color: var(--muted); margin: 0 0 28px;
}
.label::before, .label::after { content: ""; height: 1px; background: var(--line); flex: 1; }
h1, h2, h3 { font-family: var(--f-d); font-weight: 400; letter-spacing: .01em; margin: 0; }
h1 { font-size: clamp(38px, 6.4vw, 62px); line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(27px, 3.8vw, 38px); line-height: 1.18; text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.25; }
p { margin: 0 0 18px; }
.lede { font-size: 17.5px; color: var(--muted); max-width: 56ch; }
.section-head { margin-bottom: 36px; }
.section-head h2 { margin-bottom: 14px; }

/* ---- buttons ---- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 32px 0 18px; }
.btn {
    display: inline-block;
    font-family: var(--f-b); font-size: 12.5px; font-weight: 400;
    letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
    padding: 14px 30px; border: 1px solid var(--ink);
    background: var(--ink); color: var(--greige);
    transition: background .18s, color .18s;
}
.btn:hover { background: transparent; color: var(--text); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--text); }
.note { font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.note b { color: var(--brass); font-weight: 500; }

/* ---- hero ---- */
.hero { text-align: center; padding-block: 74px 60px; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-inline: auto; }

/* ---- service cards ---- */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service { padding: 26px 24px; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service h3 { margin-bottom: 8px; }
.service .durations { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.service p { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.service .from { margin-top: auto; margin-bottom: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }

.service h3 a { text-decoration: none; }
.service h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.service-photo { display: block; margin: -26px -24px 20px; }
.service-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---- team ---- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 26px; }
.team + .more { margin: 36px 0 0; text-align: center; }
.page-content + .team { margin-top: 40px; }
.card > a { text-decoration: none; }
.card .portrait { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.card h3 { margin: 16px 0 2px; }
.card .meta { font-size: 12.5px; color: var(--muted); letter-spacing: .03em; margin: 0; }
.card .shift {
    margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line);
    font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--brass);
}
.ph { background: var(--greige); border: 1px solid var(--greige-deep); }
.ph.p23 { aspect-ratio: 2 / 3; }

/* ---- gallery ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 30px; }
.gallery-grid img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---- single service / therapist ---- */
.service-single, .profile { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-bottom: 30px; }
@media (min-width: 860px) {
    .service-single { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
    .profile { grid-template-columns: 380px minmax(0, 1fr); align-items: start; }
    .profile-duo { grid-template-columns: 480px minmax(0, 1fr); }
}
.service-hero { margin: 0 0 28px; }
.service-hero img, .profile-photo img { display: block; width: 100%; }
.profile-photo { margin: 0; }
.price-box { background: var(--surface); border: 1px solid var(--line); padding: 28px; }
.price-box h2 { font-size: 22px; margin-bottom: 14px; }
.price-box ul { list-style: none; margin: 0 0 22px; padding: 0; }
.price-box li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.price-box li b { font-weight: 400; }
.price-box .btn { display: block; text-align: center; }
.price-box .note { margin: 12px 0 0; text-align: center; }
.profile-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px 24px; margin: 0 0 26px; }
.profile-facts dt { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.profile-facts dd { margin: 2px 0 0; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- price list ---- */
.pricelist { width: 100%; border-collapse: collapse; font-size: 15px; }
.pricelist th, .pricelist td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.pricelist th:first-child, .pricelist td:first-child { text-align: left; padding-left: 0; }
.pricelist thead th {
    font-size: 11px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase;
    color: var(--muted); border-bottom: 1px solid var(--text);
}
.pricelist .service-name { font-family: var(--f-d); font-size: 18px; text-decoration: none; }
.pricelist a.service-name:hover { text-decoration: underline; text-underline-offset: 4px; }
.pricelist .service-row + .variant-row td,
.pricelist .variant-row + .variant-row td { border-top: 0; }
.pricelist .pln { font-weight: 400; }
.pricelist .fx { color: var(--muted); font-size: 13.5px; }
.pricelist .minutes { color: var(--muted); }
.price-note { font-size: 13.5px; color: var(--muted); margin-top: 22px; }
.price-note b { color: var(--text); font-weight: 400; }

@media (max-width: 560px) {
    .pricelist .fx { display: none; }
}

/* ---- rules ---- */
.rules { background: var(--surface); border: 1px solid var(--line); padding: 34px; }
.rules h3 { margin-bottom: 14px; }
.rules ul { margin: 0; padding-left: 1.1em; }
.rules li { margin-bottom: 9px; font-size: 14.5px; }
.rules li::marker { color: var(--brass); }

/* ---- faq ---- */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    cursor: pointer; list-style: none; padding: 17px 0;
    font-size: 15.5px; display: flex; justify-content: space-between; gap: 20px; align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brass); font-size: 17px; flex: none; }
.faq details[open] summary::after { content: "-"; }
.faq details p { font-size: 14.5px; color: var(--muted); margin: 0 0 18px; max-width: 62ch; }

/* ---- contact ---- */
.contact dl { margin: 0; font-size: 15px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 34px; }
.contact dt { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.contact dd { margin: 4px 0 0; }

/* ---- plain pages ---- */
.page-content { max-width: 760px; }
.page-content h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 28px; }
.page-content h2 { font-size: 26px; margin: 36px 0 14px; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; font-size: 12.5px; color: var(--muted); }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px; }
.site-footer b { font-weight: 500; color: var(--text); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.disclaimer { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 12px; line-height: 1.8; }

/* ---- sticky booking bar ---- */
.sticky {
    position: fixed; inset: auto 0 0 0; z-index: 20;
    background: var(--ink); color: var(--greige);
    border-top: 1px solid var(--brass);
}
.sticky .msg {
    text-align: center; font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
    padding: 7px 16px 0; opacity: .72; margin: 0;
}
.sticky .row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; padding: 8px 12px 12px; max-width: 520px; margin-inline: auto; }
.sticky a {
    text-align: center; text-decoration: none; padding: 11px 8px;
    font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
    border: 1px solid rgba(212, 199, 183, .4);
}
.sticky a.primary { background: var(--greige); color: var(--ink); border-color: var(--greige); }

/* ---- cookie consent ---- */
.consent-banner {
    position: fixed; inset: auto 0 0 0; z-index: 30;
    background: var(--surface); color: var(--text);
    border-top: 1px solid var(--brass);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .12);
    padding-block: 20px;
}
.consent-banner[hidden] { display: none; }
.consent-inner { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
.consent-text { flex: 1 1 420px; font-size: 13.5px; color: var(--muted); }
.consent-text p { margin: 0; }
.consent-title { font-family: var(--f-d); font-size: 18px; color: var(--text); margin-bottom: 4px !important; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-actions .btn { padding: 12px 20px; cursor: pointer; }
@media (max-width: 560px) {
    .consent-actions { width: 100%; }
    .consent-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

/* ---- booking form and map ---- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 48px; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; } }
.booking { display: grid; gap: 16px; padding: 30px; background: var(--surface); border: 1px solid var(--line-soft); }
.booking h3 { margin: 0 0 4px; }
.booking .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.booking label { display: grid; gap: 6px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.booking input, .booking select, .booking textarea {
    font: 15px/1.4 var(--f-b); color: var(--text); letter-spacing: normal; text-transform: none;
    background: var(--ivory); border: 1px solid var(--line); border-radius: 0; padding: 11px 12px; width: 100%;
}
.booking input:focus, .booking select:focus, .booking textarea:focus { outline: 2px solid var(--brass); outline-offset: -1px; }
.booking .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; letter-spacing: normal; text-transform: none; }
.booking .consent input { width: auto; margin-top: 3px; }
.booking .btn { justify-self: start; cursor: pointer; }
.booking .note { margin: 0; }
.booking .hint { margin: -8px 0 0; font-size: 12.5px; color: var(--muted); }
.booking .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.booking-msg { margin: 0; padding: 12px 14px; font-size: 14px; border-left: 3px solid var(--brass); background: var(--ivory); }
.booking-msg.error { border-left-color: #B3402F; }
.map { margin: 0; display: flex; flex-direction: column; min-height: 360px; }
.map iframe { flex: 1; width: 100%; min-height: 340px; border: 1px solid var(--line-soft); }
.map figcaption { font-size: 13px; margin-top: 10px; }

/* ---- lightbox (assets/lightbox.js) ---- */
.gallery-grid a { display: block; overflow: hidden; cursor: zoom-in; }
.gallery-grid img { transition: transform .4s ease, opacity .3s; }
.gallery-grid a:hover img { transform: scale(1.03); opacity: .92; }
html.lightbox-open { overflow: hidden; }
.lightbox {
    width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
    background: rgba(12, 10, 8, .96); color: #EBE1D4;
}
.lightbox::backdrop { background: rgba(12, 10, 8, .96); }
.lightbox[open] { display: grid; place-items: center; animation: lightbox-in .2s ease; }
@keyframes lightbox-in { from { opacity: 0; } }
.lightbox { overflow: hidden; }
.lightbox-stage { margin: 0; width: 100%; height: 100%; display: grid; place-items: center; }
.lightbox-stage img { max-width: calc(100vw - 144px); max-height: calc(100dvh - 112px); width: auto; height: auto; object-fit: contain; box-shadow: 0 10px 50px rgba(0, 0, 0, .5); user-select: none; }
.lightbox-count { position: absolute; top: 18px; left: 0; right: 0; margin: 0; text-align: center; font-size: 12px; letter-spacing: .2em; color: #A29686; }
.lightbox-btn {
    position: absolute; background: none; border: 0; color: #EBE1D4; cursor: pointer;
    font: 300 44px/1 var(--f-d); width: 56px; height: 56px; opacity: .75; transition: opacity .15s;
}
.lightbox-btn:hover, .lightbox-btn:focus-visible { opacity: 1; }
.lightbox-btn:focus-visible { outline: 1px solid #C99C63; }
.lightbox-close { top: 6px; right: 10px; font-size: 38px; }
.lightbox-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox.single .lightbox-prev, .lightbox.single .lightbox-next, .lightbox.single .lightbox-count { display: none; }
@media (max-width: 640px) {
    .lightbox-stage img { max-width: calc(100vw - 16px); max-height: calc(100dvh - 120px); }
    .lightbox-prev, .lightbox-next { top: auto; bottom: 6px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .lightbox[open] { animation: none; }
    .gallery-grid img { transition: none; }
}
.lightbox:focus { outline: none; }

/* ---- legal pages ---- */
.page-content ol, .page-content ul { padding-left: 1.3em; }
.page-content li { margin-bottom: 8px; }
.page-content li > ul { margin-top: 8px; }
.page-content table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 22px; display: block; overflow-x: auto; }
.page-content th, .page-content td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.page-content th { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
mark.todo { background: #F3D27A; color: #231F1B; padding: 1px 5px; border-radius: 2px; }
mark.todo::before { content: "DO UZUPEŁNIENIA: "; font-size: .78em; letter-spacing: .06em; }
