/* ============================================
   一凡 SPACE — Section Styles
   ============================================ */

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: var(--space-inline) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--duration-normal) var(--ease-gentle),
              box-shadow var(--duration-normal) var(--ease-gentle);
}

.nav.scrolled {
  background: var(--color-cream-80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-fog);
}

.nav__brand {
  font-family: var(--font-chinese);
  font-size: var(--text-nav);
  font-weight: var(--weight-medium);
  color: var(--color-wood);
  letter-spacing: 0.15em;
}

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

.nav__link {
  font-family: var(--font-body);
  font-size: var(--text-nav);
  color: var(--color-bark-60);
  letter-spacing: 0.1em;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-ember);
  transition: width var(--duration-normal) var(--ease-gentle);
}

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

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

/* Mobile nav */
.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-wood);
  margin: 5px 0;
  transition: transform var(--duration-normal) var(--ease-gentle),
              opacity var(--duration-normal) var(--ease-gentle);
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu overlay */
.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-cream);
  z-index: calc(var(--z-nav) - 1);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.nav__overlay.open {
  display: flex;
}

.nav__overlay .nav__link {
  font-size: 1.3rem;
  color: var(--color-wood);
}

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

/* ---- Section: Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__video-wrapper {
  position: absolute;
  inset: 0;
  z-index: var(--z-bg);
}

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

.hero__fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: gentle-drift 20s var(--ease-gentle) infinite;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-cream-60);
  z-index: calc(var(--z-bg) + 1);
}

.hero__content {
  position: relative;
  z-index: var(--z-content);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-block);
}

.hero__logo {
  width: clamp(160px, 25vw, 280px);
  opacity: 0;
  animation: fade-up 1.2s var(--ease-gentle) 0.3s forwards;
}

.hero__title {
  font-family: var(--font-chinese);
  font-size: var(--text-hero);
  font-weight: var(--weight-light);
  color: var(--color-wood);
  letter-spacing: 0.15em;
  opacity: 0;
  animation: fade-up 1.2s var(--ease-gentle) 0.6s forwards;
}

.hero__subtitle {
  font-family: var(--font-chinese);
  font-size: var(--text-hero-sub);
  font-weight: var(--weight-light);
  color: var(--color-bark);
  letter-spacing: 0.2em;
  opacity: 0;
  animation: fade-up 1.2s var(--ease-gentle) 0.9s forwards;
}

.hero__tags {
  display: flex;
  gap: var(--space-inline);
  font-size: var(--text-caption);
  color: var(--color-bark-60);
  letter-spacing: 0.15em;
  opacity: 0;
  animation: fade-up 1.2s var(--ease-gentle) 1.2s forwards;
}

.hero__tags span {
  position: relative;
}

.hero__tags span:not(:last-child)::after {
  content: '';
  position: absolute;
  right: calc(var(--space-inline) / -2);
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 0.8em;
  background: var(--color-fog);
}

.hero__cta {
  opacity: 0;
  animation: fade-up 1.2s var(--ease-gentle) 1.5s forwards;
}

/* ---- CTA Button ---- */
.btn-cta {
  display: inline-block;
  font-family: var(--font-chinese);
  font-size: var(--text-body);
  font-weight: var(--weight-light);
  color: var(--color-wood);
  letter-spacing: 0.2em;
  padding: 0.8em 2em;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color var(--duration-normal) var(--ease-gentle);
}

.btn-cta::after {
  content: '';
  position: absolute;
  bottom: 0.4em;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--color-ember);
  transition: width var(--duration-normal) var(--ease-gentle);
}

.btn-cta:hover {
  color: var(--color-ember);
}

.btn-cta:hover::after {
  width: 60%;
}

/* ---- Section: Philosophy ---- */
.philosophy {
  padding: var(--space-section) var(--gutter);
  text-align: center;
  background: var(--color-cream);
  position: relative;
}

.philosophy__text {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.philosophy__line {
  font-family: var(--font-chinese);
  font-size: var(--text-body);
  font-weight: var(--weight-light);
  color: var(--color-bark);
  line-height: 2.2;
  letter-spacing: 0.1em;
}

.philosophy__line--main {
  font-size: var(--text-section);
  color: var(--color-wood);
  margin-bottom: var(--space-xs);
}

.philosophy__wave {
  margin-top: var(--space-block);
  text-align: center;
}

/* ---- Section: Services ---- */
.services {
  padding: var(--space-section) var(--gutter);
  background: var(--color-cream);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-inline);
  max-width: var(--max-width);
  margin: 0 auto;
}

.service-card {
  text-align: center;
  padding: var(--space-block) var(--space-inline);
  position: relative;
  transition: transform var(--duration-normal) var(--ease-gentle);
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 60%;
  height: 1px;
  background: var(--color-ember);
  opacity: 0.4;
}

.service-card__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-inline);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card__icon img {
  max-width: 100%;
  max-height: 100%;
  opacity: 0.7;
  transition: opacity var(--duration-normal) var(--ease-gentle);
}

.service-card:hover .service-card__icon img {
  opacity: 1;
}

.service-card__title {
  font-family: var(--font-chinese);
  font-size: var(--text-section);
  font-weight: var(--weight-light);
  color: var(--color-wood);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.15em;
}

.service-card__desc {
  font-size: var(--text-caption);
  color: var(--color-bark-60);
  line-height: 1.8;
}

@media (max-width: 1023px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .services__grid { grid-template-columns: 1fr; }
}

/* ---- Section: Method ---- */
.method {
  padding: var(--space-section) var(--gutter);
  background: var(--color-cream);
  text-align: center;
}

.method__steps {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-block);
}

.method__step {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.method__step-title {
  font-family: var(--font-chinese);
  font-size: var(--text-section);
  font-weight: var(--weight-light);
  color: var(--color-wood);
  letter-spacing: 0.2em;
}

.method__step-desc {
  font-size: var(--text-body);
  color: var(--color-bark-60);
  max-width: 50ch;
  margin: 0 auto;
  line-height: 2;
}

.method__wave-container {
  margin-top: var(--space-block);
  width: 100%;
  max-width: var(--max-width-narrow);
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.method__wave-container svg {
  width: 100%;
  height: auto;
}

/* ---- Section: Logo Story ---- */
.logo-story {
  padding: var(--space-section) var(--gutter);
  background: var(--color-cream);
}

.logo-story__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-block);
  align-items: center;
}

.logo-story__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-story__visual img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
}

.logo-story__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-inline);
}

.logo-story__item {
  font-family: var(--font-chinese);
  font-size: var(--text-body);
  font-weight: var(--weight-light);
  color: var(--color-bark-60);
  line-height: 2.2;
  letter-spacing: 0.05em;
  padding-left: var(--space-inline);
  border-left: 2px solid transparent;
  transition: border-color var(--duration-normal) var(--ease-gentle),
              color var(--duration-normal) var(--ease-gentle);
}

.logo-story__item.highlight {
  border-left-color: var(--color-ember);
  color: var(--color-bark);
}

.logo-story__item strong {
  color: var(--color-wood);
  font-weight: var(--weight-medium);
}

@media (max-width: 767px) {
  .logo-story__inner {
    grid-template-columns: 1fr;
  }
  .logo-story__visual {
    order: -1;
  }
}

/* ---- Section: Booking ---- */
.booking {
  padding: var(--space-section) var(--gutter);
  padding-bottom: calc(var(--space-section) * 1.5);
  background: var(--color-cream);
  text-align: center;
}

.booking__title {
  font-family: var(--font-chinese);
  font-size: var(--text-section);
  font-weight: var(--weight-light);
  color: var(--color-wood);
  margin-bottom: var(--space-block);
  letter-spacing: 0.15em;
  line-height: 2;
}

.booking__cta {
  margin-bottom: var(--space-block);
}

.booking__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs);
  font-size: var(--text-caption);
  color: var(--color-bark-60);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-block);
}

.booking__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-inline);
}

.booking__qr-card {
  background: white;
  padding: var(--space-inline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.booking__qr-card img {
  width: clamp(140px, 20vw, 200px);
  height: auto;
}

.booking__address {
  font-size: var(--text-caption);
  color: var(--color-bark-60);
  letter-spacing: 0.05em;
}

/* ---- Footer ---- */
.footer {
  padding: var(--space-inline) var(--gutter);
  text-align: center;
  font-size: var(--text-caption);
  color: var(--color-fog);
  border-top: 1px solid var(--color-fog);
  background: var(--color-cream);
}

/* ---- Mobile Fixed CTA ---- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: var(--space-xs) var(--gutter);
  background: var(--color-cream-80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-fog);
  text-align: center;
}

@media (max-width: 767px) {
  .mobile-cta { display: block; }
  .booking { padding-bottom: calc(var(--space-section) * 2); }
}
