/* ============================================
   SteviCha™ Brand Website
   Style Guide: Organic Green + Japanese Minimalism
   Reference: Marukyu-Koyamaen aesthetic
   ============================================ */

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

:root {
  /* Core Palette */
  --color-matcha:        #6B8E4E;   /* Primary green - matcha leaf */
  --color-matcha-dark:   #4A6B3A;   /* Deep forest green */
  --color-matcha-light:  #A8C5A0;   /* Soft sage */
  --color-earth:         #D4C4A8;   /* Warm sand/earth */
  --color-earth-light:   #F5F0E8;   /* Cream/off-white */
  --color-earth-warm:    #E8DDD0;   /* Warm parchment */
  --color-ink:           #2C2C2C;   /* Near-black text */
  --color-ink-light:     #5A5A5A;   /* Secondary text */
  --color-ink-muted:     #8A8A8A;   /* Muted/caption */
  --color-gold:          #C4A35A;   /* Accent gold - earth warmth */
  --color-white:         #FFFFFF;
  --color-border:        #D8D0C4;   /* Subtle border */
  
  /* Typography */
  --font-display: 'Noto Serif JP', 'Playfair Display', Georgia, serif;
  --font-body:    'Noto Sans JP', 'Inter', -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  
  /* Spacing (8px grid) */
  --sp-1:  8px;
  --sp-2:  16px;
  --sp-3:  24px;
  --sp-4:  32px;
  --sp-5:  40px;
  --sp-6:  48px;
  --sp-8:  64px;
  --sp-10: 80px;
  --sp-12: 96px;
  --sp-16: 128px;
  
  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
  --radius: 4px;
  --radius-md: 8px;
  
  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.4s;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background-color: var(--color-earth-light);
  line-height: 1.7;
  overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.3;
  color: var(--color-matcha-dark);
  letter-spacing: -0.02em;
}

h1 { font-size: 2.8rem; margin-bottom: var(--sp-4); }
h2 { font-size: 2rem;   margin-bottom: var(--sp-3); }
h3 { font-size: 1.4rem; margin-bottom: var(--sp-2); }
h4 { font-size: 1.1rem; margin-bottom: var(--sp-2); }

p { margin-bottom: var(--sp-2); color: var(--color-ink-light); }

a {
  color: var(--color-matcha);
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}
a:hover { color: var(--color-matcha-dark); }

.text-center { text-align: center; }
.text-serif  { font-family: var(--font-display); }
.text-sans   { font-family: var(--font-body); }

.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.caption {
  font-size: 0.85rem;
  color: var(--color-ink-muted);
  line-height: 1.5;
}

/* --- Container & Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

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

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

.section--dark {
  background-color: var(--color-matcha-dark);
  color: var(--color-white);
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--color-white); }
.section--dark p { color: rgba(255,255,255,0.85); }
.section--dark a { color: var(--color-gold); }
.section--dark a:hover { color: var(--color-white); }

.section--earth {
  background-color: var(--color-earth-warm);
}

.section--cream {
  background-color: var(--color-earth-light);
}

.section--earth-light {
  background-color: #FAF8F4;
}

/* Grid system */
.grid {
  display: grid;
  gap: var(--sp-5);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .section { padding: var(--sp-10) 0; }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(245, 240, 232, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: background var(--duration) var(--ease-out);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-matcha-dark);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--color-matcha);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.2rem;
}

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

.nav__links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-ink-light);
  letter-spacing: 0.03em;
  position: relative;
  padding: var(--sp-1) 0;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-matcha);
  transition: width var(--duration) var(--ease-out);
}
.nav__links a:hover { color: var(--color-matcha-dark); }
.nav__links a:hover::after { width: 100%; }

.nav__lang {
  display: flex;
  gap: var(--sp-1);
  font-size: 0.8rem;
  font-weight: 600;
}

.nav__lang a {
  padding: 4px 10px;
  border-radius: var(--radius);
  color: var(--color-ink-muted);
  border: 1px solid transparent;
}
.nav__lang a.active {
  color: var(--color-matcha-dark);
  border-color: var(--color-matcha);
  background: rgba(107,142,78,0.08);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  width: 32px;
  height: 32px;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}
.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-ink);
  transition: all var(--duration);
}

@media (max-width: 768px) {
  .nav__links { 
    display: none; 
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-earth-light);
    padding: var(--sp-3) var(--sp-5);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    gap: var(--sp-2);
  }
  .nav__links.open { display: flex; }
  .nav__toggle { display: flex; }
}

/* --- Video Embed --- */
.video-embed {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.video-embed__wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: var(--color-earth-warm);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.video-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-md);
}

/* --- Hero Section --- */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-matcha-dark) 0%, var(--color-matcha) 50%, var(--color-earth) 100%);
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--nav-height) + var(--sp-10)) var(--sp-5) var(--sp-10);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  align-items: center;
}

.hero__text {
  color: var(--color-white);
}

.hero__title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: var(--sp-3);
  letter-spacing: -0.03em;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: var(--sp-5);
  max-width: 480px;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--color-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

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

.hero__image-frame {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.hero__image-placeholder {
  font-size: 6rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
  line-height: 1;
}

@media (max-width: 1024px) {
  .hero__content { grid-template-columns: 1fr; text-align: center; }
  .hero__title { font-size: 2.5rem; }
  .hero__subtitle { max-width: 100%; }
  .hero__image { display: none; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  text-decoration: none;
}

.btn--primary {
  background: var(--color-matcha);
  color: var(--color-white);
}
.btn--primary:hover {
  background: var(--color-matcha-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(107,142,78,0.3);
}

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

.btn--gold {
  background: var(--color-gold);
  color: var(--color-white);
}
.btn--gold:hover {
  background: #B8963F;
  color: var(--color-white);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-matcha-dark);
}
.btn--white:hover {
  background: var(--color-earth-light);
  transform: translateY(-2px);
}

.btn--large {
  padding: 16px 40px;
  font-size: 1rem;
}

.btn-group {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .btn-group { justify-content: center; }
}

/* --- Feature Cards --- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  transition: all var(--duration) var(--ease-out);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  border-color: var(--color-matcha-light);
}

.card__icon {
  width: 56px;
  height: 56px;
  background: var(--color-earth-warm);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-matcha);
  margin-bottom: var(--sp-3);
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-matcha-dark);
  margin-bottom: var(--sp-1);
}

.card__text {
  font-size: 0.9rem;
  color: var(--color-ink-light);
  line-height: 1.6;
}

/* --- Product Showcase --- */
.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}

.product-showcase__image {
  background: var(--color-earth-warm);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.product-showcase__content {
  padding: var(--sp-4) 0;
}

@media (max-width: 768px) {
  .product-showcase { grid-template-columns: 1fr; }
}

/* --- Stats / KPI Bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
  padding: var(--sp-6) 0;
}

.stat {
  text-align: center;
}

.stat__value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-matcha);
  line-height: 1;
  margin-bottom: var(--sp-1);
}

.stat__label {
  font-size: 0.8rem;
  color: var(--color-ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

/* --- Composition List --- */
.composition-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
}

.composition-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-2);
  border-radius: var(--radius);
  background: rgba(107,142,78,0.06);
}

.composition-item__icon {
  color: var(--color-matcha);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.composition-item__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-matcha-dark);
}

.composition-item__desc {
  font-size: 0.8rem;
  color: var(--color-ink-muted);
}

/* --- Application Cards --- */
.app-card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--duration) var(--ease-out);
}
.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.app-card__image {
  height: 180px;
  background: var(--color-earth-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--color-matcha-light);
}

.app-card__body {
  padding: var(--sp-3);
}

.app-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-matcha-dark);
  margin-bottom: var(--sp-1);
}

.app-card__text {
  font-size: 0.85rem;
  color: var(--color-ink-light);
  line-height: 1.5;
}

/* --- Compliance Badges --- */
.badge-row {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 8px 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-matcha-dark);
}
.badge i { color: var(--color-matcha); }

/* --- Form --- */
.form-group {
  margin-bottom: var(--sp-3);
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-ink);
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-1);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-ink);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--duration);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-matcha);
  box-shadow: 0 0 0 3px rgba(107,142,78,0.1);
}

.form-textarea { min-height: 120px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
}

/* --- Footer --- */
.footer {
  background: var(--color-matcha-dark);
  color: var(--color-white);
  padding: var(--sp-10) 0 var(--sp-4);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.footer__desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-width: 320px;
}

.footer__heading {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--sp-2);
}

.footer__links {
  list-style: none;
}

.footer__links li { margin-bottom: var(--sp-1); }
.footer__links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--duration);
}
.footer__links a:hover { color: var(--color-white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: var(--sp-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.footer__social {
  display: flex;
  gap: var(--sp-2);
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  transition: all var(--duration);
}
.footer__social a:hover {
  background: var(--color-gold);
  color: var(--color-white);
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: var(--sp-2); text-align: center; }
}

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

/* --- WhatsApp Float Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
  z-index: 999;
  cursor: pointer;
  transition: transform var(--duration) var(--ease-out);
}
.whatsapp-float:hover { transform: scale(1.1); }

/* --- Section Divider --- */
.divider {
  width: 60px;
  height: 2px;
  background: var(--color-matcha);
  margin: var(--sp-3) 0;
}
.divider--center {
  margin-left: auto;
  margin-right: auto;
}
.divider--gold {
  background: var(--color-gold);
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Japanese Decorative Element --- */
.jp-ornament {
  font-size: 2rem;
  color: var(--color-matcha-light);
  opacity: 0.6;
  text-align: center;
  margin: var(--sp-4) 0;
}

/* --- Responsive Utilities --- */
@media (max-width: 768px) {
  .hide-mobile { display: none; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .composition-list { grid-template-columns: 1fr; }
}

@media (min-width: 769px) {
  .hide-desktop { display: none; }
}

/* --- Page-specific: Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
}

.contact-info {
  padding: var(--sp-5);
  background: var(--color-earth-warm);
  border-radius: var(--radius-md);
}

.contact-info__item {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.contact-info__icon {
  color: var(--color-matcha);
  font-size: 1.2rem;
  flex-shrink: 0;
}

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

/* --- Leaf Decoration --- */
.leaf-deco {
  position: absolute;
  font-size: 120px;
  color: rgba(107,142,78,0.04);
  pointer-events: none;
  user-select: none;
}

/* --- Print Styles --- */
@media print {
  .nav, .whatsapp-float, .footer__social { display: none; }
  .hero { min-height: auto; }
  body { background: white; }
}
