/* ============================================
   VIRALATA LIFE
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600&family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --sand: #f5f0e8;
  --sand-dark: #e8dfd2;
  --earth: #8B7355;
  --earth-dark: #6B5740;
  --palm: #4A7C59;
  --sunset: #D4845A;
  --sunset-light: #E8A87C;
  --night: #2C2418;
  --cream: #FFFDF7;
  --paw: #C4956A;
  --text-primary: #2C2418;
  --text-secondary: #5C5040;
  --text-light: #8A7E6E;
  --border: rgba(139, 115, 85, 0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Noto Sans JP', 'Noto Sans TC', sans-serif;
  background-color: var(--cream);
  color: var(--text-primary);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--earth);
  text-decoration: none;
  transition: color 0.3s;
}
a:hover { color: var(--sunset); }

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: var(--text-primary);
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 700; }

p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
}

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 253, 247, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 24px rgba(44,36,24,0.07); }

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--text-primary);
}
.nav-logo img {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-light);
  padding: 0.25rem 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--sunset);
  transition: width 0.3s;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--sand);
  border-radius: 99px;
  padding: 2px;
}
.lang-btn {
  border: none;
  background: transparent;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  border-radius: 99px;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.lang-btn:hover { color: var(--text-primary); }
.lang-btn.active {
  background: var(--cream);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(44,36,24,0.1);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


/* ---- Hero (Home) ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem 3rem;
  background: var(--sand);
  position: relative;
}

.hero-img {
  width: min(580px, 85vw);
  margin: 0 auto 2.5rem;
}

.hero h1 {
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.hero .subtitle {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero .tagline {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--earth);
  border: 1.5px solid var(--earth);
  padding: 0.55rem 1.6rem;
  border-radius: 99px;
  transition: all 0.3s;
}
.hero .tagline:hover {
  background: var(--earth);
  color: var(--cream);
}

/* ---- Hero (Sub-pages) ---- */
.hero-sub {
  padding: 10rem 2rem 5rem;
  text-align: center;
  background: var(--sand);
}
.hero-sub .overline {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sunset);
  margin-bottom: 0.75rem;
  display: block;
}
.hero-sub h1 { margin-bottom: 0.8rem; }
.hero-sub .subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}


/* ---- General sections ---- */
.section {
  padding: 5rem 2rem;
}
.section-inner {
  max-width: 960px;
  margin: 0 auto;
}
.section-sand { background: var(--sand); }
.section-dark {
  background: var(--night);
  color: var(--sand);
}
.section-dark h2, .section-dark h3 { color: var(--sand); }
.section-dark p { color: var(--sand-dark); }


/* ---- Prose block (the manifesto / long text) ---- */
.prose {
  max-width: 680px;
  margin: 0 auto;
}
.prose h2 {
  margin: 3rem 0 1rem;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p {
  margin-bottom: 1.4rem;
}
.prose p:last-child {
  margin-bottom: 0;
}


/* ---- Two-column media + text ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}
.split:last-child { margin-bottom: 0; }
.split.flip { direction: rtl; }
.split.flip > * { direction: ltr; }

.split-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 30px rgba(44,36,24,0.08);
}
.split-img img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.split-text h2 { margin-bottom: 1rem; }
.split-text p { margin-bottom: 1rem; }
.split-text p:last-child { margin-bottom: 0; }


/* ---- Big centered image ---- */
.big-image {
  max-width: 520px;
  margin: 0 auto 3rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 30px rgba(44,36,24,0.08);
}
.big-image img {
  width: 100%;
  object-fit: cover;
}


/* ---- Duality row (Watchful / Carefree) ---- */
.duality {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}
.duality-item h3 {
  margin-bottom: 0.6rem;
}
.duality-item p {
  font-size: 0.98rem;
  color: var(--text-light);
}


/* ---- Values (simple stacked, no cards) ---- */
.values-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
}
.values-list h3 {
  margin-bottom: 0.4rem;
}
.values-list p {
  font-size: 0.95rem;
  color: var(--text-light);
}


/* ---- Pull quote ---- */
.pullquote {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 740px;
  margin: 0 auto;
}
.pullquote blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  color: var(--earth-dark);
  line-height: 1.55;
}
.pullquote.on-dark blockquote {
  color: var(--sand-dark);
}

.divider {
  text-align: center;
  padding: 1.5rem 0;
  color: var(--paw);
  opacity: 0.4;
  letter-spacing: 0.8rem;
  font-size: 1rem;
}


/* ---- CTA Banner ---- */
.cta-banner {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--earth-dark), var(--night));
  color: var(--sand);
}
.cta-banner h2 {
  color: var(--cream);
  margin-bottom: 0.8rem;
}
.cta-banner p {
  color: var(--sand-dark);
  margin: 0 auto 2rem;
}
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background: var(--sunset);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 99px;
  transition: all 0.3s;
  border: 2px solid var(--sunset);
}
.cta-btn:hover {
  background: transparent;
  color: var(--sunset-light);
}
.cta-btn-outline {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background: transparent;
  color: var(--cream);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 99px;
  transition: all 0.3s;
  border: 2px solid var(--sunset-light);
}
.cta-btn-outline:hover {
  background: var(--sunset);
  color: var(--cream);
  border-color: var(--sunset);
}


/* ---- Footer ---- */
.footer {
  background: var(--night);
  color: var(--sand-dark);
  padding: 2.5rem 2rem 1.8rem;
  text-align: center;
}
.footer-inner { max-width: 960px; margin: 0 auto; }
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--cream);
  margin-bottom: 0.3rem;
}
.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 1.2rem;
  letter-spacing: 0.06em;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  list-style: none;
  margin-bottom: 1.5rem;
}
.footer-links a {
  color: var(--sand-dark);
  font-size: 0.85rem;
}
.footer-links a:hover { color: var(--sunset-light); }
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-light);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.2rem;
}


/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(255,253,247,0.98);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .lang-toggle { margin-left: auto; margin-right: 0.8rem; }

  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .split.flip { direction: ltr; }

  .duality,
  .values-list {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-img { width: min(420px, 90vw); }
  .hero { padding: 6rem 1.5rem 2.5rem; }
  .hero-sub { padding: 7rem 1.5rem 3rem; }
  .section { padding: 3.5rem 1.5rem; }
}

@media (max-width: 480px) {
  .lang-btn { padding: 0.25rem 0.4rem; font-size: 0.7rem; }
  .hero-img { width: 90vw; }
}


/* ---- Language visibility ---- */
[data-lang] { display: none; }
[data-lang].active-lang { display: block; }
span[data-lang].active-lang,
a[data-lang].active-lang { display: inline; }
