/* ─── Nonbiri Chai — Main Stylesheet ─── */

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Muted Pastel Palette */
  --cream: #FAF6F1;
  --warm-white: #F5EDE4;
  --sage: #B8C5A8;
  --sage-light: #D4DFC9;
  --sage-dark: #8FA37B;
  --terracotta: #C4835A;
  --terracotta-light: #D9A882;
  --amber: #D4A96A;
  --amber-light: #E5C98A;
  --charcoal: #2C2C2C;
  --charcoal-light: #4A4A4A;
  --text: #3D3D3D;
  --text-light: #6B6B6B;
  --rose: #D4A5A5;
  --rose-light: #E8C8C8;
  
  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;
  --font-japanese: 'Noto Sans JP', sans-serif;
  
  /* Spacing */
  --section-padding: clamp(3rem, 8vw, 7rem);
  --container-max: 1100px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  color: var(--terracotta);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--sage-dark);
}

/* ── Layout ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-padding) 0;
}

.section-label {
  font-family: var(--font-japanese);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 246, 241, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 0;
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--terracotta);
}

.nav-cta {
  background: var(--terracotta) !important;
  color: white !important;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  transition: background 0.3s ease, transform 0.2s ease !important;
}

.nav-cta:hover {
  background: var(--sage-dark) !important;
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  margin: 5px 0;
  transition: 0.3s ease;
}

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 5rem;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-logo {
  max-width: 220px;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-style: italic;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-title .japanese {
  font-family: var(--font-japanese);
  display: block;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.3rem;
}

.hero-title .english {
  display: block;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.08em;
}

.hero-desc {
  font-size: 1.05rem;
  max-width: 440px;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 480px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.hero-image::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--sage-light);
  border-radius: 50%;
  z-index: -1;
  top: -20px;
  right: -20px;
  opacity: 0.5;
}

.hero-image::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--rose-light);
  border-radius: 50%;
  z-index: -1;
  bottom: -30px;
  left: -30px;
  opacity: 0.4;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--terracotta);
  color: white;
}

.btn-primary:hover {
  background: var(--sage-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(196, 131, 90, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--charcoal);
}

.btn-secondary:hover {
  background: var(--charcoal);
  color: white;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: white;
}

.btn-whatsapp:hover {
  background: #1da851;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--terracotta);
  border: 2px solid var(--terracotta);
}

.btn-outline:hover {
  background: var(--terracotta);
  color: white;
  transform: translateY(-2px);
}

/* ── Story Section ── */
.story {
  background: var(--warm-white);
  position: relative;
}

.story .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-image {
  position: relative;
}

.story-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.08);
}

.story-image::before {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  background: var(--amber-light);
  border-radius: 50%;
  z-index: -1;
  top: -20px;
  left: -20px;
  opacity: 0.4;
}

.story-text p {
  font-size: 1.02rem;
  margin-bottom: 1.2rem;
  color: var(--text);
}

.story-text .lead {
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 500;
}

.story-quote {
  border-left: 3px solid var(--terracotta);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--charcoal);
}

/* ── Experience / Process Section ── */
.experience {
  text-align: center;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.experience-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sage-light);
  border-radius: 50%;
  font-size: 2rem;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.experience-step h3 {
  margin-bottom: 0.8rem;
  font-size: 1.15rem;
}

.experience-step p {
  font-size: 0.92rem;
  color: var(--text-light);
}

/* ── Products Section ── */
.products {
  background: var(--warm-white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.product-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.product-info {
  padding: 1.5rem;
  text-align: center;
}

.product-info h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.product-info p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.product-tag {
  display: inline-block;
  background: var(--sage-light);
  color: var(--sage-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
}

/* ── Values / Philosophy Section ── */
.values {
  text-align: center;
  background: linear-gradient(135deg, var(--cream) 0%, var(--rose-light) 100%);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.value-card {
  padding: 2rem;
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.value-card p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ── Order / CTA Section ── */
.order {
  background: var(--charcoal);
  color: white;
  text-align: center;
}

.order .section-label {
  color: var(--amber-light);
}

.order .section-title {
  color: white;
}

.order .section-subtitle {
  color: rgba(255,255,255,0.7);
  margin-left: auto;
  margin-right: auto;
}

.order-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.order-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.order-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.08);
}

.order-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.order-card h3 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.order-card p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.order-card .btn {
  width: 100%;
  justify-content: center;
}

/* ── Social / Instagram Section ── */
.social {
  text-align: center;
  background: var(--cream);
}

.social-handle {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--terracotta);
  margin-top: 1rem;
}

/* ── Footer ── */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.6);
  padding: 3rem 0 2rem;
  text-align: center;
}

.footer-logo {
  max-width: 140px;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.footer-tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--amber-light);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
}

/* ── Decorative Elements ── */
.deco-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.15;
}

/* ── Scroll Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    order: 1;
  }
  
  .hero-image {
    order: 0;
  }
  
  .hero-image img {
    max-width: 350px;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-logo {
    margin-left: auto;
    margin-right: auto;
  }
  
  .story .container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .experience-grid,
  .products-grid,
  .values-grid,
  .order-methods {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }
  
  .nav-links.open {
    display: flex;
  }
  
  .nav-toggle {
    display: block;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 15px;
  }
  
  .hero {
    padding-top: 4rem;
  }
  
  .hero-image::before,
  .hero-image::after {
    display: none;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
  }
}
