/* ===========================================================
   The Beauty Room — palette sampled from the salon's own logo
   and interior photos (see assets/brand, assets/gallery)
   =========================================================== */
:root {
  --sand-50: #FBF6EF;
  --sand-100: #F4E9DA;
  --sand-200: #E7D2B8;
  --sand-300: #DCC09E;
  --bronze-600: #8C653E;
  --bronze-700: #6B4A2B;
  --espresso-900: #2E2317;
  --ink: #1E1A15;
  --sage-600: #58684E;
  --sage-700: #414F39;
  --white: #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-w: 1140px;
  --radius: 4px;
  --shadow-soft: 0 12px 32px -12px rgba(46, 35, 23, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--espresso-900);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--bronze-700);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--bronze-700);
  color: var(--white);
}
.btn-primary:hover { background: var(--espresso-900); box-shadow: var(--shadow-soft); }
.btn-outline {
  background: transparent;
  border-color: var(--bronze-700);
  color: var(--bronze-700);
}
.btn-outline:hover { background: var(--bronze-700); color: var(--white); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; margin-top: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 16px;
}
.brand-logo { height: 52px; width: 52px; border-radius: 50%; object-fit: cover; }

.main-nav { flex: 1; }
.nav-list {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}
.nav-list a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--espresso-900);
  position: relative;
  padding: 4px 2px;
}
.nav-list a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--bronze-600);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav-list a:hover::after { transform: scaleX(1); }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--espresso-900);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sand-100) 0%, var(--sand-50) 100%);
}
.hero-media {
  position: absolute;
  inset: 0;
  background-image: url('../assets/gallery/salon/04-radna-mjesta.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  filter: saturate(0.7);
}
.hero-content { position: relative; z-index: 1; }
.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-soft);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bronze-600);
  margin-bottom: 10px;
}
.eyebrow.center { text-align: center; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin-bottom: 6px;
}
.hero-heritage {
  font-style: italic;
  color: var(--sage-700);
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 22px;
}
.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--espresso-900);
  max-width: 560px;
  margin: 0 auto 34px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--sand-100); }
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  text-align: left;
}
.section-title.center { text-align: center; }
.section-lead {
  max-width: 620px;
  color: var(--espresso-900);
  opacity: 0.75;
}
.section-lead.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.service-card-media { height: 220px; overflow: hidden; position: relative; }
.service-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* source photos are tall portraits cropped into a short wide card —
     bias the crop to the top so faces/hands stay in frame instead of
     the vertical center (which lands on chest/wrist on these photos) */
  object-position: 50% 20%;
  transition: transform 0.4s ease;
}
.service-card:hover .service-card-media img { transform: scale(1.05); }
.service-card-media--text {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--sand-200), var(--sand-100));
  color: var(--bronze-700);
}
.service-card-body { padding: 28px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.service-card-body h3 { font-size: 1.5rem; }
.service-card-body p { opacity: 0.85; font-size: 0.96rem; }
.tag-list {
  list-style: none;
  margin: 4px 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-list li {
  background: var(--sand-100);
  color: var(--sage-700);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--sand-200);
}
.price-note {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bronze-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.services-footnote {
  text-align: center;
  max-width: 640px;
  margin: 40px auto 0;
  font-size: 0.92rem;
  opacity: 0.75;
}

/* ---------- Gallery ---------- */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px 0 32px;
  flex-wrap: wrap;
}
.gallery-tab {
  background: transparent;
  border: 1.5px solid var(--sand-300);
  color: var(--espresso-900);
  padding: 10px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.gallery-tab.is-active,
.gallery-tab:hover {
  background: var(--bronze-700);
  border-color: var(--bronze-700);
  color: var(--white);
}
.gallery-panel { display: none; }
.gallery-panel.is-active { display: block; }

.gallery-grid { display: grid; gap: 14px; }

.gallery-grid--6 {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
}

.gallery-grid--4 {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
}

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

/* Gallery tiles: the img is absolutely positioned to the tile's edges
   rather than sized via width/height:100%, so subpixel rounding on
   fractional CSS-grid track widths can't leave a hairline gap on one side. */
.gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  height: 100%;
  cursor: zoom-in;
}
.gallery-grid--3 .gallery-item { aspect-ratio: 3/4; }
.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-instagram-note {
  text-align: center;
  margin-top: 36px;
  font-size: 0.92rem;
  opacity: 0.8;
}
.gallery-instagram-note a { color: var(--bronze-700); font-weight: 600; text-decoration: underline; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 3/4;
  object-fit: cover;
  width: 100%;
}
.about-content p { opacity: 0.9; }
.about-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.badge {
  background: var(--sage-600);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 8px 16px;
  border-radius: 999px;
}

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 44px;
}
.review-card {
  background: var(--white);
  margin: 0;
  padding: 30px 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border-top: 3px solid var(--bronze-600);
}
.stars { color: var(--bronze-600); letter-spacing: 2px; margin-bottom: 12px; }
.review-card p { font-style: italic; font-family: var(--font-display); font-size: 1.15rem; color: var(--espresso-900); }
.review-card cite {
  display: block;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sage-700);
  margin-top: 14px;
}

/* ---------- Location ---------- */
.location-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 32px;
  margin-top: 44px;
  align-items: stretch;
}
.location-map {
  min-height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.location-hours {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.location-hours h3 { font-size: 1.4rem; margin-bottom: 18px; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table tr { border-bottom: 1px solid var(--sand-100); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 10px 0;
  font-weight: 400;
  font-size: 0.95rem;
}
.hours-table th { font-weight: 500; color: var(--espresso-900); }
.hours-table td { text-align: right; color: var(--bronze-700); font-weight: 500; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--bronze-700);
  transition: transform 0.15s ease;
}
a.contact-card:hover { transform: translateY(-3px); }
.contact-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sage-700);
  margin-top: 6px;
}
.contact-value { color: var(--espresso-900); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--espresso-900);
  color: var(--sand-100);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  text-align: center;
}
.footer-logo { height: 40px; width: 40px; border-radius: 50%; object-fit: cover; }
.footer-inner p { margin: 0; font-size: 0.85rem; opacity: 0.85; }
.footer-inner a { color: var(--sand-200); display: inline-flex; }
.footer-inner a:hover { color: var(--white); }

/* ---------- Floating call button ---------- */
.floating-call {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--bronze-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -6px rgba(46, 35, 23, 0.5);
  z-index: 90;
  animation: pulse 2.4s infinite;
}
.floating-call:hover { background: var(--espresso-900); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(140, 101, 62, 0.45), 0 10px 24px -6px rgba(46,35,23,0.5); }
  70% { box-shadow: 0 0 0 14px rgba(140, 101, 62, 0), 0 10px 24px -6px rgba(46,35,23,0.5); }
  100% { box-shadow: 0 0 0 0 rgba(140, 101, 62, 0), 0 10px 24px -6px rgba(46,35,23,0.5); }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(30, 26, 21, 0.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 90vh;
  /* never crop: each photo's full frame must always be visible regardless
     of its own orientation (portrait/landscape/square) */
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 28px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-media img { aspect-ratio: 16/10; }
  .location-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid--6 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .gallery-grid--4 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav { position: static; }
  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--sand-50);
    border-bottom: 1px solid var(--sand-200);
    padding: 12px 24px 20px;
    gap: 14px;
    display: none;
  }
  .nav-list.is-open { display: flex; }
  .header-cta { display: none; }
  .hero { padding: 80px 0 64px; }
  .section { padding: 64px 0; }
  .gallery-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid--3 .gallery-item:last-child { grid-column: span 2; aspect-ratio: 16/10; }
}
