/* ==========================================================================
   Mgr. Aneta Dvořáková – static site
   Palette: deep indigo (evolved from #0b0440) + warm sand (evolved from #e3e3b8)
   ========================================================================== */

:root {
  --ink: #211d4d;          /* primary – headings, buttons, dark sections */
  --ink-2: #3a3668;        /* hover / secondary dark */
  --text: #2e2b45;         /* body text */
  --muted: #6b6880;        /* secondary text */
  --paper: #fbf9f4;        /* page background */
  --sand: #f1ebdc;         /* tinted sections */
  --sand-2: #e4d9bd;       /* borders on sand, cream accents on dark */
  --clay: #a8694a;         /* accent – eyebrows, quote, small highlights */
  --line: rgba(33, 29, 77, 0.12);
  --white: #fff;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(33, 29, 77, 0.04), 0 12px 32px -12px rgba(33, 29, 77, 0.18);
  --header-h: 72px;
  --container: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.25rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 300; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--ink); color: #fff; padding: .5rem 1rem; border-radius: 8px; }

:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 6px; }

h1 .eyebrow { display: block; }
.eyebrow {
  font: 600 0.8rem/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--ink); color: #fff;
  font: 600 1rem/1 var(--sans);
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; transition: transform .2s; }
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: var(--sand); color: var(--ink); border-color: var(--sand); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn--small { padding: .6rem 1.1rem; font-size: .92rem; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(251, 249, 244, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(33, 29, 77, .5); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--sand-2); }
.brand span { display: flex; flex-direction: column; line-height: 1.2; }
.brand strong { font: 500 1.05rem/1.2 var(--serif); color: var(--ink); }
.brand small { font-size: .82rem; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav ul a { position: relative; text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--text); padding-block: .4rem; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--clay); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav ul a:hover::after,
.nav ul a.is-active::after { transform: scaleX(1); }
.nav ul a.is-active { color: var(--ink); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, top .25s; }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(3.5rem, 4vw, 6rem); }
/* Desktop: heading + text in the left column (vertically centred via the 1fr rows), photo spans the right column.
   DOM order is h1 → figure → text so that on mobile the photo can float beside the text (see responsive section). */
.hero__grid {
  display: grid; grid-template-columns: 1fr 1.15fr; grid-template-rows: 1fr auto auto 1fr;
  column-gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero__title { grid-column: 1; grid-row: 2; }
.hero__text { grid-column: 1; grid-row: 3; }
.hero__media { grid-column: 2; grid-row: 1 / -1; }
.hero__name { font-weight: 600; color: var(--ink); margin: 1rem 0 1.25rem; }
.hero__text > p:not(.eyebrow):not(.hero__name) { color: var(--text); max-width: 34rem; }
.hero blockquote {
  margin: 1.5rem 0 2rem; padding: .25rem 0 .25rem 1.25rem;
  border-left: 2px solid var(--clay);
  font: italic 300 1.25rem/1.5 var(--serif); color: var(--ink);
  max-width: 32rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero__media { position: relative; margin: 0; }
.hero__media > img {
  width: 100%; aspect-ratio: 4 / 4.3; object-fit: cover; object-position: 62% center;
  border-radius: var(--radius-lg);
  /* Fade from the page background into the photo from the bottom-left corner (as on the original site) */
  -webkit-mask-image: linear-gradient(to top right, transparent 0%, rgba(0, 0, 0, .4) 22%, #000 52%);
  mask-image: linear-gradient(to top right, transparent 0%, rgba(0, 0, 0, .4) 22%, #000 52%);
}
/* ČAP membership – quiet trust line under the CTA buttons */
.badge {
  display: inline-flex; align-items: center; gap: .9rem;
  margin-top: 2.25rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .95rem; line-height: 1.35; font-weight: 500; color: var(--ink); text-decoration: none;
}
.badge img { width: 52px; height: 52px; flex: none; }
.badge span { display: flex; flex-direction: column; }
.badge small { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; font-weight: 400; color: var(--clay); }
.badge small svg { width: 14px; height: 14px; fill: currentColor; transition: transform .2s; }
.badge:hover small svg { transform: translateX(3px); }

/* ---------- Sections ---------- */
.section { padding: clamp(2rem, 6vw, 4rem) 0; }
.section--tint { background: var(--sand); }
.section__head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform .3s, box-shadow .3s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service__icon { width: 64px; height: auto; margin-bottom: 1.25rem; opacity: .9; }
.service h3 { margin-bottom: .75rem; }
.service p { color: var(--muted); margin: 0; }

/* About / CV */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.cv { background: var(--paper); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--sand-2); }
.cv h3 { margin-bottom: 1.5rem; }
.cv__sub { margin-top: 2.25rem; }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { position: relative; padding: 0 0 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .15rem; }
.tl li::before { content: ""; position: absolute; left: 0; top: .55rem; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 2px solid var(--clay); }
.tl li::after { content: ""; position: absolute; left: 4px; top: 1.3rem; bottom: .1rem; width: 1px; background: var(--sand-2); }
.tl li:last-child { padding-bottom: 0; }
.tl li:last-child::after { display: none; }
.tl--plain li::before { background: var(--clay); width: 7px; height: 7px; left: 1px; }
.tl--plain li::after { display: none; }
.tl__period { font-size: .85rem; font-weight: 600; letter-spacing: .04em; color: var(--clay); }
.tl__title { font-weight: 600; color: var(--ink); line-height: 1.4; }
.tl__place { font-size: .95rem; color: var(--muted); }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.5rem; align-items: stretch; }
.price-card {
  background: var(--ink); color: #e9e6f5; border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.75rem); display: flex; flex-direction: column; align-items: flex-start;
  background-image: radial-gradient(120% 80% at 100% 0%, rgba(168, 105, 74, .28), transparent 60%);
}
.price-card h3 { color: #fff; margin-bottom: 1.5rem; }
.price-card strong { color: #fff; font-weight: 600; }
.checks { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .75rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; }
.checks svg { width: 20px; height: 20px; flex: none; margin-top: .2rem; fill: var(--sand-2); }
.price-card .btn { margin-top: auto; }

.pricing__notes { display: grid; gap: 1.5rem; }
.note { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 2rem; }
.note h3 { margin-bottom: .6rem; }
.note p { margin: 0; color: var(--muted); }
.note--warn { background: var(--sand); border-color: var(--sand-2); }

/* Contact */
.section--dark { background: var(--ink); color: #dcd9ec; padding-bottom: 0; }
.section--dark h2 { color: #fff; margin-bottom: 2rem; }
.section--dark .eyebrow { color: var(--sand-2); }
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-bottom: clamp(3rem, 6vw, 5rem); }
.contact__list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1.1rem; }
.contact__list li { display: flex; gap: .9rem; align-items: flex-start; font-size: 1.1rem; }
.contact__list svg { width: 22px; height: 22px; fill: var(--sand-2); flex: none; margin-top: .2rem; }
.contact__list a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.contact__list a:hover { border-color: var(--sand-2); }
.contact__list strong { color: #fff; font-weight: 600; }
.contact__list small { display: block; font-size: .9rem; color: #a9a5c4; margin-top: .2rem; }

/* Office photo large on top, two building photos below */
.contact__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.zoom { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; display: block; }
.zoom img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.zoom:first-child { grid-column: 1 / -1; }
.zoom:first-child img { aspect-ratio: 16 / 9; }
.zoom:hover img { transform: scale(1.04); }

.map { position: relative; height: 380px; background: #e8e6e1; z-index: 0; }
/* soften OSM colours so the map sits calmly next to the indigo section */
.map .leaflet-tile-pane { filter: grayscale(.55) sepia(.12) brightness(1.03); }
.map-pin { background: none; border: 0; }
.map-pin svg { width: 40px; height: 52px; filter: drop-shadow(0 4px 6px rgba(33, 29, 77, .35)); }
.map .leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow); }
.map .leaflet-popup-content { margin: .9rem 1.1rem; font: 400 .95rem/1.45 var(--sans); color: var(--text); }
.map .leaflet-popup-content strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: .35rem; }
.map .leaflet-popup-content a { color: var(--clay); font-weight: 600; }
.map .leaflet-control-attribution { font-size: .7rem; }

/* Footer */
.footer { background: #19163d; color: #a9a5c4; font-size: .92rem; }
.footer__inner { display: flex; justify-content: space-between; padding: 1.5rem 0; }
.footer a { color: var(--sand-2); text-decoration: none; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(20, 18, 45, .85); backdrop-filter: blur(4px); }
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 12px; }
.lightbox__close { position: fixed; top: 1rem; right: 1.25rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* Cookie bar – full-width dark strip at the bottom (as on the original site) */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #19163d; color: #e9e6f5;
  padding: 1.5rem 0;
  box-shadow: inset 0 10px 35px -10px rgba(0, 0, 0, .5), 0 -10px 30px -15px rgba(0, 0, 0, .4);
  font-size: .98rem;
}
.cookie[hidden] { display: none; }
.cookie__inner { display: flex; align-items: center; gap: 2rem; }
.cookie p { margin: 0; }
.cookie__buttons { display: flex; align-items: center; gap: 1rem; margin-left: auto; flex: none; }
.cookie .btn svg { width: 16px; height: 16px; }
.cookie .btn:hover svg { transform: none; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linklike:hover { opacity: .8; }

/* Cookie settings dialog */
.cookie-dialog { width: min(600px, calc(100% - 2rem)); max-height: min(720px, calc(100% - 2rem)); padding: 0; border: 0; border-radius: var(--radius); background: var(--paper); color: var(--text); box-shadow: 0 30px 80px -20px rgba(20, 18, 45, .6); }
.cookie-dialog::backdrop { background: rgba(20, 18, 45, .6); backdrop-filter: blur(3px); }
.cookie-dialog form { display: grid; grid-template-rows: auto 1fr auto; max-height: inherit; }
.cookie-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.cookie-dialog__title { margin: 0; font: 400 1.5rem/1.2 var(--serif); color: var(--ink); }
.cookie-dialog__close { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--sand); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.cookie-dialog__close:hover { background: var(--sand-2); }
.cookie-dialog__body { overflow: auto; padding: 1.25rem 1.5rem; display: grid; gap: 1rem; }
.cookie-dialog__foot { display: flex; justify-content: flex-end; padding: 1rem 1.5rem; border-top: 1px solid var(--line); background: var(--sand); border-radius: 0 0 var(--radius) var(--radius); }
.cookie-cat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.25rem; }
.cookie-cat__head { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.cookie-cat__head strong { font: 600 1.02rem/1.3 var(--sans); color: var(--ink); }
.cookie-cat__head em { margin-left: auto; font-size: .85rem; color: var(--muted); }
.cookie-cat__head .switch { margin-left: auto; }
.cookie-cat__head em + .switch { margin-left: 0; }
.cookie-cat p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.55; }

.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #d6d3e2; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked + span { background: var(--ink); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + span { opacity: .5; }
.switch input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 2px; }

.footer__links { display: flex; gap: 1.5rem; align-items: center; }
.footer .linklike { color: #a9a5c4; font-size: inherit; }

/* Reveal on scroll (progressive enhancement – only when JS adds .js) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease var(--d, 0ms), transform .7s ease var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav ul { gap: 1.1rem; }
  .nav .btn { display: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav ul a::after { display: none; }
  .nav .btn { display: inline-flex; margin-top: 1rem; justify-content: center; }

  .about,
  .pricing,
  .contact { grid-template-columns: 1fr; }
  /* Mobile hero: heading first, then a small photo floated right with the text wrapping around it,
     so the visitor sees what the page is about without scrolling past a full-screen photo. */
  .hero__grid { display: block; }
  .hero__grid::after { content: ""; display: block; clear: both; }
  .hero__title { margin-bottom: 1.25rem; }
  .hero__media { float: right; width: 42%; max-width: 15rem; margin: .35rem 0 .75rem 1.1rem; }
  .hero__media > img {
    aspect-ratio: 3 / 4; border-radius: var(--radius);
    -webkit-mask-image: none; mask-image: none;
  }
  .hero__name { margin-top: 0; }
  /* Long Czech words (psychoterapeutickým…) must be able to break next to the narrow float. */
  .hero__text > p { -webkit-hyphens: auto; hyphens: auto; }
  .services { grid-template-columns: 1fr; }
  .cookie__inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .cookie__buttons { margin-left: 0; }
}

@media (min-width: 600px) and (max-width: 860px) {
  .services { grid-template-columns: 1fr 1fr; }
  .services .service:last-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .brand small { display: none; }
  .cookie__buttons { flex-wrap: wrap; gap: .75rem 1rem; }
  .cookie-cat__head { flex-wrap: wrap; }
  .footer__inner { flex-direction: column; gap: .5rem; align-items: center; }
}

@media (max-width: 400px) {
  .hero__media { width: 36%; margin-left: .8rem; }
}

.nowrap { white-space: nowrap; }
