/* ===== Koji Alija Barbershop — midnight barber pole ===== */

@font-face {
  font-family: 'Bebas';
  src: url('assets/fonts/BebasNeue-Regular.ttf') format('truetype');
  font-display: swap;
}

:root {
  --bg: #0A0E1A;
  --surface: #141A2B;
  --surface2: #1E2740;
  --red: #FF4D5E;
  --red-soft: #FF8A94;
  --blue: #4C8DFF;
  --text: #F2F5FF;
  --muted: rgba(242, 245, 255, 0.55);
  --faint: rgba(242, 245, 255, 0.30);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .footer-brand {
  font-family: 'Bebas', sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10, 14, 26, 0.75) 0%,
    rgba(10, 14, 26, 0.35) 40%,
    rgba(10, 14, 26, 0.92) 100%);
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 6vw;
}

.nav-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--red);
  object-fit: contain;
  background: #fff;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--red-soft); }

.nav-call {
  color: var(--text);
  background: rgba(255, 77, 94, 0.15);
  border: 1px solid rgba(255, 77, 94, 0.45);
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s;
}

.nav-call:hover { background: rgba(255, 77, 94, 0.35); }

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  padding: 24px 6vw 90px;
}

.hero-text { max-width: 640px; }

.eyebrow {
  color: var(--red-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.32em;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(64px, 12vw, 128px);
  line-height: 0.92;
  color: var(--text);
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.tagline {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  font-family: 'Bebas', sans-serif;
  font-size: 19px;
  letter-spacing: 0.18em;
  text-decoration: none;
  padding: 13px 30px;
  border-radius: 12px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-2px); }

.btn-white {
  background: #fff;
  color: #0A0E1A;
  box-shadow: 0 8px 30px rgba(255, 77, 94, 0.35);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(242, 245, 255, 0.35);
}

.btn-ghost:hover { border-color: var(--red); color: var(--red-soft); }

.scroll-cue {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.35em;
  text-align: center;
  animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 7px); }
}

/* ===== BARBER POLE (potpis brenda) ===== */
.pole {
  --w: 46px;
  --h: 190px;
  width: var(--w);
  height: var(--h);
  border-radius: calc(var(--w) / 2);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: repeating-linear-gradient(45deg,
    #FF4D5E 0 16px, #F2F5FF 16px 32px, #4C8DFF 32px 48px);
  background-size: 200% 200%;
  animation: spin 2.6s linear infinite;
  box-shadow: 0 10px 40px rgba(76, 141, 255, 0.25);
}

/* sjenčenje valjka preko pruga */
.pole span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(0,0,0,0.55) 0%, transparent 25%,
    rgba(255,255,255,0.22) 50%, transparent 75%,
    rgba(0,0,0,0.55) 100%);
}

.pole::before, .pole::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 14px;
  border-radius: 5px;
  background: linear-gradient(180deg, #E8EBF2, #8A93A6, #5A6274);
  z-index: 2;
}

.pole::before { top: 0; }
.pole::after { bottom: 0; }

@keyframes spin {
  from { background-position: 0 0; }
  to { background-position: 0 -96px; }
}

.pole-small { --w: 30px; --h: 110px; margin: 0 auto 18px; }

/* ===== SEKCIJE ===== */
.section {
  max-width: 880px;
  margin: 0 auto;
  padding: 90px 6vw 30px;
}

.section-wide { max-width: 1200px; }

.kicker {
  color: var(--red-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
}

.section h2 {
  font-size: clamp(40px, 6vw, 62px);
  margin: 4px 0 28px;
}

.section-note {
  color: var(--faint);
  font-size: 14px;
  margin: -16px 0 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ===== O NAMA ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.about-img img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 20px;
  display: block;
  border: 1px solid rgba(242, 245, 255, 0.08);
}

.about-text p { color: var(--muted); margin-bottom: 14px; }
.about-text strong { color: var(--text); }

.about-perks {
  list-style: none;
  margin-top: 18px;
}

.about-perks li {
  padding: 9px 0;
  border-bottom: 1px dashed rgba(242, 245, 255, 0.1);
}

/* ===== CJENOVNIK ===== */
.prices { list-style: none; }

.prices li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(242, 245, 255, 0.08);
  font-size: 17px;
}

.prices .p-vip {
  display: block;
  background: linear-gradient(120deg, rgba(255, 77, 94, 0.10), rgba(76, 141, 255, 0.10));
  border: 1px solid rgba(255, 77, 94, 0.35);
  border-radius: 16px;
  padding: 16px 18px;
  margin-top: 14px;
}

.p-vip-row { display: flex; align-items: baseline; gap: 12px; }

.p-name { font-weight: 600; }

.p-dots {
  flex: 1;
  border-bottom: 2px dotted rgba(242, 245, 255, 0.18);
  transform: translateY(-4px);
}

.p-time { color: var(--faint); font-size: 14px; }

.p-price {
  font-family: 'Bebas', sans-serif;
  font-size: 24px;
  color: var(--red-soft);
  min-width: 74px;
  text-align: right;
}

.p-desc { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ===== GALERIJA ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.g-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  cursor: pointer;
  border: 1px solid rgba(242, 245, 255, 0.07);
  transition: transform 0.25s, box-shadow 0.25s;
}

.g-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 44px rgba(255, 77, 94, 0.18);
}

.g-card video, .g-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.g-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 34px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
  font-weight: 700;
  font-size: 15px;
}

.g-card[data-video]::after {
  content: '▶';
  position: absolute;
  top: 12px; right: 14px;
  color: #fff;
  font-size: 13px;
  background: rgba(10, 14, 26, 0.65);
  border-radius: 999px;
  padding: 5px 10px;
}

.g-card.playing::after { content: '⏸'; }

/* ===== APLIKACIJA ===== */
.app-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: center;
  background: linear-gradient(120deg, rgba(255, 77, 94, 0.08), rgba(76, 141, 255, 0.08));
  border: 1px solid rgba(242, 245, 255, 0.1);
  border-radius: 24px;
  padding: 34px;
}

.app-text p { color: var(--muted); font-size: 17px; }
.app-text strong { color: var(--text); }

.store-buttons {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(242, 245, 255, 0.25);
  border-radius: 14px;
  padding: 10px 20px;
  line-height: 1.25;
  font-weight: 700;
  font-size: 17px;
  transition: transform 0.15s, border-color 0.15s;
}

.store-btn:hover { transform: translateY(-2px); border-color: var(--red); }

.store-btn small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.6);
}

.store-icon { font-size: 26px; }

/* ===== KONTAKT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.contact-info h3 {
  font-size: 22px;
  color: var(--red-soft);
  letter-spacing: 0.12em;
  margin: 22px 0 8px;
}

.contact-info h3:first-child { margin-top: 0; }
.contact-info p { color: var(--muted); }

.hours { border-collapse: collapse; width: 100%; max-width: 340px; }

.hours td {
  padding: 7px 0;
  border-bottom: 1px dashed rgba(242, 245, 255, 0.1);
  color: var(--muted);
}

.hours td:last-child { text-align: right; color: var(--text); font-weight: 600; }
.hours td.closed { color: var(--red-soft); font-weight: 600; }

.tel-link {
  color: var(--text);
  font-family: 'Bebas', sans-serif;
  font-size: 30px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.tel-link:hover { color: var(--red-soft); }

.socials { display: flex; flex-direction: column; gap: 6px; margin-top: 22px; }

.socials a {
  color: var(--blue);
  text-decoration: none;
  font-size: 15px;
}

.socials a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 80px 6vw 110px;
  margin-top: 60px;
  background: linear-gradient(180deg, transparent, rgba(30, 39, 64, 0.5));
}

.footer-brand { font-size: 34px; letter-spacing: 0.22em; }
.footer-sub { color: var(--muted); font-size: 14px; }
.footer-copy { color: var(--faint); font-size: 12px; margin-top: 18px; }

/* ===== MOBILNO "POZOVI" DUGME ===== */
.mobile-call {
  display: none;
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 50;
  background: var(--red);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  padding: 15px;
  border-radius: 14px;
  box-shadow: 0 10px 34px rgba(255, 77, 94, 0.45);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .hero-content { gap: 26px; padding-bottom: 110px; }
  .pole { --w: 34px; --h: 150px; }
  .about-grid, .contact-grid, .app-grid { grid-template-columns: 1fr; }
  .mobile-call { display: block; }
  .nav-call { display: none; }
  .footer { padding-bottom: 150px; }
}

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

/* ===== RECENZIJE ===== */
.rating-summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: -10px 0 26px;
}

.rating-num {
  font-family: 'Bebas', sans-serif;
  font-size: 44px;
  color: var(--text);
}

.rating-stars {
  color: #FFC53D;
  font-size: 22px;
  letter-spacing: 3px;
}

.rating-src { color: var(--faint); font-size: 14px; }

.reviews-marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.reviews-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.reviews-marquee:hover .reviews-track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.review-card {
  width: 320px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid rgba(242, 245, 255, 0.09);
  border-radius: 18px;
  padding: 20px;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--blue));
  flex-shrink: 0;
}

.review-name { font-weight: 700; font-size: 15px; }
.review-when { color: var(--faint); font-size: 12px; }
.review-stars { color: #FFC53D; font-size: 14px; letter-spacing: 2px; margin-bottom: 8px; }
.review-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .reviews-track { animation: none; flex-wrap: wrap; width: auto; }
}

/* ===== Poliranje: fiksna glass navigacija ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(10, 14, 26, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}

.hero { padding-top: 88px; }

section[id] { scroll-margin-top: 96px; }

/* store dugmad sa pravim ikonama */
.store-svg { width: 30px; height: 30px; flex-shrink: 0; }

.app-grid { grid-template-columns: 1fr; text-align: center; }
.app-text p { max-width: 560px; margin: 0 auto; }
.store-buttons { justify-content: center; }

/* footer kredit */
.footer-credit {
  color: rgba(242, 245, 255, 0.35);
  font-size: 12.5px;
  margin-top: 6px;
  letter-spacing: 0.04em;
}

/* ===== Kontakt: mapa pored informacija ===== */
.contact-grid { grid-template-columns: 1fr 1.15fr; align-items: stretch; }

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  border-radius: 20px;
  filter: grayscale(0.15) contrast(1.05);
}

/* na telefonu: kontakt i mapa jedno ispod drugog */
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map iframe { min-height: 300px; }
}

/* ===== Plutajući QR (samo desktop) ===== */
.qr-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 18px;
  padding: 10px 14px 10px 10px;
  text-decoration: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 77, 94, 0.55);
  transition: transform 0.2s, box-shadow 0.2s;
}

.qr-float:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 18px 50px rgba(255, 77, 94, 0.35), 0 0 0 2px var(--red);
}

.qr-float img {
  width: 74px;
  height: 74px;
  display: block;
  border-radius: 10px;
}

.qr-float span {
  color: #3a3f4d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.qr-float strong { color: #0A0E1A; font-size: 12px; }

@media (max-width: 820px) {
  .qr-float { display: none; }
}

/* ===== Hamburger + mobilni meni ===== */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  background: rgba(20, 26, 43, 0.7);
  border: 1px solid rgba(242, 245, 255, 0.18);
  border-radius: 12px;
  cursor: pointer;
  padding: 10px;
}

.nav-burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(78vw, 320px);
  z-index: 220;
  background: var(--surface);
  border-right: 1px solid rgba(242, 245, 255, 0.1);
  padding: 28px 24px;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.25, 1);
}

.drawer.open { transform: translateX(0); }

.drawer-title {
  font-family: 'Bebas', sans-serif;
  font-size: 30px;
  letter-spacing: 0.18em;
  color: var(--red);
  margin-bottom: 18px;
}

.drawer-links { display: flex; flex-direction: column; }

.drawer-links a {
  color: var(--text);
  text-decoration: none;
  font-family: 'Bebas', sans-serif;
  font-size: 26px;
  letter-spacing: 0.1em;
  padding: 13px 0;
  border-bottom: 1px solid rgba(242, 245, 255, 0.08);
}

.drawer-links a:active { color: var(--red-soft); }

.drawer-links .drawer-call {
  font-family: system-ui, sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--red-soft);
  border-bottom: none;
  margin-top: 10px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(5, 8, 16, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

@media (max-width: 820px) {
  .nav-burger { display: flex; }
}

/* ===== Cookie banner ===== */
.cookie-bar {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 200;
  max-width: 400px;
  background: var(--surface2);
  border: 1px solid rgba(242, 245, 255, 0.14);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  animation: cookieIn 0.5s cubic-bezier(0.2, 0.8, 0.25, 1);
}

@keyframes cookieIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.cookie-title { font-weight: 800; font-size: 16px; margin-bottom: 6px; }
.cookie-text { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

.cookie-actions { display: flex; gap: 10px; margin-top: 14px; }

.cookie-btn {
  flex: 1;
  border: 0;
  border-radius: 11px;
  padding: 11px 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s;
}

.cookie-btn:hover { transform: translateY(-1px); }
.cookie-accept { background: var(--red); color: #fff; }
.cookie-necessary {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(242, 245, 255, 0.25);
}

@media (max-width: 820px) {
  .cookie-bar { left: 12px; right: 12px; bottom: 84px; max-width: none; }
}

/* ===== Mapa: placeholder dok nema saglasnosti ===== */
.contact-map { position: relative; }

.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  border: 1px dashed rgba(242, 245, 255, 0.25);
  border-radius: 20px;
  background:
    radial-gradient(ellipse at center, rgba(76, 141, 255, 0.10), transparent 70%),
    var(--surface);
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.map-placeholder span { font-size: 34px; }
.map-placeholder small { color: var(--faint); font-size: 12px; font-weight: 400; }
.map-placeholder:hover { border-color: var(--red); }
