/* ===========================================
   BONOBONO - Layout Styles
   =========================================== */

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(232, 244, 248, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-8);
  border-bottom: 1px solid rgba(168, 216, 234, 0.3);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ocean-deep);
  overflow: hidden;
  min-width: 0;
}

.nav__logo img {
  flex-shrink: 0;
  object-fit: contain;
}

.nav__logo a {
  flex-shrink: 0;
}

.nav__logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--sky-soft);
  overflow: hidden;
}

.nav__logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav__links {
  display: flex;
  gap: var(--space-8);
  list-style: none;
}

.nav__link {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--coral-accent);
  transition: width var(--duration-normal) var(--ease-smooth);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link:hover {
  color: var(--ocean-deep);
}

/* ─── Hero Section ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-pale) 0%, var(--sand-warm) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/BG-2.webp') no-repeat center center;
  background-size: cover;
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  text-align: center;
  z-index: 10;
  padding: var(--space-8);
}

.hero__title {
  margin-bottom: var(--space-4);
  line-height: 1;
}

.hero__logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  animation: logo-float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 0 white) drop-shadow(1px 0 0 white) drop-shadow(-1px 0 0 white) drop-shadow(0 1px 0 white) drop-shadow(0 -1px 0 white);
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-12);
}

/* ─── About Section (Scroll-Pinned) ─── */
.about-scroll-wrapper {
  position: relative;
  height: 300vh;
}

.about {
  background: var(--white);
  position: sticky;
  top: var(--nav-height);
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/BG-4.webp') no-repeat center center;
  background-size: cover;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.about > * {
  position: relative;
  z-index: 1;
}

.about__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.about__content {
  padding-right: var(--space-8);
}

.about__timeline {
  position: relative;
  padding-left: var(--space-8);
}

.about__timeline .timeline-node:last-child {
  padding-bottom: 0;
}

.about__timeline .timeline-node:first-child {
  padding-top: 0;
}

.about__timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--sky-soft), var(--ocean-mid));
}

.timeline-walnut {
  position: absolute;
  left: -14px;
  top: 0;
  width: 30px;
  height: 30px;
  z-index: 2;
  filter: drop-shadow(0 2px 6px rgba(26, 58, 74, 0.2));
  transition: top 0.1s linear, transform 0.1s linear;
  will-change: top, transform;
}

/* ─── Stats Section ─── */
.stats-section {
  position: relative;
  padding: var(--space-16) 0;
  overflow: hidden;
}

.stats-section__bg {
  position: absolute;
  inset: 0;
  display: flex;
  font-size: 0;
  line-height: 0;
}

.stats-section__bg img {
  height: 100%;
  width: auto;
  display: block;
  flex-shrink: 0;
  margin-right: -2px;
}

.stats-section__overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  z-index: 1;
}

.stats-section > .container {
  position: relative;
  z-index: 2;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.stat {
  text-align: center;
}

.stat__number {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--ocean-mid);
  line-height: 1;
}

.stat__label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-2);
}

/* ─── Characters Section ─── */
.characters {
  background: var(--sky-pale);
  overflow: hidden;
  padding: var(--space-12) 0;
}

.characters__carousel {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  justify-content: safe center;
}

.characters__carousel::-webkit-scrollbar {
  display: none;
}

.characters__carousel:active {
  cursor: grabbing;
}

/* ─── Localization Section ─── */
.localization {
  background: var(--white);
}

.localization__grid {
  display: grid;
  gap: var(--space-16);
}

/* ─── Video Player Section ─── */
.video-section {
  background: var(--ocean-deep);
  padding: var(--space-24) 0;
  color: var(--white);
}

.video-section h2 {
  color: var(--white);
}

.video__wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.video__player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.video__player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── Bento Box Section ─── */
.bento {
  background: var(--sand-warm);
}

.bento__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: var(--space-6);
}

/* ─── Blog Section ─── */
.blog {
  background: var(--white);
}

.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

/* ─── Community Engagement Section ─── */
.community {
  background: linear-gradient(180deg, var(--sky-pale), var(--sand-warm));
}

.community__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  justify-content: center;
}

.community__grid--single {
  grid-template-columns: 1fr;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.community__subscribe-msg {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--forest-mid, #2e7d32);
}

.community__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-soft);
  transition: transform var(--duration-normal) var(--ease-smooth),
              box-shadow var(--duration-normal) var(--ease-smooth);
}

.community__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lifted);
}

.community__card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
}

.community__card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.community__card-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.community__card-link {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ocean-mid);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.community__card-link:hover {
  color: var(--ocean-deep);
}

.community__subscribe {
  display: flex;
  gap: var(--space-2);
}

.community__email-input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  border: 2px solid var(--sky-soft);
  border-radius: var(--radius-full);
  background: var(--sky-pale);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-smooth);
}

.community__email-input:focus {
  border-color: var(--ocean-mid);
}

.community__subscribe-btn {
  white-space: nowrap;
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
}

.community__hashtags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.community__hashtag {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ocean-mid);
  background: rgba(65, 182, 230, 0.1);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  transition: background var(--duration-fast) var(--ease-smooth);
}

.community__hashtag:hover {
  background: rgba(65, 182, 230, 0.2);
}

/* ─── Footer ─── */
.footer {
  background: rgba(232, 244, 248, 0.9);
  color: var(--text-primary);
  padding: 0 0 var(--space-3);
  position: relative;
}

.footer .container {
  max-width: 100%;
  padding: 0 var(--space-12);
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/background_03.webp') no-repeat center bottom;
  background-size: cover;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

/* Partner logos row */
.footer__partners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-2) 0;
}

.footer__partner-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  background: none;
  padding: 0;
  border-radius: 0;
  transition: opacity var(--duration-normal) var(--ease-smooth),
              transform var(--duration-normal) var(--ease-smooth);
}

.footer__partner-logo--ftbc {
  height: 64px;
}

.footer__partner-logo--eiken {
  height: 60px;
}

.footer__partner-logo--no-bg {
  background: none;
  padding: 0;
}

.footer__partner-logo:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer__divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(65, 182, 230, 0.35), transparent);
  margin: 0 auto var(--space-2);
}

/* Main grid */
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-2);
}

.footer__about {
  padding-right: var(--space-4);
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer__anniversary-logo {
  height: 192px;
  width: auto;
  margin-top: -20px;
  margin-bottom: -10px;
  opacity: 1;
  filter: brightness(1.1) drop-shadow(0 0 2px white) drop-shadow(0 0 2px white) drop-shadow(0 0 1px white);
}

.footer__tagline {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  line-height: 1.4;
}

.footer__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer__heading {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__links a {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  transition: opacity var(--duration-normal) var(--ease-smooth),
              color var(--duration-normal) var(--ease-smooth);
}

.footer__links a:hover {
  color: var(--ocean-mid);
}

/* Social links */
.footer__social {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__social-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  transition: opacity var(--duration-normal) var(--ease-smooth),
              color var(--duration-normal) var(--ease-smooth);
}

.footer__social-link:hover {
  color: var(--ocean-mid);
}

.footer__social-link svg {
  flex-shrink: 0;
}

/* Bottom bar */
.footer__bottom {
  text-align: center;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(168, 216, 234, 0.3);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer__bottom p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

.footer__bottom a {
  color: var(--ocean-mid);
  transition: opacity var(--duration-normal) var(--ease-smooth);
}

.footer__bottom a:hover {
  opacity: 0.8;
}

.footer__copyright {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}
