/* ==========================================================================
   Art & Beauty Studio — design system
   Palette: listová zelená (#2d5f2f) z loga + teplé neutrály
   ========================================================================== */

:root {
  --bg:           #fafaf8;
  --bg-alt:       #f2f1ec;
  --bg-dark:      #0f1210;
  --text:         #0f1210;
  --text-muted:   #5a5f5b;
  --text-invert:  #fafaf8;
  --accent:       #2d5f2f;
  --accent-hover: #3d7a3f;
  --accent-tint:  #2d5f2f14;
  --line:         #e5e5e0;

  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
  --dur-fast:   200ms;
  --dur-med:    400ms;
  --dur-slow:   800ms;

  --font-heading: 'Instrument Serif', 'Playfair Display', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;
  --font-script:  'Tangerine', cursive;

  --container:    1240px;
  --gutter:       clamp(1.25rem, 4vw, 2.5rem);

  --nav-height:   68px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; margin: 0; }
img, picture, svg, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; padding: 0; }
a { color: inherit; text-decoration: none; }
input, textarea { font: inherit; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Typography scale (mobile-first) */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 { font-size: clamp(2.75rem, 9vw, 5.75rem); }
h2 { font-size: clamp(2rem, 5.5vw, 3.5rem); }
h3 { font-size: clamp(1.375rem, 3vw, 1.75rem); }
h4 { font-size: 1.125rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

p { max-width: 62ch; }

.kicker {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
  max-width: 56ch;
}

/* Layout primitives */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

section { padding-block: clamp(4rem, 10vw, 8rem); }
section.tight { padding-block: clamp(3rem, 7vw, 5rem); }
.alt-bg { background: var(--bg-alt); }
.dark-bg { background: var(--bg-dark); color: var(--text-invert); }
.dark-bg h1, .dark-bg h2, .dark-bg h3 { color: var(--text-invert); }
.dark-bg .lead, .dark-bg p { color: #c8ccc8; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 3rem;
  max-width: 56ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 999px;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--text-invert);
  box-shadow: 0 2px 0 rgba(0,0,0,0.04);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 8px 24px rgba(45,95,47,0.25); }

.btn-outline {
  border: 1px solid currentColor;
  color: var(--text);
}
.btn-outline:hover { background: var(--text); color: var(--text-invert); }

.dark-bg .btn-outline { color: var(--text-invert); }
.dark-bg .btn-outline:hover { background: var(--text-invert); color: var(--text); }

.btn-ghost { color: var(--accent); padding-inline: 0.5rem; }
.btn-ghost:hover { color: var(--accent-hover); }

/* Navigation */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-med) var(--ease), background var(--dur-med) var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo { display: flex; align-items: center; gap: 0.5rem; }
.nav-logo img { height: 38px; width: auto; }

.nav-links {
  display: none;
  list-style: none;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  position: relative;
  padding-block: 0.25rem;
  transition: color var(--dur-fast) var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { display: none; }

.lang-toggle {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lang-toggle a.active { color: var(--text); font-weight: 600; }
.lang-toggle a:not(.active) { color: var(--text-muted); }
.lang-toggle a:not(.active):hover { color: var(--accent); }
.lang-toggle span { color: var(--line); }

/* Hamburger */
.nav-burger {
  width: 28px; height: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: transform var(--dur-med) var(--ease), opacity var(--dur-fast);
  transform-origin: center;
}
.nav.open .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu overlay */
.nav-overlay {
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 3rem var(--gutter) 2rem;
  gap: 0.5rem;
  transform: translateX(100%);
  transition: transform var(--dur-med) var(--ease);
  overflow-y: auto;
}
.nav.open .nav-overlay { transform: translateX(0); }
.nav-overlay a {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--line);
  transition: color var(--dur-fast) var(--ease), padding-left var(--dur-med) var(--ease);
}
.nav-overlay a:hover { color: var(--accent); padding-left: 0.5rem; }
.nav-overlay .btn { margin-top: 1.5rem; align-self: flex-start; }

/* Hero */
.hero {
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 1.5rem; }
.hero-copy h1 .accent { font-style: italic; color: var(--accent); }
.hero-copy h1 .script {
  font-family: var(--font-script);
  font-size: 1.15em;
  color: var(--accent);
  display: inline-block;
  line-height: 0.85;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.hero-trust {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--text-muted);
}
.hero-trust strong { color: var(--text); font-weight: 600; display: block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.25rem; }

.hero-image {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  will-change: transform;
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform var(--dur-slow) var(--ease);
}
.hero-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(15,18,16,0.15));
}

/* Services grid (5 interactive cards) */
.services-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.service-card {
  position: relative;
  padding: 2rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  transition: background var(--dur-med) var(--ease),
              border-color var(--dur-med) var(--ease),
              transform var(--dur-med) var(--ease);
  will-change: transform;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-tint);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease);
  z-index: 0;
}
.service-card > * { position: relative; z-index: 1; }
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover .service-icon { color: var(--accent); transform: rotate(-6deg) scale(1.1); }
.service-card:hover h3 { color: var(--accent); }

.service-icon {
  width: 44px;
  height: 44px;
  color: var(--text);
  transition: color var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
}
.service-card h3 { transition: color var(--dur-fast) var(--ease); }
.service-card p { color: var(--text-muted); font-size: 0.9375rem; }
.service-from {
  margin-top: auto;
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.service-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 2rem;
  z-index: 2;
  pointer-events: none;
  line-height: 1.4;
}

/* About / USP split */
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
.about-image { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }

.usp-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1.5rem; }
.usp-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 1rem;
  align-items: start;
}
.usp-item svg { width: 28px; height: 28px; color: var(--accent); margin-top: 2px; }
.usp-item h4 { margin-bottom: 0.25rem; }
.usp-item p { color: var(--text-muted); font-size: 0.9375rem; }

/* Gallery */
.gallery-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-cta { text-align: center; margin-top: 2rem; }

/* Testimonials */
.testimonials-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
.testimonial {
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.testimonial-quote {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--text);
}
.testimonial-author {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.testimonial-author strong { color: var(--text); display: block; font-weight: 600; }

/* Location */
.location-grid { display: grid; gap: 2rem; align-items: stretch; }
.map-wrap {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-alt);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

.contact-details { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-row { display: flex; flex-direction: column; gap: 0.25rem; }
.contact-row strong {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.contact-row p, .contact-row a { font-size: 1rem; color: var(--text); }
.contact-row a:hover { color: var(--accent); }

.hours-list { list-style: none; padding: 0; margin: 0; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list li.note { color: var(--text-muted); font-size: 0.8125rem; padding-top: 1rem; border: 0; font-style: italic; display: block; }

.socials { display: flex; gap: 0.75rem; }
.socials a {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.socials svg { width: 18px; height: 18px; }

/* Final CTA */
.final-cta { text-align: center; }
.final-cta .container { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.final-cta .hero-cta { justify-content: center; }
.final-cta h2 { max-width: 20ch; }

/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--text-invert);
  padding-block: 3rem 2rem;
}
.footer-inner {
  display: grid;
  gap: 2rem;
}
.footer-col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a8aea8;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.footer-col a { color: #c8ccc8; font-size: 0.9375rem; transition: color var(--dur-fast) var(--ease); }
.footer-col a:hover { color: var(--accent-hover); }
.footer-logo img { height: 46px; filter: brightness(0) invert(1); }
.footer-legal {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #2a2d2a;
  font-size: 0.8125rem;
  color: #8a908a;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Floating WhatsApp FAB (mobile) */
.fab-whatsapp {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform var(--dur-fast) var(--ease);
}
.fab-whatsapp:hover { transform: scale(1.06); }
.fab-whatsapp svg { width: 28px; height: 28px; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 520px;
  background: var(--bg-dark);
  color: var(--text-invert);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  z-index: 200;
  box-shadow: 0 18px 42px rgba(0,0,0,0.18);
  display: none;
  flex-direction: column;
  gap: 1rem;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { font-size: 0.875rem; color: #c8ccc8; margin: 0; }
.cookie-banner a { color: var(--accent-hover); text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cookie-actions .btn { padding: 0.625rem 1.25rem; font-size: 0.8125rem; }

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }

/* Hero word stagger */
.hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: word-in 800ms var(--ease) forwards;
}
@keyframes word-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Pricelist page */
.price-hero { padding-top: calc(var(--nav-height) + 4rem); padding-bottom: 2rem; text-align: left; }
.price-hero .container { display: flex; flex-direction: column; gap: 1rem; max-width: 780px; }

.price-filter {
  position: sticky;
  top: var(--nav-height);
  z-index: 50;
  background: rgba(250, 250, 248, 0.95);
  backdrop-filter: blur(14px);
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.price-filter-inner {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-inline: var(--gutter);
  scrollbar-width: none;
}
.price-filter-inner::-webkit-scrollbar { display: none; }
.pill {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill.active { background: var(--accent); color: var(--text-invert); border-color: var(--accent); }

.price-category {
  padding-block: 2.5rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-height) + 80px);
  transition: opacity var(--dur-med) var(--ease);
}
.price-category.hidden { display: none; }
.price-category h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: 0.5rem;
}
.price-category .category-note {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  max-width: 72ch;
}
.price-list { list-style: none; padding: 0; margin: 0; }
.price-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding-block: 0.875rem;
  border-bottom: 1px dashed var(--line);
  align-items: baseline;
}
.price-item:last-child { border-bottom: 0; }
.price-item .name { font-size: 1rem; color: var(--text); }
.price-item .price {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  color: var(--accent);
  font-weight: 400;
  letter-spacing: 0.01em;
}
.price-item .name .sub {
  color: var(--text-muted);
  font-size: 0.8125rem;
  display: block;
  margin-top: 2px;
}

/* Utility */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.divider-dot {
  display: inline-block;
  width: 4px; height: 4px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.4;
  vertical-align: middle;
  margin-inline: 0.5rem;
}

/* ==========================================================================
   Tablet (≥768px)
   ========================================================================== */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }
  .nav-overlay { display: none; }
  .nav-cta { display: inline-flex; }
  .fab-whatsapp { display: none; }

  .hero-inner {
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
  }
  .hero-trust {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card.feature {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem;
  }
  .service-card.feature .service-icon { width: 56px; height: 56px; }

  .about-grid { grid-template-columns: 1fr 1.2fr; gap: 4rem; }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

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

  .location-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
  }

  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
  }

  .final-cta .hero-cta { flex-direction: row; }
}

/* ==========================================================================
   Desktop (≥1024px)
   ========================================================================== */
@media (min-width: 1024px) {
  :root { --nav-height: 80px; }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .service-card.feature {
    grid-column: span 3;
  }

  .hero { padding-top: calc(var(--nav-height) + 5rem); padding-bottom: 6rem; }
  .hero-image { aspect-ratio: 3 / 4; }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
