/* ========================
   HOME — CLEAN RESET (SANITIZED)
======================== */

/*
Theme Name: Beyond Conversation
Author: Renke
*/

/* ------------------------
   BASICS
------------------------ */

html, body {
  margin: 0;
  padding: 0;
  height: auto;
  /*overflow: hidden; */
}

body {
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  background-color: #1b1b1b;
  color: #d4d6d1;
  overflow-x: hidden;
}

body.home {
  min-height: 100svh; /* small viewport height */
}

a {
  color: #d4d6d1;
  text-decoration: none;
}

a:hover {
  opacity: 0.7;
}

hr,
#wpadminbar,
body.home #header,
body.home #headerimg,
body.home #footer,
body.home #footerimg {
  display: none !important;
}

html {
  margin-top: 0 !important;
}

#header {
  display: none;
}
#footer {
  display: none;
}

/* 仅隐藏 Info 页面 Admin Bar */
body.page-id-28 #wpadminbar {
    display: none !important;
}


/* ------------------------
   FONTS
------------------------ */

@font-face {
  font-family: 'kawoszeh';
  src: url('fonts/kawoszeh.woff2') format('woff2');
}

@font-face {
  font-family: 'Satoshi';
  src: url('fonts/Satoshi-Variable.woff2') format('woff2');
  font-weight: 100 900;
}

@font-face {
  font-family: 'Satoshi';
  src: url('fonts/Satoshi-VariableItalic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
}


/* ------------------------
   NAVIGATION
------------------------ */

.wp-block-navigation {
  width: 100%;
  margin: 0;
  font-size: 1.8vw;
  font-weight: 300;
  gap: clamp(2rem, 10vw, 10rem);
}

.hero-text {
  position: relative; 
}

.home-nav {
  position: absolute; 
  top: -3.5vh;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  font-size: 1.8vw;
  font-weight: 300;
  z-index: 999;
}


.wp-block-navigation-item__content:hover .wp-block-navigation-item__label {
  color: #a5cda8;
}


.wp-block-navigation__submenu-container .wp-block-navigation-item__label {
  color: #d4d6d1;
}



/* DESKTOP submenu font size */
.wp-block-navigation__submenu-container {
  font-size: 1.2vw;        
  line-height: 1.4;

}

/* submenu item spacing */
.wp-block-navigation__submenu-container .wp-block-navigation-item {
  padding: 0.3em 0;
}

.wp-block-navigation
.wp-block-navigation-item:hover
> .wp-block-navigation__submenu-container,
.wp-block-navigation
.wp-block-navigation-item:focus-within
> .wp-block-navigation__submenu-container {
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  box-shadow: none;
  border: none;

  width: 250px !important;
}


.home-button {
  position: fixed;
  left: 2rem;
  right:2rem;
  top: 2rem;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #d4d6d1;
  z-index: 999;
}

/* hover 改颜色 */
.home-button:hover {
  background-color: #a5cda8;
}


/* ========================
   HERO
======================== */

.hero-container {
  position: relative;
  width: 100%;
  max-width: 2000px;
  margin-top: -3vh;
  text-align: center;
}

.hero-circle {
  width: 100%;
  height: auto;
  display: block;
}

.hero-text {
  position: absolute;
  top: 53%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.hero-text .main-title {
  font-family: 'kawoszeh', serif;
  font-size: 5vw;
  margin: 0;
}

.hero-text .subtitle-offset {
  font-size: 2vw;
  font-weight: 200;
  margin-top: 0.01vw;
}

.hero-arc {
  position: absolute;
  top: 40%;
  left: 0;
  width: 100%;
  min-height: 150px;
  overflow: visible;
}

.arc-ball {
  position: absolute;
  border-radius: 50%;
  background: #d4d6d1;
  mix-blend-mode: difference;
  will-change: transform;
}


/* ========================
   HOME BOTTOM MARQUEE
======================== */

.home-page-bottom {
  position: fixed;
  bottom: -1vw;
  left: 0;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  background: transparent;
  z-index: 9999;
  padding: 1rem 0;
  display: flex;
}

.scroll-text {
  display: inline-block;
  font-size: 1.2vw;
  font-weight: 200;
  animation: scroll-loop 20s linear infinite;
}

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


/* ------------------------
   TYPOGRAPHY
------------------------ */

h3.wp-block-heading {
  font-family: 'kawoszeh', serif;
  font-size: clamp(1.4rem, 2.5vw, 2.5rem);
  font-weight: 300;
  margin-left: 6vw;
}

.wp-block-group h2 {
  font-family: 'kawoszeh', serif;
  font-size: clamp(1.4rem, 5vw, 10rem);
  font-weight: 300;
  padding-left: 5vw;
  margin-right: 5vw;
  margin-top: 5vw; /* 用 margin-top 替代 padding-top 太大问题 */
}

.wp-block-group p {
  font-size: 1.5vw;
  margin-top: 5vw;
  padding-left: 5vw;
  padding-right: 5vw;
  box-sizing: border-box;
  width: 100%;
}

p {
  font-size: 1.5vw;
  margin-top: 2vw; 
  padding-left: 5vw;
  padding-right: 5vw;
  box-sizing: border-box;
  width: 100%;
}

/* ------------------------
   HOME BACKGROUND
------------------------ */

.home-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url('/wp-content/themes/beyondcommunication/images/homepage6.png');
  background-size: cover;
  background-position: center;
}

/* ========================
   MOBILE
======================== */

@media (max-width: 599px) {
  .scroll-text {
    font-size: 3.5vw;
  }
  .hero-container {
  top: 30vh;
  }

  .home-nav {
    position: static;     
    transform: none;
    width: 100%;
    margin-top: 20rem;
    left: 50%;
    transform: translateX(-50%);
  }

  .wp-block-navigation {
    justify-content: center;
  }

  .wp-block-navigation__responsive-container {
    position: fixed; 
    inset: 0;
    height: 100vh;
    
  }
  .wp-block-navigation {
  font-size: 8vw;
  font-weight: 500;
}

  /* submenu font size */
.wp-block-navigation__submenu-container {
  font-size: 5vw;        
  line-height: 0.5;
}

}
