/* Mobile and Tablet Styles - max-width: 900px */

.hero {
  min-height: 100svh;
  padding-top: 15vh;
}

/* Home page: names stacked vertically */
.hero h1.names {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--script);
  font-size: 48px;
  line-height: 0.75;
  gap: 0;
  margin: 0;
  color: var(--crimson);
}

.hero h1.names .amp {
  display: block;
  font-size: 0.45em;
  line-height: 0.8;
  margin: 10px 0 10px 0;
}

/* Entry screen: names inline layout */
.splash-names {
  display: inline;
  font-family: var(--script);
  font-size: 36px;
  color: var(--crimson);
}

.splash-names .amp {
  font-size: 0.45em;
  line-height: 0.8;
  margin: 0;
}

/* Navigation */
nav {
  padding: 10px 20px;
  /* Thinner navbar header for mobile */
}

.nav-logo {
  height: 48px;
  /* Slightly smaller base frame */
  transform: scale(1.4);
  /* Scaled down slightly to fit thinner bar gracefully */
}

.mobile-menu-btn {
  display: flex;
}

.nav-links {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 248, 231, 0.98);
  backdrop-filter: blur(12px);
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  transform: translateY(-150%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Sections */
section {
  padding: 60px 0;
}

.invitation {
  padding-top: 40px;
}

/* Telugu text */
.telugu {
  margin-top: 12px;
  margin-bottom: 16px;
}

/* Countdown timer */
.countdown {
  gap: 4px;
  margin-top: 12px;
  margin-bottom: 30px;
}

.count-box {
  min-width: 50px;
  padding: 10px 6px;
  border: 1.5px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(139, 15, 35, 0.05);
}

.count-num {
  font-size: 18px;
}

.count-label {
  font-size: 8px;
}

/* Hero elements */
.ganesha-symbol {
  font-size: 24px;
  margin-bottom: 12px;
}

.save-the-date {
  margin-bottom: 8px;
}

.splash-subtitle {
  margin-bottom: 40px;
}

.knot-btn {
  --knot-width: 120px;
  --knot-label-gap: 12px;
}

/* Cards and layout */
.events-grid {
  grid-template-columns: 1fr;
  gap: 20px;
}

.event-card {
  padding: 40px 20px 30px;
}

.venue-block {
  grid-template-columns: 1fr;
  padding: 24px 20px;
  gap: 32px;
  margin-bottom: 40px;
}

/* Footer */
footer .blessing-final {
  font-size: 52px;
}

/* Control buttons */
.ctrl-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

.ctrl-btn .txt {
  display: none;
}

.ctrl-btn .icon {
  font-size: 20px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ctrl-btn::after {
  left: auto;
  right: calc(100% + 10px);
}

.user-controls {
  flex-direction: column;
  right: 20px;
  left: auto;
  bottom: 124px;
  gap: 10px;
}

.quick-access {
  bottom: 20px;
  right: 20px;
}

/* Small mobile: 500px and below */
@media (max-width: 500px) {
  .hero-meta {
    flex-direction: column;
    gap: 6px;
  }

  .hero-meta-sep {
    display: none;
  }
}


/* Order of Festivities (Timeline) Fix for Mobile */
.timeline-line {
  left: 20px;
}

.timeline-event {
  grid-template-columns: 40px 1fr;
  gap: 16px;
  column-gap: 16px;
}

.timeline-event .t-content {
  grid-column: 2;
  text-align: left;
  padding: 0;
}

.timeline-event .t-spacer {
  display: none;
}

.t-dot {
  left: 20px;
  top: 10px;
  transform: translateX(-50%);
}

/* Mobile Toranam and Tree overrides */
.decor-toranam {
  height: 265px;
  top: 0px;
}

.decor-tree {
  height: 60vh;
  /* Scaled down for mobile */
}

.decor-tree.decor-left {
  transform: translateX(-50%);
  /* Expose only half the tree */
}

.decor-tree.decor-right {
  transform: scaleX(-1) translateX(-50%);
  /* Expose only half the tree */
}

/* Knot button positioning now handled dynamically by JavaScript */
