:root {
  --bg: #0b0b0c;
  --surface: #121214;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);
  --text: #f5f5f5;
  --muted: rgba(255,255,255,0.68);
  --muted-2: rgba(255,255,255,0.45);
  --radius-xl: 24px;
  --radius-2xl: 32px;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-user-select: none;
  user-select: none;
}

body.lightbox-open {
  overflow: hidden;
}

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

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

.site-navbar {
  backdrop-filter: blur(14px);
  background: rgba(11, 11, 12, 0.78);
  border-bottom: 1px solid var(--line);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.site-navbar.scrolled {
  background: rgba(11, 11, 12, 0.94);
  border-bottom-color: var(--line-strong);
  box-shadow: 0 10px 40px rgba(0,0,0,.22);
}

.navbar-brand {
  letter-spacing: .18em;
  font-weight: 700;
  font-size: 1rem;
}

.nav-link {
  color: var(--muted) !important;
  letter-spacing: .12em;
  font-size: .86rem;
  transition: color .2s ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: #fff !important;
}

.page-hero {
  position: relative;
}

.hero-home {
  padding: 7rem 0 3rem;
}

.page-header-sm,
.wildlife-hero {
  padding: 9rem 0 2rem;
}

.wildlife-hero {
  background: linear-gradient(to bottom, rgba(255,255,255,.02), transparent);
}

.hero-offset,
.hero-offset-sm {
  padding-top: 1rem;
}

.hero-offset {
  padding-bottom: 2rem;
}

.eyebrow {
  display: inline-block;
  padding: .45rem .95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .72rem;
}

.display-title {
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: .98;
  font-weight: 800;
  letter-spacing: -.04em;
}

.page-title,
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -.03em;
}

.lead-custom,
.section-copy {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.9;
  max-width: 45rem;
}

.btn-main,
.btn-ghost {
  border-radius: 18px;
  padding: .9rem 1.35rem;
  font-weight: 600;
  letter-spacing: .08em;
  font-size: .88rem;
}

.btn-main {
  background: #fff;
  color: #000;
  border: 0;
}

.btn-main:hover {
  background: #e9e9e9;
  color: #000;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: #fff;
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(255,255,255,.05);
}

.photo-card,
.gallery-tile,
.category-card,
.glass-card,
.about-card,
.gear-card,
.contact-card,
.feature-wrap,
.about-wrap,
.summary-card,
.peakera-panel,
.gallery-section {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.photo-card,
.category-card,
.gallery-tile {
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.photo-card:hover,
.category-card:hover,
.gallery-tile:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.photo-thumb {
  height: 320px;
  overflow: hidden;
}

.photo-thumb img,
.gallery-tile img,
.feature-image,
.about-image,
.about-me-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-tile {
  position: relative;
  cursor: zoom-in;
  min-height: 0;
  height: auto;
  aspect-ratio: 1 / 1;
}

.gallery-info,
.photo-meta,
.card-body-custom {
  padding: 1rem 1.1rem;
}

.count,
.meta-label,
.section-label {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  color: var(--muted-2);
}

.gallery-info {
  position: absolute;
  inset: auto 0 0;
  background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0));
}

.section-block {
  padding: 4rem 0;
}

.category-card,
.glass-card,
.about-card {
  padding: 1.7rem;
  height: 100%;
}

.feature-wrap,
.about-wrap {
  border-radius: var(--radius-2xl);
  background: var(--surface);
  height: 100%;
}

.feature-image {
  min-height: 360px;
  max-height: 560px;
}

.about-image {
  min-height: 420px;
}

.about-card.about-card--image {
  padding: 0;
  height: 500px;
}

.stack-list {
  display: grid;
  gap: .9rem;
}

.gear-card,
.contact-card {
  border-radius: 18px;
  padding: 1rem 1.1rem;
  background: rgba(0,0,0,.22);
}

.category-card p,
.gear-card p,
.about-card p,
.contact-card p,
.summary-card p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 0;
}

.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
}

.protected-image,
.gallery-tile img,
.feature-image,
.about-image {
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Navbar layout */
.site-navbar .container {
  position: relative;
}

.navbar-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.site-navbar .navbar-toggler {
  padding: .35rem .2rem;
  z-index: 4;
}

.site-navbar .navbar-collapse {
  flex-basis: 100%;
}

.nav-shell {
  width: 100%;
}

.nav-right {
  margin-left: 0;
}

@media (min-width: 992px) {
  .navbar-wrap {
    display: block;
  }

  .site-navbar .navbar-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    margin: 0 !important;
    padding: 0;
  }

  .site-navbar .navbar-toggler {
    display: none;
  }

  .site-navbar .navbar-collapse {
    display: block !important;
  }

  .nav-shell {
    min-height: 76px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
  }

  .nav-shell > .navbar-nav {
    display: flex;
    flex: 1 1 0;
    flex-direction: row;
    align-items: center;
    gap: clamp(.35rem, .9vw, 1.2rem);
    margin: 0;
    min-width: 0;
  }

  .nav-shell > .navbar-nav:first-child {
    justify-content: flex-end;
    padding-right: clamp(5.75rem, 9vw, 8.5rem);
  }

  .nav-shell > .navbar-nav:last-child {
    justify-content: flex-start;
    padding-left: clamp(5.75rem, 9vw, 8.5rem);
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .nav-shell > .navbar-nav:first-child {
    padding-right: 5.25rem;
  }

  .nav-shell > .navbar-nav:last-child {
    padding-left: 5.25rem;
  }
}

/* Gallery blocks */
.summary-card {
  padding: 1.35rem 1.4rem;
  max-width: 42rem;
}

.section-stack {
  display: grid;
  gap: 2rem;
}

.gallery-section,
.peakera-panel {
  padding: 1.5rem;
}

.gallery-section-head {
  margin-bottom: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-grid > div,
.gallery-grid .span-4 {
  grid-column: span 4;
}

.gallery-grid .span-6 {
  grid-column: span 6;
}

.gallery-grid .span-8 {
  grid-column: span 8;
}

.gallery-grid-4 > div {
  grid-column: span 3;
}

.gallery-tile::after {
  content: "Megnyitás";
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: .45rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.38);
  color: rgba(255,255,255,.92);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
  z-index: 2;
}

.gallery-tile:hover::after,
.gallery-tile:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

/* Homepage cards */
.hero-grid {
  position: relative;
  align-items: stretch;
}

.hero-grid .col-6 {
  display: flex;
}

.hero-grid .photo-card {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 28px;
  border-color: rgba(255,255,255,0.1);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
}

.hero-grid .photo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,.03));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-grid .photo-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
}

.hero-grid .photo-thumb {
  height: auto;
  aspect-ratio: 4 / 5;
  background: rgba(255,255,255,.02);
}

.hero-grid .photo-thumb img {
  transition: transform .55s ease;
}

.hero-grid .photo-card:hover .photo-thumb img {
  transform: scale(1.04);
}

.hero-grid .photo-meta {
  padding: 1rem 1.1rem 1.15rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(7, 7, 8, .7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 2000;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
}

.lightbox__dialog {
  position: relative;
  width: min(1200px, 100%);
  max-height: calc(100vh - 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  width: 100%;
}

.lightbox__img {
  width: auto;
  height: auto;
  max-width: min(92vw, 1100px);
  max-height: calc(100vh - 10rem);
  border-radius: 22px;
  box-shadow: 0 30px 100px rgba(0,0,0,.45);
  object-fit: contain;
}

.lightbox__caption,
.lightbox__counter {
  color: rgba(255,255,255,.78);
  font-size: .88rem;
  letter-spacing: .04em;
}

.lightbox__counter {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  padding: .65rem .85rem;
  border-radius: 999px;
  background: rgba(0,0,0,.36);
  border: 1px solid rgba(255,255,255,.12);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.34);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  z-index: 2;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  transform: scale(1.05);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
}

.lightbox__close {
  top: 1.25rem;
  right: 1.25rem;
}

.lightbox__nav--prev {
  left: 1.25rem;
}

.lightbox__nav--next {
  right: 1.25rem;
}

/* Tablet */
@media (max-width: 991.98px) {
  .hero-home {
    padding-top: 6rem;
  }

  .nav-shell {
    padding-top: 1rem;
    padding-bottom: .75rem;
    gap: .5rem;
  }

  .navbar-brand {
    margin: .75rem 0;
  }

  .photo-thumb {
    height: 260px;
  }

  .navbar-wrap {
    flex-wrap: wrap;
    padding-top: .4rem;
    padding-bottom: .4rem;
  }

  .site-navbar .navbar-brand {
    order: 1;
    margin: 0 !important;
    font-size: .95rem;
    letter-spacing: .16em;
    max-width: calc(100% - 56px);
  }

  .site-navbar .navbar-toggler {
    order: 2;
    margin-left: auto;
  }

  .site-navbar .navbar-collapse {
    order: 3;
    width: 100%;
  }

  .nav-shell {
    padding: .8rem 0 .35rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: .6rem;
  }

  .nav-shell > .navbar-nav + .navbar-nav {
    margin-top: .2rem;
  }

  .nav-link {
    padding: .75rem 0 !important;
  }

  .gallery-grid > div,
  .gallery-grid .span-4,
  .gallery-grid .span-6,
  .gallery-grid .span-8,
  .gallery-grid-4 > div {
    grid-column: span 6;
  }

  .hero-grid .photo-card,
  .hero-grid .photo-card:hover {
    transform: none;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .hero-home,
  .page-header-sm,
  .wildlife-hero {
    padding-top: 5.5rem;
  }

  .section-block {
    padding: 2.8rem 0;
  }

  .gallery-grid {
    gap: .75rem;
  }

  .gallery-grid > div,
  .gallery-grid .span-4,
  .gallery-grid .span-6,
  .gallery-grid .span-8,
  .gallery-grid-4 > div {
    grid-column: span 6;
  }

  .gallery-section,
  .peakera-panel {
    padding: 1.15rem;
  }

  .gallery-tile,
  .feature-image,
  .about-image {
    min-height: 0;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .glass-card,
  .about-card,
  .category-card {
    padding: 1.35rem;
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox__dialog {
    max-height: calc(100vh - 2rem);
  }

  .lightbox__img {
    max-width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 9rem);
    border-radius: 18px;
  }

  .lightbox__close,
  .lightbox__nav {
    width: 44px;
    height: 44px;
  }

  .lightbox__close {
    top: .75rem;
    right: .75rem;
  }

  .lightbox__nav--prev {
    left: .75rem;
  }

  .lightbox__nav--next {
    right: .75rem;
  }

  .lightbox__counter {
    top: .75rem;
    left: .75rem;
    font-size: .8rem;
  }

  .hero-grid .photo-meta {
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: .35rem;
  }

  .hero-grid .photo-meta strong {
    font-size: .95rem;
    line-height: 1.25;
  }

  .hero-grid .photo-meta .meta-label {
    font-size: .65rem;
    letter-spacing: .16em;
    line-height: 1.2;
  }
}
