/* =============================================================
   MAPLE HEAD SPA — INDEX / SPLASH PAGE STYLES
============================================================= */

/* Override body background — splash page is dark */
body { background: #000; color: white; }

/* Visually hidden — accessible to screen readers and search engines only */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Override --dark to match original splash-page intent */
:root { --tr: all .45s ease; }

/* === HERO === */
.hero {
  position: relative; width: 100%; min-height: 100px;
  overflow: hidden; background: #1A1109;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  display: block; overflow: hidden;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center center; display: block;
  will-change: transform;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(20,10,5,.18) 0%, transparent 70%),
    linear-gradient(180deg, rgba(15,8,4,.15) 0%, transparent 30%, transparent 70%, rgba(15,8,4,.35) 100%);
  z-index: 1; pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 80px 24px;
  color: var(--text-on-dark);
}

/* Japanese subtitle under logo */
.hero-kana {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.5em;
  color: rgba(244,238,226,0.65);
  margin-top: -16px;
  opacity: 0;
  animation: fadeUp 1.2s 0.55s var(--ease-soft) forwards;
}

/* Tagline — doubles as h1 on splash page */
.tagline {
  font-family: var(--sans);
  font-size: 14px; font-weight: 400; letter-spacing: .42em;
  text-transform: uppercase; color: #F4EEE2;
  margin-bottom: -30px;
  opacity: 0; transform: translateY(10px);
  animation: fadeUp 1.2s var(--ease-soft) forwards;
}

/* Logo */
.hero-logo {
  display: block;
  width: clamp(260px, 32vw, 300px); height: auto; max-width: 80vw;
  opacity: 0; transform: translateY(20px) scale(.96);
  animation: logoReveal 1.5s .3s var(--ease-soft) forwards;
  filter: drop-shadow(0 4px 40px rgba(0,0,0,.4)) drop-shadow(0 2px 12px rgba(0,0,0,.3));
}

/* Splash-page nav (centered, pipe-separated) */
.nav {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin-top: 10px;
  font-size: 13px; font-weight: 400; letter-spacing: .32em; text-transform: uppercase;
  color: var(--ivory);
  opacity: 0; transform: translateY(10px);
  animation: fadeUp 1.2s .75s var(--ease-soft) forwards;
}
.nav a {
  position: relative; padding: 4px 6px;
  transition: opacity .3s ease; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute;
  left: 6px; right: 6px; bottom: -3px;
  height: 1px; background: #F4EEE2;
  transform: scaleX(0); transform-origin: center; transition: transform .4s ease;
}
.nav a:hover::after { transform: scaleX(1); }
.nav-sep {
  display: inline-block; width: 1px; height: 14px;
  background: rgba(244,238,226,.55); flex-shrink: 0;
}

/* === ANIMATIONS === */
@keyframes fadeUp    { to { opacity: 1; transform: translateY(0); } }
@keyframes logoReveal { to { opacity: 1; transform: translateY(0) scale(1); } }

/* === REST OF PAGE === */
.section { padding: 110px 0; position: relative; }
.section-cream { background: var(--cream); }
.section-dark  { background: #2A1E0F; color: var(--light); }
.section-brown { background: var(--brown); color: var(--light); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 40px; }

.reveal        { opacity: 0; transform: translateY(32px); transition: opacity .9s ease, transform .9s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left   { opacity: 0; transform: translateX(-32px); transition: opacity .9s ease, transform .9s ease; }
.reveal-left.visible  { opacity: 1; transform: translateX(0); }
.reveal-right  { opacity: 0; transform: translateX(32px);  transition: opacity .9s ease, transform .9s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale  { opacity: 0; transform: scale(.95); transition: opacity .9s ease, transform .9s ease; }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.eyebrow { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 20px; }
.eyebrow.left { justify-content: flex-start; }
.eyebrow span { width: 54px; height: 1px; background: rgba(160,120,64,.35); }
.eyebrow p    { font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: #B18B4E; }

.intro-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.intro-icon   { width: 52px; height: 52px; stroke: var(--bronze); fill: none; stroke-width: 1; margin: 0 auto 28px; display: block; }
.intro-inner h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(30px,4vw,48px); font-weight: 300; color: var(--brown); margin-bottom: 24px; }
.intro-inner h2 em { font-style: italic; color: var(--bronze-d); }
.intro-inner p  { font-size: 15px; line-height: 1.9; color: var(--dark); margin-bottom: 36px; }

.services-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 40px; max-width: 860px; margin: 0 auto; }
.services-grid--spaced { margin-top: 90px; }
.quote-eyebrow-label { color: #C9A96E; }
.quote-cta { margin-top: 40px; }
.service-item  { text-align: center; padding: 32px 16px; border: 1px solid rgba(160,120,64,.12); border-radius: 2px; transition: var(--tr); }
.service-item:hover { border-color: rgba(160,120,64,.35); transform: translateY(-4px); }
.service-item svg  { width: 40px; height: 40px; stroke: var(--bronze); stroke-width: 1.5; fill: none; margin: 0 auto 18px; display: block; }
.service-item span { font-size: 11px; letter-spacing: 2.5px; font-weight: 500; text-transform: uppercase; color: var(--dark); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-img { position: relative; overflow: hidden; border-radius: 2px; }
.split-img img { width: 100%; height: 600px; object-fit: cover; display: block; transition: transform 1.2s ease; }
.split-img:hover img { transform: scale(1.04); }
.split-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, transparent 60%, rgba(14,10,4,.3)); }
.split-content h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(28px,3.5vw,44px); font-weight: 300; color: var(--brown); margin-bottom: 20px; }
.split-content h2 em { font-style: italic; color: var(--bronze-d); }
.split-content p { font-size: 15px; line-height: 1.85; color: var(--dark); margin-bottom: 18px; }
.split-divider { width: 36px; height: 1px; background: rgba(160,120,64,.5); margin-bottom: 20px; }

.accordion-wrap { margin-top: 32px; }
.ac-item { border-bottom: 1px solid rgba(42,30,15,.12); overflow: hidden; }
.ac-item:first-child { border-top: 1px solid rgba(42,30,15,.12); }
.ac-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; cursor: pointer; gap: 16px; }
.ac-head:hover .ac-name { color: var(--bronze-d); }
.ac-left { flex: 1; }
.ac-name  { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 300; color: var(--dark); transition: var(--tr); }
.ac-badge { display: inline-block; font-size: 8px; letter-spacing: 1.5px; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; background: rgba(160,120,64,.12); color: var(--bronze-d); border: 1px solid rgba(160,120,64,.3); margin-left: 10px; vertical-align: middle; }
.ac-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.ac-price { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 300; color: var(--dark); }
.ac-dur   { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--dark); }
.ac-arrow { width: 20px; height: 20px; stroke: var(--bronze); stroke-width: 1.5; fill: none; transition: transform .35s ease; flex-shrink: 0; }
.ac-item.open .ac-arrow { transform: rotate(180deg); }
.ac-body  { max-height: 0; overflow: hidden; transition: max-height .5s ease, padding .4s ease; }
.ac-item.open .ac-body { max-height: 320px; padding-bottom: 28px; }
.ac-body p { font-size: 15px; line-height: 1.8; color: var(--dark); margin-bottom: 18px; padding-top: 4px; }
.ac-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ac-tag  { font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 12px; border: 1px solid rgba(160,120,64,.35); color: var(--dark); border-radius: 20px; }
.ac-footer { margin-top: 24px; text-align: right; }
.ac-view-all {
  font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--bronze-d); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap .25s ease, color .25s ease;
}
.ac-view-all:hover { gap: 13px; color: var(--dark); }

/* === PHILOSOPHY QUOTE === */
.quote-section {
  padding: 160px 24px; text-align: center;
  background: #1A1109; color: var(--light);
  position: relative; overflow: hidden;
}
.quote-section::before,
.quote-section::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: 140px; height: 1px; background: rgba(201,169,110,.35);
}
.quote-section::before { top: 0; }
.quote-section::after  { bottom: 0; }
.quote-bg-mark {
  position: absolute; top: 40px; left: 50%; transform: translateX(-50%);
  font-family: 'Cormorant Garamond', serif; font-size: 260px;
  color: rgba(201,169,110,.07); line-height: 1;
  pointer-events: none; -webkit-user-select: none; user-select: none;
}
.quote-ornament { width: 34px; height: 34px; margin: 0 auto 28px; color: var(--bronze); opacity: .85; display: block; }
.quote-vline,
.quote-vline-b { width: 1px; height: 54px; margin: 0 auto 32px; background: rgba(201,169,110,.45); }
.quote-vline-b { margin: 36px auto 0; }
.quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 3.4vw, 38px); font-weight: 300; font-style: italic;
  color: var(--light); max-width: 720px; margin: 0 auto 32px;
  line-height: 1.5; position: relative; z-index: 1;
}
.quote-div { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px; }
.quote-div span { width: 36px; height: 1px; background: rgba(201,169,110,.45); display: block; }
.quote-div i    { width: 4px; height: 4px; border-radius: 50%; background: var(--bronze); display: block; }
.quote-attr { font-family: 'Jost', sans-serif; font-size: 10px; letter-spacing: 3.5px; text-transform: uppercase; color: var(--bronze); }
.quote-sub  { font-size: 12px; letter-spacing: 2px; color: rgba(242,232,213,.5); margin-top: 6px; }

/* === BUTTONS === */
.btn-outline,
.btn-outline-light,
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 36px; border-radius: 999px;
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  transition: all .4s ease;
}
.btn-outline { border: 1px solid rgba(42,30,15,.18); color: var(--dark); }
.btn-outline:hover { background: var(--brown); color: white; }
.btn-outline-light { border: 1px solid rgba(255,255,255,.2); color: white; }
.btn-outline-light:hover { background: white; color: black; }
.btn-gold { background: #9F7A34; color: white; }
.btn-gold:hover { transform: translateY(-3px); }

/* === RESPONSIVE === */
/* === MOBILE HAMBURGER BUTTON (hidden on desktop) === */
.hero-menu-btn {
  display: none;
  position: fixed; top: 20px; right: 20px;
  z-index: 10001;
  flex-direction: column; justify-content: center; gap: 6px;
  cursor: pointer;
  background: rgba(244,238,226,.15);
  border: 1px solid rgba(244,238,226,.35);
  border-radius: 3px; padding: 10px 12px;
  transition: background .3s ease, border-color .3s ease;
}
.hero-menu-btn span {
  display: block; width: 24px; height: 1.5px;
  background: #F4EEE2;
  transition: transform .4s ease, opacity .4s ease, background .3s ease;
  transform-origin: center;
}
.hero-menu-btn.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hero-menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hero-menu-btn.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.hero-menu-btn.open { background: transparent; border-color: transparent; }
.hero-menu-btn.open span { background: var(--brown); }

/* === FULL-SCREEN MOBILE MENU OVERLAY (hidden on desktop) === */
.hero-mobile-menu {
  display: none;
  position: fixed; inset: 0;
  background: #F6F1E6;
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  z-index: 10000;
  opacity: 0; visibility: hidden;
  transform: translateY(-16px); pointer-events: none;
  transition: opacity .45s var(--ease-soft), transform .45s var(--ease-soft), visibility 0s .45s;
}
.hero-mobile-menu.active {
  opacity: 1; visibility: visible;
  transform: translateY(0); pointer-events: auto;
  transition: opacity .45s var(--ease-soft), transform .45s var(--ease-soft), visibility 0s 0s;
}
.hero-mobile-menu a {
  font-family: var(--sans); font-weight: 400;
  font-size: 13px; letter-spacing: .42em; text-transform: uppercase;
  color: var(--brown); text-decoration: none;
  position: relative; padding: 4px 0;
  transition: color .3s ease;
}
.hero-mobile-menu a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px; background: var(--bronze);
  transform: scaleX(0); transform-origin: center; transition: transform .4s ease;
}
.hero-mobile-menu a:hover { color: var(--bronze-d); }
.hero-mobile-menu a:hover::after { transform: scaleX(1); }

@media (max-width: 768px) {
  .hero { min-height: 90vh; }
  .hero-inner { padding: 60px 18px; min-height: 90vh; }
  .hero-logo { width: clamp(200px, 55vw, 300px); }
  /* Show button and enable overlay */
  .hero-menu-btn { display: flex; }
  .hero-mobile-menu { display: flex; }
  /* Keep inline nav compact */
  .nav { gap: 10px; margin-top: 60px; font-size: 10px; letter-spacing: .22em; }
  .nav a { padding: 4px 2px; }
  .nav-sep { height: 11px; }
  .quote-section { padding: 110px 20px; }
  .quote-bg-mark { font-size: 180px; top: 30px; }
  .quote-vline,
  .quote-vline-b { height: 40px; }
  .split,
  .services-grid { grid-template-columns: 1fr; }
  .split-img img { height: 500px; }
}
@media (max-width: 420px) {
  .hero-logo { width: 200px; }
  .nav { gap: 4px; margin-top: 48px; font-size: 7px; letter-spacing: .18em; }
  .nav-sep { height: 10px; }
}
