/* =============================================================
   Základ stránok rezervačného systému — reset, typografia a
   hlavička/pätička salónu (obsah dopĺňa server, functions/_lib/branding.ts).

   Poradie načítania: base.css → rezervacie.css → rezervacie-extra.css.
   Farbu salónu (--rez-primary) nastavuje server v <style id="salon-brand">.
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&display=swap');

/* ── Reset ─────────────────────────────────────────────────── */
*, ::after, ::before { box-sizing: border-box; }
html, body { margin: 0; padding: 0; border: 0; min-height: 100vh; }
body {
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  color: #232323;
  position: relative;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: .5rem; font-weight: 500; line-height: 1.2; }
h1 { font-size: calc(1.375rem + 1.5vw); }
h2 { font-size: calc(1.325rem + .9vw); }
h3 { font-size: calc(1.3rem + .6vw); }
h4 { font-size: calc(1.275rem + .3vw); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }
h1, h2, h3, h4, h5, h6, span, p, a { line-height: 1; word-break: break-word; word-wrap: break-word; font-weight: 400; }
b, strong { font-weight: bold; }
ol, ul { padding-left: 2rem; }
ol ol, ol ul, ul ol, ul ul { margin-bottom: 0; }
a { font-style: normal; cursor: pointer; text-decoration: none; color: var(--rez-primary, #2f6f73); transition: color .3s; }
a:not([href]):not([class]), a:not([href]):not([class]):hover { color: inherit; text-decoration: none; }
img, svg { vertical-align: middle; }
img, iframe { display: block; width: 100%; }
table { caption-side: bottom; border-collapse: collapse; }
th { text-align: inherit; text-align: -webkit-match-parent; }
select { word-wrap: normal; }
button { background-color: transparent; border-color: transparent; }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active {
  transition-delay: 9999s;
  transition-property: background-color, color;
}
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--rez-primary, #2f6f73); outline-offset: 2px; }

/* ── Pás ukážkovej verzie (DEMO_MODE, branding.ts) ─────────── */
.demo-bar {
  background: #2b2b2b;
  color: #fff;
  font-size: .8125rem;
  line-height: 1.4;
  text-align: center;
  padding: .4rem 1rem;
}
.demo-bar strong { color: #fff; font-weight: 600; line-height: 1.4; }

/* ── Hlavička salónu ───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: .625rem 1rem;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  color: #1c1c1c;
}
.site-brand:hover { color: #1c1c1c; }
.site-logo {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
}
.site-logo-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rez-primary, #2f6f73);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 50%;
}
.site-brand-text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.site-name {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-tagline {
  font-size: .8125rem;
  line-height: 1.2;
  color: #6b6b6b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-header-links { display: flex; align-items: center; gap: .5rem; flex: 0 0 auto; }
.site-header-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .8rem;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 999px;
  color: #1c1c1c;
  font-size: .9rem;
  line-height: 1;
  white-space: nowrap;
  transition: border-color .15s, color .15s;
}
.site-header-link:hover { border-color: var(--rez-primary, #2f6f73); color: var(--rez-primary, #2f6f73); }
.site-header-link svg { width: 16px; height: 16px; fill: currentColor; flex: 0 0 auto; }
.site-header-link-text { line-height: 1; }
@media (max-width: 600px) {
  .site-header-link { padding: 0; width: 40px; height: 40px; justify-content: center; }
  .site-header-link-text { display: none; }
  .site-name { font-size: 1rem; }
}

/* ── Pätička salónu ────────────────────────────────────────── */
.site-footer {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, .08);
  color: #4a4a4a;
}
.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.site-footer-name { margin: 0; font-size: 1.05rem; font-weight: 600; color: #1c1c1c; line-height: 1.3; }
.site-footer-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.5rem;
  font-size: .95rem;
}
.site-footer-contacts a, .site-footer-contacts span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #4a4a4a;
  line-height: 1.4;
}
.site-footer-contacts a:hover { color: var(--rez-primary, #2f6f73); }
.site-footer-contacts svg { width: 16px; height: 16px; fill: var(--rez-primary, #2f6f73); flex: 0 0 auto; }
.site-footer-social { display: flex; gap: .5rem; }
.site-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .12);
  color: #4a4a4a;
}
.site-footer-social a:hover { color: var(--rez-primary, #2f6f73); border-color: var(--rez-primary, #2f6f73); }
.site-footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.25rem;
  font-size: .875rem;
}
.site-footer-links a { color: #4a4a4a; text-decoration: underline; text-underline-offset: 3px; line-height: 1.4; }
.site-footer-links a:hover { color: var(--rez-primary, #2f6f73); }
.site-footer-copy { margin: 0; font-size: .8125rem; color: #8a8a8a; line-height: 1.4; }
