/* =========================================================
   EventPal — štýly
   Farby a základné hodnoty sa menia tu, v :root premenných.
   ========================================================= */
:root {
  --radius: 0.75rem;
  --background: #f9f6f0;
  --foreground: #2e241b;
  --card: #ffffff;
  --muted: #e8e2d8;
  --muted-foreground: #6b5d4d;
  --primary: #c06c3e;
  --primary-foreground: #fffdfa;
  --accent: #7da56f;
  --accent-foreground: #fffdfa;
  --border: #d8d0c5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: var(--background); color: var(--foreground); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Hlavička a navigácia ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(249,246,240,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; font-weight: 800; }
.logo-img { height: 2.5rem; width: auto; display: block; }
.logo-img--footer { height: 1.9rem; }
.nav-links { display: none; gap: 2rem; font-size: 0.95rem; font-weight: 600; }
.nav-links a:hover { color: var(--primary); }
.mobile-menu { display: none; flex-direction: column; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--border); }
.mobile-menu.open { display: flex; }
.nav-phone { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; font-size: 0.95rem; white-space: nowrap; color: var(--primary); }
.nav-phone:hover { color: var(--foreground); }
/* na mobile skryjeme text čísla, ikonu necháme viditeľnú */
@media (max-width: 767px) { .nav-phone-text { display: none; } }
.mobile-phone { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; color: var(--primary); }
.menu-btn { display: flex; background: none; border: none; padding: 0.25rem; cursor: pointer; }

/* ---------- Tlačidlá ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: 9999px; font-weight: 700; transition: all 0.2s; }
/* až za .btn, aby na mobile vyhral display:none */
.desktop-cta { display: none; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: #a95a31; }
.btn-secondary { border: 1px solid var(--border); background: rgba(255,255,255,0.8); color: var(--foreground); }
.btn-secondary:hover { background: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 600px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(249,246,240,0.95), rgba(249,246,240,0.7) 50%, rgba(249,246,240,0.3)); }
.hero-content { position: relative; z-index: 1; padding: 4rem 0; }
.hero-label { color: var(--primary); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.1; font-weight: 900; max-width: 650px; margin: 0; }
.hero p { font-size: 1.15rem; color: var(--muted-foreground); max-width: 600px; margin-top: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* jemný nábeh hero obsahu pri načítaní */
@media (prefers-reduced-motion: no-preference) {
  .hero-content { animation: hero-in 0.7s ease-out both; }
  @keyframes hero-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- Sekcie ---------- */
.section { padding: 5rem 0; }
.section-alt { background: rgba(232,226,216,0.4); }
.section-title { text-align: center; max-width: 600px; margin: 0 auto 3rem; }
.section-title h2 { font-size: 2rem; font-weight: 800; margin: 0 0 0.5rem; }
.section-title p { color: var(--muted-foreground); font-size: 1.1rem; }
.grid-3 { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- Karty ponuky ---------- */
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.card-image { display: block; aspect-ratio: 4/3; overflow: hidden; flex-shrink: 0; }
.card h3 a:hover { color: var(--primary); }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
/* dlaždica pre kategórie, ku ktorým zatiaľ nie je fotka */
.card-image--placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #efe8dc, #e0d5c2); color: var(--primary); }
/* zosvetlenie tmavej nočnej fotky, nech ladí so svetlým dizajnom */
.img-brighten { filter: brightness(1.18) saturate(1.05); }
.card { display: flex; flex-direction: column; }
.card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-icon { width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; background: rgba(192,108,62,0.1); color: var(--primary); border-radius: 0.6rem; margin-bottom: 0.75rem; }
.card h3 { font-size: 1.25rem; margin: 0 0 0.5rem; }
.card p { color: var(--muted-foreground); margin: 0; }

/* tlačidlo detailu karty */
.card-toggle { align-self: flex-start; margin-top: auto; padding: 0.9rem 0 0; background: none; border: none; cursor: pointer; color: var(--primary); font-weight: 700; font-size: 0.95rem; font-family: inherit; }
.card-toggle:hover { text-decoration: underline; }
.card-toggle::after { content: " ›"; }

/* ---------- Detail karty — modálne okno ---------- */
.card-dialog { border: none; border-radius: 1rem; padding: 0; width: min(92vw, 620px); background: var(--card); color: var(--foreground); box-shadow: 0 24px 80px rgba(0,0,0,0.3); }
.card-dialog::backdrop { background: rgba(46, 36, 27, 0.55); }
.dialog-body { position: relative; padding: 2rem 2rem 0; max-height: 85vh; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; }
.card-dialog h3 { margin: 0; font-size: 1.4rem; padding-right: 2.5rem; }
.card-dialog p { color: var(--muted-foreground); margin: 0; }
.dialog-close { position: absolute; top: 1rem; right: 1rem; width: 2.2rem; height: 2.2rem; border: none; border-radius: 50%; background: var(--muted); color: var(--foreground); font-size: 1.3rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.dialog-close:hover { background: var(--border); }
/* CTA je prilepené na spodku scrollovacieho okna — viditeľné vždy */
.dialog-footer { position: sticky; bottom: 0; margin-top: 0.25rem; padding: 1.25rem 0 1.5rem; background: linear-gradient(to top, var(--card) 70%, rgba(255,255,255,0)); }
@media (prefers-reduced-motion: no-preference) {
  .card-dialog[open] { animation: dlg-in 0.18s ease-out; }
  @keyframes dlg-in {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: none; }
  }
}

/* zoznamy v detaile (inventár, tematiky) */
.card-dialog h4 { margin: 0 0 0.35rem; font-size: 1rem; }
.dialog-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
.dialog-lists ul, .dialog-list { margin: 0; padding-left: 1.1rem; color: var(--muted-foreground); font-size: 0.95rem; }
.dialog-lists li, .dialog-list li { margin-bottom: 0.15rem; }
@media (max-width: 480px) { .dialog-lists { grid-template-columns: 1fr; } }

/* galéria v detaile */
.card-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.card-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 0.5rem; cursor: zoom-in; transition: opacity 0.15s; }
.card-gallery img:hover { opacity: 0.85; }

/* ---------- Kroky ---------- */
.step { text-align: center; }
.step-num { width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center; background: var(--primary); color: var(--primary-foreground); font-weight: 800; border-radius: 50%; margin: 0 auto 1rem; font-size: 1.1rem; }
.step h3 { margin: 0 0 0.5rem; }
.step p { color: var(--muted-foreground); font-size: 0.95rem; margin: 0; }

/* ---------- O nás ---------- */
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
.about-text h2 { font-size: 2rem; font-weight: 800; margin: 0 0 1rem; }
.about-text p { color: var(--muted-foreground); margin: 0 0 1rem; }
.about-text p:last-child { margin-bottom: 0; }
.about-photo img { width: 100%; max-width: 420px; margin: 0 auto; border-radius: 1rem; box-shadow: 0 12px 32px rgba(46,36,27,0.15); }

/* ---------- Benefity ---------- */
.benefit { display: flex; gap: 1rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.benefit-icon { width: 2.2rem; height: 2.2rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-foreground); border-radius: 50%; }
.benefit h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.benefit p { margin: 0; color: var(--muted-foreground); font-size: 0.95rem; }

/* ---------- Kontaktný box ---------- */
.cta-box { display: grid; grid-template-columns: 1fr; background: var(--primary); color: var(--primary-foreground); border-radius: 1.5rem; overflow: hidden; box-shadow: 0 12px 40px rgba(192,108,62,0.25); }
.cta-info { padding: 2.5rem; }
.cta-form { padding: 2.5rem; background: rgba(255,255,255,0.1); }
.cta-info h2 { font-size: 2rem; margin: 0 0 1rem; }
.cta-info p { font-size: 1.1rem; opacity: 0.9; margin: 0 0 1.5rem; }
.cta-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.cta-row-icon { width: 2.5rem; height: 2.5rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.12); border-radius: 50%; }
.cta-row a { text-decoration: underline; text-decoration-color: rgba(255,255,255,0.35); text-underline-offset: 3px; }
.cta-row a:hover { text-decoration-color: rgba(255,255,255,0.8); }

/* ---------- Formulár ---------- */
form { display: flex; flex-direction: column; gap: 1rem; }

/* dvojica polí termínu vedľa seba */
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-2 > div { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.form-row-2 input, #place { width: 100%; }
label small { font-weight: 400; opacity: 0.75; }
input[type="datetime-local"] { color-scheme: dark; }
@media (max-width: 480px) { .form-row-2 { grid-template-columns: 1fr; } }

/* multiselect služieb — pilulkové checkboxy */
.services { border: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.services legend { font-size: 0.9rem; font-weight: 600; padding: 0; margin-bottom: 0.6rem; }
.service-pill { cursor: pointer; }
.service-pill input { position: absolute; opacity: 0; pointer-events: none; }
.service-pill span { display: inline-block; padding: 0.45rem 0.9rem; border-radius: 9999px; border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.1); font-size: 0.85rem; font-weight: 600; transition: all 0.15s; }
.service-pill:hover span { background: rgba(255,255,255,0.2); }
.service-pill input:checked + span { background: var(--primary-foreground); color: var(--primary); border-color: var(--primary-foreground); }
.service-pill input:focus-visible + span { outline: 2px solid rgba(255,255,255,0.7); outline-offset: 2px; }
label { font-size: 0.9rem; font-weight: 600; }
input, textarea { padding: 0.85rem 1rem; border-radius: 0.75rem; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.12); color: var(--primary-foreground); font-size: 1rem; font-family: inherit; }
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.6); }
input:focus, textarea:focus { outline: none; border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.18); }
.submit-btn { background: var(--primary-foreground); color: var(--primary); border: none; padding: 1rem; font-weight: 700; border-radius: 0.75rem; cursor: pointer; font-size: 1rem; }
.submit-btn:hover { background: #fff; }
.submit-btn:disabled { opacity: 0.6; cursor: wait; }

/* stavová správa pod formulárom */
.form-status { margin: 0; font-size: 0.95rem; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: #d8f5c8; }
.form-status.err { color: #ffd9c4; }

/* honeypot proti spamu — pole je pre ľudí neviditeľné */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Pätička ---------- */
/* ---------- Podstránky služieb ---------- */
.page-hero { background: rgba(232,226,216,0.4); border-bottom: 1px solid var(--border); padding: 3rem 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.85rem; color: var(--muted-foreground); margin-bottom: 1rem; }
.breadcrumb a { color: var(--primary); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin: 0 0 0.75rem; }
.page-hero .lead { color: var(--muted-foreground); font-size: 1.1rem; max-width: 700px; margin: 0 0 1.5rem; }
.content-narrow { max-width: 800px; }
.content-narrow > p { margin: 0 0 1rem; }
.content-narrow h2 { font-size: 1.5rem; margin: 2.25rem 0 1rem; }
.list-title { font-size: 1rem; margin: 0 0 0.35rem; }
.card-gallery--page { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 0.5rem; }
.steps-block { margin-top: 1.5rem; }

/* ---------- Pätička — zoznam služieb ---------- */
.footer-services { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.75rem; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.footer-services a { color: var(--muted-foreground); font-weight: 600; }
.footer-services a:hover { color: var(--primary); }

/* ---------- Logá klientov (referencie) ---------- */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2rem 3.5rem; }
.logos svg { height: 2.4rem; width: auto; color: var(--muted-foreground); opacity: 0.65; transition: opacity 0.2s, color 0.2s; }
.logos svg:hover { opacity: 1; color: var(--foreground); }

/* ---------- Cookie lišta ---------- */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90; max-width: 620px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,0.18); padding: 1.1rem 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
/* display:flex by inak prebilo atribút hidden a lišta by sa nedala zavrieť */
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 260px; font-size: 0.92rem; color: var(--muted-foreground); }
.cookie-banner a { color: var(--primary); text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.5rem; }
.cookie-actions .btn { padding: 0.55rem 1.1rem; font-size: 0.9rem; }

/* ---------- Lightbox galéria (dialóg v top layer) ---------- */
.lightbox { border: none; padding: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(20, 14, 9, 0.9); }
.lightbox img { max-width: min(90vw, 1000px); max-height: 85vh; width: auto; height: auto; border-radius: 0.5rem; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-btn { position: absolute; background: rgba(255,255,255,0.12); color: #fff; border: none; border-radius: 50%; width: 2.8rem; height: 2.8rem; font-size: 1.6rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.lightbox-btn:hover { background: rgba(255,255,255,0.28); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-counter { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 600; }

/* ---------- Pätička ---------- */
.footer { border-top: 1px solid var(--border); padding: 2.5rem 0; }
.footer-contacts { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.footer-contacts a { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--muted-foreground); font-size: 0.9rem; font-weight: 600; }
.footer-contacts a:hover { color: var(--primary); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.footer p { color: var(--muted-foreground); margin: 0; font-size: 0.9rem; }
.footer a { color: var(--muted-foreground); font-size: 0.9rem; }
.footer-legal a { color: inherit; text-decoration: underline; }
.footer-legal a:hover { color: var(--primary); }
.footer-legal { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.8rem; line-height: 1.6; text-align: center; color: var(--muted-foreground); }

/* ---------- Responzívne pravidlá ---------- */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-phone { display: inline-flex; }
  .nav-phone-text { display: inline; }
  .menu-btn { display: none; }
  .desktop-cta { display: inline-flex; }
  .mobile-menu { display: none !important; }
  .cta-box { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: row; justify-content: space-between; }
  .about-grid { grid-template-columns: 1.2fr 1fr; }
}

/* ---------- Floating tlačidlá (WhatsApp + Späť hore) ---------- */
.whatsapp-fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 80; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,0.25); transition: transform 0.15s; }
.whatsapp-fab:hover { transform: scale(1.05); }
.scroll-top { position: fixed; right: 1rem; bottom: 5.2rem; z-index: 80; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: none; background: var(--card); color: var(--foreground); box-shadow: 0 6px 18px rgba(0,0,0,0.18); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.scroll-top[hidden] { display: none; }
.scroll-top:hover { color: var(--primary); }

/* ---------- Mapa v kontakte ---------- */
.cta-map { margin-top: 1.25rem; border-radius: 0.75rem; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.form-note { margin: 0 0 0.35rem; font-size: 0.85rem; color: rgba(255,255,255,0.75); }
select { padding: 0.85rem 1rem; border-radius: 0.75rem; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.12); color: var(--primary-foreground); font-size: 1rem; font-family: inherit; }

/* ---------- Focus-visible outline pre klávesnicu ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [role="button"]:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* ---------- Placeholder ikona (Instagram) ---------- */
.footer-icon--placeholder { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--muted-foreground); opacity: 0.5; font-size: 0.9rem; cursor: help; }

/* ---------- Sekcia FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1rem 1.25rem; }
.faq details[open] { box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; padding-right: 2rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; right: 0; top: 0; font-weight: 400; font-size: 1.3rem; line-height: 1; color: var(--primary); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0.75rem 0 0; color: var(--muted-foreground); }

/* ---------- Karty recenzií ---------- */
.reviews { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin: 0 auto; max-width: 1000px; }
.review { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.review-stars { color: #e6a233; font-size: 1.15rem; letter-spacing: 0.05em; }
.review p { margin: 0.5rem 0; color: var(--foreground); font-style: italic; }
.review footer { margin-top: 0.75rem; font-size: 0.9rem; color: var(--muted-foreground); font-weight: 600; }
.review-cta { text-align: center; margin-top: 2rem; }

/* ---------- Sekcia „Kam dovážame" ---------- */
.regions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 0.75rem; max-width: 900px; margin: 0 auto; }
.regions span { padding: 0.5rem 1rem; border: 1px solid var(--border); border-radius: 9999px; background: var(--card); font-size: 0.9rem; font-weight: 600; color: var(--muted-foreground); }
