/* ============================================================
   Hledáme recepční | Thajské masáže Říčany
   Design systém převzatý z thajskemasazezatec.cz
   ============================================================ */

/* ============ SELF-HOSTED FONTS ============ */
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url('fonts/inter-latin-ext.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:'Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url('fonts/inter-latin.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:'Playfair Display';font-style:normal;font-weight:400 700;font-display:swap;src:url('fonts/playfairdisplay-latin-ext.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:'Playfair Display';font-style:normal;font-weight:400 700;font-display:swap;src:url('fonts/playfairdisplay-latin.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}

/* ============ TOKENS ============ */
:root {
  --cream: #F5E8CE;
  --cream-2: #EFDBB1;
  --cream-3: #E5C896;
  --paper: #FFFAF0;
  --ink: #3A2618;
  --ink-2: #5C4330;
  --muted: #8C7253;
  --line: rgba(58,38,24,0.10);

  --brand: #9C6B43;
  --brand-2: #7C5230;
  --brand-ink: #4A2E18;
  --gold: #B8895E;
  --gold-2: #D4A574;
  --clay: #C9805C;

  --display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 28px;
  --r-pill: 999px;

  --sh-sm: 0 1px 2px rgba(58,38,24,0.05), 0 1px 3px rgba(58,38,24,0.06);
  --sh-md: 0 6px 24px -8px rgba(58,38,24,0.14), 0 2px 8px rgba(58,38,24,0.06);
  --sh-lg: 0 24px 60px -20px rgba(58,38,24,0.22), 0 8px 24px rgba(58,38,24,0.08);

  --container: 1080px;
  --pad-x: clamp(20px, 5vw, 56px);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; }
p, ul, ol { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* ============ ATMOSFÉRA / ZRNO ============ */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1, 0 0 0 0 0.08, 0 0 0 0 0.05, 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ============ LAYOUT ============ */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section { padding: clamp(44px, 6vw, 76px) 0; position: relative; }
.section-paper { background: var(--paper); }
.section-header { text-align: center; max-width: 660px; margin: 0 auto clamp(28px, 4vw, 44px); }
.section-header h2 { font-size: clamp(28px, 5vw, 40px); }
.section-header p { margin-top: 12px; color: var(--ink-2); font-size: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-2);
}
.eyebrow::before, .eyebrow::after { content: ''; width: 18px; height: 1px; background: var(--gold); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform .2s ease, box-shadow .2s, background .2s, color .2s;
  line-height: 1;
  text-align: center;
}
.btn-primary { background: var(--brand); color: var(--paper); box-shadow: 0 10px 26px -10px rgba(124,82,48,0.65); }
.btn-primary:hover { transform: translateY(-1px); background: var(--brand-2); box-shadow: 0 18px 38px -14px rgba(124,82,48,0.65); }
.btn-secondary { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-lg { padding: 18px 34px; font-size: 16.5px; }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
a, button, .btn { -webkit-tap-highlight-color: rgba(156,107,67,0.18); }
@media (hover: none) { .btn:hover { transform: none; } }

/* ============================================================
   HERO, celý se musí vejít do jedné obrazovky bez scrollování
   ============================================================ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  /* --ckb-h drží cookie lišta, dokud je vidět, aby nepřekryla CTA */
  padding:
    max(env(safe-area-inset-top), clamp(12px, 2.4svh, 28px))
    var(--pad-x)
    calc(clamp(14px, 2.8svh, 32px) + var(--ckb-h, 0px));
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(212,165,116,0.30) 0%, rgba(245,232,206,0) 62%),
    linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(8px, 1.7svh, 20px);
}

.hero .eyebrow { font-size: clamp(10px, 1.5svh, 12px); }

.hero h1 {
  font-size: clamp(34px, min(9vw, 6.4svh), 66px);
  line-height: 1.03;
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--brand-2); font-style: italic; }

.hero-sub {
  font-size: clamp(15px, min(4.2vw, 2.5svh), 21px);
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 30ch;
  text-wrap: balance;
}

/* Fotka bere zbývající místo, nikdy netlačí CTA pod okraj */
.hero-photo {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  max-width: 760px;
  margin: 0;
  border-radius: clamp(12px, 2.2vw, 22px);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  border: 1px solid rgba(255,255,255,0.5);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
/* Na výšku fotku zastropujeme, ať text okolo dýchá */
@media (orientation: portrait) {
  .hero-photo { max-height: 46svh; }
}

.hero-tag {
  font-size: clamp(13px, min(3.6vw, 2svh), 16.5px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 46ch;
  text-wrap: balance;
}
.hero-tag strong { color: var(--ink); font-weight: 600; }

.hero-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}
.hero-cta .btn {
  width: 100%;
  max-width: 380px;
  padding: clamp(13px, 1.9svh, 19px) 28px;
  font-size: clamp(15px, 1.95svh, 17px);
}

/* Velmi nízké obrazovky, typicky telefon naležato: dva sloupce */
@media (orientation: landscape) and (max-height: 620px) {
  .hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "photo eyebrow"
      "photo title"
      "photo sub"
      "photo tag"
      "photo cta";
    grid-template-rows: auto auto auto 1fr auto;
    align-items: center;
    justify-items: center;
    column-gap: clamp(20px, 4vw, 40px);
    row-gap: clamp(4px, 1.4svh, 12px);
    max-width: 1000px;
  }
  .hero .eyebrow { grid-area: eyebrow; }
  .hero h1 { grid-area: title; font-size: clamp(28px, 7svh, 48px); }
  .hero-sub { grid-area: sub; }
  .hero-photo { grid-area: photo; height: 100%; max-width: none; align-self: stretch; }
  .hero-tag { grid-area: tag; align-self: start; }
  .hero-cta { grid-area: cta; }
}

/* Jemný náznak, že stránka pokračuje */
.hero-scroll {
  position: absolute;
  bottom: 6px; left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  opacity: .55;
  animation: bob 2.4s ease-in-out infinite;
  pointer-events: none;
}
.hero-scroll svg { width: 20px; height: 20px; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 5px); } }
@media (max-height: 720px), (prefers-reduced-motion: reduce) { .hero-scroll { display: none; } }

/* ============ KARTY, CO BUDETE DĚLAT ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2vw, 22px);
}
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--sh-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.section-paper .card { background: var(--cream); }
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
@media (hover: none) { .card:hover { transform: none; } }
.card-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--gold-2), var(--gold));
  color: var(--brand-ink);
  margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 15.5px; }

/* ============ SEZNAM POŽADAVKŮ ============ */
.checklist { display: grid; gap: 14px; max-width: 720px; margin: 0 auto; }
.checklist li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
}
.section-paper .checklist li { background: var(--cream); }
.checklist .tick {
  flex-shrink: 0;
  width: 24px; height: 24px; margin-top: 1px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--paper);
  display: grid; place-items: center;
}
.checklist .tick svg { width: 13px; height: 13px; }
.checklist strong { display: block; font-size: 16.5px; margin-bottom: 2px; }
.checklist span.desc { color: var(--ink-2); font-size: 15px; }

/* ============ CO ZÍSKÁTE ============ */
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(14px, 2vw, 20px); }
.perk {
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 28px);
  background: linear-gradient(160deg, rgba(212,165,116,0.20), rgba(255,250,240,0.9));
  border: 1px solid rgba(184,137,94,0.25);
}
.perk .num { font-family: var(--display); font-size: 30px; color: var(--brand); line-height: 1; margin-bottom: 10px; }
.perk h3 { font-size: 18.5px; margin-bottom: 6px; }
.perk p { color: var(--ink-2); font-size: 15px; }

/* ============ CTA PÁS ============ */
.cta-band {
  background: linear-gradient(150deg, var(--brand-ink), #6B4526 65%, var(--brand-2));
  color: var(--paper);
  text-align: center;
  padding: clamp(44px, 6vw, 72px) 0;
}
.cta-band h2 { font-size: clamp(26px, 4.6vw, 38px); color: var(--paper); }
.cta-band p { margin: 14px auto 26px; max-width: 52ch; color: rgba(255,250,240,0.82); font-size: 16.5px; }
.cta-band .btn-primary { background: var(--gold-2); color: var(--brand-ink); box-shadow: 0 14px 34px -12px rgba(0,0,0,0.55); }
.cta-band .btn-primary:hover { background: var(--paper); }

/* ============ FORMULÁŘ ============ */
.form-wrap {
  max-width: 620px; margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--sh-md);
}
.section-paper .form-wrap { background: var(--cream); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input {
  font: inherit;
  font-size: 16px; /* zabrání zoomu na iOS */
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid rgba(58,38,24,0.16);
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(156,107,67,0.14);
}
.field input::placeholder { color: rgba(140,114,83,0.65); }
.form-wrap .btn { width: 100%; margin-top: 20px; }
.form-note { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; line-height: 1.5; }
.form-note a { color: var(--brand-2); text-decoration: underline; text-underline-offset: 2px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ============ DĚKOVACÍ STRÁNKA ============ */
.thanks {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(32px, 6vh, 72px) var(--pad-x) calc(clamp(32px, 6vh, 72px) + var(--ckb-h, 0px));
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(212,165,116,0.32) 0%, rgba(245,232,206,0) 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
}
.thanks-inner { max-width: 620px; text-align: center; }
.thanks-mark {
  width: 72px; height: 72px; margin: 0 auto 24px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--gold-2), var(--brand));
  color: var(--paper);
  display: grid; place-items: center;
  box-shadow: 0 16px 34px -14px rgba(124,82,48,0.7);
}
.thanks-mark svg { width: 34px; height: 34px; }
.thanks h1 { font-size: clamp(30px, 6vw, 48px); }
.thanks-box {
  margin-top: 28px;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3.4vw, 32px);
  box-shadow: var(--sh-md);
}
.thanks-box h2 { font-size: 21px; margin-bottom: 16px; }
.steps { display: grid; gap: 16px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps .step-num {
  flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand); color: var(--paper);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
}
.steps strong { display: block; font-size: 16px; margin-bottom: 2px; }
.steps span.desc { color: var(--ink-2); font-size: 15px; }
.steps a { color: var(--brand-2); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.thanks .btn { margin-top: 24px; }
.thanks-hint {
  margin-top: 22px;
  font-size: 14px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(184,137,94,0.14);
  border: 1px dashed rgba(184,137,94,0.45);
  border-radius: var(--r-pill);
  padding: 10px 18px;
  line-height: 1.4;
  text-align: left;
}
.thanks-hint svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--brand-2); }

/* ============ PATIČKA ============ */
.footer {
  background: var(--brand-ink);
  color: rgba(255,250,240,0.72);
  font-size: 14px;
  padding: 32px 0;
  text-align: center;
}
.footer strong { color: var(--paper); font-family: var(--display); font-weight: 500; font-size: 17px; display: block; margin-bottom: 8px; }
.footer a { color: var(--gold-2); }
.footer a:hover { color: var(--paper); }
.footer-links { margin-top: 10px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.footer-legal { margin-top: 14px; font-size: 12.5px; color: rgba(255,250,240,0.5); }

/* ============ ANIMACE PŘI SCROLLU ============ */
/* Skrytí platí jen když běží JS (html.js), jinak by obsah zůstal neviditelný */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  html.js .reveal.in { opacity: 1; transform: none; }
}
