/* =========================
   DESIGN TOKENS
========================= */
:root {
  --primary: #ff3d7f;
  --primary-hover: #e73370;
  --bg: #fff7fb;
  --section: #ffeaf5; /* jemné striedanie */
  --surface: #ffffff;
  --border: #f2cfe0;

  --text: #1f2937;
  --muted: #6b7280;

  --shadow-sm: 0 6px 18px rgba(31, 41, 55, 0.06);
  --shadow-md: 0 12px 30px rgba(31, 41, 55, 0.08);

  --radius: 16px;

  --container: 1160px;

  /* spacing (8px systém) */
  --s-1: 0.5rem; /* 8 */
  --s-2: 1rem; /* 16 */
  --s-3: 1.5rem; /* 24 */
  --s-4: 2rem; /* 32 */
  --s-5: 3rem; /* 48 */
  --s-6: 4rem; /* 64 */

  --nav-h: 64px;
}

/* =========================
   BASE / RESET
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--nav-h); /* fix pre fixed navbar */
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

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

a {
  color: var(--primary);
  text-underline-offset: 2px;
}
a:hover {
  color: var(--primary-hover);
}

:focus-visible {
  outline: 3px solid rgba(255, 61, 127, 0.35);
  outline-offset: 2px;
}

/* nech sú zoznamy normálne zoznamy */
ul {
  margin: 0;
  padding-left: 1.25rem;
}
li {
  margin: 0.35rem 0;
}

/* =========================
   LAYOUT
========================= */
.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--s-6) 0;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.homepage > section:nth-of-type(odd) {
  background: var(--section);
}

/* typografia */
h1,
h2,
h3 {
  margin: 0 0 0.75rem 0;
  color: #a51f53;
  font-family: Poppins, Inter, system-ui, sans-serif;
}
h2 {
  font-size: clamp(1.75rem, 2.2vw, 2.25rem);
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.125rem;
}
p {
  margin: 0 0 0.75rem 0;
  color: var(--text);
}
.info {
  font-size: 0.85rem;
  color: var(--muted);
}

/* =========================
   NAVBAR (fixed)
========================= */
header {
  background: transparent;
}

.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 1000;
  background: rgba(255, 61, 127, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.nav-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}
.logo img {
  height: 40px;
  width: 40px;
  border-radius: 10px;
}
.logo span {
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* mobile menu */
.menu {
  display: flex;
  align-items: center;
}

.menu-icon {
  display: block;
  width: 30px;
  cursor: pointer;
}
.menu-icon div {
  width: 100%;
  height: 3px;
  background: #fff;
  margin: 6px 0;
  border-radius: 999px;
}

/* .nav je tvoj kontajner linkov */
.nav {
  position: absolute;
  top: var(--nav-h);
  left: 0;
  width: 100vw;
  display: none;
  flex-direction: column;
  background: rgba(255, 61, 127, 0.98);
  padding: 12px 0;
}
.nav.active {
  display: flex;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 18px;
}
.nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* submenu */
.has-submenu > a::after {
  content: " ▼";
  font-size: 0.75rem;
  opacity: 0.9;
}
.submenu {
  display: none;
  flex-direction: column;
  background: rgba(231, 51, 112, 0.96);
}
.has-submenu.active .submenu {
  display: flex;
}
.submenu a {
  padding-left: 32px;
}

/* desktop nav */
@media (min-width: 900px) {
  .menu-icon {
    display: none;
  }

  .nav {
    position: static;
    display: flex !important;
    flex-direction: row;
    width: auto;
    background: transparent;
    padding: 0;
    gap: 6px;
  }

  .nav a {
    padding: 10px 12px;
    border-radius: 999px;
  }
  .nav a:hover {
    background: rgba(255, 255, 255, 0.18);
  }

  .has-submenu {
    position: relative;
  }
  .submenu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 200px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
  }
  .has-submenu:hover .submenu {
    display: flex;
  }

  /* na desktope nepotrebuješ šípku */
  .has-submenu > a::after {
    content: "";
  }
}

/* =========================
   HERO IMAGE (ak používaš .hero-wrapper)
========================= */
.hero-wrapper {
  max-height: 320px;
  overflow: hidden;
}
.hero-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   CARDS / COLUMNS
========================= */
.flex-two-columns {
  display: flex;
  gap: var(--s-4);
  align-items: stretch;
}
.flex-two-columns .left,
.flex-two-columns .center,
.flex-two-columns .right {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: var(--s-4);
}
.flex-two-columns .left,
.flex-two-columns .right {
  flex: 1 1 0;
}
.flex-two-columns .center {
  flex: 1 1 100%;
}

/* =========================
   FORMS
========================= */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input,
textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
input {
  height: 46px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 61, 127, 0.14);
}

button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
  align-self: flex-start;
  transition:
    transform 0.12s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}
/* button:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(255, 61, 127, 0.25);
} */

.form-status {
  font-size: 0.9rem;
}
.form-status.is-sending {
  color: #aa667f;
}
.form-status.is-success {
  color: #2e7d32;
  font-weight: 700;
}
.form-status.is-error {
  color: #c62828;
  font-weight: 700;
}

/* =========================
   PRODUCTS GRID (ponuka)
========================= */
#ponuka .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-4);
  margin-bottom: var(--s-4);
}

.product {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
/* .product img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
} */
.product p {
  margin: 10px 0;
}
.product p strong {
  color: #a51f53;
}

/* =========================
   GALLERY (galeria)
========================= */
#galeria .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-3);
}

.gallery-item {
  padding: 0;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  text-align: left;
}
.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  aspect-ratio: 4 /3;
}

.gallery-caption {
  padding: 10px 12px 12px;
  font-size: 0.9rem;
  color: var(--text);
}

.gallery-item:hover .gallery-caption {
  color: var(--text);
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
}
.lightbox.is-open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: min(1100px, 96vw);
  max-height: 92vh;
}
.lightbox-inner img {
  max-width: 100%;
  max-height: 92vh;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  padding: 0;
}
.lightbox-close:hover {
  background: var(--primary-hover);
}

/* =========================
   FOOTER
========================= */
.footer {
  background: #fff;
  border-top: 1px solid var(--nav-border);
  text-align: center;
  padding: 24px;
}

.hero-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  section {
    padding: var(--s-4) 0;
  }
  .section-inner {
    padding: 0 16px;
  }
  .flex-two-columns {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  :root {
    --nav-h: 72px;
  }
  .onas-large {
    display: none;
  }
  .hero-wrapper {
    height: 120px;
  }
}

/* Honeypot + sr-only ostávajú OK */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/*asi dulicita*/
/* --- hamburger ikonka (ak prejdeš na button + span) --- */
.menu-icon {
  background: transparent;
  border: 0;
  padding: 8px;
  border-radius: 12px;
}
.menu-icon span {
  display: block;
  width: 30px;
  height: 3px;
  background: var(--nav-link);
  margin: 6px 0;
  border-radius: 999px;
}

/* --- NAV: musí vedieť že má aj <div class="has-submenu"> medzi linkami --- */
.nav {
  /* mobile default */
  position: absolute;
  top: var(--nav-h);
  left: 0;
  width: 100vw;
  display: none;
  flex-direction: column;
  background: rgba(255, 61, 127, 0.98);
  padding: 12px 0;
}
.nav.active {
  display: flex;
}

.nav > a,
.nav > .has-submenu > a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 18px;
  display: block;
}
.nav > a:hover,
.nav > .has-submenu > a:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* submenu kontajner */
.has-submenu {
  display: block;
}
.submenu {
  display: none;
  flex-direction: column;
  background: rgba(231, 51, 112, 0.96);
}
.has-submenu.active .submenu {
  display: flex;
}
.submenu a {
  color: #fff;
  padding: 10px 28px;
  text-decoration: none;
}
.submenu a:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* desktop */
@media (min-width: 900px) {
  .nav {
    position: static;
    display: flex !important;
    flex-direction: row;
    width: auto;
    background: transparent;
    padding: 0;
    gap: 6px;
    align-items: center;
  }

  .nav > a,
  .nav > .has-submenu > a {
    padding: 10px 12px;
    border-radius: 999px;
  }

  .has-submenu {
    position: relative;
  }

  .submenu {
    position: absolute;
    top: calc(100% + 0px);
    left: 0;
    min-width: 220px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: none; /* desktop default */
  }
  .has-submenu:hover .submenu {
    display: flex;
  }
}

/*overide headera*/
/* ===== DESKTOP/MOBILE NAVBAR (Variant 1: white/blur) ===== */
:root {
  --nav-h: 72px; /* doladíš podľa reálnej výšky */
  --nav-bg: rgba(255, 255, 255, 0.92);
  --nav-border: rgba(31, 41, 55, 0.08);
  --nav-link: #a51f53; /* tmavšia malinová */
  --nav-link-hover: rgba(255, 61, 127, 0.12);
}

body {
  padding-top: var(--nav-h);
} /* nech obsah nelezia pod fixed bar */

.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.logo span {
  color: var(--nav-link);
} /* nie biele na bielom */
.menu-icon div {
  background: var(--nav-link);
} /* hamburger tmavý */

/* Mobile dropdown */
.nav {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100vw;
  display: none;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid var(--nav-border);
}
.nav.active {
  display: flex;
}

.nav a,
.nav .has-submenu > a {
  color: var(--nav-link);
  text-decoration: none;
  font-weight: 700;
  padding: 12px 16px;
}
.nav a:hover,
.nav .has-submenu > a:hover {
  background: var(--nav-link-hover);
}

/* submenu na mobile */
.submenu {
  background: #fff7fb;
}
.submenu a {
  color: var(--nav-link);
}

/* CTA tlačidlo v menu */
.nav a.cta {
  background: #ff3d7f;
  color: #fff;
  border-radius: 999px;
  margin: 8px 16px 12px;
  text-align: center;
}
.nav a.cta:hover {
  background: #e73370;
}

/* Desktop menu inline */
@media (min-width: 900px) {
  .nav {
    position: static;
    display: flex !important;
    flex-direction: row;
    width: auto;
    background: transparent;
    border: 0;
  }

  .nav a,
  .nav .has-submenu > a {
    padding: 10px 12px;
    border-radius: 999px;
  }

  .nav a.cta {
    margin: 0 0 0 8px;
    padding: 10px 14px;
  }

  /* desktop dropdown (submenu) */
  .submenu {
    background: #fff;
    border: 1px solid var(--nav-border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
  }
}

/* .hero-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.1),
    rgba(255, 247, 251, 0.95)
  );
} */

.hero-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) contrast(0.95);
  transform: scale(1.02);
}
.hero-wrapper {
  width: 100%;
  aspect-ratio: 350 / 120; /* alebo 2.91 / 1 */
  overflow: hidden;
}

.hero-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
