/* HendiLife — page-shell + animations + shared interactive states.
   Brand tokens & components live in brand.css. */

html, body { margin: 0; padding: 0; }
body { font-family: var(--font-body); color: var(--hl-ink); background: var(--hl-paper); }

.hl-page {
  width: 100%;
  margin: 0 auto;
  background: var(--hl-paper);
  color: var(--hl-ink);
  font-family: var(--font-body);
}

/* Sticky nav */
.hl-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 80px;
  border-bottom: 1px solid var(--hl-mist);
  background: rgba(251, 250, 253, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.hl-nav__logo { display: flex; align-items: center; }
.hl-nav__logo img { object-fit: fill; width: 213px; height: 60px; }
.hl-nav__links { display: flex; gap: 32px; }
.hl-nav__link {
  font-size: 15;
  font-weight: 500;
  color: var(--hl-graphite);
  text-decoration: none;
  position: relative;
  transition: color 200ms ease;
}
.hl-nav__link.is-active { color: var(--hl-purple); }
.hl-nav__link.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--hl-purple);
  border-radius: 2px;
}

/* Hamburger button + mobile dropdown — hidden on desktop */
.hl-nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
}
.hl-nav__burger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--hl-ink);
  border-radius: 2px;
  transition: transform 220ms ease, opacity 180ms ease, top 220ms ease;
}
.hl-nav__burger span:nth-child(1) { top: 14px; }
.hl-nav__burger span:nth-child(2) { top: 21px; }
.hl-nav__burger span:nth-child(3) { top: 28px; }
.hl-nav__burger[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
.hl-nav__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hl-nav__burger[aria-expanded="true"] span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.hl-nav__mobile { display: none; }

/* Mission strip marquee (was inline @keyframes in JSX) */
@keyframes hl-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}
.hl-marquee {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 96px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  animation: hl-marquee 80s linear infinite;
  width: max-content;
}
.hl-marquee__hand {
  color: var(--hl-yellow);
  font-family: var(--font-hand);
  font-style: normal;
  font-size: 112px;
  font-weight: 600;
}
.hl-marquee__sep {
  color: var(--hl-yellow);
  opacity: 0.5;
  align-self: center;
  font-family: var(--font-body);
  font-style: normal;
}
.hl-marquee__sep--dot { font-size: 32px; }
.hl-marquee__sep--star { font-size: 24px; }

/* Catalog card hover (was inline JSX state) */
.catalog-card {
  background: var(--hl-white);
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid var(--hl-mist);
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 16px -8px rgba(26, 14, 46, 0.06);
}
.catalog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -25px rgba(26, 14, 46, 0.25);
  border-color: var(--hl-purple-soft);
}
.catalog-card__photo {
  height: 280px;
  width: 100%;
  object-fit: cover;
  background: var(--hl-purple-wash);
  display: block;
}
.catalog-card__detail-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--hl-slate);
  transition: color .2s, transform .2s;
}
.catalog-card:hover .catalog-card__detail-arrow {
  color: var(--hl-purple);
  transform: translateX(4px);
}

/* Prev/Next nav cards */
.nav-card {
  background: var(--hl-white);
  border-radius: 24px;
  padding: 32px;
  cursor: pointer;
  border: 1.5px solid var(--hl-mist);
  transition: transform .2s, border-color .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.nav-card:hover {
  transform: translateY(-3px);
  border-color: var(--hl-purple-soft);
  box-shadow: 0 20px 40px -20px rgba(26, 14, 46, 0.2);
}

/* Address card map preview hover (was inline <style> in JSX) */
.hl-map-link {
  background: var(--hl-purple-wash);
  border-radius: 14px;
  height: 140px;
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease;
  border: 1.5px solid rgba(67, 11, 141, 0.12);
}
.hl-map-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -16px rgba(67, 11, 141, 0.45);
}
.hl-map-cta {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: var(--hl-ink);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 220ms ease, transform 220ms ease;
}
.hl-map-link:hover .hl-map-cta {
  opacity: 1;
  transform: translateY(0);
}

/* Hero illustration circles (replacing PhotoBlob upload slots) */
.hero-illustration {
  position: relative;
  width: 560px;
  height: 560px;
}
.hero-illustration__circle {
  position: absolute;
  overflow: hidden;
  display: block;
}
.hero-illustration__circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-illustration__circle--left {
  top: 40px; left: 20px;
  width: 300px; height: 300px;
  border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%;
  box-shadow: 0 30px 80px -30px rgba(120, 60, 200, 0.5);
  background: var(--hl-purple);
}
.hero-illustration__circle--right {
  top: 180px; right: 10px;
  width: 280px; height: 280px;
  border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%;
  box-shadow: 0 30px 80px -30px rgba(245, 216, 0, 0.5);
  background: var(--hl-yellow);
}

/* Detail page galleries */
.detail-gallery {
  padding: 0 80px 80px;
}
.detail-gallery__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}
.detail-gallery__simple {
  display: flex;
  justify-content: center;
}
.detail-gallery img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  border-radius: 32px;
  display: block;
  background: var(--hl-purple-wash);
}
.detail-gallery__simple img {
  max-width: calc((100% - 18px) * 1.4 / 2.4);
}

/* Mobile gallery — keep heights reasonable on phones */
@media (max-width: 720px) {
  /* Hero — drop the right-side circle and yellow blob; recenter the left one */
  .hero-illustration {
    width: 100%;
    height: clamp(240px, 70vw, 360px);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-illustration__circle--left {
    position: relative;
    top: 0; left: 0;
    width: clamp(220px, 65vw, 320px);
    height: clamp(220px, 65vw, 320px);
  }
  .hero-illustration__circle--right { display: none !important; }
  .hero-blob-yellow { display: none !important; }

  /* Mobile nav — fixed, with hamburger replacing the inline links/CTA */
  .hl-nav {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    padding: 12px 22px !important;
    background: rgba(251, 250, 253, 0.96);
  }
  .hl-nav__logo img { width: auto !important; height: 38px !important; }
  .hl-nav__links { display: none !important; }
  .hl-nav__cta { display: none !important; }
  .hl-nav__burger { display: block; }

  .hl-nav__mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--hl-white);
    padding: 16px 22px 22px;
    border-bottom: 1px solid var(--hl-mist);
    box-shadow: 0 16px 32px -16px rgba(26, 14, 46, 0.18);
    flex-direction: column;
    gap: 14px;
  }
  .hl-nav[data-open="true"] .hl-nav__mobile { display: flex; }
  .hl-nav__mobile .hl-nav__link {
    font-size: 18px;
    font-weight: 600;
    color: var(--hl-ink);
    padding: 8px 0;
  }
  .hl-nav__mobile .hl-btn {
    margin-top: 8px;
    width: 100%;
    justify-content: center;
  }

  /* Reserve space for the fixed nav. Combined with the section's own
     top padding (~64px on mobile), this gives ~27px of breathing room
     between the nav bottom and the first content on index.html and
     prvky.html's catalog view. */
  body { padding-top: 32px; }

  /* Detail views start with a thin breadcrumb div (not a section), so
     they need extra top spacing to clear the fixed nav. */
  .detail-view { padding-top: 32px; }

  .hl-marquee { font-size: 56px; gap: 36px; }
  .hl-marquee__hand { font-size: 64px; }

  .detail-gallery { padding: 0 22px 48px; }
  .detail-gallery__grid { grid-template-columns: 1fr !important; gap: 14px; }
  .detail-gallery img { height: clamp(220px, 70vw, 420px); border-radius: 22px; }
  .detail-gallery__simple img { max-width: 100%; }

  .catalog-card__photo { height: clamp(200px, 55vw, 280px); }
}

/* Hide-by-default state for prvky catalog/detail (toggled by JS) */
.is-hidden { display: none !important; }
