/* Masážní studio Daniela – barvy a písma vycházejí z akvarelového loga */
@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/CormorantGaramond-SemiBold.woff2") format("woff2");
    font-weight: 400 600;
    font-display: swap;
}
@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/CormorantGaramond-Bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: "Great Vibes";
    src: url("../fonts/GreatVibes-Regular.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Whisper";
    src: url("../fonts/Whisper-Regular.ttf") format("truetype");
    font-display: swap;
}

:root {
    --teal-900: #0b3f48;
    --teal-700: #0f5560;
    --teal-500: #2f7f90;
    --teal-400: #3d8ea3;
    --aqua-300: #8ccbd0;
    --mint-200: #c8e7e0;
    --mint-100: #e6f4f0;
    --mint-50: #f3faf8;
    --sage: #6fae8f;
    --paper: #fcfefd;
    --ink: #1f3b40;
    --muted: #5b7f85;
    --line: #d5ebe6;
    --danger: #a8323a;
    --warn-bg: #fff6e0;
    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --script: "Great Vibes", "Segoe Script", cursive;
    --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius: 18px;
    --shadow: 0 10px 30px -18px rgba(15, 85, 96, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 17px/1.65 var(--sans);
    font-variant-numeric: lining-nums;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-underline-offset: 3px; }
a:hover { color: var(--teal-500); }
h1, h2, h3 { font-family: var(--serif); color: var(--teal-700); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- hlavička ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(252, 254, 253, .93); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--teal-700); }
.brand img { border-radius: 50%; }
.brand span, .footer-brand { display: flex; flex-direction: column; line-height: 1; }
.brand small, .footer-brand small { font-family: var(--serif); text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; font-weight: 600; }
.brand em, .footer-brand em { font-family: var(--script); font-style: normal; font-size: 1.9rem; margin-top: -2px; }
/* Písmeno D v nápisu „Daniela" je z písma Whisper – jeho tvar je nejblíž logu; zbytek slova zůstává v Great Vibes. */
.brand em::first-letter, .footer-brand em::first-letter { font-family: "Whisper", var(--script); font-size: 1.18em; line-height: 0; margin-right: -.02em; text-shadow: .012em 0 0 currentColor; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { padding: 8px 12px; text-decoration: none; color: var(--ink); border-radius: 999px; font-size: .98rem; }
.nav a:not(.btn):hover, .nav a.active { background: var(--mint-100); color: var(--teal-700); }
.nav .btn { margin-left: 8px; }
.nav-toggle, .nav-burger { display: none; }

@media (max-width: 860px) {
    .nav-burger { display: grid; gap: 5px; padding: 12px; cursor: pointer; }
    .nav-burger span { width: 24px; height: 2px; background: var(--teal-700); border-radius: 2px; }
    .nav-toggle { display: block; position: absolute; opacity: 0; right: 20px; width: 48px; height: 48px; }
    .nav-toggle:focus-visible + .nav-burger { outline: 3px solid var(--teal-400); border-radius: 8px; }
    .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; box-shadow: var(--shadow); }
    .nav a:not(.btn) { padding: 12px; font-size: 1.05rem; }
    .nav .btn { margin: 8px 0 0; text-align: center; }
    .nav-toggle:checked ~ .nav { display: flex; }
}

/* ---------- tlačítka ---------- */
.btn {
    display: inline-block; border: 0; cursor: pointer; text-decoration: none; text-align: center;
    background: var(--teal-700); color: #fff; font: 600 1rem/1.2 var(--sans);
    padding: 14px 28px; border-radius: 999px; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--teal-500); color: #fff; transform: translateY(-1px); }
.btn-small { padding: 10px 18px; font-size: .93rem; }
.btn-ghost { background: transparent; color: var(--teal-700); box-shadow: inset 0 0 0 2px var(--teal-700); }
.btn-ghost:hover { background: var(--mint-100); color: var(--teal-700); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #8a262d; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--paper); }
.hero::before { content: ""; position: absolute; inset: -20px; background: url("../img/hero.jpg") center / cover no-repeat; filter: blur(14px); opacity: .6; }
.hero-in {
    position: relative; aspect-ratio: 16 / 9; height: min(56.25vw, 580px, 72vh); max-width: 100%; margin-inline: auto;
    background: url("../img/hero.jpg") center / cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.hero-text { text-align: center; padding: 34px 0 10px; }
.hero-text h1 { margin-bottom: .25em; }
.hero-text .lead { max-width: 640px; margin: 0 auto 1.4em; }
.hero-text .btn-row { justify-content: center; }
.lead { font-size: 1.15rem; color: var(--muted); }
.script { font-family: var(--script); color: var(--teal-500); font-size: 1.9rem; line-height: 1; display: block; margin-bottom: 4px; }

/* ---------- sekce ---------- */
.section { padding: 64px 0; }
.section-tint { background: linear-gradient(180deg, var(--mint-50), var(--mint-100)); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.page-head { text-align: center; padding: 56px 0 12px; background: radial-gradient(60% 120% at 10% 0%, var(--mint-200) 0%, transparent 60%), radial-gradient(50% 120% at 95% 100%, #b9dbe3 0%, transparent 60%); }
.page-head p { color: var(--muted); max-width: 640px; margin-inline: auto; }

.cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); font-size: .98rem; }
.card .price { margin-top: auto; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--teal-700); }
.card .price small { font: 400 .85rem var(--sans); color: var(--muted); }

.split { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: center; }
.split img { border-radius: 50%; box-shadow: var(--shadow); width: min(420px, 100%); margin-inline: auto; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* ---------- služby ---------- */
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 22px; box-shadow: var(--shadow); }
.service > p { color: var(--muted); }
.variant { border-top: 1px solid var(--line); padding: 14px 0; }
.variant-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.variant-row strong { font-family: var(--serif); font-size: 1.3rem; color: var(--teal-700); min-width: 110px; }
.variant-row .v-price { font-weight: 600; margin-left: auto; }
details summary { cursor: pointer; color: var(--teal-700); font-size: .95rem; padding: 6px 0; }
details p { font-size: .96rem; margin-top: .6em; }
.contra { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.contra p { color: var(--muted); font-size: .9rem; }
.cat-title { margin: 44px 0 20px; display: flex; align-items: center; gap: 18px; }
.cat-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- kontakt ---------- */
.info-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.info h3 { font-size: 1.35rem; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 3px 0; }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.map { border: 0; width: 100%; height: 360px; border-radius: var(--radius); margin-top: 28px; }

/* ---------- poukaz ---------- */
.voucher-preview {
    position: relative; aspect-ratio: 1492 / 1054; border-radius: 14px; overflow: hidden;
    background: #fcfefd url("../img/voucher-template.webp") center / cover; box-shadow: 0 24px 50px -28px rgba(11, 63, 72, .6); border: 1px solid var(--line);
    container-type: inline-size;
}
/* hodnota vepsaná na předtištěnou linku šablony (pozice odpovídají VoucherPdf.cs) */
.voucher-preview .vp-amount {
    position: absolute; left: 45.8%; width: 30.6%; bottom: 44.6%; text-align: center;
    color: var(--teal-700); font-family: var(--serif); font-weight: 700; font-size: 3.2cqw; line-height: 1;
}

.order-grid { display: grid; gap: 40px; grid-template-columns: 1.05fr 1fr; align-items: start; }
@media (max-width: 900px) { .order-grid { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 96px; }
@media (max-width: 900px) { .sticky { position: static; } }
.steps { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: baseline; color: var(--muted); font-size: .98rem; }
.steps li::before { content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--mint-200); color: var(--teal-700); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }

/* ---------- formuláře ---------- */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.form legend { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--teal-700); padding: 0; margin-bottom: 10px; }
.field { margin-bottom: 16px; }
.field label, .label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 5px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .86rem; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=password], input[type=search], select, textarea {
    width: 100%; font: inherit; color: inherit; background: #fff;
    border: 1.5px solid #b9d8d2; border-radius: 12px; padding: 11px 14px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(61, 142, 163, .2); }
textarea { resize: vertical; min-height: 84px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }
.field-validation-error, .validation-summary-errors { color: var(--danger); font-size: .9rem; }
.validation-summary-errors ul { margin: 0 0 12px; padding-left: 20px; }
.input-validation-error { border-color: var(--danger) !important; }
.hp { position: absolute; left: -5000px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--teal-700); flex: none; }

.amounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.amounts label { position: relative; cursor: pointer; margin: 0; }
.amounts input { position: absolute; opacity: 0; inset: 0; }
.amounts span { display: block; text-align: center; padding: 14px 8px; border-radius: 14px; border: 1.5px solid #b9d8d2; font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--teal-700); background: #fff; transition: .15s; }
.amounts label:hover span { border-color: var(--teal-500); }
.amounts input:checked + span { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.amounts input:focus-visible + span { outline: 3px solid var(--teal-400); outline-offset: 3px; }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 16px; margin: 6px 0 18px; }
.total strong { font-family: var(--serif); font-size: 1.9rem; color: var(--teal-700); }

/* ---------- objednávka / platba ---------- */
.pay { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
@media (max-width: 640px) { .pay { grid-template-columns: 1fr; } }
.pay img { width: 220px; border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: #fff; margin-inline: auto; }
.kv { width: 100%; border-collapse: collapse; }
.kv th { text-align: left; font-weight: 400; color: var(--muted); padding: 6px 18px 6px 0; white-space: nowrap; vertical-align: top; width: 1%; }
.kv td { padding: 6px 0; font-weight: 600; overflow-wrap: anywhere; }
.notice { border-radius: 14px; padding: 14px 18px; margin: 0 0 22px; background: var(--mint-100); border: 1px solid var(--mint-200); }
.notice.ok { background: #e4f5ea; border-color: #b7dfc4; }
.notice.warn { background: var(--warn-bg); border-color: #f0dba0; }
.notice.err { background: #fbe9ea; border-color: #eec3c6; color: #7a1f26; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.2em; }

/* ---------- patička ---------- */
.site-footer { background: var(--teal-900); color: #cfe6e3; margin-top: 40px; padding: 48px 0 18px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.25rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1.3fr 1fr 1fr 1fr; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { color: #fff; margin-bottom: 12px; }
.copyright { text-align: center; margin: 32px 0 0; color: #8fb9b8; font-size: .85rem; }

/* ---------- administrace ---------- */
.admin body, body.admin { background: var(--mint-50); font-size: 15.5px; }
.admin-bar { background: var(--teal-900); color: #fff; }
.admin-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; min-height: 58px; }
.admin-bar .a-brand { font-family: var(--serif); font-size: 1.25rem; color: #fff; text-decoration: none; margin-right: 12px; }
.admin-bar nav { display: flex; flex-wrap: wrap; gap: 2px; flex: 1; }
.admin-bar nav a, .admin-bar button { color: #cfe6e3; text-decoration: none; padding: 8px 12px; border-radius: 8px; background: none; border: 0; font: inherit; cursor: pointer; }
.admin-bar nav a:hover, .admin-bar nav a.active, .admin-bar button:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.admin-main { padding: 28px 0 60px; }
.admin-main h1 { font-size: 2rem; margin-bottom: .6em; }
.admin-main h2 { font-size: 1.45rem; margin-top: 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 20px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data th, table.data td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--mint-50); }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data td.wrap-cell { white-space: normal; }
.badge { font-family: var(--sans); letter-spacing: 0; vertical-align: middle; display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--mint-100); color: var(--teal-700); }
.badge.wait { background: #fff1cc; color: #7a5a00; }
.badge.ok { background: #d9f1e0; color: #1d6b38; }
.badge.off { background: #eceff0; color: #5f6f72; }
.badge.err { background: #fbe0e2; color: #8a262d; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
.filters a { padding: 7px 14px; border-radius: 999px; text-decoration: none; background: #fff; border: 1px solid var(--line); font-size: .92rem; }
.filters a.active { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }
.filters form { margin-left: auto; display: flex; gap: 8px; }
.filters input[type=search] { padding: 8px 12px; width: 220px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.stat b { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--teal-700); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .88rem; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }
.inline-form { display: inline; }
.link-btn { background: none; border: 0; padding: 0; color: var(--teal-700); text-decoration: underline; cursor: pointer; font: inherit; }
.link-btn.danger { color: var(--danger); }
.progress { height: 8px; background: var(--mint-100); border-radius: 99px; overflow: hidden; min-width: 80px; }
.progress i { display: block; height: 100%; background: var(--sage); }
.login-box { width: min(400px, 100% - 40px); margin: 9vh auto; }
.login-box img { width: 150px; border-radius: 50%; margin: 0 auto 18px; }
.muted { color: var(--muted); }
.mt0 { margin-top: 0; }

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