/* ============================================================================
   Ares — masážny salón · redesign demo (static)
   Warm cream + forest-green + sage + terracotta. Fraunces (display) / Inter.
   ========================================================================== */

:root {
  --cream:      #FAF7F2;
  --cream-2:    #F3EEE3;
  --card:       #FFFFFF;
  --ink:        #23281F;
  --forest:     #2E3A2F;
  --forest-2:   #37453A;
  --sage:       #8BA888;
  --sage-dark:  #74967A;
  --terra:      #C06B4A;
  --terra-dark: #A9583A;
  --muted:      #6B7267;
  --muted-2:    #9AA093;
  --line:       rgba(46, 58, 47, 0.12);
  --line-soft:  rgba(46, 58, 47, 0.08);

  --r:      18px;
  --r-lg:   24px;
  --r-pill: 999px;

  --sh:    0 12px 34px rgba(46, 58, 47, 0.09);
  --sh-sm: 0 6px 18px rgba(46, 58, 47, 0.07);

  --wrap: 1160px;

  --serif: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 .4em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 14px;
}

.section { padding: 92px 0; }
.section--tight { padding: 68px 0; }

.section__head { max-width: 640px; margin-bottom: 46px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section h2 { font-size: clamp(30px, 4.4vw, 46px); }
.section__sub { color: var(--muted); font-size: 18px; margin: 0; }

/* ---- buttons ------------------------------------------------------------- */
.btn {
  --btn-bg: var(--sage);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1.5px solid var(--btn-bg);
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--sage-dark); border-color: var(--sage-dark); transform: translateY(-2px); }
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: rgba(46,58,47,0.28);
}
.btn--outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); border-color:#fff; }
.btn--light:hover { background: var(--cream-2); border-color: var(--cream-2); color: var(--ink); }
.btn--ghost-light {
  --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,0.4);
}
.btn--ghost-light:hover { background: #fff; color: var(--forest); border-color:#fff; }
.btn--sm { padding: 11px 20px; font-size: 12px; }

/* ---- header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 247, 242, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line-soft); box-shadow: var(--sh-sm); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 74px;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--ink); }
.brand__sub {
  font-size: 9.5px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--muted-2); margin-top: 4px;
}
.nav__links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); opacity: .82; transition: opacity .2s, color .2s;
}
.nav__links a:hover { opacity: 1; color: var(--terra); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 12px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink);
  position: relative; transition: transform .25s ease, opacity .2s ease;
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after  { position: absolute; top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---- hero ---------------------------------------------------------------- */
.hero { padding: 64px 0 80px; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero h1 { font-size: clamp(40px, 6.6vw, 72px); line-height: 1.02; margin-bottom: 22px; }
.hero__lead { font-size: 19px; color: var(--muted); max-width: 30em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 22px; }
.stars { color: var(--terra); letter-spacing: 2px; font-size: 15px; }
.rating-line { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14.5px; }
.rating-line strong { color: var(--ink); }
.hero__media { position: relative; }
.hero__media img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%; border-radius: var(--r-lg); box-shadow: var(--sh); }
.price-badge {
  position: absolute; left: -18px; bottom: 30px;
  background: var(--terra); color: #fff; border-radius: var(--r);
  padding: 14px 20px; box-shadow: var(--sh); text-align: center; line-height: 1.1;
}
.price-badge b { font-family: var(--serif); font-size: 26px; display: block; }
.price-badge span { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: .9; }

/* ---- dark benefits strip ------------------------------------------------- */
.benefits { background: var(--forest); color: #EDEFE8; }
.benefits__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  padding: 34px 0;
}
.benefit { display: flex; align-items: center; gap: 14px; }
.benefit__ic {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(139,168,136,0.22); color: var(--sage);
  display: grid; place-items: center;
}
.benefit__ic svg { width: 22px; height: 22px; }
.benefit b { font-size: 15px; color: #fff; }
.benefit small { display: block; color: #AEB6A5; font-size: 12.5px; }

/* ---- cards / services ---------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-sm); border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__body h3 { font-size: 22px; margin: 0; }
.card__body p { color: var(--muted); font-size: 15px; margin: 0; }
.pill-price {
  flex: 0 0 auto; background: var(--cream-2); color: var(--terra);
  font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--line-soft); white-space: nowrap;
}
.card__link {
  margin-top: auto; padding-top: 6px; color: var(--forest); font-weight: 700;
  font-size: 13px; letter-spacing: 0.06em; display: inline-flex; align-items: center; gap: 6px;
}
.card__link:hover { color: var(--terra); }

.center { text-align: center; }
.mt-40 { margin-top: 40px; }
.subhead { font-family: var(--serif); font-size: 24px; margin: 56px 0 24px; }

/* ---- pricing ------------------------------------------------------------- */
.pricing { display: grid; grid-template-columns: 1.55fr 0.95fr; gap: 30px; align-items: start; }
/* Grid items default to min-width:auto and won't shrink below their content's
   min-size. The pricing table has min-width:560px, so without this the 1fr
   mobile column (and the whole page) is forced wider than a phone viewport —
   the real cause of the horizontal overflow. min-width:0 lets the column
   shrink to the viewport; the table then scrolls inside .table-wrap only.
   No effect on desktop, where the track is already wider than 560px. */
.pricing > * { min-width: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
table.price {
  width: 100%; border-collapse: collapse; background: #fff; min-width: 560px;
  border-radius: var(--r-lg); overflow: hidden;
}
table.price thead th {
  background: var(--forest); color: #fff; font-family: var(--sans);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  padding: 16px 14px; text-align: center;
}
table.price thead th:first-child { text-align: left; }
table.price tbody th {
  text-align: left; font-family: var(--serif); font-size: 17px; font-weight: 600;
  padding: 15px 14px; color: var(--ink); white-space: nowrap;
}
table.price td { text-align: center; padding: 15px 14px; font-size: 15px; color: var(--ink); }
table.price td.na { color: var(--muted-2); }
table.price tbody tr:not(:last-child) { border-bottom: 1px solid var(--line-soft); }
table.price .price-val { font-weight: 700; color: var(--terra); }
.row-cta {
  color: var(--forest); font-weight: 700; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; white-space: nowrap;
}
.row-cta:hover { color: var(--terra); }
.price-note { color: var(--muted); font-size: 14px; margin-top: 14px; }

.side-stack { display: flex; flex-direction: column; gap: 20px; }
.side-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--sh-sm);
}
.side-card h3 { font-size: 20px; }
.side-card p { color: var(--muted); font-size: 15px; margin: 0; }
.side-card .in-price { color: var(--terra); font-weight: 700; }
.side-card--dark { background: var(--forest); color: #EDEFE8; border-color: transparent; }
.side-card--dark h3 { color: #fff; }
.side-card--dark p { color: #B7BEAD; }

/* ---- split media sections ------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split__media img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--sh); }
/* O mne uses the same masseur portrait as the hero, framed differently
   (a tighter 4:5 crop, centered) so it composes as a proper portrait beside
   the bio. Scoped to #o-mne so the mobilné/poukaz placeholders keep their
   natural framing. */
#o-mne .split__media img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center; }
.split ul { list-style: none; padding: 0; margin: 6px 0 22px; }
.split ul li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--muted); }
.split ul li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 14px;
  border-radius: 50%; background: rgba(139,168,136,0.28);
  box-shadow: inset 0 0 0 3px var(--sage);
}
.chip-pill {
  display: inline-block; background: var(--cream-2); border: 1px solid var(--line);
  color: var(--forest); font-weight: 700; font-size: 13px; padding: 9px 16px;
  border-radius: var(--r-pill);
}

/* ---- dark sections ------------------------------------------------------- */
.dark { background: var(--forest); color: #EDEFE8; }
.dark h2 { color: #fff; }
.dark .section__sub { color: #B7BEAD; }
.dark .eyebrow { color: var(--sage); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 8px; }
.step { padding: 4px; }
.step__num { font-family: var(--serif); font-size: 40px; color: var(--sage); line-height: 1; }
.step h3 { color: #fff; font-size: 21px; margin: 14px 0 8px; }
.step p { color: #B7BEAD; font-size: 15px; margin: 0; }

/* ---- about --------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 14px; border-radius: var(--r-pill); background: var(--sage); color: #fff;
}
.chip--alt { background: var(--cream-2); color: var(--forest); border: 1px solid var(--line); }

/* ---- testimonials -------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.quote {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--sh-sm); display: flex; flex-direction: column; gap: 12px;
}
.quote .stars { font-size: 15px; }
.quote p { font-size: 16px; color: var(--ink); margin: 0; }
.quote cite { font-style: normal; color: var(--muted); font-size: 14px; font-weight: 600; }
.proof-pill {
  display: inline-flex; gap: 10px; align-items: center; margin-top: 34px;
  background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 12px 22px; font-weight: 600; font-size: 14px;
}
.proof-pill .stars { font-size: 14px; }

/* ---- big dark CTA -------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(30px, 5vw, 48px); }
.cta-band p { color: #B7BEAD; font-size: 18px; max-width: 34em; margin-inline: auto; }
.cta-band .btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.tel-link { color: #fff; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.tel-link:hover { color: var(--sage); }

/* ---- footer -------------------------------------------------------------- */
.site-footer { background: #232C24; color: #C7CDBE; padding: 66px 0 26px; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.3fr; gap: 34px; }
.site-footer h4 {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #8E9784; margin: 0 0 16px; font-weight: 700;
}
.site-footer a { color: #C7CDBE; }
.site-footer a:hover { color: #fff; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__sub { color: #8E9784; }
.footer__brand p { margin-top: 14px; font-size: 14px; color: #A7AE9C; }
.foot-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.foot-contact { font-size: 14.5px; line-height: 1.9; }
.foot-map { border: 0; width: 100%; height: 160px; border-radius: 14px; margin-top: 4px; }
.socials { display: flex; gap: 12px; margin-top: 16px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: grid; place-items: center; transition: background .2s;
}
.socials a:hover { background: var(--sage); }
.socials svg { width: 18px; height: 18px; fill: #fff; }
.footer__bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 13px; color: #8E9784;
}

/* ---- scroll reveal ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- responsive ---------------------------------------------------------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { max-width: 480px; }
  .benefits__grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .grid--3, .quotes, .steps { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split--rev .split__media { order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .nav__links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: flex-start;
    gap: 4px; background: var(--cream); padding: 14px 20px 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--sh); transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { display: block; width: 100%; padding: 12px 4px; font-size: 14px; border-bottom: 1px solid var(--line-soft); }
  .nav__toggle { display: inline-flex; }
  .nav__cta-desktop { display: none; }
  .grid--3, .quotes, .steps, .benefits__grid, .footer__grid { grid-template-columns: 1fr; }
  .price-badge { left: 10px; }
  /* Standalone centred pill CTAs (e.g. "VŠETKY MASÁŽE A CENNÍK →") keep
     white-space:nowrap by default; on a 360px screen the longest label is a
     few px wider than the content box, so let these wrap here (mobile only)
     instead of nudging the page wider. Desktop is unaffected. */
  .center .btn { white-space: normal; }
}

/* Fix: .sr-only inside the pricing table has position:absolute with no offsets,
   so its containing block was the ICB (no positioned ancestor) — it escaped
   .table-wrap's overflow clipping and stretched the page to 548px on a 390px
   viewport. Giving the cells a containing block keeps it clipped. */
table.price th, table.price td { position: relative; }
