/* =========================================================
   New Style Barbershop — bold, light, modern
   Inspired by clean barbershop sites (Eddy's vibe):
   big UPPERCASE display, light backgrounds, strong photos.
   Edit variables below. Mobile-first.
   ========================================================= */

:root {
  --bg:        #f7f4ee;   /* warm off-white */
  --bg-alt:    #ffffff;   /* clean white */
  --surface:   #ffffff;
  --text:      #1c1815;   /* near-black */
  --muted:     #7c6f61;   /* warm grey */
  --accent:    #b07a3c;   /* oak / caramel */
  --accent-dk: #8a5626;
  --brass:     #c9a35a;
  --brass-lt:  #e7d3a1;
  --accent-2:  #c1121f;   /* barber-pole red */
  --ink:       #171310;
  --line:      #e6ddd0;
  --radius:    12px;
  --maxw:      1200px;
  --header-h:  72px;
  --ease:      cubic-bezier(.22,.61,.36,1);
  --shadow:    0 20px 50px rgba(40,26,10,.14);
  --font-display: "Anton", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

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

/* ---- Typography ---- */
.display { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 5.5vw, 66px); line-height: .98; letter-spacing: .5px; margin: .12em 0 .28em; }
.display--xl { font-size: clamp(42px, 8vw, 92px); }
.eyebrow { text-transform: uppercase; letter-spacing: .26em; font-size: 12px; font-weight: 700; color: var(--accent-dk); margin: 0 0 14px; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: #4b3f34; max-width: 58ch; }

/* ---- Reveal ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none; } }

/* ---- Barber pole ---- */
.pole { position: relative; display: inline-block; width: 24px; height: 110px; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.22), inset 0 0 0 2px rgba(0,0,0,.06); }
.pole--sm { width: 11px; height: 28px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.12); }
.pole--md { width: 20px; height: 84px; }
.pole__stripes { position: absolute; inset: 0; background: repeating-linear-gradient(60deg, var(--accent-2) 0, var(--accent-2) 12px, #fff 12px, #fff 24px, #1d4ed8 24px, #1d4ed8 36px, #fff 36px, #fff 48px); background-size: 100% 96px; animation: pole-spin 2.2s linear infinite; }
.pole--sm .pole__stripes { background: repeating-linear-gradient(60deg, var(--accent-2) 0, var(--accent-2) 5px, #fff 5px, #fff 10px, #1d4ed8 10px, #1d4ed8 15px, #fff 15px, #fff 20px); background-size: 100% 40px; animation-duration: 1.6s; }
.pole__cap { position: absolute; left: -2px; right: -2px; height: 10px; background: linear-gradient(var(--brass-lt), var(--brass)); z-index: 2; }
.pole__cap--top { top: 0; border-radius: 14px 14px 4px 4px; }
.pole__cap--bottom { bottom: 0; border-radius: 4px 4px 14px 14px; }
@keyframes pole-spin { from { background-position: 0 0; } to { background-position: 0 -96px; } }
@media (prefers-reduced-motion: reduce) { .pole__stripes { animation: none; } }

/* ---- Media (real photos in assets/img — swap these for the barber's own) ---- */
.media { position: relative; width: 100%; height: 100%; border-radius: var(--radius); background-size: cover; background-position: center; background-color: #241610; overflow: hidden; }
.media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.04), rgba(0,0,0,.28)); }
.media--hero   { background-image: url("../img/hero.jpg"); }
.media--story  { background-image: url("../img/story.jpg"); }
.media--barber { background-image: url("../img/barber.jpg"); }

/* ---- Scroll progress bar ---- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90; background: linear-gradient(90deg, var(--accent), var(--brass)); transform: scaleX(0); transform-origin: 0 50%; }

/* ---- Film grain (adds texture, reduces flatness) ---- */
.grain { position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---- Custom cursor = mini barber pole (desktop, pointer:fine only) ---- */
.cursor { display: none; }
@media (pointer: fine) {
  .cursor { display: block; position: fixed; top: 0; left: 0; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; z-index: 100; pointer-events: none;
    background: repeating-linear-gradient(60deg, var(--accent-2) 0 6px, #fff 6px 12px, #1d4ed8 12px 18px, #fff 18px 24px);
    background-size: 100% 48px;
    box-shadow: 0 3px 10px rgba(0,0,0,.35), inset 0 0 0 2px rgba(255,255,255,.55);
    animation: pole-spin 1.4s linear infinite; }
}
@media (prefers-reduced-motion: reduce) { .cursor { display: none !important; } }

/* When GSAP drives reveals, disable the CSS transition to avoid double-animating */
html.gsap-on .reveal { transition: none; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); transition: background .3s var(--ease), box-shadow .3s var(--ease); }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 22px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text); }
.brand-name__accent { display: none; }
.site-header.is-scrolled { background: rgba(247,244,238,.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }

.nav { display: none; margin-left: auto; gap: 30px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.nav a { position: relative; color: var(--text); opacity: .8; transition: opacity .2s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--accent); transition: width .3s var(--ease); }
.nav a:hover { opacity: 1; }
.nav a:hover::after { width: 100%; }

.lang-switcher { margin-left: auto; display: flex; gap: 4px; }
.nav + .lang-switcher { margin-left: 0; }
.lang-btn { background: transparent; border: 1px solid var(--line); color: var(--text); padding: 5px 9px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; transition: all .2s; }
.lang-btn:hover { border-color: var(--accent); }
.lang-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---- Hero (split, light) ---- */
.hero { padding: clamp(28px, 5vw, 56px) 0 clamp(48px, 7vw, 84px); position: relative; }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .26em; font-size: 12px; font-weight: 700; color: var(--accent-dk); margin: 0 0 18px; }
.hero__title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(46px, 8.5vw, 104px); line-height: .92; letter-spacing: .5px; margin: 0; color: var(--text); }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); animation: rise 1s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; color: var(--accent-dk); }
@keyframes rise { to { transform: translateY(0); } }
.hero__subtitle { font-size: clamp(16px, 2vw, 20px); color: #4b3f34; max-width: 46ch; margin: 22px 0 0; }
.hero__cta { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 30px; }
.hero__media-wrap { position: relative; height: clamp(300px, 52vw, 520px); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero__media-wrap .media { position: absolute; inset: -6% 0; height: 112%; }
.hero__scroll { display: none; }
@media (prefers-reduced-motion: reduce) { .hero__title .line > span { transform: none; animation: none; } }

@media (min-width: 900px) {
  .hero { padding: clamp(40px, 5vw, 72px) 0 clamp(72px, 8vw, 108px); }
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .hero__scroll { display: flex; position: absolute; left: 50%; transform: translateX(-50%); bottom: 24px; color: var(--muted); text-transform: uppercase; letter-spacing: .2em; font-size: 11px; font-weight: 700; flex-direction: column; align-items: center; gap: 10px; }
  .hero__scroll i { width: 1px; height: 38px; background: var(--line); position: relative; overflow: hidden; }
  .hero__scroll i::after { content: ""; position: absolute; top: -38px; left: 0; width: 100%; height: 38px; background: var(--accent); animation: scrolldot 1.8s var(--ease) infinite; }
  @keyframes scrolldot { 0% { top: -38px; } 60%,100% { top: 38px; } }
}

/* ---- Buttons ---- */
.btn { position: relative; display: inline-block; padding: 14px 30px; border-radius: 999px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; overflow: hidden; transition: transform .15s, box-shadow .25s, background .25s, color .25s, border-color .25s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(23,19,16,.22); }
.btn--primary:hover { background: var(--accent-dk); }
.btn--primary::after { content: ""; position: absolute; top: 0; left: -120%; width: 55%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .6s var(--ease); }
.btn--primary:hover::after { left: 130%; }
.btn--block { display: block; width: 100%; text-align: center; padding: 19px 30px; font-size: 15px; }
.btn--ghost { border: 2px solid var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* ---- Ticker (JS-driven marquee) ---- */
.ticker { background: var(--ink); color: #fff; overflow: hidden; white-space: nowrap; padding: 14px 0; }
.ticker__track { display: inline-flex; will-change: transform; }
.ticker__seg { font-family: var(--font-display); text-transform: uppercase; font-size: 22px; letter-spacing: 1px; color: #fff; padding-right: 12px; }
/* Static, centered fallback when motion is reduced */
@media (prefers-reduced-motion: reduce) {
  .ticker { text-align: center; }
  .ticker__track { display: block; }
}

/* ---- Sections (tighter spacing) ---- */
.section { padding: clamp(48px, 6vw, 84px) 0; }
.section--alt { background: var(--bg-alt); }

/* ---- Split (Story / Barber) ---- */
.split__grid { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
.split__media { position: relative; height: clamp(300px, 55vw, 480px); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split__media .media { position: absolute; inset: -8% 0; height: 116%; }
@media (min-width: 900px) {
  .split__grid { grid-template-columns: 1fr 1fr; gap: 60px; }
  .split--reverse .split__media { order: 2; }
}

/* ---- Divider ---- */
.divider { display: flex; align-items: center; justify-content: center; gap: 30px; padding: 30px 0; background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.monogram { font-family: var(--font-display); font-size: clamp(40px, 6vw, 60px); letter-spacing: 3px; color: var(--accent-dk); }

/* ---- Services list ---- */
.svc-list { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 22px 8px; border-bottom: 1px solid var(--line); position: relative; transition: padding .3s var(--ease), background .3s var(--ease); }
.svc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .3s var(--ease); }
.svc:hover { background: var(--bg); padding-left: 22px; }
.svc:hover::before { transform: scaleY(1); }
.svc__name { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.05; letter-spacing: .5px; transition: transform .3s var(--ease), text-shadow .3s var(--ease), color .3s var(--ease); transform-origin: left bottom; }
.svc:hover .svc__name { transform: translateY(-6px) scale(1.04); color: var(--accent-dk); text-shadow: 0 12px 18px rgba(23, 19, 16, .28); }
.svc__desc { color: var(--muted); font-size: 15px; }
.svc__meta { display: flex; align-items: baseline; gap: 16px; margin-top: 6px; }
.svc__dur { color: var(--muted); font-size: 14px; }
.svc__price { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); color: var(--accent-dk); letter-spacing: .5px; }
@media (min-width: 760px) {
  .svc { grid-template-columns: 1fr 1.4fr auto; align-items: center; gap: 30px; }
  .svc__meta { margin-top: 0; flex-direction: column; align-items: flex-end; gap: 2px; }
}

/* ---- Gallery ---- */
/* ---- Custom booking calendar ---- */
.booking { margin-top: 34px; max-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-title { font-family: var(--font-display); text-transform: uppercase; font-size: 24px; letter-spacing: .5px; }
.cal-nav { width: 40px; height: 40px; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; font-size: 22px; line-height: 1; color: var(--text); cursor: pointer; transition: border-color .2s, background .2s; }
.cal-nav:hover { border-color: var(--accent); background: #fff; }
.cal-weekdays, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-weekdays { margin-bottom: 8px; }
.cal-weekdays span { text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border: none; border-radius: 10px; background: transparent; font-size: 15px; font-weight: 600; color: var(--text); font-family: inherit; }
.cal-day--muted { visibility: hidden; }
.cal-day--disabled { color: #cbbfae; cursor: not-allowed; }
.cal-day--open { background: var(--bg); cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.cal-day--open:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.cal-day--today { box-shadow: inset 0 0 0 2px var(--brass); }
.cal-note { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

/* ---- Booking modal ---- */
.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(23,19,16,.55); backdrop-filter: blur(3px); }
.modal__card { position: relative; z-index: 1; width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; animation: modal-in .3s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__x { position: absolute; top: 12px; right: 14px; border: none; background: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }
.modal__x:hover { color: var(--text); }
.modal__date { font-family: var(--font-display); text-transform: uppercase; font-size: 20px; letter-spacing: .5px; margin: 0 30px 18px 0; }
.modal__field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 16px; }
.modal__field select, .modal__field input { font-family: inherit; font-size: 15px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.modal__field select:focus, .modal__field input:focus { outline: none; border-color: var(--accent); }
.modal__label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 10px; }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; margin-bottom: 18px; }
.time-slot { padding: 11px 0; border: 1px solid var(--line); background: var(--bg); border-radius: 9px; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--text); cursor: pointer; transition: all .15s; }
.time-slot:hover { border-color: var(--accent); }
.time-slot.is-selected { background: var(--ink); color: #fff; border-color: var(--ink); }
.time-empty { color: var(--muted); grid-column: 1 / -1; text-align: center; }
.modal__hint { font-size: 12px; color: var(--muted); text-align: center; margin: 10px 0 0; }
@media (prefers-reduced-motion: reduce) { .modal__card { animation: none; } }

/* ---- Promo banner ---- */
.promo-banner { background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; overflow: hidden; white-space: nowrap; }
.promo-banner[hidden] { display: none; }
.promo-banner__viewport { position: relative; display: flex; }
.promo-banner__text { display: inline-block; padding: 10px 0 10px 100%; animation: marquee 18s linear infinite; }
.promo-banner:hover .promo-banner__text { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .promo-banner__text { animation: none; padding-left: 20px; white-space: normal; } }
#service-kids[hidden] { display: none; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 32px 0; }
.contact-btn { display: flex; align-items: center; justify-content: center; padding: 18px; border-radius: var(--radius); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; color: #fff; box-shadow: 0 8px 18px rgba(40,26,10,.12); transition: transform .15s, filter .2s; }
.contact-btn:hover { transform: translateY(-3px); filter: brightness(1.06); }
.contact-btn--phone { background: #16a34a; }
.contact-btn--whatsapp { background: #25D366; color: #06331a; }
.contact-btn--viber { background: #7360f2; }
.contact-btn--messenger { background: #0084ff; }
.contact-btn--instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

/* Click-to-reveal phone number */
.contact-phone { flex-direction: column; gap: 0; transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .2s; }
.contact-phone__num { display: block; max-height: 0; opacity: 0; overflow: hidden; white-space: nowrap; margin-top: 0; font-size: 16px; font-weight: 800; letter-spacing: .3px; transition: max-height .35s var(--ease), opacity .3s var(--ease), margin-top .35s var(--ease); }
.contact-phone.is-open { transform: scale(1.06); box-shadow: 0 18px 36px rgba(22,163,74,.5); }
.contact-phone.is-open .contact-phone__num { max-height: 30px; opacity: 1; margin-top: 8px; }
@media (prefers-reduced-motion: reduce) {
  .contact-phone, .contact-phone__num { transition: none; }
  .contact-phone.is-open { transform: none; }
}

/* ---- Location ---- */
.location { margin-top: 28px; }
.location__title { font-family: var(--font-display); text-transform: uppercase; font-size: 24px; letter-spacing: .5px; }
.location__text { color: var(--muted); }
.location__map { margin-top: 16px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.location__map iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 44px 0; font-size: 14px; }
.footer-inner { display: flex; flex-direction: column; gap: 8px; }
.footer-brand { font-family: var(--font-display); letter-spacing: 2px; font-size: 24px; color: #fff; text-transform: uppercase; margin: 0; }
.footer-brand span { color: var(--brass); }
.footer-credit a { color: var(--brass); font-weight: 600; }
.footer-credit a:hover { text-decoration: underline; }

/* ---- FAB ---- */
.fab { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 13px; padding: 14px 30px; border-radius: 999px; z-index: 60; box-shadow: 0 14px 30px rgba(23,19,16,.4); }

/* ---- Back to top (barber-pole striped arrow) ---- */
.to-top { position: fixed; right: 20px; bottom: 20px; width: 54px; height: 54px; padding: 0; border: none; border-radius: 50%; background: var(--ink); box-shadow: 0 12px 26px rgba(23,19,16,.4); cursor: pointer; z-index: 70; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top.is-visible:hover { transform: translateY(-4px); }
.to-top__arrow { width: 30px; height: 30px; display: block;
  background: repeating-linear-gradient(60deg, var(--accent-2) 0 4px, #fff 4px 8px, #1d4ed8 8px 12px, #fff 12px 16px);
  background-size: 100% 48px;
  animation: pole-spin 1.4s linear infinite;
  clip-path: polygon(50% 0, 100% 45%, 66% 45%, 66% 100%, 34% 100%, 34% 45%, 0 45%);
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
@media (prefers-reduced-motion: reduce) { .to-top__arrow { animation: none; } }

/* ---- Responsive ---- */
@media (min-width: 900px) {
  .nav { display: flex; }
  .lang-switcher { margin-left: 0; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .fab { display: none; }
}
