/* ==========================================================================
   Kadeřnictví Druhý dech — 2dech.cz
   Sdílený styl pro všechny stránky. Bez externích závislostí, bez cookies.
   ========================================================================== */

/* ---------- Písma (self-hosted, licence SIL OFL — viz assets/fonts) ---------- */
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/eb-garamond-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/eb-garamond-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("../fonts/eb-garamond-latin-ext-500-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("../fonts/eb-garamond-latin-500-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/eb-garamond-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/eb-garamond-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Lora"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/lora-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/lora-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/lora-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/lora-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/lora-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/lora-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokeny ---------- */
:root {
  --bg: #f7f1e1;            /* hlavní barva pozadí (zadání) */
  --bg-soft: #fbf7ec;       /* karty, tabulky */
  --bg-deep: #efe5cf;       /* zvýrazněné pásy */
  --ink: #2e241c;           /* text */
  --muted: #6b5a4a;         /* doplňkový text */
  --accent: #8a5a33;        /* koňak — tlačítka, odkazy */
  --accent-dark: #6b4325;
  --line: rgba(46, 36, 28, 0.14);
  --serif-display: "EB Garamond", Garamond, "Times New Roman", serif;
  --serif-text: "Lora", Georgia, "Times New Roman", serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif-text);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--serif-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.6rem; font-weight: 600; }
p { margin: 0 0 1.1em; text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }
.eyebrow {
  font-family: var(--serif-text);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}
.lead { font-size: 1.2rem; color: var(--muted); }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--bg); padding: 8px 14px; }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--serif-text);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 1px solid var(--accent);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fffaf0; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fffaf0; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: rgba(138, 90, 51, 0.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.75rem; }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 241, 225, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { text-decoration: none; color: var(--ink); line-height: 1.05; }
.brand small { display: block; font-family: var(--serif-text); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.brand span { font-family: var(--serif-display); font-size: 1.7rem; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 1rem; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:not(.btn):hover { border-bottom-color: var(--accent); color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav .btn { padding: 0.6em 1.3em; }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: 1px solid var(--line); border-radius: 999px;
    padding: 8px 14px; font: inherit; font-size: 0.95rem; color: var(--ink); cursor: pointer;
  }
  .nav-toggle .bars { width: 16px; height: 10px; position: relative; }
  .nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; }
  .nav-toggle .bars::before { top: 0; } .nav-toggle .bars::after { bottom: 0; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
  .nav .btn { margin-top: 18px; }
}

/* ---------- Hero (úvodní stránka) ---------- */
.hero { position: relative; overflow: hidden; }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 20% center;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(247,241,225,0) 38%, rgba(247,241,225,0.55) 58%, rgba(247,241,225,0.82) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  min-height: clamp(560px, calc(100vh - 76px), 860px);
  display: flex; align-items: center; justify-content: flex-end;
  padding-top: 64px; padding-bottom: 64px;
}
.hero-copy { max-width: 540px; }
.hero-copy h1 { margin-bottom: 0.45em; }
.hero-copy p { font-size: 1.12rem; }
.badge {
  display: inline-block; font-size: 0.85rem; letter-spacing: 0.04em;
  border: 1px solid var(--accent); color: var(--accent-dark);
  padding: 0.35em 0.9em; border-radius: 999px; margin-bottom: 1.25rem;
  background: rgba(247,241,225,0.7);
}
@media (max-width: 900px) {
  .hero-media { position: relative; }
  .hero-media img { position: static; aspect-ratio: 16 / 11; height: auto; object-position: 28% center; }
  .hero-media::after { background: linear-gradient(180deg, rgba(247,241,225,0) 70%, var(--bg) 100%); }
  .hero-inner { min-height: 0; padding-top: 8px; padding-bottom: 56px; justify-content: flex-start; }
  .hero-copy { max-width: none; }
}

/* ---------- Sekce ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-deep { background: var(--bg-deep); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 4vw, 48px); }
.page-head p { max-width: 640px; }

/* Karty služeb na úvodu */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.card {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px 24px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--ink); }
.card h3 { margin-bottom: 0.35em; }
.card p { font-size: 0.95rem; color: var(--muted); margin: 0 0 1rem; }
.card .more { font-size: 0.9rem; color: var(--accent); }

/* Dvousloupec */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
blockquote.quote {
  margin: 0; font-family: var(--serif-display); font-style: italic;
  font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.25; color: var(--ink);
}
blockquote.quote footer { font-family: var(--serif-text); font-style: normal; font-size: 1rem; color: var(--muted); margin-top: 1rem; }

/* ---------- Placeholder obrázku ---------- */
.ph {
  margin: 0;
  aspect-ratio: 4 / 5;
  border: 1px dashed rgba(107, 90, 74, 0.45);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(138,90,51,0.05) 0 12px, transparent 12px 24px),
    var(--bg-soft);
  display: grid; place-content: center; text-align: center;
  color: var(--muted); font-size: 0.9rem; padding: 16px;
}
.ph strong { display: block; font-family: var(--serif-display); font-size: 1.3rem; font-weight: 500; color: var(--ink); }
.ph-wide { aspect-ratio: 4 / 3; }

/* ---------- Služby ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5rem; padding: 0; list-style: none; }
.chips a { display: inline-block; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 0.4em 1em; color: var(--ink); font-size: 0.95rem; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.service { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; scroll-margin-top: 100px; }
.service--flip .service-text { order: 2; }
.service-media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.service-media .ph:nth-child(2) { margin-top: 40px; }
.service ul { padding-left: 1.1em; margin: 0 0 1.4em; }
.service li { margin-bottom: 0.3em; }
.service .btn-row { margin-top: 0.5rem; }
@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; }
  .service--flip .service-text { order: 0; }
  .service-media .ph:nth-child(2) { margin-top: 0; }
}

/* ---------- Ceník ---------- */
.price-group { margin-bottom: 56px; }
.price-group h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 0.3em; }
.price-group > p { color: var(--muted); font-size: 0.95rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.prices {
  width: 100%; border-collapse: collapse; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  font-size: 1rem; min-width: 520px;
}
.prices th, .prices td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prices thead th { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 400; background: var(--bg-deep); }
.prices td.num, .prices th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prices tbody tr:last-child td { border-bottom: 0; }
.prices th small, .prices td small { display: block; color: var(--muted); font-size: 0.85rem; }
.note-box { background: var(--bg-deep); border-radius: var(--radius); padding: 24px 28px; }
.note-box ul { margin: 0; padding-left: 1.1em; }

/* ---------- O mně ---------- */
.about { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.about .ph { position: sticky; top: 110px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 2rem 0; }
.values div { border-top: 1px solid var(--accent); padding-top: 12px; }
.values strong { font-family: var(--serif-display); font-size: 1.4rem; font-weight: 600; display: block; }
.values span { font-size: 0.92rem; color: var(--muted); }
.signature { font-family: var(--serif-display); font-style: italic; font-size: 2rem; margin-top: 1rem; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about .ph { position: static; max-width: 420px; }
  .values { grid-template-columns: 1fr; }
}

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.contact-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card h2 { font-size: 1.7rem; font-weight: 600; margin-bottom: 0.5em; }
.contact-card p:last-child, .contact-card ul:last-child { margin-bottom: 0; }
.contact-card ul { padding-left: 1.1em; margin: 0 0 1em; }
.big-link { font-family: var(--serif-display); font-size: 1.9rem; font-weight: 600; text-decoration: none; color: var(--ink); display: inline-block; line-height: 1.2; }
.big-link:hover { color: var(--accent); }

/* ---------- CTA pás ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 760px; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Patička ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 0.95rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: 1.5rem; color: var(--ink); margin-bottom: 0.4em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.35em; }
.site-footer a { color: var(--ink); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  table.prices { min-width: 0; font-size: 0.88rem; }
  .prices th, .prices td { padding: 12px 8px; }
  .prices th:first-child, .prices td:first-child { padding-left: 12px; }
  .prices th:last-child, .prices td:last-child { padding-right: 12px; }
  .prices thead th { font-size: 0.66rem; letter-spacing: 0.06em; }
  .prices td small, .prices th small { font-size: 0.78rem; }
}
