/* =========================================================
   Frizura by Erik Doljak · Frizerski salon · Nova Gorica
   New website concept #20 — Aces Ads Agency
   ========================================================= */

:root {
  --cream: #f5f1e8;
  --sand: #ece3d4;
  --sand-2: #efe8e0;
  --dark: #1e1d1b;
  --dark-2: #171615;
  --gold: #b48a4e;
  --gold-2: #a37a41;
  --gold-soft: #ead8cc;
  --ink: #1e1d1b;
  --text: #6b655c;
  --muted: #968d80;
  --line: #ded5c6;
  --line-dark: rgba(255, 255, 255, 0.14);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --radius: 16px;
  --shadow: 0 20px 50px rgba(30, 29, 27, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px; font-weight: 300;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); color: var(--ink); line-height: 1.1; font-weight: 500; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.ico {
  width: 1em; height: 1em;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 0 0 18px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; }
h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); letter-spacing: -0.01em; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; color: var(--gold); }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.section-intro { max-width: 420px; font-size: 15px; line-height: 1.7; color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1;
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn .ico { font-size: 15px; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 13px 22px; font-size: 11px; }
.btn-block { width: 100%; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-2); box-shadow: 0 10px 24px rgba(180, 138, 78, .35); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: var(--ink); }
.brand-name { font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; padding-left: 0.32em; }
.brand-sub { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--gold); margin-top: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(30, 29, 27, .08); }
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 88px; gap: 24px;
}
.main-nav, .nav-right { display: flex; align-items: center; gap: 28px; }
.nav-right { justify-content: flex-end; }
.main-nav > a:not(.btn), .nav-right > a:not(.btn) {
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink);
  position: relative; padding: 4px 0;
}
.main-nav > a:not(.btn)::after, .nav-right > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--gold); transition: width .25s;
}
.main-nav > a:not(.btn):hover::after, .nav-right > a:not(.btn):hover::after { width: 100%; }
.only-mobile { display: none; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 42px; height: 42px; padding: 11px;
  background: transparent; border: 1px solid var(--line); border-radius: 50%;
  justify-self: end;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 60px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 60px; align-items: center; }
.hero h1 {
  font-size: clamp(3rem, 6.2vw, 5.6rem);
  line-height: 1.0; letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.hero-lead { font-size: 17px; line-height: 1.7; max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; padding-bottom: 36px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; font-size: 13.5px; color: var(--ink); }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .ico { color: var(--gold); font-size: 15px; }

.hero-visual { position: relative; padding-bottom: 20px; }
.hero-photo { margin-left: auto; width: 88%; aspect-ratio: 460 / 540; border-radius: 300px 300px 16px 16px; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.slots-card {
  position: absolute; left: -20px; bottom: 0;
  width: 300px; padding: 24px 24px 22px;
  background: #fff; border-radius: 18px;
  box-shadow: 0 30px 60px rgba(30, 29, 27, .18);
}
.slots-card h3 { font-size: 22px; margin-bottom: 4px; }
.slots-card > p { font-size: 11.5px; color: var(--text); margin-bottom: 16px; }
.day-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.day-btn {
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: 8px 4px; text-align: center; line-height: 1.15;
  font-size: 10px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
  transition: background .2s, color .2s, border-color .2s;
}
.day-btn small { display: block; font-size: 10.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text); }
.day-btn.active { background: var(--dark); border-color: var(--dark); color: #fff; }
.day-btn.active small { color: rgba(255, 255, 255, .8); }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.slot {
  border: 0; border-radius: 999px; background: var(--sand-2);
  padding: 9px 6px; font-size: 12px; font-weight: 500; color: var(--ink);
  transition: background .2s, color .2s;
}
.slot:hover { background: var(--gold-soft); }
.slot.taken { color: var(--muted); text-decoration: line-through; cursor: not-allowed; background: var(--sand-2); opacity: .7; }
.slot.selected { background: var(--gold); color: #fff; }
.slots-card .btn-block { font-size: 11.5px; }

/* ---------- Ticker ---------- */
.ticker { background: var(--dark); color: #fff; overflow: hidden; padding: 20px 0; }
.ticker-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { font-family: var(--serif); font-style: italic; font-size: 22px; white-space: nowrap; }
.ticker-track i { font-style: normal; color: var(--gold); font-size: 14px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Services ---------- */
.services { padding: 110px 0; }
.services-inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 70px; align-items: start; }
.services-media { position: sticky; top: 110px; }
.services-media img { width: 100%; aspect-ratio: 360 / 440; object-fit: cover; border-radius: var(--radius); }
.services-copy .section-intro { margin: 18px 0 28px; max-width: 520px; }
.service-list li {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 16px;
  padding: 24px 0; border-top: 1px solid var(--line);
}
.service-list li:last-child { border-bottom: 1px solid var(--line); }
.service-list .num { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold); }
.service-list h3 { font-size: 23px; margin-bottom: 4px; }
.service-list p { font-size: 13.5px; color: var(--text); }
.book-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink);
}
.book-link .circle {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  display: inline-grid; place-items: center; font-size: 13px;
  transition: background .2s, color .2s, border-color .2s;
}
.book-link:hover .circle { background: var(--dark); border-color: var(--dark); color: #fff; }

/* ---------- Gallery ---------- */
.gallery { background: var(--sand); padding: 110px 0; }
.gallery-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 250px 250px; gap: 14px;
}
.gallery-grid figure { overflow: hidden; border-radius: var(--radius); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid .g-tall { grid-row: 1 / 3; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; background: var(--dark); color: #fff; }
.about-media { min-height: 560px; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-copy { display: flex; align-items: center; padding: 90px 70px; }
.about-copy-inner { max-width: 480px; }
.about h2 { color: #fff; margin-bottom: 22px; }
.about-copy p { font-size: 15.5px; line-height: 1.75; color: rgba(255, 255, 255, .78); }
.about-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.about-card { border: 1px solid rgba(255, 255, 255, .22); border-radius: 12px; padding: 20px 16px 18px; }
.about-card .ico { font-size: 20px; color: var(--gold); margin-bottom: 18px; }
.about-card h4 { font-family: var(--sans); font-size: 13.5px; font-weight: 500; color: #fff; margin-bottom: 6px; }
.about-card p { font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .62); }

/* ---------- Steps ---------- */
.steps { padding: 110px 0 80px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 32px; }
.roman { display: block; font-family: var(--serif); font-style: italic; font-size: 52px; line-height: 1; color: var(--gold); margin-bottom: 18px; }
.step-card h3 { font-size: 22px; margin-bottom: 10px; }
.step-card p { font-size: 13.5px; line-height: 1.6; color: var(--text); }

/* ---------- Contact ---------- */
.contact { padding: 20px 0 110px; }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.contact-card { background: var(--dark); color: #fff; border-radius: 20px; padding: 48px 40px; }
.contact-card h2 { color: #fff; margin-bottom: 26px; font-size: clamp(2rem, 3.4vw, 2.9rem); }
.contact-rows li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.contact-rows li:last-child { margin-bottom: 30px; }
.c-ico { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); display: inline-grid; place-items: center; font-size: 15px; color: var(--gold); flex: none; }
.contact-rows small { display: block; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 2px; }
.contact-rows strong { font-weight: 400; font-size: 15px; color: #fff; }
.contact-map {
  min-height: 560px; height: 100%; border-radius: 20px; overflow: hidden;
  background: #2a2824; isolation: isolate;
}
.contact-map .leaflet-tile-pane { filter: invert(1) hue-rotate(200deg) brightness(.72) contrast(.95) saturate(.35) sepia(.25); }
.contact-map .leaflet-control-attribution { background: rgba(30, 29, 27, .8); color: rgba(255, 255, 255, .6); font-size: 10px; }
.contact-map .leaflet-control-attribution a { color: var(--gold); }
.contact-map .leaflet-bar a { background: var(--dark); color: #fff; border-color: #000; }
.map-pin { background: transparent; border: 0; }
.map-pin svg { width: 36px; height: 44px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.social { display: flex; gap: 10px; }
.social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 14px; color: var(--ink);
  transition: background .2s, color .2s, border-color .2s;
}
.social a:hover { background: var(--dark); border-color: var(--dark); color: #fff; }
.site-footer .brand-name { font-size: 22px; }
.site-footer .brand-sub { font-size: 13px; }
.copy { text-align: right; font-size: 11.5px; color: var(--muted); }
.copy a:hover { color: var(--ink); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 1000; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(30, 29, 27, .72); backdrop-filter: blur(4px); }
.modal-dialog {
  position: relative; z-index: 1;
  width: min(640px, calc(100% - 32px));
  max-height: calc(100vh - 40px); overflow: auto;
  margin: 20px auto; padding: 38px;
  background: var(--cream); border-radius: 20px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .45);
  top: 50%; transform: translateY(-50%);
  animation: pop .25s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(-50%) scale(.97); } to { opacity: 1; transform: translateY(-50%) scale(1); } }
.modal-close {
  position: absolute; top: 14px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 22px; line-height: 1;
}
.modal-close:hover { background: var(--dark); color: #fff; }
.booking-form h3, .booking-success h3 { font-size: 32px; margin-bottom: 8px; }
.form-intro { font-size: 14px; color: var(--text); margin-bottom: 22px; }
.booking-form label, .form-label { display: flex; flex-direction: column; gap: 6px; font-size: 10.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.form-label small { text-transform: none; letter-spacing: 0; font-weight: 300; color: var(--muted); }
.booking-form input, .booking-form select {
  font: inherit; font-size: 14.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.booking-form input:focus, .booking-form select:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(180, 138, 78, .2); }
.booking-form .invalid { border-color: #b4452f; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-slots { margin-bottom: 6px; }
.form-slots .slot-grid { grid-template-columns: repeat(6, 1fr); margin-bottom: 8px; }
.form-slots .slot { background: #fff; border: 1px solid var(--line); }
.form-slots .slot.selected { background: var(--gold); border-color: var(--gold); color: #fff; }
.form-slots .slot.taken { background: var(--sand-2); }
.form-slots.invalid .slot-grid { outline: 1px solid #b4452f; outline-offset: 4px; border-radius: 8px; }
.form-slots .empty { grid-column: 1 / -1; font-size: 13px; color: var(--muted); padding: 6px 0; }
.form-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }
.booking-success { text-align: center; padding: 10px 0 4px; }
.booking-success .check { width: 60px; height: 60px; border-radius: 50%; background: var(--gold); color: #fff; display: inline-grid; place-items: center; font-size: 26px; margin-bottom: 18px; }
.booking-success p { font-size: 15px; color: var(--text); }
.booking-success .btn { margin-top: 22px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .about-copy { padding: 70px 44px; }
  .about-cards { grid-template-columns: 1fr; }
  .service-list li { grid-template-columns: 44px 1fr auto; }
}

@media (max-width: 960px) {
  .header-inner { grid-template-columns: auto 1fr auto; height: 76px; }
  .brand { justify-self: start; order: -1; }
  .nav-right { display: none; }
  .nav-toggle { display: flex; }
  .only-mobile { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 0 0 auto 0; top: 76px;
    padding: 24px 24px 28px;
    flex-direction: column; align-items: flex-start; gap: 18px;
    background: var(--cream); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .3s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .15);
  }
  .main-nav.open { transform: none; }
  .main-nav > a:not(.btn) { font-size: 14px; }

  .hero { padding: 56px 0 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-photo { width: 100%; max-width: 460px; margin: 0 auto; }
  .hero-visual { padding-bottom: 0; }
  .slots-card { position: relative; z-index: 2; left: auto; bottom: auto; width: 100%; max-width: 460px; margin: -36px auto 0; }
  .services-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .services-media { position: static; }
  .services-media img { aspect-ratio: 16 / 10; }
  .section-head.split { flex-direction: column; align-items: flex-start; gap: 12px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 220px 220px; }
  .gallery-grid .g-tall { grid-column: 1 / 3; grid-row: 1; }
  .about { grid-template-columns: 1fr; }
  .about-media { min-height: 360px; }
  .about-cards { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .contact-map { min-height: 400px; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .copy { text-align: center; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .hero h1 { font-size: 2.9rem; }
  .hero-meta { gap: 14px; }
  .services, .gallery, .steps { padding: 70px 0; }
  .service-list li { grid-template-columns: 36px 1fr; }
  .service-list .book-link { grid-column: 2; }
  .about-copy { padding: 56px 24px; }
  .about-cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: 280px repeat(4, 200px); }
  .gallery-grid .g-tall { grid-column: 1; }
  .contact-card { padding: 36px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .form-slots .slot-grid { grid-template-columns: repeat(3, 1fr); }
  .modal-dialog { padding: 28px 20px; }
  .ticker-track span { font-size: 18px; }
}

/* Keep Leaflet z-indexes inside the map so the sticky header and modal always paint above it */
.leaflet-container { isolation: isolate; z-index: 0; }
