/* ============================================================
   Japanese with Yuko — main stylesheet
   Palette: soft sakura blush background, plum-ink text, rose accent
   ============================================================ */

:root {
  --washi: #FDF3F5;        /* soft blush background */
  --washi-deep: #F8E4EA;   /* alternate section background */
  --ink: #32242B;          /* primary text, plum-ink */
  --ink-soft: #61505A;     /* secondary text */
  --sakura: #B0446B;       /* accent / CTA — deep sakura rose */
  --sakura-dark: #96385A;
  --gold: #B98A2F;         /* small highlights */
  --card: #FFFFFF;
  --border: #F0D7DF;
  --radius: 14px;
  --shadow: 0 2px 6px rgba(43, 38, 34, 0.06), 0 12px 32px rgba(43, 38, 34, 0.07);
  --font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-body: "Nunito Sans", "Hiragino Sans", sans-serif;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--washi);
}

.container {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

h2 { font-size: clamp(1.75rem, 4vw, 2.375rem); margin-bottom: 2rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.625rem; }

p { max-width: 65ch; }

a { color: var(--sakura); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--sakura);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--sakura);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--sakura);
  border-radius: 999px;
  padding: 0.75rem 1.75rem;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn:hover { background: var(--sakura-dark); border-color: var(--sakura-dark); }

.btn-ghost {
  background: transparent;
  color: var(--sakura);
}
.btn-ghost:hover { background: rgba(176, 68, 107, 0.08); color: var(--sakura-dark); }

.btn-small { padding: 0.5rem 1.25rem; font-size: 0.9375rem; }
.btn-full { width: 100%; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 243, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.brand em { color: var(--sakura); font-style: normal; font-weight: 500; }

.brand-mark {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--sakura);
  flex-shrink: 0;
}

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

.nav-menu a:not(.btn) {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}
.nav-menu a:not(.btn):hover { color: var(--sakura); border-bottom-color: var(--sakura); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 5.5rem 0 7rem;
  background:
    linear-gradient(90deg,
      rgba(253, 243, 245, 0.97) 0%,
      rgba(253, 243, 245, 0.92) 42%,
      rgba(253, 243, 245, 0.55) 68%,
      rgba(253, 243, 245, 0.18) 100%),
    url("../images/hero.webp") center 62% / cover no-repeat;
}

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

.hero-kana {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--sakura);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.125rem, 5vw, 3.25rem);
  font-weight: 900;
  margin-bottom: 1.25rem;
}

.accent { color: var(--sakura); }

.hero-sub { color: var(--ink-soft); font-size: 1.125rem; margin-bottom: 2rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 2rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9375rem;
}
.hero-points li { display: flex; align-items: center; gap: 0.4rem; }
.hero-points svg { color: var(--gold); flex-shrink: 0; }

.wave-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  color: var(--washi-deep);
  line-height: 0;
}
.wave-divider svg { width: 100%; height: 36px; display: block; }

/* ---------- Sections ---------- */

.section { padding: 5rem 0; }
.section-alt { background: var(--washi-deep); }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--sakura);
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}
.eyebrow-light { color: #F2BAD0; }

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.card p { color: var(--ink-soft); }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(176, 68, 107, 0.1);
  color: var(--sakura);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.125rem;
}

/* Lesson cards */
.lesson-kana {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.375rem;
}

.lesson-list {
  margin-top: 1rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}
.lesson-list li { margin-bottom: 0.375rem; }
.lesson-list li::marker { color: var(--sakura); }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3.5rem;
  align-items: center;
}

.photo-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 2px dashed var(--border);
  background: var(--washi-deep);
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}

.about-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

.about-copy p { margin-bottom: 1.125rem; color: var(--ink-soft); }
.about-copy .btn { margin-top: 0.5rem; }

/* ---------- Pricing ---------- */

.price-card { text-align: center; display: flex; flex-direction: column; }
.price-card p { margin-inline: auto; }
.price-card .btn { margin-top: auto; align-self: center; margin-top: 1.25rem; }

.price {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  color: var(--sakura);
  margin: 0.25rem 0 0.75rem;
}
.price span { font-size: 1rem; font-weight: 600; color: var(--ink-soft); }

.price-featured { border: 2px solid var(--sakura); position: relative; }

.badge {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sakura);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  max-width: none;
}

/* ---------- Testimonials ---------- */

.quote { border-top: 4px solid var(--sakura); }
.quote p { font-style: italic; margin-bottom: 1rem; }
.quote footer { font-weight: 700; color: var(--ink); font-size: 0.9375rem; }

/* ---------- FAQ ---------- */

.faq-container { max-width: 760px; }

details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.875rem;
  overflow: hidden;
}

summary {
  font-family: var(--font-head);
  font-weight: 700;
  padding: 1.125rem 1.5rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 3rem;
  transition: background-color 200ms ease;
}
summary:hover { background: var(--washi); }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.375rem;
  color: var(--sakura);
}
details[open] summary::after { content: "\2212"; }

details p { padding: 0 1.5rem 1.25rem; color: var(--ink-soft); }

/* ---------- Contact ---------- */

.contact { background: var(--ink); color: #F4EFE7; }
.contact h2 { color: #fff; }
.contact-copy p { color: #D8C6CE; margin-bottom: 1.25rem; }

.contact-kana {
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 700;
  color: #F0AFC9;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-form {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  color: var(--ink);
}

.form-row { margin-bottom: 1.125rem; }

.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 0.35rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--washi);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  transition: border-color 200ms ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--sakura);
  outline: none;
  box-shadow: 0 0 0 3px rgba(176, 68, 107, 0.15);
}

.form-row textarea { resize: vertical; }

/* Honeypot: visually hidden but present for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status { margin-top: 1rem; font-weight: 700; min-height: 1.5em; }
.form-status.is-success { color: #2E7D32; }
.form-status.is-error { color: var(--sakura); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  border-top: 1px solid #463039;
  color: #AE9CA5;
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero {
    padding: 3rem 0 5rem;
    background:
      linear-gradient(rgba(253, 243, 245, 0.93), rgba(253, 243, 245, 0.85)),
      url("../images/hero-mobile.webp") center 62% / cover no-repeat;
  }
  .cards { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo { max-width: 380px; }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }

  .nav-toggle { display: flex; align-items: center; justify-content: center; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--washi);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.25rem 1.25rem;
    box-shadow: var(--shadow);
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li { padding: 0.5rem 0; }
  .nav-menu .btn { text-align: center; margin-top: 0.5rem; }

  .footer-inner { flex-direction: column; text-align: center; gap: 0.25rem; }
}
