/* ===================================
   1. Global Reset & Base Styles (Mobile-First)
   =================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth; /* Smooth vertical scrolling on mobile */
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  background: #ffffff;
}

/* Hide scrollbar but keep functionality */
.container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.container::-webkit-scrollbar {
  display: none;
}

/* ===================================
   2. Main Container – Vertical Stack (Mobile Default)
   =================================== */
.container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ===================================
   3. Panels – Full Height on Mobile, Flexible Content
   =================================== */
.panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 80px; /* Space for fixed navbar + breathing room */
  position: relative;
}

.panel.hero {
  min-height: 100vh;
}

.panel-content {
  max-width: 800px;
  width: 100%;
  text-align: center;
}

/* Hero Logo – Centered on Mobile */
.hero-logo {
  max-width: 90vw;
  max-height: 70vh;
  object-fit: contain;
  margin: 0 auto;
}

/* ===================================
   4. Navbar – Fixed Top
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-logo {
  width: 50px;
  height: 50px;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.2s ease;
}

.nav-logo:hover,
.nav-logo:focus {
  transform: scale(1.1);
}

/* ===================================
   5. Navigation Arrows – Hidden on Mobile
   =================================== */
.nav-arrow {
  display: none; /* Hidden by default (mobile) */
}

/* ===================================
   6. Page Indicators – Hidden on Mobile
   =================================== */
.page-indicators {
  display: none;
}

/* Optional subtle divider between sections on mobile */
.panel:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: #dddddd;
}

/* Base bilingual styling – compressed and paragraph-like */
.bilingual {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.bilingual dt {
  font-size: 1.3rem; /* Clear and prominent ʻŌlelo */
  font-weight: bold;
  line-height: 1; /* Tighter than before – feels more paragraph-like */
  margin-bottom: 0.3rem; /* Minimal space below ʻŌlelo line */
  color: #1a1a1a;
}

.bilingual dd {
  font-size: 0.95rem; /* Small, subtle "fine print" English */
  line-height: 1.3; /* Tight for compactness */
  margin-left: 1.8rem; /* Gentle indent to nest under ʻŌlelo */
  margin-bottom: 1rem; /* Space after translation before next ʻŌlelo line */
  color: #666; /* Lighter gray */
  font-style: normal; /* Removed italic for cleaner look – optional */
}

/* ===================================
   7. Tablet & Desktop Enhancements (min-width: 769px)
   =================================== */
@media (min-width: 769px) {
  /* Switch to horizontal scrolling layout */
  .container {
    flex-direction: row;
    height: 100vh;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
  }

  .panel {
    min-width: 100vw;
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 0 60px;
    min-height: 100vh;
  }

  /* Fixed hero logo overlay on desktop */
  .hero-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    max-width: 80vw;
    max-height: 80vh;
    pointer-events: none;
  }

  /* Content panels above hero logo */
  .panel:not(.hero) {
    z-index: 10;
    background: #ffffff;
  }

  /* Show navigation arrows */
  .nav-arrow {
    display: flex;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 1100;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: all 0.3s ease;
  }

  .nav-arrow:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
  }

  .nav-arrow--left {
    left: 20px;
  }
  .nav-arrow--right {
    right: 20px;
  }

  .nav-arrow--hidden {
    opacity: 0;
    pointer-events: none;
  }

  .nav-arrow svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
  }

  /* Show page indicators */
  .page-indicators {
    display: flex;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    gap: 12px;
    z-index: 1200;
    pointer-events: auto;
  }

  .indicator {
    width: 50px;
    height: 5px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.4s ease, transform 0.2s ease;
  }

  .indicator:hover,
  .indicator:focus {
    transform: scale(1.2);
    background: #ff6200 !important; /* Show intent even on non-active */
  }

  .indicator.active {
    background: #ff6200; /* Brand orange */
  }

  /* Remove mobile dividers */
  .panel:not(:last-child)::after {
    display: none;
  }
}

/* Desktop: Two-column textbook layout */
@media (min-width: 1024px) {
  .bilingual {
    column-count: 2;
    column-gap: 3.5rem; /* Slightly narrower gutter */
    column-rule: 1px solid #eee; /* Very subtle divider */
    column-fill: balance;
  }

  .bilingual dt,
  .bilingual dd {
    break-inside: avoid; /* Keeps ʻŌlelo + translation pair together */
    margin-left: 0; /* No indent in columns for tighter flow */
  }

  .bilingual dd {
    margin-bottom: 0.8rem; /* Even tighter in columns */
  }
}

/* Style switch – English emphasis (larger English, smaller ʻŌlelo) */
body.english-emphasis .bilingual dt {
  font-size: 0.95rem;
  font-weight: normal;
  color: #666;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

body.english-emphasis .bilingual dd {
  font-size: 1.45rem;
  font-weight: bold;
  color: #1a1a1a;
  line-height: 1.4;
  margin-left: 1.8rem;
  margin-bottom: 1rem;
}
