/* ================================================
   DFBiogas.sk – CSS redesign
   Čistý a moderný štýl, zelené akcenty
   ================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  color: #333;
  background: #f2f5f2;
  font-size: 16px;
  line-height: 1.7;
}

a { color: #2d7a3a; text-decoration: none; }
a:hover { text-decoration: underline; color: #1a4d25; }

/* ─── HEADER ─────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* Logo bar – white strip */
.header-logo-bar {
  background: #fff;
  border-bottom: 1px solid #e8ede8;
}

.header-logo-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-logo:hover { text-decoration: none; opacity: 0.88; }

.site-logo img, .site-logo svg {
  height: 44px;
  width: auto;
  flex-shrink: 0;
}

.site-logo-text {
  line-height: 1.25;
}

.site-logo-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.site-logo-sub {
  font-size: 0.73rem;
  color: #666;
  letter-spacing: 0.3px;
}

/* Nav bar – dark green strip */
.header-nav-bar {
  background: #1a4d25;
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  flex-wrap: wrap;
  gap: 6px;
}

/* Legacy site-title kept for backwards compat */
.site-title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  padding: 8px 0;
}

.site-title:hover { text-decoration: none; opacity: 0.9; }

/* ─── NAVIGATION ─────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

nav a {
  color: rgba(255,255,255,0.88);
  font-size: 0.855rem;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}

nav a:hover { background: rgba(255,255,255,0.15); color: #fff; text-decoration: none; }
nav a.active { background: rgba(255,255,255,0.2); color: #fff; font-weight: 600; }

/* Dropdown */
.nav-item { position: relative; }

.dropdown-toggle::after {
  content: ' ▾';
  font-size: 0.7rem;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #1f5c2e;
  border-radius: 6px;
  min-width: 210px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  z-index: 300;
  overflow: hidden;
}

.nav-item:hover .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 9px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.88);
  font-size: 0.87rem;
  border-radius: 0;
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ─── LANGUAGE SWITCHER ──────────────────────── */
/* Prepínač je na BIELEJ lište – tmavé farby */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 16px;
  border-left: 2px solid #e0e0e0;
  margin-left: 8px;
}

.lang-btn {
  background: transparent;
  border: 1px solid #ccc;
  color: #444;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  transition: all 0.18s;
  line-height: 1;
}

.lang-btn:hover {
  color: #1a4d25;
  border-color: #2d7a3a;
  background: #f0f8f0;
}

.lang-btn.active {
  color: #fff;
  border-color: #1a4d25;
  background: #1a4d25;
}

/* ─── HERO ───────────────────────────────────── */
.hero {
  width: 100%;
  height: 260px;
  background-image: url('https://dfbiogas.sk/wp-content/uploads/2014/02/biogas01-1140x358.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.45) 0%, rgba(0,0,0,.1) 70%);
}

.hero-text {
  position: absolute;
  bottom: 24px;
  left: 32px;
  z-index: 2;
  color: #fff;
}

.hero-text h1 {
  font-size: 1.9rem;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0,0,0,.6);
  line-height: 1.2;
}

.hero-text p {
  font-size: 1rem;
  margin-top: 6px;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  opacity: 0.9;
}

/* ─── PAGE LAYOUT ────────────────────────────── */
.page-outer {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 20px 32px;
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 24px;
  align-items: start;
}

/* ─── CONTENT CARD ───────────────────────────── */
.content-card {
  background: #fff;
  border-radius: 10px;
  padding: 32px 36px;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
}

.content-card h1 {
  font-size: 1.6rem;
  color: #1a4d25;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #d4edda;
}

.content-card h2 {
  font-size: 1.15rem;
  color: #2d7a3a;
  margin: 22px 0 10px;
}

.content-card h3 {
  font-size: 1rem;
  color: #2d7a3a;
  margin: 16px 0 8px;
}

.content-card p { margin-bottom: 14px; color: #444; }
.content-card p:last-child { margin-bottom: 0; }

.content-card ul, .content-card ol {
  padding-left: 22px;
  margin-bottom: 14px;
}

.content-card li { margin-bottom: 6px; }

.content-card strong { color: #1a4d25; }

.content-card .contact-block {
  background: #f8fdf8;
  border: 1px solid #d4edda;
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 20px;
}

.content-card .contact-block h2 {
  margin-top: 0;
  font-size: 1.05rem;
}

.contact-detail { font-size: 0.95rem; margin-bottom: 5px; }

/* Links list */
.link-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.link-item:last-child { border-bottom: none; }

.link-icon {
  width: 32px;
  height: 32px;
  background: #e8f5eb;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

/* Brochure downloads */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.download-card {
  border: 1px solid #d4edda;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  background: #f8fdf8;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.download-card:hover {
  border-color: #2d7a3a;
  box-shadow: 0 2px 8px rgba(45,122,58,.12);
  text-decoration: none;
}

.download-card .icon { font-size: 2rem; margin-bottom: 8px; }
.download-card .label { font-size: 0.9rem; font-weight: 600; color: #1a4d25; }
.download-card .sublabel { font-size: 0.78rem; color: #888; margin-top: 3px; }

/* ─── SIDEBAR ────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 18px; }

.sidebar-widget {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
}

.sidebar-widget h3 {
  font-size: 0.82rem;
  font-weight: 800;
  color: #1a4d25;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #d4edda;
}

.sidebar-widget ul { list-style: none; }

.sidebar-widget ul li a {
  display: block;
  padding: 5px 0;
  font-size: 0.88rem;
  color: #2d7a3a;
  border-bottom: 1px solid #f5f5f5;
  transition: color 0.15s;
}

.sidebar-widget ul li a:hover {
  color: #1a4d25;
  font-weight: 600;
  text-decoration: none;
}

.sidebar-widget ul li:last-child a { border-bottom: none; }

/* Annual reports grid */
.annual-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.annual-grid a {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2d7a3a;
  padding: 5px 2px;
  border: 1px solid #d4edda;
  border-radius: 5px;
  background: #f8fdf8;
  transition: all 0.15s;
}

.annual-grid a:hover {
  background: #2d7a3a;
  color: #fff;
  border-color: #2d7a3a;
  text-decoration: none;
}

/* ─── FOOTER ─────────────────────────────────── */
footer {
  background: #fff;
  border-top: 3px solid #2d7a3a;
  margin-top: 16px;
}

.footer-banner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 20px;
  text-align: center;
}

.footer-banner img {
  max-width: 900px;
  width: 100%;
  height: auto;
}

.footer-bottom {
  background: #1a4d25;
  color: rgba(255,255,255,.65);
  text-align: center;
  padding: 10px 20px;
  font-size: 0.8rem;
}

.footer-bottom a { color: rgba(255,255,255,.8); }

/* ─── COOKIE BANNER ──────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #163d1e;
  color: #fff;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9999;
  box-shadow: 0 -3px 12px rgba(0,0,0,.25);
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 0.87rem;
  flex: 1;
  min-width: 200px;
  line-height: 1.5;
}

.cookie-text a { color: #6fcf82; }
.cookie-text a:hover { color: #a8e6b8; }

.cookie-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-accept {
  background: #2d7a3a;
  color: #fff;
  border: 2px solid #2d7a3a;
  padding: 8px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.87rem;
  font-weight: 700;
  transition: background 0.18s;
}

.btn-accept:hover { background: #1a4d25; border-color: #1a4d25; }

.btn-reject {
  background: transparent;
  color: rgba(255,255,255,.75);
  border: 2px solid rgba(255,255,255,.35);
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.87rem;
  transition: all 0.18s;
}

.btn-reject:hover { border-color: rgba(255,255,255,.7); color: #fff; }

/* ─── PAGE HEADER (inner pages) ──────────────── */
.page-hero {
  background: linear-gradient(135deg, #1a4d25 0%, #2d7a3a 100%);
  padding: 28px 20px;
}

.page-hero-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.page-hero h1 {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
}

.page-hero .breadcrumb {
  color: rgba(255,255,255,.65);
  font-size: 0.85rem;
  margin-top: 4px;
}

.page-hero .breadcrumb a { color: rgba(255,255,255,.75); }

/* ─── GALLERY ────────────────────────────────── */
.gallery-section { margin-bottom: 32px; }

.gallery-section h2 {
  font-size: 1.15rem;
  color: #2d7a3a;
  margin: 22px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #d4edda;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: 5px;
  border: 1px solid #e0ebe0;
  line-height: 0;
}

.gallery-grid a:hover { border-color: #2d7a3a; }

.gallery-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s, transform 0.2s;
}

.gallery-grid a:hover img { opacity: 0.88; transform: scale(1.04); }

/* ─── EVENTS ─────────────────────────────────── */
.event-card {
  border: 1px solid #d4edda;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 24px;
  background: #f8fdf8;
}

.event-card h2 {
  color: #1a4d25;
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 6px;
}

.event-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 12px;
}

.event-meta strong { color: #2d7a3a; }

.event-downloads { margin-top: 14px; }

.event-downloads h3 {
  font-size: 0.9rem;
  color: #1a4d25;
  margin-bottom: 8px;
  margin-top: 0;
}

.event-downloads ul { list-style: none; padding: 0; margin: 0; }

.event-downloads li {
  padding: 4px 0;
  border-bottom: 1px solid #e8f0e8;
  font-size: 0.9rem;
}

.event-downloads li:last-child { border-bottom: none; }

.event-downloads a::before { content: "📄 "; font-size: 0.85rem; }
.event-downloads a.ppt::before { content: "📊 "; }

/* ─── UTILITY ────────────────────────────────── */
.mt-0 { margin-top: 0 !important; }
.section-label {
  display: inline-block;
  background: #e8f5eb;
  color: #1a4d25;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 9px;
  border-radius: 3px;
  margin-bottom: 10px;
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 900px) {
  .page-outer {
    grid-template-columns: 1fr;
  }

  .sidebar { order: -1; }
  .annual-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 640px) {
  .header-inner { gap: 4px; }
  nav a { padding: 5px 7px; font-size: 0.8rem; }
  .hero { height: 180px; }
  .hero-text h1 { font-size: 1.3rem; }
  .content-card { padding: 20px 18px; }
  .lang-switcher { border-left: none; padding-left: 0; margin-left: 0; }
  .annual-grid { grid-template-columns: repeat(4, 1fr); }
  .site-logo-name { font-size: 1.1rem; }
  .site-logo img, .site-logo svg { height: 36px; }
  .header-logo-inner { padding: 8px 14px; }
}
