/* ═══════════════════════════════════════════════════════
   vzahrade.sk — pages.css
   Štýly špecifické pre jednotlivé stránky.
   Každá sekcia je označená stránkou, kde sa používa.
   ═══════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════
   HERO — index.html
   ══════════════════════════════════════════ */
:root { --pad-left: 30%; }

.hero {
  position: relative;
  height: calc(100vh - var(--nav-h));
  min-height: 560px;
  background: var(--off-white);
}
.hero-slides {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--pad-left);
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.hero-slide.active { opacity: 1; }
.slide-1 { background-image: url('../images/slideshow/ovocna-zahrada-s-liecivymi-bylinkami-01.webp'); }
/* slides 2–4 sa načítajú cez JS po zobrazení slide-1 (defer pre lepší LCP) */
.hero-text {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--pad-left);
  min-width: 160px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 32px 0 48px;
}
.hero-heading {
  font-family: var(--sans);
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 28px;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.hero-heading.fade { opacity: 0; }
.slider-controls { display: flex; align-items: center; gap: 10px; }
.slider-arrow {
  background: none;
  border: 1px solid var(--cream-mid);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  font-size: 1.05rem;
  line-height: 1;
  transition: border-color var(--dur), color var(--dur);
}
.slider-arrow:hover { border-color: var(--blue-ink); color: var(--blue-ink); }

/* ══════════════════════════════════════════
   PORTFÓLIO — pribehy-zahrad.html
   ══════════════════════════════════════════ */
.portfolio { background: var(--white); padding: 32px 0px; }
.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.portfolio-card {
  text-decoration: none;
  color: inherit;
  display: block;
  padding-bottom: 32px;
}
.card-image-wrap { aspect-ratio: 3 / 2; overflow: hidden; }
.card-image {
  width: 100%;
  height: 100%;
  background: center / cover no-repeat;
  transition: transform 0.5s ease;
}
.portfolio-card:hover .card-image { transform: scale(1.04); }
.card-body { padding: 24px 0 0; }
.card-title {
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--blue-ink);
  margin-bottom: 8px;
  line-height: 1.3;
}
.card-meta {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-mid);
  margin-bottom: 16px;
}
.card-link {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--blue-mid);
  text-decoration: none;
  transition: color 0.3s ease;
}
.portfolio-card:hover .card-link { color: var(--blue-ink); }

/* ══════════════════════════════════════════
   ZÁHRADA – HLAVIČKA — pribehy-zahrad/*.html
   ══════════════════════════════════════════ */
.garden-header {
  background: none;
  padding: 32px 0;
}
.breadcrumb {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--blue-sage);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color var(--dur);
}
.breadcrumb:hover { color: var(--blue-mid); }
.garden-header h1 {
  font-family: var(--sans);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: var(--blue-ink);
  line-height: 1.2;
  margin-bottom: 28px;
}
.meta-row { display: flex; gap: 48px; flex-wrap: wrap; }
.meta-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--blue-sage);
  display: block;
  margin-bottom: 4px;
}
.meta-value { font-size: 0.95rem; font-weight: 500; color: var(--text-mid); }

/* ══════════════════════════════════════════
   GALÉRIA + LIGHTBOX — pribehy-zahrad/*.html
   ══════════════════════════════════════════ */
.gallery-section { background: var(--white); padding: 32px 0px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery-item {
  overflow: hidden;
  cursor: pointer;
  background: var(--cream);
  position: relative;
  aspect-ratio: 5 / 3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.04); }

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.93);
  align-items: center;
  justify-content: center;
}
#lightbox.open { display: flex; }
.lb-img { max-width: 90vw; max-height: 90vh; object-fit: contain; display: block; position: relative; z-index: 1; }
.lb-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  opacity: 0.8;
  transition: opacity var(--dur);
}
.lb-close:hover { opacity: 1; }
.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 12px;
  z-index: 2;
  opacity: 0.7;
  transition: opacity var(--dur);
}
.lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-bg { position: absolute; inset: 0; z-index: 0; }

/* ══════════════════════════════════════════
   KONTAKT — vypytajte-si-zahradu.html
   ══════════════════════════════════════════ */
.contact-section { background: var(--white); padding: 32px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }

.contact-left h2 {
  font-family: var(--sans);
  font-size: clamp(1.8rem, 2.8vw, 2.2rem);
  font-weight: 600;
  color: var(--blue-ink);
  line-height: 1.15;
  margin-bottom: 16px;
}
.contact-left h2 em { font-style: normal; color: var(--blue-mid); }
.contact-left > p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 32px;
}
.c-details { display: flex; flex-direction: column; gap: 24px; margin-bottom: 28px; }
.c-detail { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; font-weight: 300; color: var(--text-mid); }
.c-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue-sage); flex-shrink: 0; }
.c-detail a { color: inherit; text-decoration: none; transition: color var(--dur); }
.c-detail a:hover { color: var(--blue-ink); }
.social-row { display: flex; gap: 8px; }
.s-link {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--cream-mid);
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  transition: border-color var(--dur), color var(--dur);
}
.s-link:hover { border-color: var(--blue-sage); color: var(--blue-ink); }

/* Form card */
.form-card { background: var(--off-white); padding: 40px; border-radius: 6px; }
.form-title { font-family: var(--sans); font-size: 1.8rem; font-weight: 500; color: var(--blue-ink); margin-bottom: 12px; }
.form-note-top { font-size: 0.8rem; font-weight: 300; color: var(--text-light); margin-bottom: 24px; }
.fg { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fg-label {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-light);
  display: block;
}

/* MailerLite contact form #41689797 overrides */
.cf-subscribe-form .row-success { padding: 0; }
.cf-subscribe-form input[type="text"],
.cf-subscribe-form input[type="email"],
.cf-subscribe-form input[type="tel"] {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--cream-mid);
  border-radius: 4px;
  padding: 10px 12px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
}
.cf-subscribe-form input[type="text"]:focus,
.cf-subscribe-form input[type="email"]:focus,
.cf-subscribe-form input[type="tel"]:focus { border-color: var(--blue-sage); }
.cf-subscribe-form input[type="text"]::placeholder,
.cf-subscribe-form input[type="email"]::placeholder,
.cf-subscribe-form input[type="tel"]::placeholder { color: var(--text-light); }
.cf-subscribe-form textarea {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--cream-mid);
  border-radius: 4px;
  padding: 10px 12px;
  width: 100%;
  box-sizing: border-box;
  min-height: 90px;
  resize: vertical;
  outline: none;
  transition: border-color 0.3s ease;
}
.cf-subscribe-form textarea:focus { border-color: var(--blue-sage); }
.cf-subscribe-form textarea::placeholder { color: var(--text-light); }
.cf-subscribe-form .ml-form-embedSubmit { margin: 12px 0 0 0; float: none; width: 100%; }
.cf-subscribe-form .ml-form-embedSubmit button {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
  background: var(--blue-ink);
  border: none;
  border-radius: 40px;
  padding: 13px 28px;
  width: 100%;
  cursor: pointer;
  transition: background 0.3s ease;
}
.cf-subscribe-form .ml-form-embedSubmit button:hover { background: var(--blue-mid); }
.cf-subscribe-form .ml-form-checkboxRow { margin: 14px 0 0; float: none; width: auto; }
.cf-subscribe-form .ml-form-checkboxRow label.checkbox { display: block; position: relative; min-height: 20px; padding-left: 26px; margin: 0; cursor: pointer; font-weight: normal; }
.cf-subscribe-form .ml-form-checkboxRow label.checkbox input[type="checkbox"] { position: absolute; z-index: -1; opacity: 0; width: 0; height: 0; }
.cf-subscribe-form .ml-form-checkboxRow .label-description::before { content: ""; position: absolute; top: 1px; left: 0; width: 16px; height: 16px; background-color: var(--white); border: 1px solid var(--cream-mid); border-radius: 3px; box-sizing: border-box; pointer-events: none; }
.cf-subscribe-form .ml-form-checkboxRow .label-description::after { content: ""; position: absolute; top: 1px; left: 0; width: 16px; height: 16px; background: no-repeat center / 10px 10px; box-sizing: border-box; }
.cf-subscribe-form .ml-form-checkboxRow input[type="checkbox"]:checked ~ .label-description::before { background-color: var(--blue-ink); border-color: var(--blue-ink); }
.cf-subscribe-form .ml-form-checkboxRow input[type="checkbox"]:checked ~ .label-description::after { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23ffffff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e"); }
.cf-subscribe-form .ml-form-checkboxRow .label-description { font-family: var(--sans); font-size: 0.7rem; font-weight: 300; color: var(--text-light); line-height: 1.6; display: block; cursor: pointer; }
.cf-subscribe-form .custom-radio { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.cf-subscribe-form .custom-control { position: relative; padding-left: 1.6rem; cursor: pointer; }
.cf-subscribe-form .custom-control-input { position: absolute; opacity: 0; z-index: -1; width: 0; height: 0; }
.cf-subscribe-form .custom-control-label { font-family: var(--sans); font-size: 0.85rem; font-weight: 300; color: var(--text-mid); cursor: pointer; line-height: 1.5; }
.cf-subscribe-form .custom-control-label::before { content: ""; position: absolute; top: 3px; left: 0; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--cream-mid); background: var(--white); box-sizing: border-box; }
.cf-subscribe-form .custom-control-label::after { content: ""; position: absolute; top: 3px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: no-repeat center / 8px 8px; }
.cf-subscribe-form .custom-control-input:checked ~ .custom-control-label::before { border-color: var(--blue-ink); background: var(--blue-ink); }
.cf-subscribe-form .custom-control-input:checked ~ .custom-control-label::after { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3ccircle fill='white' cx='4' cy='4' r='2'/%3e%3c/svg%3e"); }
.cf-subscribe-form .row-success { align-items: center; justify-content: center; text-align: center; }
.cf-subscribe-form .ml-form-successContent { width: 100%; }
.cf-subscribe-form .ml-form-successContent h4 { font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.cf-subscribe-form .ml-form-successContent p { font-family: var(--sans); font-size: 0.9rem; font-weight: 300; color: var(--text-light); }

/* ══════════════════════════════════════════
   ZOZNAM PRIANÍ — zoznam-priani.html
   ══════════════════════════════════════════ */
.step1-card .nl-row { max-width: 580px; margin-bottom: 12px; }
.step1-card .ml-form-checkboxRow { margin: 12px 0 0; float: none; width: auto; max-width: 580px; }
.step1-card .ml-form-checkboxRow label.checkbox { display: block; position: relative; min-height: 20px; padding-left: 26px; margin: 0; cursor: pointer; font-weight: normal; }
.step1-card .ml-form-checkboxRow label.checkbox input[type="checkbox"] { position: absolute; z-index: -1; opacity: 0; width: 0; height: 0; }
.step1-card .ml-form-checkboxRow .label-description::before { content: ""; position: absolute; top: 1px; left: 0; width: 16px; height: 16px; background-color: var(--white); border: 1px solid var(--cream-mid); border-radius: 3px; box-sizing: border-box; pointer-events: none; }
.step1-card .ml-form-checkboxRow .label-description::after { content: ""; position: absolute; top: 1px; left: 0; width: 16px; height: 16px; background: no-repeat center / 10px 10px; box-sizing: border-box; }
.step1-card .ml-form-checkboxRow input[type="checkbox"]:checked ~ .label-description::before { background-color: var(--blue-ink); border-color: var(--blue-ink); }
.step1-card .ml-form-checkboxRow input[type="checkbox"]:checked ~ .label-description::after { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23ffffff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e"); }
.step1-card .ml-form-checkboxRow .label-description { font-family: var(--sans); font-size: 0.7rem; font-weight: 300; color: var(--text-light); line-height: 1.6; display: block; cursor: pointer; }
@media (max-width: 720px) {
  .step1-card .nl-row { max-width: 100%; }
  .step1-card .ml-form-checkboxRow { max-width: 100%; }
}

/* ══════════════════════════════════════════
   PRÁVNE INFORMÁCIE — pravne-informacie.html
   ══════════════════════════════════════════ */
.legal-content { padding: 32px 0; background: var(--white); }
.legal-inner { max-width: 760px; }
.legal-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
}
.legal-section:last-child { border-bottom: none; margin-bottom: 0; }
.legal-section h2 {
  font-family: var(--sans);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 600;
  color: var(--blue-ink);
  margin-bottom: 24px;
  padding-bottom: 12px;
}
.legal-section h3 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 8px;
}
.legal-section p,
.legal-block {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 12px;
}
.legal-contact-block { font-size: 0.95rem; font-weight: 300; line-height: 1.9; color: var(--text-mid); }
.legal-contact-block strong { font-size: 1rem; font-weight: 500; color: var(--text); }
.legal-contact-block a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
.legal-contact-block a:hover { color: var(--blue-ink); }

/* ══════════════════════════════════════════
   RESPONZÍVNY DIZAJN — stránky
   ══════════════════════════════════════════ */
@media (max-width: 720px) {
  /* Hero */
  :root { --pad-left: 100%; }
  .hero { height: auto; min-height: auto; overflow: visible; display: flex; flex-direction: column; padding-bottom: 20px; }
  .hero-slides { position: static; order: 1; height: 60vw; min-height: 220px; border-radius: 6px; margin: 16px 16px 0; flex-shrink: 0; }
  .hero-text { order: 2; position: relative; z-index: 10; width: 100%; min-width: 0; height: auto; flex-direction: row; align-items: center; justify-content: space-between; padding: 16px 20px 0; gap: 12px; }
  .hero-heading { font-size: clamp(1rem, 4vw, 1.3rem); margin-bottom: 0; flex: 1; color: var(--white); }
  .slider-controls { flex-shrink: 0; }
  .slider-arrow { color: #ffffff; background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.6); width: 44px; height: 44px; }
  .slider-arrow:hover { color: #ffffff; background: rgba(255,255,255,0.35); border-color: #ffffff; }

  /* Portfólio */
  .portfolio-grid { grid-template-columns: 1fr; }

  /* Kontakt */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .fg-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; }

  /* Galéria */
  .garden-header { padding: 40px 0; }
  .meta-row { gap: 24px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
