/* ═══════════════════════════════════════════════════════
   vzahrade.sk — global.css
   Zdieľané štýly pre všetky stránky webu.
   Zmena tu sa prejaví na každej stránke naraz.
   ═══════════════════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── PREMENNÉ ── */
:root {
  --white:      #ffffff;
  --off-white:  #f6f8fb;
  --cream:      #edf1f7;
  --cream-mid:  #d4dce8;
  --stone:      #9aafc4;
  --blue-ink:   #162d4a;
  --blue-mid:   #2d5a8e;
  --blue-sage:  #6b9ab8;
  --text:       #161820;
  --text-mid:   #434d5e;
  --text-light: #7a8699;
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'DM Sans', system-ui, sans-serif;
  --dur:        0.3s;
  --nav-h:      96px;
}

/* ── ZÁKLAD ── */
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); background: var(--white); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--white); }
::-webkit-scrollbar-thumb { background: var(--stone); }

/* ── NAVIGÁCIA ── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--cream-mid);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(32px, calc((100% - 1200px) / 2 + 32px));
  transition: height 0.3s ease;
}
nav.nav-shrunk { height: 60px; }
.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-logo-circle {
  transition: width 0.3s ease, height 0.3s ease, font-size 0.3s ease;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: #162d4a;
  color: #ffffff;
  font-family: 'Lexend', 'DM Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.nav-right { display: flex; align-items: center; gap: 36px; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-mid);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur);
}
.nav-links a:hover { color: var(--blue-ink); }
.nav-btn {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
  background: var(--blue-ink);
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 40px;
  white-space: nowrap;
  transition: background var(--dur);
}
.nav-btn:hover { background: var(--blue-mid); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--blue-ink); }
.nav-cta { display: none; }

/* ── POMÔCKY ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.vis { opacity: 1; transform: translateY(0); }

/* ── HLAVIČKA STRÁNKY ── */
.page-header {
  background: none;
  padding: 32px 0;
}
.page-header-label,
.section-label {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--blue-sage);
  margin-top: 12px;
}
.page-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;
}

/* ── ABOUT (sekcia o nás / ateliér) ── */
.about { padding: 64px 0; background: var(--white); }
.about--off-white { background: var(--off-white); }
.about-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 64px; align-items: center; }
.about-grid.reverse { grid-template-columns: 2fr 3fr; }
.about-photo-wrap {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--cream);
  border-radius: 4px;
  overflow: hidden;
}
.about-photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--stone);
}
.about-photo-placeholder span { font-size: 3rem; }
.about-photo-placeholder p { font-size: 0.78rem; font-weight: 400; color: var(--stone); }
.about-content h2 {
  font-family: var(--sans);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.2;
}
.about-content p {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-mid);
  margin-bottom: 32px;
}
.about-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
  background: var(--blue-ink);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 40px;
  transition: background 0.3s ease;
}
.about-btn:hover { background: var(--blue-mid); }

/* ── NEWSLETTER ── */
.newsletter { background: var(--off-white); padding: 64px 0; }
.newsletter-inner { max-width: 560px; }
.newsletter h2 {
  font-family: var(--sans);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 24px;
}
.nl-row { display: flex; gap: 0; margin-bottom: 12px; }
.nl-row input[type="email"] {
  flex: 1;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--cream-mid);
  border-right: none;
  border-radius: 4px 0 0 4px;
  padding: 11px 16px;
  outline: none;
  transition: border-color 0.3s ease;
}
.nl-row input[type="email"]:focus { border-color: var(--blue-sage); }
.nl-row input[type="email"]::placeholder { color: var(--text-light); }
.nl-row button {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
  background: var(--blue-ink);
  border: none;
  padding: 11px 22px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s ease;
}
.nl-row button:hover { background: var(--blue-mid); }
.newsletter .ml-form-checkboxRow { margin: 0; float: none; width: auto; }
.newsletter .ml-form-checkboxRow label.checkbox { display: block; position: relative; min-height: 20px; padding-left: 26px; margin: 0; cursor: pointer; font-weight: normal; }
.newsletter .ml-form-checkboxRow label.checkbox input[type="checkbox"] { position: absolute; z-index: -1; opacity: 0; width: 0; height: 0; }
.newsletter .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; }
.newsletter .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; }
.newsletter .ml-form-checkboxRow input[type="checkbox"]:checked ~ .label-description::before { background-color: var(--blue-ink); border-color: var(--blue-ink); }
.newsletter .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"); }
.newsletter .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; }
.nl-msg { font-size: 0.78rem; color: var(--blue-sage); margin-top: 10px; min-height: 18px; }
.nl-success-inner { display: flex; flex-direction: column; justify-content: center; }
.nl-success-title { font-size: 1rem; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.nl-success-sub { font-size: 0.88rem; font-weight: 300; color: var(--text-light); }
.ml-form-checkboxRow { margin: 0 !important; float: none !important; width: auto !important; }

/* ── FOOTER ── */
footer { background: var(--white); padding: 32px 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--cream-mid);
  margin-bottom: 24px;
}
.footer-left { display: flex; flex-direction: column; gap: 16px; }
.footer-nav { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 0.9rem; font-weight: 300; color: var(--text-mid); text-decoration: none; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--blue-ink); }
.footer-right { display: flex; flex-direction: column; gap: 6px; }
.footer-name { font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.footer-title { font-size: 0.95rem; font-weight: 300; color: var(--text-mid); margin-bottom: 4px; }
.footer-contact-item { font-size: 0.95rem; font-weight: 300; color: var(--text-mid); text-decoration: none; display: block; margin-bottom: 4px; transition: color 0.3s ease; }
.footer-contact-item:hover { color: var(--blue-ink); }
.footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.footer-social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.3s ease;
}
.footer-social-icon:hover { background: var(--cream-mid); }
.footer-social-icon svg { width: 18px; height: 18px; fill: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--text-light);
  flex-wrap: wrap;
  gap: 8px;
}

/* ── RESPONZÍVNY DIZAJN ── */
@media (max-width: 720px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-btn { display: none; }
  .hamburger { display: flex; align-items: center; justify-content: center; margin-left: auto; }
  .nav-cta { display: list-item; }
  .nav-cta .nav-btn { display: inline-flex; font-size: 1rem; padding: 13px 36px; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: var(--nav-h);
    background: var(--white);
    justify-content: center;
    align-items: center;
    gap: 36px;
    z-index: 190;
  }
  .nav-links.open a { font-size: 1.1rem; color: var(--text-mid); }
  .nav-links.open .nav-cta .nav-btn { color: var(--white); font-size: 1rem; }
  /* Scvrknutá navigácia pri skrolovaní */
  nav.nav-shrunk .nav-logo-circle { width: 42px; height: 42px; font-size: 7px; }
  nav.nav-shrunk { height: 60px; }
  nav.nav-shrunk .nav-links.open { top: 60px; }

  .container { padding: 0 24px; }

  .about-grid,
  .about-grid.reverse { grid-template-columns: 1fr; gap: 36px; }
  .about-grid.reverse .about-photo-wrap { order: -1; }

  .nl-row { flex-direction: column; }
  .nl-row input[type="email"] { border-right: 1px solid var(--cream-mid); border-radius: 4px 4px 0 0; border-bottom: none; }
  .nl-row button { border-radius: 0 0 4px 4px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}
