/* ====================================================================
   Simon Bužek – Barber Shop
   Statický web. Tmavý, minimalistický design.
   Breakpointy: sm 640px, md 768px, lg 1024px (mobile-first)
   ==================================================================== */

:root {
  --bg: #050505;
  --panel: #0a0a0a;
  --panel-hover: #111111;

  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;

  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.05);

  --font-body: "Manrope", system-ui, sans-serif;
  --font-display: "Cabinet Grotesk", "Manrope", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: #ffffff;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

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

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

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

::selection {
  background: #ffffff;
  color: #000000;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #2a2a2a;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

/* ---------- Grain overlay ---------- */
.grain::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.font-display,
.section-title,
.card-title,
.hero-title,
.team-name,
.nav-logo,
.footer-logo,
.service-num,
.contact-value,
.marquee-word {
  font-family: var(--font-display);
}

/* ---------- Icons ---------- */
.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}
.icon-sm {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}
.muted {
  color: var(--zinc-500);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background-color 0.25s ease, border-color 0.25s ease,
    color 0.25s ease;
  cursor: pointer;
}
.btn-lg {
  padding: 1rem 2rem;
}
.btn-white {
  background: #ffffff;
  color: #000000;
}
.btn-white:hover {
  background: var(--zinc-200);
}
.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
}
.btn-block {
  width: 100%;
}

/* ====================================================================
   NAVBAR
   ==================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.navbar.scrolled {
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--line);
}
.navbar-inner {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.nav-logo .icon {
  width: 1.25rem;
  height: 1.25rem;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 2.25rem;
}
.nav-links > a:not(.btn) {
  font-size: 0.875rem;
  color: var(--zinc-400);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  transition: color 0.2s ease;
}
.nav-links > a:not(.btn):hover {
  color: #ffffff;
}

.menu-toggle {
  display: inline-flex;
  background: none;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
}
.menu-toggle .icon-close {
  display: none;
}
.menu-toggle.is-open .icon-menu {
  display: none;
}
.menu-toggle.is-open .icon-close {
  display: block;
}

.mobile-menu {
  background: rgba(0, 0, 0, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.mobile-menu > a:not(.btn) {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--zinc-300);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  transition: color 0.2s ease;
}
.mobile-menu > a:not(.btn):hover {
  color: #ffffff;
}
.mobile-menu[hidden] {
  display: none;
}

/* ====================================================================
   HERO
   ==================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bg),
    rgba(5, 5, 5, 0.7),
    rgba(5, 5, 5, 0.4)
  );
}
.hero-dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}
.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-bottom: 5rem;
}
.hero .eyebrow {
  color: var(--zinc-400);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  line-height: 0.85;
  font-size: clamp(3.75rem, 12vw, 9rem);
}
.hero-title .muted {
  color: var(--zinc-500);
}
.hero-lead {
  margin-top: 2rem;
  max-width: 28rem;
  color: var(--zinc-300);
  font-size: 1rem;
}
.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ---------- Eyebrow (sekce) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--zinc-500);
}
.eyebrow .icon-sm {
  width: 1rem;
  height: 1rem;
}

/* ====================================================================
   MARQUEE
   ==================================================================== */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
  background: var(--panel);
}
.marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}
.marquee-word {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  margin: 0 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: 1.875rem;
  color: var(--zinc-700);
}
.marquee-word i {
  font-style: normal;
  color: var(--zinc-800);
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ====================================================================
   SECTIONS (obecné)
   ==================================================================== */
.section {
  padding-block: 6rem;
}
.section-alt {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.section-title {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: clamp(2.25rem, 6vw, 3rem);
  margin-top: 0.75rem;
}
.section-desc {
  max-width: 24rem;
  color: var(--zinc-400);
}
.card-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  font-size: 1.5rem;
}
.muted-text {
  color: var(--zinc-400);
  line-height: 1.625;
}

/* ====================================================================
   SLUŽBY
   ==================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--panel);
  padding: 2rem;
  transition: background-color 0.25s ease;
}
.service-card:hover {
  background: var(--panel-hover);
}
.service-num {
  display: block;
  font-weight: 900;
  font-size: 3rem;
  color: var(--zinc-800);
  margin-bottom: 1.5rem;
  transition: color 0.25s ease;
}
.service-card:hover .service-num {
  color: var(--zinc-600);
}
.service-card .card-title {
  margin-bottom: 0.75rem;
}

/* ====================================================================
   GALERIE
   ==================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 180px;
  gap: 0.75rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 0.5s ease, filter 0.5s ease;
}
.gallery-item:hover img {
  filter: grayscale(0);
  transform: scale(1.05);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}
.gallery-item:hover::after {
  background: rgba(0, 0, 0, 0);
}

/* ====================================================================
   BARBER / TÝM
   ==================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.team-name {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  line-height: 1;
  font-size: clamp(3rem, 8vw, 3.75rem);
  margin-top: 0.75rem;
}
.team-bio {
  margin-top: 1.5rem;
  color: var(--zinc-400);
  font-size: 1.125rem;
  max-width: 28rem;
  line-height: 1.625;
}
.team-text .btn {
  margin-top: 2rem;
}
.team-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 0.5s ease, filter 0.5s ease;
}
.team-photo:hover img {
  filter: grayscale(0);
  transform: scale(1.05);
}
.team-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}
.team-photo figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1.5rem;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: 1.5rem;
}

/* ====================================================================
   KONTAKT
   ==================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
  transition: border-color 0.25s ease;
}
.contact-row:not(.static):hover {
  border-bottom-color: rgba(255, 255, 255, 0.3);
}
.contact-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.contact-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--zinc-500);
}
.contact-value {
  display: block;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}
.contact-row .arrow {
  color: var(--zinc-600);
  transition: color 0.25s ease;
}
.contact-row:hover .arrow {
  color: #ffffff;
}

.hours-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 2rem;
}
.hours-card .card-title {
  margin-bottom: 2rem;
}
.hours-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hours-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 1rem;
}
.hours-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.hours-list li > span:last-child {
  font-weight: 500;
  color: #ffffff;
}
.hours-list .closed {
  color: var(--zinc-600);
}

.map-wrap {
  margin-top: 3rem;
  border: 1px solid var(--line);
  overflow: hidden;
  height: 320px;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.85);
}

/* ====================================================================
   FOOTER
   ==================================================================== */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer .container {
  padding-block: 3.5rem;
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: 1.5rem;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.footer-social a {
  color: var(--zinc-400);
  transition: color 0.2s ease;
}
.footer-social a:hover {
  color: #ffffff;
}
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--zinc-600);
}

/* ====================================================================
   REVEAL animace
   ==================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ====================================================================
   RESPONSIVE
   ==================================================================== */
@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
  .btn-block {
    width: auto;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 768px) {
  .container {
    padding-inline: 3rem;
  }
  .navbar-inner {
    padding-inline: 3rem;
  }
  .nav-links {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }

  .hero-content {
    padding-bottom: 7rem;
  }
  .hero-lead {
    font-size: 1.125rem;
  }

  .section {
    padding-block: 8rem;
  }
  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .section-head.single {
    display: block;
  }

  .marquee-word {
    font-size: 2.25rem;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .service-card {
    padding: 3rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 1rem;
  }
  .gallery-item.span-col-2 {
    grid-column: span 2;
  }
  .gallery-item.span-row-2 {
    grid-row: span 2;
  }

  .hours-card {
    padding: 2.5rem;
  }

  .footer-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee-track {
    animation: none;
  }
}
