/* =============================================
   ZABTECH.CZ — Hlavní stylesheet
   ============================================= */

:root {
  --red:    #c8391a;
  --dark:   #1a1a1a;
  --mid:    #2d2d2d;
  --light:  #f5f5f5;
  --white:  #ffffff;
  --border: #ddd;
  --text:   #333;
  --muted:  #666;
  --accent: #e8a020;
  --header-bg: #2d2d2d;
  --subnav-bg: #3d3d3d;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', Arial, sans-serif;
  background: var(--light);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}

a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--dark); text-decoration: underline; }

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

.container { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* ── HEADER ─────────────────────────────── */
header {
  background: var(--header-bg);
  border-bottom: 3px solid var(--red);
  position: sticky; top: 0; z-index: 200;
}
.header-inner {
  max-width: 1060px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo-wrap { display: flex; align-items: center; }
.logo-img { height: 52px; width: auto; }

nav { display: flex; gap: 4px; }
nav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; font-size: .9rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: #ccc; padding: .4rem .9rem; border-radius: 3px;
  transition: background .2s, color .2s; text-decoration: none;
}
nav a:hover, nav a.active { background: var(--red); color: #fff; text-decoration: none; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: #ccc; border-radius: 2px; transition: .3s; }

/* ── SUBNAV ─────────────────────────────── */
.subnav-bar {
  background: var(--subnav-bg);
  border-bottom: 2px solid #555;
}
.subnav-inner {
  max-width: 1060px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 44px; flex-wrap: wrap; gap: .5rem; padding-top: .4rem; padding-bottom: .4rem;
}
.subnav-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem; font-weight: 600; color: #bbb;
  letter-spacing: .05em; text-transform: uppercase;
}
.subnav-links { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }

.subnav-links > a, .subnav-group > a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .85rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: #ccc;
  padding: .3rem .7rem; border-radius: 3px;
  transition: background .2s, color .2s; text-decoration: none; white-space: nowrap;
}
.subnav-links > a:hover, .subnav-group > a:hover { background: var(--red); color: #fff; text-decoration: none; }

.subnav-group { position: relative; }
.subnav-dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: #2a2a2a; border: 1px solid #555; border-radius: 3px;
  min-width: 180px; z-index: 300; padding: .3rem 0;
}
.subnav-group:hover .subnav-dropdown { display: block; }
.subnav-dropdown a {
  display: block; font-family: 'Barlow Condensed', sans-serif;
  font-size: .85rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: #ccc;
  padding: .4rem 1rem; transition: background .15s; text-decoration: none;
}
.subnav-dropdown a:hover { background: var(--red); color: #fff; text-decoration: none; }

/* ── HERO ───────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #2a0a00 0%, #1a1a1a 70%);
  padding: 3.5rem 20px 3rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 50px,
    rgba(200,57,26,.04) 50px, rgba(200,57,26,.04) 51px
  );
}
.hero-content { position: relative; max-width: 700px; margin: 0 auto; }
.hero-tag {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .75rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--accent); padding: .2rem .7rem;
  border-radius: 2px; margin-bottom: 1rem;
}
.hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800; color: #fff;
  letter-spacing: .03em; text-transform: uppercase; margin-bottom: .75rem;
}
.hero p { color: #aaa; font-size: 1.05rem; }

/* ── TLAČÍTKA ───────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: .9rem; letter-spacing: .08em;
  text-transform: uppercase; padding: .55rem 1.4rem; border-radius: 3px;
  transition: transform .15s, box-shadow .15s; text-decoration: none;
  margin-top: .75rem;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #a82d15; color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(200,57,26,.4); }
.btn-outline { border: 2px solid var(--red); color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; text-decoration: none; }

/* ── FEATURED BOXY ──────────────────────── */
.featured-boxes { background: #fff; padding: 3rem 0; }
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.featured-box {
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .2s;
}
.featured-box:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); }
.featured-box > img { width: 100%; height: 200px; object-fit: cover; }
.featured-box-body { padding: 1.25rem 1.5rem 1.5rem; }
.featured-box-body h2 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.25rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin-bottom: .5rem; }
.featured-box-body h2 a { color: var(--dark); text-decoration: none; }
.featured-box-body h2 a:hover { color: var(--red); }
.featured-box-body p { color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* ── AKTUALITY ──────────────────────────── */
.aktuality { background: var(--light); padding: 3rem 0; }
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; margin-bottom: 1.5rem; color: var(--dark);
  border-left: 4px solid var(--red); padding-left: .75rem;
}
.aktuality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.aktuality-item {
  background: #fff; border: 1px solid var(--border);
  border-radius: 4px; padding: 1.5rem;
}
.aktuality-item h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; margin-bottom: .75rem; }
.aktuality-item h3 a { color: var(--dark); }
.aktuality-item h3 a:hover { color: var(--red); }
.aktuality-item p { color: var(--muted); font-size: .9rem; margin-bottom: .75rem; }
.aktuality-img { width: 100%; height: 160px; object-fit: cover; border-radius: 3px; margin-bottom: .75rem; }

/* ── STRÁNKA OBSAH ──────────────────────── */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  max-width: 1060px; margin: 0 auto; padding: 2.5rem 20px;
  align-items: start;
}
.page-content { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 2rem; }
.page-content h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .03em; margin-bottom: 1.25rem;
  border-left: 4px solid var(--red); padding-left: .75rem;
}
.page-content h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; margin: 1.5rem 0 .75rem; color: var(--red);
}
.page-content p { margin-bottom: 1rem; color: var(--text); }
.page-content ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.page-content ul li { margin-bottom: .35rem; color: var(--text); }
.page-content strong { color: var(--dark); }
.page-content img { max-width: 100%; border-radius: 4px; margin: 1rem 0; }
.page-content .img-row { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1rem 0; }
.page-content .img-row img { width: calc(50% - .5rem); height: 220px; object-fit: cover; border-radius: 4px; }

/* ── SIDEBAR ────────────────────────────── */
.sidebar {}
.sidebar-widget {
  background: #fff; border: 1px solid var(--border);
  border-top: 3px solid var(--red); border-radius: 4px;
  padding: 1.25rem; margin-bottom: 1.5rem;
}
.sidebar-widget h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: .75rem; color: var(--dark);
}
.sidebar-widget ul { list-style: none; padding: 0; }
.sidebar-widget ul li { border-bottom: 1px solid var(--border); padding: .35rem 0; }
.sidebar-widget ul li:last-child { border: none; }
.sidebar-widget ul li a { font-size: .88rem; color: var(--text); text-decoration: none; }
.sidebar-widget ul li a:hover { color: var(--red); }
.sidebar-widget p { font-size: .88rem; color: var(--muted); margin-bottom: .5rem; }
.sidebar-widget p:last-child { margin: 0; }

/* ── INFO BOX ───────────────────────────── */
.info-box {
  background: #fff8f0; border: 1px solid #f5d5a0;
  border-left: 4px solid var(--accent);
  border-radius: 4px; padding: 1.25rem; margin: 1.5rem 0;
}
.info-box p { color: var(--text); font-size: .93rem; margin: 0; }

/* ── KONTAKT TABULKA ────────────────────── */
.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (max-width: 580px) { .kontakt-grid { grid-template-columns: 1fr; } }
.kontakt-box { background: var(--light); border: 1px solid var(--border); border-radius: 4px; padding: 1.25rem; }
.kontakt-box h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 1rem; font-weight: 700; text-transform: uppercase; margin-bottom: .75rem; color: var(--red); }
.kontakt-row { display: flex; gap: .5rem; margin-bottom: .5rem; font-size: .9rem; }
.kontakt-label { font-weight: 600; color: var(--dark); min-width: 80px; }

/* ── CENÍK OBRÁZKY ──────────────────────── */
.cenik-imgs { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1rem 0; }
.cenik-imgs img { border: 1px solid var(--border); border-radius: 4px; cursor: pointer; transition: box-shadow .2s; }
.cenik-imgs img:hover { box-shadow: 0 4px 16px rgba(0,0,0,.2); }

/* ── FOOTER ─────────────────────────────── */
footer {
  background: var(--dark);
  color: #aaa;
  margin-top: 2rem;
}
.footer-inner {
  max-width: 1060px; margin: 0 auto; padding: 2.5rem 20px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem;
}
.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .95rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: #fff; margin-bottom: .75rem;
  border-bottom: 1px solid #444; padding-bottom: .4rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: .25rem; }
.footer-col ul li a { color: #aaa; font-size: .85rem; text-decoration: none; }
.footer-col ul li a:hover { color: var(--red); }
.footer-col p { font-size: .88rem; margin-bottom: .4rem; }
.footer-col a { color: #aaa; }
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid #444;
  text-align: center; padding: 1rem 20px;
  font-size: .8rem; color: #666;
}

/* ── MOBILE ─────────────────────────────── */
@media (max-width: 768px) {
  nav {
    display: none; flex-direction: column;
    position: absolute; top: 73px; left: 0; right: 0;
    background: var(--header-bg); border-bottom: 2px solid var(--red);
    padding: .75rem 1rem; gap: .25rem; z-index: 200;
  }
  nav.open { display: flex; }
  .hamburger { display: flex; }
  .subnav-title { display: none; }
  .page-layout { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .aktuality-grid { grid-template-columns: 1fr; }
  .page-content .img-row img { width: 100%; }
}
