/* Złote Lustro — premium identity
   Palette matched to the real salon interior: porcelain #FBF9F6, espresso #241F1C,
   antique gold #AD8A4E (brass fixtures), sage green #5B7A6D / #3E5750 (accent wall)
   NOTE: Fraunces/Manrope are now loaded via <link> + preconnect in <head> (build.py),
   not @import here — @import adds an extra blocking round-trip and hurts LCP/FCP. */

:root {
  --porcelain: #FBF9F6;
  --porcelain-deep: #F2ECE3;
  --espresso: #241F1C;
  --gold: #AD8A4E;
  --gold-soft: #D8C08A;
  --sage: #5B7A6D;
  --sage-deep: #3E5750;
  --muted: #7A6F63;
  --line: #E7DFD1;
  --max: 1180px;
}

* { box-sizing: border-box; }

/* Defensive: some components (e.g. .map-fallback) set an explicit `display`
   that would otherwise override the browser's default [hidden] behavior. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--espresso);
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 0.45em;
  color: var(--espresso);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
h2 em, h1 em { font-style: italic; color: var(--sage); font-weight: 500; }

p { margin: 0 0 1.15em; max-width: 60ch; }
.muted { color: var(--muted); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }

a { color: var(--sage); text-decoration: none; }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

img { max-width: 100%; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--espresso); color: #fff;
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Header */
header.site-header { background: var(--porcelain); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; max-width: var(--max); margin: 0 auto; position: relative;
}
.logo { font-family: 'Fraunces', serif; font-size: 2.1rem; font-weight: 500; color: var(--espresso); display: inline-flex; align-items: center; gap: 14px; }
.logo-mark { height: 52px; width: auto; display: inline-block; }
.logo-mark-light { filter: brightness(0) invert(1) opacity(0.92); }
.logo em { font-style: italic; color: var(--gold); }
nav.main-nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
nav.main-nav a { color: var(--espresso); font-size: 0.95rem; }
nav.main-nav a:hover { color: var(--sage); }

.btn { display: inline-block; background: var(--sage); color: #fff !important; padding: 13px 28px; border-radius: 999px; font-size: 0.93rem; border: 1px solid var(--sage); transition: background 0.2s, transform 0.15s; font-family: inherit; cursor: pointer; appearance: none; }
.btn:hover { background: var(--sage-deep); }
.btn-outline { display: inline-block; padding: 12px 27px; border: 1px solid var(--espresso); color: var(--espresso) !important; border-radius: 999px; font-size: 0.93rem; background: transparent; font-family: inherit; cursor: pointer; appearance: none; }
.btn-outline:hover { border-color: var(--gold); color: var(--sage) !important; }
.btn-gold { display: inline-block; background: var(--gold); color: #fff !important; padding: 13px 28px; border-radius: 999px; font-size: 0.93rem; border: 1px solid var(--gold); }
.btn-gold:hover { background: var(--sage); border-color: var(--sage); }

/* Trust badge */
.trust-badge { display: inline-flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--espresso); background: #fff; border: 1px solid var(--line); padding: 9px 16px 9px 12px; border-radius: 999px; }
.trust-badge .stars { color: var(--gold); letter-spacing: 1px; }

/* Premium editorial image treatment — full-bleed photography, restrained framing */
.feature-photo {
  position: relative; border-radius: 2px; overflow: hidden;
  box-shadow: 0 40px 80px -35px rgba(36,31,28,0.4);
}
.feature-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-photo.portrait { aspect-ratio: 4 / 5; }
.feature-photo.square { aspect-ratio: 1 / 1; }
.feature-photo.wide { aspect-ratio: 4 / 3; }
.feature-photo::before {
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,0.55);
  pointer-events: none; z-index: 2;
}

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 64px; padding: 88px 28px 96px; max-width: var(--max); margin: 0 auto; }
.hero .kicker-badge { margin-bottom: 22px; }
.hero .cta-row { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; align-items: center; }

/* Alternating rows */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 68px; align-items: center; padding: 90px 28px; max-width: var(--max); margin: 0 auto; }
.row.reverse { direction: rtl; }
.row.reverse > * { direction: ltr; }
.section-alt { background: var(--porcelain-deep); }
.section-alt .row { padding-top: 90px; padding-bottom: 90px; }
.plain-img { border-radius: 4px; }

/* Treatments grid */
.intro-block { max-width: var(--max); margin: 0 auto; padding: 70px 28px 0; }
.intro-block.tight { padding-bottom: 44px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding: 0 28px 90px; max-width: var(--max); margin: 0 auto; }
.card { background: #fff; border: 1px solid var(--line); padding: 32px 28px; border-radius: 6px; }
.card h3 a { color: var(--espresso); }
.card h3 a:hover { color: var(--sage); }
.card p { font-size: 0.96rem; margin-bottom: 1em; }
.card .price-tag { display: inline-block; font-size: 0.85rem; color: var(--sage); font-weight: 600; margin-bottom: 10px; }

/* Feature list (why choose us) — no numbering, not sequential */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.feature-list li { padding-left: 26px; position: relative; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.feature-list h4 { font-family: 'Manrope', sans-serif; font-size: 1.02rem; font-weight: 700; margin: 0 0 4px; }
.feature-list p { font-size: 0.95rem; margin: 0; }

/* Price list */
.price-table { width: 100%; border-collapse: collapse; max-width: var(--max); margin: 0 auto; }
.price-table td { padding: 18px 4px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.price-table td:last-child { text-align: right; white-space: nowrap; }
.price-table .svc-name { font-family: 'Fraunces', serif; font-size: 1.08rem; }
.price-table .svc-time { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 2px; }
.price-table .price-value { font-weight: 600; color: var(--sage); font-size: 1.02rem; }
.price-table .price-link {
  display: inline-block; margin-left: 16px; padding: 7px 16px; border: 1px solid var(--gold);
  border-radius: 999px; font-size: 0.82rem; font-weight: 500; color: var(--sage-deep) !important;
  white-space: nowrap;
}
.price-table .price-link:hover { background: var(--gold); color: #fff !important; }
@media (max-width: 640px) {
  .price-table td:last-child { white-space: normal; }
  .price-table .price-link { display: block; margin: 8px 0 0; text-align: center; }
}
.price-note { font-size: 0.88rem; color: var(--muted); padding-top: 18px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 40px 28px 90px; max-width: var(--max); margin: 0 auto; }
.gallery img { aspect-ratio: 1/1; object-fit: cover; width: 100%; height: 100%; border-radius: 4px; }

/* CTA band */
.cta-band { background: var(--sage-deep); color: #F0EFE9; padding: 90px 28px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #CBD8D2; max-width: 58ch; margin: 0 auto 1.7em; }
.cta-band .btn { background: var(--gold); border-color: var(--gold); }
.cta-band .btn:hover { background: #fff; color: var(--sage-deep) !important; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; padding: 80px 28px; max-width: var(--max); margin: 0 auto; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.7em; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.map-frame { border: 0; width: 100%; height: 100%; min-height: 340px; border-radius: 4px; }

/* Footer */
footer.site-footer { background: var(--espresso); color: #DCD3C8; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; padding: 70px 28px 36px; max-width: var(--max); margin: 0 auto; }
.footer-grid .logo { color: #fff; }
.footer-grid a { color: #DCD3C8; }
.footer-grid a:hover { color: var(--gold-soft); }
.footer-grid h4 { font-family: 'Manrope', sans-serif; font-size: 0.95rem; font-weight: 700; color: #fff; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-bottom { border-top: 1px solid #3A332D; padding: 20px 28px; text-align: center; font-size: 0.85rem; color: #A79C8E; }

/* Cookie consent banner */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: var(--espresso); color: #EFE7D6; box-shadow: 0 -10px 30px rgba(0,0,0,0.25);
  max-height: 90vh; overflow-y: auto;
}
.cookie-banner-inner {
  max-width: var(--max); margin: 0 auto; padding: 20px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cookie-banner-text { flex: 1; min-width: 260px; }
.cookie-banner-inner p { margin: 0 0 10px; max-width: 62ch; font-size: 0.92rem; color: #DCD3C8; }
.cookie-banner-inner a { color: var(--gold-soft); }
.cookie-toggle-row { display: flex; gap: 20px; flex-wrap: wrap; }
.cookie-toggle {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; color: #EFE7D6;
  cursor: pointer;
}
.cookie-toggle input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--gold); cursor: pointer;
}
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-banner-actions .btn, .cookie-banner-actions .btn-outline { font-size: 0.85rem; padding: 10px 18px; }
.cookie-banner .btn-outline { border-color: #DCD3C8; color: #EFE7D6 !important; }

.cookie-settings-link {
  background: none; border: none; padding: 0; margin: 0; font: inherit; color: #DCD3C8;
  text-decoration: underline; cursor: pointer;
}
.cookie-settings-link:hover { color: var(--gold-soft); }

.map-fallback {
  background: var(--porcelain-deep); border: 1px solid var(--line); border-radius: 4px;
  padding: 28px; min-height: 340px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.map-fallback p { margin-bottom: 14px; }

.breadcrumb { font-size: 0.85rem; color: var(--muted); padding: 22px 28px 0; max-width: var(--max); margin: 0 auto; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--sage); }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .logo { font-size: 1.6rem; gap: 10px; }
  .logo-mark { height: 38px; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 4px;
    cursor: pointer; order: 3;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; display: block; width: 20px; height: 2px; background: var(--espresso); position: relative;
  }
  .nav-toggle span::before { position: absolute; top: -6px; left: 0; }
  .nav-toggle span::after { position: absolute; top: 6px; left: 0; }
  .header-inner { flex-wrap: wrap; }
  .header-inner .btn { order: 2; padding: 11px 20px; font-size: 0.88rem; }
  nav.main-nav {
    display: none; order: 4; width: 100%;
    background: var(--porcelain); border-top: 1px solid var(--line); margin-top: 16px;
  }
  nav.main-nav.is-open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 0; padding-top: 8px; }
  nav.main-nav li { border-bottom: 1px solid var(--line); }
  nav.main-nav a { display: block; padding: 14px 4px; }
  .hero, .row, .contact-grid { grid-template-columns: 1fr; }
  .row.reverse { direction: ltr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
