/* ============================================================
   नेपालमा बाँस — Landing section styles (index.html)
   ============================================================ */

/* Landing starts at the very top so the hero image shows
   behind the fixed, transparent navbar */
body.is-landing {
  padding-top: 0;
}

/* ---------- Buttons ---------- */
.btn--primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: 12px 24px;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}

.btn--primary:hover {
  background: var(--color-on-primary-fixed-variant);
}

/* ---------- Hero ---------- */
.landing-hero {
  background: var(--color-background);
  color: var(--color-ink);
}

.landing-hero__inner {
  display: grid;
  gap: 0;
  align-items: center;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}

/* ---------- Notice ticker (horizontal marquee) ---------- */
.notice {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-family: var(--font-ui);
  overflow: hidden;
}

.notice__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  background: var(--color-primary-container);
  color: var(--color-on-primary);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  padding: 10px 16px;
  white-space: nowrap;
}

.notice__badge .icon {
  width: 14px;
  height: 14px;
  font-size: 14px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.notice__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.notice__track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: notice-scroll 40s linear infinite;
}

/* Pause the marquee while hovering or when the user tabs to it */
.notice__viewport:hover .notice__track,
.notice__viewport:focus-within .notice__track {
  animation-play-state: paused;
}

@keyframes notice-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.notice__list {
  display: inline-flex;
  align-items: center;
}

.notice__item {
  display: inline-flex;
  align-items: center;
}

.notice__link {
  display: inline-block;
  padding: 10px 4px;
  font-size: var(--fs-body);
  line-height: 1.4;
  color: var(--color-on-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.notice__date {
  display: inline-block;
  margin-right: 10px;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--color-primary-fixed);
  white-space: nowrap;
}

.notice__link:hover {
  color: var(--color-primary-fixed);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice__sep {
  margin: 0 20px;
  color: var(--color-primary-fixed-dim);
  font-size: 12px;
}

.notice__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  background: var(--color-primary-fixed-dim);
  color: var(--color-primary);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  padding: 10px 16px;
  white-space: nowrap;
  transition: background var(--duration-fast) var(--ease-out);
}

.notice__more .icon {
  width: 14px;
  height: 14px;
  font-size: 14px;
}

.notice__more:hover {
  background: var(--color-primary-fixed);
}

@media (max-width: 767px) {
  .notice__more {
    display: none;
  }
}

/* ---------- Auto-scroll gallery ---------- */
.gallery {
  position: relative;
  overflow: hidden;
}

.gallery__viewport {
  overflow: hidden;
}

.gallery__track {
  display: flex;
  width: 100%;
  will-change: transform;
}

.gallery__slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 16 / 10;
}

.gallery__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: clamp(48px, 12vw, 120px) calc((100vw - min(var(--container-width), 100%)) / 2 + var(--margin-mobile)) 68px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0) 70%);
  color: #fff;
  text-align: left;
  pointer-events: none;
}

.gallery__title {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 1.2rem + 2.8vw, 4rem);
  line-height: var(--lh-tight);
  font-weight: 700;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.gallery__slogan {
  margin: 0;
  font-family: var(--font-ui);
  font-size: clamp(0.9rem, 0.75rem + 0.8vw, 1.25rem);
  line-height: var(--lh-body);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.gallery__nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(12px, 4vw, 48px);
  pointer-events: none;
}

.gallery__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(21, 66, 18, 0.55);
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  transition: background-color var(--duration-fast) var(--ease-out);
}

.gallery__arrow:hover {
  background: var(--color-primary);
}

.gallery__arrow:focus-visible {
  outline: 2px solid var(--color-primary-fixed);
  outline-offset: 2px;
}

.gallery__dots {
  position: absolute;
  inset-inline: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: auto;
}

.gallery__dot {
  width: 10px;  
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.gallery__dot.is-active {
  background: var(--color-primary-fixed);
  transform: scale(1.25);
}

.gallery__dot:focus-visible {
  outline: 2px solid var(--color-primary-fixed);
  outline-offset: 2px;
}

/* ---------- Mobile: hide gallery arrows, dots-only navigation ---------- */
@media (max-width: 767px) {
  .gallery__arrow {
    display: none;
  }
}

/* ---------- Responsive (≥768px) ---------- */
@media (min-width: 768px) {
  .main-grid {
    padding-inline: 40px;
  }

  .gallery__slide {
    height: min(78vh, 720px);
  }

  .gallery__overlay {
    padding-inline: calc((100vw - min(var(--container-width), 100%)) / 2 + 40px);
    padding-bottom: 88px;
  }

  .gallery__arrow {
    width: 48px;
    height: 48px;
  }
}