/* ── Reset & Base ── */

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

:root {
  --black: #111111;
  --white: #ffffff;
  --gray-light: #f3f3f3;
  --gray-mid: #dddddd;
  --gray-text: #555555;
  --accent: #111111;
  --font: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --max-w: 1100px;
  --nav-h: 68px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

/* ── Navbar ── */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
  height: var(--nav-h);
}

.navbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar-logo img {
  width: 85px;
  height: auto;
  object-fit: contain;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: row;
}

.navbar-nav a, .nav-dropdown > span {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background 0.15s;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.navbar-nav a:hover, .nav-dropdown:hover > span {
  background: var(--gray-light);
}

.navbar-nav a.active {
  background: var(--black);
  color: var(--white);
  border-radius: 4px;
}

/* Dropdown */

.nav-dropdown {
  position: relative;
}

.nav-dropdown > span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown > span::after {
  content: '▾';
  font-size: 0.75rem;
  opacity: 0.6;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 6px;
  min-width: 160px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  z-index: 10;
}

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

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.875rem;
  border-radius: 0;
}

.dropdown-menu a:hover {
  background: var(--gray-light);
}

/* Hamburger */

.navbar-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.navbar-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.2s;
}

/* Mobile nav */

.navbar-mobile {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
  padding: 16px 24px 24px;
  gap: 4px;
  z-index: 99;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.navbar-mobile.open {
  display: flex;
}

.navbar-mobile a {
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 6px;
}

.navbar-mobile a:hover {
  background: var(--gray-light);
}

.mobile-group-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-text);
  padding: 10px 12px 4px;
}

.mobile-sub a {
  padding-left: 28px;
  font-weight: 400;
}

@media (max-width: 768px) {
  .navbar-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .navbar-burger {
    display: flex;
  }
}

/* ── Footer ── */

footer {
  background: var(--black);
  color: rgba(255,255,255,0.85);
  padding: 48px 24px;
  margin-top: 80px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

footer h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}

footer p, footer a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
}

footer a:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Page wrapper ── */

.page-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 24px;
}

/* ── Hero / Page header ── */

.page-hero {
  padding: 56px 24px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--gray-text);
  margin-top: 14px;
  max-width: 640px;
}

/* ── Gallery grid ── */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  border-radius: 2px;
}

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

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Lightbox ── */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  width: 48px;
  height: 64px;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,0.2);
}

/* ── Homepage ── */

.home-quote {
  background: var(--gray-light);
  padding: 56px 24px;
  text-align: center;
}

.home-quote blockquote {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-style: italic;
  line-height: 1.55;
  color: #222;
}

.home-quote cite {
  display: block;
  margin-top: 16px;
  font-size: 0.9rem;
  font-style: normal;
  color: var(--gray-text);
  font-weight: 600;
}

.home-intro {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 24px;
}

.home-intro p {
  font-size: 1.05rem;
  max-width: 720px;
  color: #333;
  line-height: 1.75;
}

.home-sections {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.home-section-block {
}

.home-section-block h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.home-section-block .section-meta {
  font-size: 0.9rem;
  color: var(--gray-text);
  margin-bottom: 20px;
}

.home-section-block .section-meta a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-section-block .section-meta a:hover {
  color: var(--black);
}

.home-gallery-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.home-gallery-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
  transition: opacity 0.2s;
}

.home-gallery-row img:hover {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .home-gallery-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

/* ── About section ── */

.about-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  margin-top: 48px;
}

.about-section h2:first-child {
  margin-top: 0;
}

.timeline {
  position: relative;
  padding-left: 56px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-mid);
}

.timeline-item {
  position: relative;
  margin-bottom: 14px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-icon {
  position: absolute;
  left: -44px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.timeline-icon::after {
  content: '✎';
  color: #fff;
  font-size: 16px;
  line-height: 1;
}

.timeline-card {
  background: var(--gray-light);
  border-radius: 8px;
  padding: 16px 20px;
}

.timeline-card p {
  font-size: 0.975rem;
  font-weight: 500;
  color: var(--black);
  line-height: 1.4;
}

.timeline-card span {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-text);
  margin-top: 4px;
}

.about-section ul {
  list-style: disc;
  padding-left: 22px;
}

.about-section ul li {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 6px;
  color: #222;
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 32px;
}

.about-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 2px;
}

@media (max-width: 700px) {
  .about-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Sub-pages in Maľba ── */

.subpage-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.subpage-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 20px;
  border: 2px solid var(--black);
  border-radius: 100px;
  transition: background 0.15s, color 0.15s;
}

.subpage-nav a:hover, .subpage-nav a.active {
  background: var(--black);
  color: var(--white);
}

/* ── Contact page ── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
}

.contact-item label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-text);
}

.contact-item a, .contact-item span {
  font-size: 1rem;
  font-weight: 500;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-photo img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

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

/* ── Utility ── */

.section-divider {
  border: none;
  border-top: 1px solid var(--gray-mid);
  margin: 48px 0;
}

