/* Zámočníctvo ROBEKOV — statická stránka
   Bez frameworkov, bez externých požiadaviek.

   Farby aj rozloženie sú prevzaté z pôvodnej stránky (téma GeneratePress):
   zelená navigácia #255817, zelené odkazy #17ad03, sivé pozadie #ededed,
   biele obsahové bloky, tmavá pätička #222222, šírka obsahu 1100 px. */

:root {
  --green-dark: #255817;   /* navigačný pruh */
  --green-mid: #3b8625;    /* aktívna položka menu, tlačidlá */
  --green-link: #17ad03;   /* odkazy */
  --page: #ededed;         /* pozadie stránky */
  --box: #ffffff;          /* obsahové bloky */
  --text: #3a3a3a;
  --title: #222222;
  --muted: #757575;
  --line: #e0e0e0;
  --footer: #222222;
  --wrap: 1100px;
  --radius: 2px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-link); }
a:hover, a:focus { color: #000; }

h1, h2, h3 { color: var(--title); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 32px; font-weight: 300; }
h2 { font-size: 29px; font-weight: 300; }
h3 { font-size: 20px; font-weight: 600; }
@media (max-width: 768px) {
  h1 { font-size: 26px; }
  h2 { font-size: 23px; }
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--green-dark); color: #fff; padding: .7rem 1.1rem;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--green-mid); outline-offset: 2px; }

.icon { width: 1.05em; height: 1.05em; flex: none; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.1rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; border: 1px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--lg { padding: .8rem 1.4rem; font-size: 1.05rem; }
.btn--primary { background: var(--green-mid); color: #fff; }
.btn--primary:hover, .btn--primary:focus { background: var(--green-dark); color: #fff; }
.btn--dark { background: #666; color: #fff; }
.btn--dark:hover, .btn--dark:focus { background: #3f3f3f; color: #fff; }
.btn--outline { border-color: var(--green-mid); color: var(--green-mid); background: var(--box); }
.btn--outline:hover, .btn--outline:focus { background: var(--green-mid); color: #fff; }

/* ---------------------------------------------------------------- header */

.site-header { background: var(--box); }
.site-header__inner {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; padding-block: 2.2rem;
}
.brand { display: block; text-decoration: none; text-align: center; }
.brand__name {
  display: block; color: var(--title); font-size: 45px; font-weight: 700; line-height: 1.15;
}
.brand__tagline { display: block; color: var(--muted); font-size: 15px; margin-top: .4rem; }
@media (max-width: 880px) {
  .site-header__inner { justify-content: space-between; padding-block: 1rem; }
  .brand { text-align: left; }
  .brand__name { font-size: 24px; }
  .brand__tagline { font-size: 13px; }
}

/* Tlačidlo „Zavolať“ je na mobile vždy viditeľné — väčšina návštevníkov
   prichádza z telefónu a číslo skryté v menu stojí hovory. */
.header-call {
  display: none; align-items: center; gap: .4rem;
  background: var(--green-mid); color: #fff; text-decoration: none; font-weight: 600;
  padding: .5rem .8rem; border-radius: var(--radius); white-space: nowrap;
}
.header-call:hover, .header-call:focus { background: var(--green-dark); color: #fff; }
.header-call--desktop { display: inline-flex; }

/* ---------------------------------------------------------------- navigation */

.main-nav { background: var(--green-dark); }
.main-nav__inner { display: flex; align-items: center; justify-content: center; }
.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
}
.main-nav a {
  display: block; color: #fff; text-decoration: none;
  padding: .95rem 1.1rem; font-size: 15px; line-height: 1.3;
}
.main-nav a:hover, .main-nav a:focus { background: var(--green-mid); color: #fff; }
.main-nav a.is-current { background: var(--green-mid); color: #fff; }

.nav-toggle {
  display: none; align-items: center; gap: .5rem;
  background: none; border: 0; color: #fff; font: inherit; font-weight: 600;
  padding: .85rem 20px; cursor: pointer; width: 100%; justify-content: flex-start;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 18px; height: 2px; background: #fff; content: ""; position: relative;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 4px; }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .main-nav__list { display: none; width: 100%; }
  .main-nav__list.is-open { display: block; }
  .main-nav ul { display: block; }
  .main-nav__inner { flex-direction: column; align-items: stretch; padding-inline: 0; }
  .main-nav li { border-top: 1px solid rgba(255, 255, 255, .13); }
  .main-nav a { padding: .8rem 20px; }
  .header-call { display: inline-flex; }
  .header-call--desktop { display: none; }
}
@media (max-width: 380px) {
  .header-call span { display: none; }
}

/* ---------------------------------------------------------------- layout */

.site-content { padding-block: 2rem; }
.site-content__grid { display: grid; gap: 1.6rem; align-items: start; }
@media (min-width: 900px) {
  .site-content__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 1.8rem; }
}

.box {
  background: var(--box); box-shadow: var(--shadow); border-radius: var(--radius);
  padding: clamp(1.4rem, 3.5vw, 3rem);
}

.entry p { margin: 0 0 1.4em; }
.entry > :last-child { margin-bottom: 0; }
.entry h2 { margin-top: 0; }
.entry ul { margin: 0 0 1.4em; padding-left: 1.4rem; }
.entry li { margin-bottom: .35rem; }
.entry hr {
  border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0;
}
.entry .lead { font-size: 19px; color: var(--title); }

/* Telefón a e-mail vo výzve na kontakt — zelené odkazy ako na pôvodnej stránke */
.contact-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: 19px; font-weight: 600; text-decoration: none;
}
.contact-link:hover { text-decoration: underline; }

.addr-columns { display: grid; gap: 1.4rem; }
@media (min-width: 600px) { .addr-columns { grid-template-columns: 1fr 1fr; } }

.map { margin-top: 1.6rem; }
.map iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------------------------------------------------------------- sidebar */

.sidebar .widget { background: var(--box); box-shadow: var(--shadow); padding: 1.4rem 1.5rem; }
.sidebar .widget + .widget { margin-top: 1.6rem; }
.sidebar .widget-title {
  color: #000; font-size: 20px; font-weight: 600; margin: 0 0 .8rem;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li a { display: block; padding: .35rem 0; text-decoration: none; font-size: 17px; }
.sidebar li a:hover { text-decoration: underline; }
.sidebar li a.is-current { font-weight: 700; color: #000; }
.sidebar p { margin: 0 0 .9rem; font-size: 15px; }
.sidebar p:last-child { margin-bottom: 0; }
.sidebar__phone { font-size: 19px; font-weight: 700; text-decoration: none; }

/* ---------------------------------------------------------------- home */

/* Ilustrácia na stránke Ponuka — vpravo, ako na pôvodnej stránke */
.entry .align-right { float: right; margin: 0 0 1rem 1.6rem; max-width: 300px; }
@media (max-width: 600px) { .entry .align-right { float: none; margin: 0 auto 1.4rem; } }

/* ---------------------------------------------------------------- category cards */

.cards {
  display: grid; gap: .8rem; margin-top: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}
.card {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  text-decoration: none; background: var(--green-dark);
}
.card img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .35s ease, opacity .2s ease; opacity: .9;
}
.card:hover img, .card:focus img { transform: scale(1.05); opacity: 1; }
.card__label {
  position: absolute; inset-inline: 0; bottom: 0; padding: 1.4rem .8rem .6rem;
  color: #fff; font-weight: 600; font-size: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, .85), transparent);
}

/* ---------------------------------------------------------------- gallery */

.gallery-heading { margin-top: 0; }
.gallery {
  display: grid; gap: .6rem;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}
@media (min-width: 700px) {
  /* 4 stĺpce v obsahovom stĺpci — rovnako ako pôvodná galéria vo WordPresse */
  .gallery { gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
.shot { margin: 0; }
.shot__link {
  display: block; overflow: hidden; border: 1px solid var(--line); background: var(--page);
}
.shot img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .3s ease; }
.shot__link:hover img, .shot__link:focus img { transform: scale(1.06); }
.shot figcaption {
  font-size: 13px; color: var(--muted); text-align: center;
  padding-top: .3rem; font-weight: 600; letter-spacing: .04em;
}

/* ---------------------------------------------------------------- CTA */

.cta { border-top: 3px solid var(--green-mid); background: #f7f8f5; }
.cta h2 { font-size: 23px; }
.cta p { margin: 0 0 .3rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }

/* ---------------------------------------------------------------- contact */

.contact-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0; }
.contact-grid {
  display: grid; gap: 1.2rem; margin-top: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.contact-card { border: 1px solid var(--line); padding: 1.2rem 1.3rem; }
.contact-card h2 { font-size: 17px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.contact-card p { margin: 0 0 .8rem; }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card__strong { font-size: 21px; font-weight: 700; text-decoration: none; }

/* ---------------------------------------------------------------- footer */

.site-info {
  background: var(--footer); color: #fff; font-size: 14px;
}
.site-info__inner { padding-block: 1.1rem; }
.site-info a { color: #fff; }
.site-info a:hover { color: #606060; }

/* ---------------------------------------------------------------- lightbox */

.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(16, 17, 19, .95); padding: 1rem;
  align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox__figure img {
  max-width: min(1200px, 100%); max-height: calc(100vh - 8rem);
  width: auto; margin-inline: auto;
}
.lightbox__caption { color: #d8dade; font-size: 14px; padding-top: .8rem; min-height: 1.4em; }
.lightbox__btn {
  position: absolute; background: rgba(255, 255, 255, .1); border: 0; color: #fff;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  font-size: 1.6rem; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .22); }
.lightbox__btn--close { top: 1rem; right: 1rem; font-size: 1.3rem; }
.lightbox__btn--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; top: 1.4rem; left: 1.4rem; color: #a9aeb4; font-size: 14px; }
body.has-lightbox { overflow: hidden; }

@media (max-width: 560px) {
  .lightbox__btn--prev { left: .4rem; }
  .lightbox__btn--next { right: .4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .main-nav, .cta, .lightbox, .nav-toggle, .sidebar, .header-call { display: none; }
  body { background: #fff; font-size: 12pt; }
  .box { box-shadow: none; }
}
