/* ============================================
   Frizerski salon — demo
   styles.css
   :root  = brend tokeni (menjaju se po klijentu)
   ostalo = layout / komponente

   Stil se namerno razlikuje od 01-restoran:
   - svetla ivory tema, šljiva akcent
   - Space Grotesk (moderan grotesk) umesto serifa
   - split hero (tekst + slika), ne fullscreen pozadina
   - usluge = akordeon, ne tabovi
   - pomereni ("staggered") grid galerije
   - plutajući zaobljeni header, pill dugmad
   ============================================ */

:root {
  color-scheme: light;
  --bg: #f6f2ec;
  --bg-alt: #ece3d8;
  --surface: #ffffff;
  --line: #ddd0c1;
  --text: #241f1b;
  --text-dim: #756a5f;
  --accent: #7a3f5c;
  --accent-2: #9c5a7b;
  --on-accent: #fdf5f9;

  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --radius: 10px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

/* ---------- tipografija ---------- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.02em;
}

h1 {
  font-size: clamp(2.7rem, 6.5vw, 4.6rem);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
}

h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 48ch;
}

/* ---------- layout ---------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(5rem, 12vw, 8.5rem) 0;
}

.section-head {
  max-width: 34ch;
  margin-bottom: 3rem;
}

/* ---------- buttons (pill) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 2rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .02em;
  border-radius: 999px;
  transition: background .25s var(--ease), transform .25s var(--ease);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: rgba(0, 0, 0, .04);
  border-color: var(--accent);
}

.btn-sm {
  padding: .62rem 1.4rem;
  font-size: .8rem;
}

.btn-block {
  width: 100%;
}

/* ---------- header (plutajući) ---------- */
.site-header {
  position: fixed;
  inset: 1rem 0 auto 0;
  z-index: 50;
  transition: inset .3s var(--ease);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: .55rem .6rem .55rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.site-header.scrolled .header-inner {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px);
  border-color: var(--line);
  box-shadow: 0 12px 30px -18px rgba(36, 31, 27, .4);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-right: auto;
}

.logo-lg {
  font-size: 2rem;
}

.nav {
  display: flex;
  gap: 1.8rem;
}

.nav a {
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
  position: relative;
  padding: .3rem 0;
  transition: color .2s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .3s var(--ease);
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  width: 100%;
}

.burger {
  display: none;
  width: 28px;
  height: 20px;
  position: relative;
}

.burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: .3s var(--ease);
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 9px; }
.burger span:nth-child(3) { top: 18px; }

.burger.open span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

/* ---------- hero (split) ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 8rem 0 3.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.hero-content h1 {
  margin: .3rem 0 1.4rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 240px 240px var(--radius) var(--radius);
}

.hero-badge {
  position: absolute;
  left: -1rem;
  bottom: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .7rem 1.3rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  box-shadow: 0 16px 34px -20px rgba(36, 31, 27, .5);
}

/* ---------- story ---------- */
.story {
  background: var(--bg-alt);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.story-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius) 240px var(--radius) 240px;
}

.story-text h2 {
  margin-bottom: 1.4rem;
}

.story-text p {
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 1.6rem 2.4rem;
  margin-top: 2.4rem;
  justify-content: start;
}

.stats li {
  display: flex;
  flex-direction: column;
  padding-left: 1.1rem;
  border-left: 2px solid var(--accent);
}

.stats .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}

.stats .lbl {
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: .45rem;
}

/* ---------- usluge (akordeon) ---------- */
.services {
  max-width: 820px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

.acc-item {
  border-bottom: 1px solid var(--line);
}

.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem .25rem;
  text-align: left;
}

.acc-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -.02em;
  margin-right: auto;
  transition: color .2s var(--ease);
}

.acc-head:hover .acc-title {
  color: var(--accent);
}

.acc-count {
  font-size: .78rem;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .1rem .6rem;
}

.acc-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
}

.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

.acc-icon::before {
  inset: 7px 0;
  height: 2px;
}

.acc-icon::after {
  inset: 0 7px;
  width: 2px;
}

.acc-item.open .acc-icon::after {
  transform: scaleY(0);
  opacity: 0;
}

.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}

.acc-item.open .acc-body {
  grid-template-rows: 1fr;
}

.acc-body-inner {
  overflow: hidden;
}

.menu-list {
  padding-bottom: .5rem;
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .25rem 1.5rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
}

.menu-item .mi-name {
  font-weight: 600;
  font-size: 1.02rem;
}

.menu-item .mi-price {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.menu-item .mi-desc {
  grid-column: 1 / -1;
  color: var(--text-dim);
  font-size: .92rem;
}

.menu-note {
  text-align: center;
  color: var(--text-dim);
  font-size: .85rem;
  margin-top: 2.5rem;
  font-style: italic;
}

/* ---------- gallery (pomereni grid) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.gallery-grid figure {
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-grid figure:nth-child(3n+2) {
  transform: translateY(2.6rem);
}

.gallery-grid img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
  transition: transform .6s var(--ease);
}

.gallery-grid figure:nth-child(3n+1) img,
.gallery-grid figure:nth-child(3n) img {
  aspect-ratio: 1 / 1;
}

.gallery-grid figure:hover img {
  transform: scale(1.05);
}

/* ---------- reserve ---------- */
.reserve-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.reserve-text h2 {
  margin-bottom: 1.2rem;
}

.hours {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}

.hours .dan {
  color: var(--text-dim);
}

.reserve-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  gap: 1.1rem;
  box-shadow: 0 24px 60px -34px rgba(36, 31, 27, .4);
}

.field {
  display: grid;
  gap: .4rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.field label {
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.field input,
.field textarea,
.field select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .8rem .9rem;
  color: var(--text);
  font: inherit;
  transition: border-color .2s var(--ease);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
}

.form-msg {
  font-size: .9rem;
  color: var(--accent);
  min-height: 1.2em;
  text-align: center;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--text);
  color: #e7ded4;
  padding-top: 4rem;
}

.site-footer .logo,
.site-footer h3 {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-slogan {
  color: #b7ac9f;
  margin: .8rem 0 1.5rem;
}

.footer-col h3 {
  margin-bottom: 1.2rem;
}

.footer-col p {
  color: #b7ac9f;
  margin-bottom: .5rem;
}

.footer-col a:hover {
  color: var(--accent-2);
}

.socials {
  display: flex;
  gap: 1rem;
}

.socials a {
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #d9cfc3;
  border: 1px solid rgba(255, 255, 255, .18);
  padding: .5rem .9rem;
  border-radius: 999px;
  transition: .25s var(--ease);
}

.socials a:hover {
  color: #fff;
  border-color: var(--accent-2);
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  min-height: 200px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius);
  filter: grayscale(1) invert(.9);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .8rem;
  color: #9c9184;
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(26, 20, 24, .93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}

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

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2.5rem;
  color: #fff;
  line-height: 1;
}

/* ---------- reveal anim ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

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

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero {
    padding-top: 7rem;
  }

  .hero-inner,
  .story-grid,
  .reserve-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    max-width: 420px;
  }

  .story-media {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-map {
    grid-column: 1 / -1;
    min-height: 240px;
  }
}

@media (max-width: 680px) {
  .nav-cta {
    display: none;
  }

  .burger {
    display: block;
    margin-left: auto;
  }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(80vw, 320px);
    background: var(--bg-alt);
    border-left: 1px solid var(--line);
    flex-direction: column;
    justify-content: center;
    gap: 1.8rem;
    padding: 3rem;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
  }

  .nav.open {
    transform: none;
  }

  .nav a {
    font-size: 1rem;
  }

  .stats {
    grid-template-columns: repeat(2, auto);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid figure:nth-child(3n+2) {
    transform: none;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: .4rem;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

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

  .gallery-grid figure:nth-child(3n+2) {
    transform: none;
  }
}
