/* ==========================================================================
   BARBER STUDIO KOLIBŘÍK — design system
   Atmosférický, fotografický, rezervačně orientovaný.
   ========================================================================== */

:root {
  /* Colors */
  --ink: #16130f;
  --ink-soft: #1d1811;
  --espresso: #2a1d16;
  --espresso-light: #382719;
  --brass: #b08d57;
  --brass-light: #cba36c;
  --ivory: #ede6da;
  --ivory-dim: #cfc6b6;
  --stone: #94897a;
  --line: rgba(237, 230, 218, 0.12);
  --line-strong: rgba(176, 141, 87, 0.35);

  /* Type */
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --container: 1160px;
  --radius-sm: 3px;
  --radius-md: 6px;
  --header-h: 78px;
  --banner-h: 40px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--banner-h)); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0ms !important; }
}

html, body { overflow-x: hidden; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  width: 100%;
}

body.nav-open { overflow: hidden; }

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 0.5em;
  color: inherit;
}

p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brass);
  color: var(--ink);
  padding: 12px 20px;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brass);
  color: var(--ink);
}
.btn-primary:hover { background: var(--brass-light); }

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 17px 34px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Portfolio demo banner
   ========================================================================== */

.demo-banner {
  position: sticky;
  top: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--banner-h);
  padding: 8px 20px;
  background: var(--brass);
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
}
.demo-banner strong { letter-spacing: 0.05em; }

/* ==========================================================================
   Header — kompaktní, na začátku transparentní přes hero
   ========================================================================== */

.site-header {
  position: sticky;
  top: var(--banner-h);
  z-index: 500;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(22, 19, 15, 0.96);
  backdrop-filter: blur(6px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--ivory);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--brass);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--brass-light);
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.main-nav ul {
  display: flex;
  gap: 30px;
}

.main-nav a {
  color: var(--ivory-dim);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--brass-light); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ivory-dim);
  font-size: 0.9rem;
  font-weight: 500;
}
.header-phone:hover { color: var(--brass-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ivory);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero — celoplošná fotografie, obsah asymetricky dole vlevo
   ========================================================================== */

.hero {
  position: relative;
  margin-top: calc(-1 * var(--header-h));
  min-height: clamp(560px, 86vh, 820px);
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  color: var(--ivory);
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(22, 19, 15, 0.55) 0%, rgba(22, 19, 15, 0.15) 34%, rgba(22, 19, 15, 0.62) 68%, rgba(22, 19, 15, 0.9) 100%),
    linear-gradient(78deg, rgba(22, 19, 15, 0.72) 0%, rgba(22, 19, 15, 0.28) 52%, rgba(22, 19, 15, 0) 78%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 72px;
  max-width: var(--container);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.8rem, 6.4vw, 4.6rem);
  color: var(--ivory);
  max-width: 12ch;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--ivory-dim);
  max-width: 42ch;
  margin-top: 18px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  margin-top: 32px;
}

.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ivory-dim);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.hero-phone svg { color: var(--brass-light); }
.hero-phone:hover { color: var(--brass-light); border-color: var(--brass-light); }

/* ==========================================================================
   Provozní informace — praktický pás
   ========================================================================== */

.info-bar {
  background: var(--espresso);
  color: var(--ivory);
  border-top: 1px solid var(--line-strong);
  padding: 26px 0;
}

.info-bar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
}

.info-item__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-light);
}

.info-item__value {
  font-size: 0.94rem;
  color: var(--ivory-dim);
}
.info-item__value a {
  color: var(--ivory);
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.15s ease;
}
.info-item__value a:hover { color: var(--brass-light); }

/* ==========================================================================
   Sections (generic)
   ========================================================================== */

.section {
  padding: 96px 0;
}

.section--dark {
  background: var(--ink);
  color: var(--ivory);
}
.section--dark .eyebrow { color: var(--brass-light); }

.section h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
}

.section-lead {
  max-width: 60ch;
  font-size: 1.02rem;
  color: var(--stone);
  margin-top: 4px;
}
.section--dark .section-lead { color: var(--ivory-dim); }

/* ==========================================================================
   Menu studia — služby a ceník v jedné kompozici
   ========================================================================== */

.menu-section { padding: 0; }

.menu-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) 1.2fr;
  gap: 0;
  max-width: none;
  padding: 0;
}

.menu-photo {
  position: relative;
  margin: 0;
  min-height: 520px;
}
.menu-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.menu-photo::after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(180deg, transparent, rgba(18, 16, 15, 0.86));
  pointer-events: none;
}
.menu-photo figcaption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  z-index: 1;
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.menu-content {
  padding: 96px clamp(24px, 6vw, 96px);
  max-width: 760px;
}

.menu-group { margin-top: 44px; }
.menu-group:first-of-type { margin-top: 40px; }

.menu-group__title {
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  color: var(--brass-light);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 10px;
  margin-bottom: 6px;
}

.menu-item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.menu-item:last-child { border-bottom: none; }

.menu-item__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 62%;
}

.menu-item__name {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.06rem;
  color: var(--ivory);
}

.menu-item__desc {
  font-size: 0.88rem;
  color: var(--stone);
  line-height: 1.5;
}

.menu-item__dots {
  flex: 1;
  border-bottom: 1px dotted rgba(237, 230, 218, 0.3);
  transform: translateY(-4px);
}

.menu-item__price {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--brass-light);
  white-space: nowrap;
}

.menu-item--featured {
  border-left: 2px solid var(--brass);
  padding-left: 16px;
  margin-left: -18px;
}

.menu-tag {
  display: inline-block;
  vertical-align: middle;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--brass);
  padding: 3px 8px;
  border-radius: 2px;
  margin-left: 10px;
  transform: translateY(-2px);
}

.menu-note {
  margin: 40px 0 28px;
  font-size: 0.92rem;
  color: var(--stone);
  max-width: 52ch;
}

/* ==========================================================================
   O nás — fotografická dvousloupcová sekce
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-photo {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-photo::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(237, 230, 218, 0.5);
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.about-text p { color: var(--stone); font-size: 1.02rem; }

/* ==========================================================================
   Galerie — pravidelná mřížka 2 × 2
   ========================================================================== */

#galerie .gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.gallery-item {
  min-width: 0;
  margin: 0;
  background: var(--espresso);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
}

#galerie .gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.03); }

#galerie .gallery-item--interior img { object-position: center 68%; }
#galerie .gallery-item--beard img { object-position: center 72%; }

.gallery-item figcaption {
  padding: 12px 16px 14px;
  color: var(--ivory-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   Kontakt + rezervace — formulář jako hlavní prvek
   ========================================================================== */

.section--contact { padding-bottom: 72px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 56px;
  margin-top: 44px;
  align-items: start;
}

.contact-info__title {
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.contact-list {
  display: grid;
  gap: 2px;
  margin-bottom: 28px;
}

.contact-list li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(22, 19, 15, 0.1);
  font-size: 0.96rem;
  align-items: baseline;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}

.contact-list a { font-weight: 500; }
.contact-list a:hover { color: var(--brass); }

.social-links {
  display: flex;
  gap: 14px;
}
.social-links .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(22, 19, 15, 0.15);
  border-radius: 50%;
  color: var(--ink);
  transition: border-color 0.15s ease, color 0.15s ease;

  cursor: default;
}

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(22, 19, 15, 0.1);
}
.map-embed--wide { margin-top: 56px; }
.map-embed iframe { display: block; width: 100%; }

/* Reservation form */

.reservation-form {
  background: #fff;
  border: 1px solid rgba(22, 19, 15, 0.08);
  border-top: 3px solid var(--brass);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: 0 1px 2px rgba(22, 19, 15, 0.04);
}

.reservation-form h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.form-note {
  font-size: 0.92rem;
  color: var(--stone);
  margin-bottom: 24px;
}

.form-row { margin-bottom: 18px; }

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(22, 19, 15, 0.15);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--brass);
  outline: none;
}
.form-row input:invalid:not(:placeholder-shown) { border-color: #b3382c; }

.form-row textarea { resize: vertical; }

.form-success {
  margin: 18px 0 0;
  padding: 14px 16px;
  background: rgba(176, 141, 87, 0.14);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: #5a4626;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: var(--ivory-dim);
  padding: 56px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-name {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--ivory);
  margin: 0 0 4px;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--stone);
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a:hover { color: var(--brass-light); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
}
.footer-contact a:hover { color: var(--brass-light); }

.footer-bottom {
  padding: 22px 0;
  font-size: 0.82rem;
  color: var(--stone);
}

/* ==========================================================================
   Sticky mobile CTA
   ========================================================================== */

.sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 400;
  background: var(--ink);
  border-top: 1px solid var(--line-strong);
  padding: 12px 16px;
  gap: 12px;
  align-items: center;
}

.sticky-cta__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 1.5px solid var(--brass);
  border-radius: var(--radius-sm);
  color: var(--brass-light);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .menu-grid { grid-template-columns: minmax(240px, 0.7fr) 1.3fr; }
  .menu-item__text { max-width: 58%; }
}

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }

  .menu-grid { grid-template-columns: 1fr; }
  .menu-photo { min-height: 320px; }
  .menu-content { padding: 64px 24px; max-width: none; }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; --banner-h: 44px; }

  .demo-banner {
    padding: 6px 12px;
    font-size: 0.68rem;
  }

  .header-phone__num { display: none; }
  .header-phone {
    width: 40px;
    height: 40px;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--brass-light);
  }
  .header-actions .btn { display: none; }

  .main-nav {
    position: fixed;
    top: calc(var(--banner-h) + var(--header-h));
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ink);
    padding: 32px 24px;
    transform: translateX(100%);
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
    overflow-y: auto;
    visibility: hidden;
    pointer-events: none;
  }
  .main-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a {
    display: block;
    padding: 16px 4px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle { display: flex; }

  .hero { min-height: min(78vh, 640px); }
  .hero-inner { padding-top: calc(var(--header-h) + 56px); padding-bottom: 48px; }
  .hero-photo { object-position: 62% center; }

  .info-bar-grid { grid-template-columns: 1fr; gap: 18px; }

  .section { padding: 64px 0; }
  .menu-content { padding: 56px 20px; }
  .menu-item__text { max-width: 68%; }
  .menu-item--featured { margin-left: 0; padding-left: 14px; }
  .menu-tag { display: block; margin: 6px 0 0; width: fit-content; transform: none; }

  #galerie .gallery-grid { grid-template-columns: 1fr; gap: 16px; }

  .reservation-form { padding: 28px 20px; }
  .map-embed--wide { margin-top: 40px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }

  .sticky-cta { display: flex; }
  body { padding-bottom: 76px; }
}

@media (max-width: 340px) {
  :root { --banner-h: 56px; }
}


.map-consent-placeholder{min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px;text-align:center;border:1px solid currentColor;background:rgba(127,127,127,.08)}.map-consent-placeholder a{text-decoration:underline;font-weight:700}
