/*
Theme Name: Nihongo with Yuya
Theme URI: https://nihongowithyuya.com
Author: Yuya Himeshima
Description: Learn Japanese with Yuya — custom one-page theme. Courses, testimonials and texts are editable from the WordPress admin.
Version: 1.0.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: nihongo-with-yuya
*/

:root {
  --primary: #2BA8A2;
  --primary-light: #3CC4BD;
  --primary-dark: #1E8C86;
  --primary-bg: #E8F6F5;
  --gold: #FFD23F;
  --gold-light: #FFE47A;
  --gold-dark: #E6B800;
  --coral: #EF6C4A;
  --coral-light: #FF8A6A;
  --cream: #FFF8E7;
  --surface: #EFF8F7;
  --navy: #17423F;
  --text: #35504d;
  --muted: #6b8683;
  --border: #dcecea;
  --white: #ffffff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Helvetica Neue", Arial, "Hiragino Sans", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; }
.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; position: relative; overflow: hidden; }
h2 {
  color: var(--navy);
  font-size: clamp(2.2rem, 4.5vw, 2.6rem);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
  position: relative; z-index: 1;
}
.section-lead {
  text-align: center;
  color: var(--muted);
  margin-bottom: 48px;
  position: relative; z-index: 1;
}
.accent-bar {
  width: 48px; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  border-radius: 2px;
  margin: 0 auto 20px;
  position: relative; z-index: 1;
}
/* soft blurred blob accents */
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(48px); opacity: 0.55;
  pointer-events: none; z-index: 0;
}
.blob-teal { background: radial-gradient(circle, var(--primary-light), transparent 70%); }
.blob-gold { background: radial-gradient(circle, var(--gold-light), transparent 70%); }
.blob-coral { background: radial-gradient(circle, var(--coral-light), transparent 70%); }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  box-shadow: 0 2px 16px rgba(30,140,134,0.28);
  z-index: 100;
}
.nav-wrap {
  max-width: 1040px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  font-weight: 700; font-size: 1.05rem; color: #fff;
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
nav ul {
  display: flex; gap: 26px; list-style: none; align-items: center;
}
nav a {
  text-decoration: none; color: #d8f0ee; font-size: 0.95rem;
  transition: color .2s;
}
nav a:hover { color: #fff; }
.nav-cta {
  background: var(--gold); color: var(--navy) !important;
  padding: 9px 20px; border-radius: 999px; font-weight: 700;
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
  transition: transform .2s, background .2s;
}
.nav-cta:hover { transform: translateY(-1px); background: var(--gold-light); }
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 1.6rem; color: #fff;
}

/* Hero */
.hero {
  padding: 150px 0 90px;
  background: var(--primary-bg);
  overflow: hidden; position: relative;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 40px; align-items: center;
  position: relative; z-index: 1;
}
.hero-text { position: relative; z-index: 2; }
.hero-badge {
  display: inline-block;
  background: var(--gold-light); color: var(--navy);
  font-size: 0.85rem; font-weight: 700;
  padding: 6px 16px; border-radius: 999px;
  margin-bottom: 18px; letter-spacing: 0.03em;
}
.hero h1 {
  color: var(--navy); font-size: clamp(2.1rem, 5vw, 3.1rem);
  line-height: 1.22; margin-bottom: 18px;
}
.hero h1 span { color: var(--primary); }
.hero .hero-sub {
  color: var(--muted); font-size: 1.12rem; max-width: 480px;
  margin-bottom: 32px;
}
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 14px 36px; border-radius: 999px; font-size: 1rem;
  transition: all .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 6px 18px rgba(43,168,162,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(43,168,162,0.45); color: #fff; }
.btn-ghost {
  color: var(--primary-dark); border: 2px solid var(--primary); margin-left: 12px;
}
.btn-ghost:hover { background: var(--primary-bg); }

/* hero photo area */
.hero-visual {
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  min-height: 380px;
}
.hero-photo {
  position: relative; z-index: 1;
  width: 340px; max-height: 460px; object-fit: contain; object-position: bottom;
  -webkit-mask-image: linear-gradient(to bottom, black 94%, rgba(0,0,0,0.5) 98%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 94%, rgba(0,0,0,0.5) 98%, transparent 100%);
}

/* About */
#about .blob { width: 300px; height: 300px; bottom: -60px; left: -110px; }
.about-grid {
  display: grid; grid-template-columns: 280px 1fr; gap: 48px;
  align-items: center; position: relative; z-index: 1;
}
.about-photo-wrap { position: relative; width: 280px; margin: 0 auto; }
.about-photo-wrap::before {
  content: ""; position: absolute; top: -16px; left: -16px;
  width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-light), transparent 70%);
  filter: blur(6px); z-index: 0;
}
.about-photo {
  position: relative; z-index: 1;
  width: 280px; height: 280px; border-radius: 50%;
  object-fit: cover; object-position: top;
  border: 3px solid #fff;
  box-shadow: 0 12px 28px rgba(43,168,162,0.22);
  display: block;
}
.about-text p { margin-bottom: 16px; }
.about-points { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.point-tag {
  background: var(--primary-bg); border: 1px solid #bfe4e1;
  color: var(--primary-dark); font-size: 0.85rem; font-weight: 600;
  padding: 7px 14px; border-radius: 999px;
}

/* Video */
.video-section { background: var(--primary-bg); }
.video-section .blob { width: 320px; height: 320px; top: -80px; right: -120px; opacity: 0.7; }
.video-frame {
  position: relative; max-width: 760px; margin: 0 auto;
  aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden;
  box-shadow: 0 12px 32px rgba(30,140,134,0.22);
  background: #cdeeec; z-index: 1;
}
.video-frame video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; background: #000;
}

/* Testimonials */
#testimonials { background: var(--cream); }
#testimonials .blob { width: 300px; height: 300px; bottom: -80px; right: -100px; }
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  position: relative; z-index: 1;
}
.t-card {
  background: var(--white); border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 20px; padding: 32px 28px;
  box-shadow: 0 6px 20px rgba(30,140,134,0.08);
  text-align: center;
}
.t-card:nth-child(2) { border-top-color: var(--gold); }
.t-card:nth-child(3) { border-top-color: var(--coral); }
.t-card .avatar-top {
  width: 92px; height: 92px; border-radius: 50%;
  object-fit: cover; display: block;
  margin: 0 auto 14px;
  border: 3px solid var(--primary-bg);
  box-shadow: 0 6px 16px rgba(30,140,134,0.18);
}
.t-card p { margin-top: 14px; font-size: 0.95rem; text-align: left; }
.t-card .who { font-weight: 700; color: var(--navy); font-size: 1.02rem; }
.t-card .who small { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.stars { color: var(--gold-dark); letter-spacing: 2px; font-size: 0.9rem; margin-top: 6px; }

/* Lessons */
.lessons-section { background: var(--surface); }
.lessons-section .blob.l1 { width: 340px; height: 340px; top: -60px; left: -130px; }
.lessons-section .blob.l2 { width: 260px; height: 260px; bottom: 120px; right: -100px; }
.course-card {
  background: var(--white); border-radius: 20px; padding: 36px 28px;
  text-align: center; border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.course-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(43,168,162,0.18); }
.course-card.popular { border: 2px solid var(--primary); position: relative; }
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--coral), var(--coral-light));
  color: #fff; font-size: 0.78rem; font-weight: 700;
  padding: 4px 16px; border-radius: 999px; letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(239,108,74,0.35);
}
.course-card .duration { color: var(--navy); font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }
.course-card .price { color: var(--primary-dark); font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.course-card ul { list-style: none; text-align: left; margin-bottom: 24px; flex: 1; }
.course-card li { padding: 5px 0 5px 26px; position: relative; font-size: 0.94rem; }
.course-card li::before { content: "✓"; color: var(--primary); font-weight: 700; position: absolute; left: 0; }
.booking-note { text-align: center; margin: 56px 0 8px; color: var(--muted); position: relative; z-index: 1; }

/* Contact */
#contact .blob { width: 300px; height: 300px; top: 40px; right: -120px; }
.contact-form {
  max-width: 620px; margin: 0 auto; position: relative; z-index: 1;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 24px; padding: 40px 36px;
  box-shadow: 0 10px 30px rgba(30,140,134,0.1);
}
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: 0.95rem; }
.form-row input, .form-row textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--border);
  border-radius: 12px; font-size: 1rem; font-family: inherit;
  background: var(--cream);
  transition: border-color .2s, background .2s;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 3px rgba(43,168,162,0.15);
}
.form-submit { text-align: center; }
.form-submit button {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; border: none; cursor: pointer;
  padding: 14px 48px; border-radius: 999px; font-size: 1rem; font-weight: 600;
  box-shadow: 0 6px 18px rgba(43,168,162,0.35);
  transition: transform .2s; font-family: inherit;
}
.form-submit button:hover { transform: translateY(-2px); }
.socials { text-align: center; margin-top: 36px; position: relative; z-index: 1; }
.socials .insta {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 16px;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff; box-shadow: 0 6px 16px rgba(214,36,159,0.35);
  transition: transform .2s;
}
.socials .insta:hover { transform: translateY(-3px); }

/* Footer */
.site-footer {
  background: linear-gradient(90deg, #14615d, var(--primary-dark));
  color: #cdeeec; text-align: center;
  padding: 36px 24px; font-size: 0.9rem;
}
.site-footer a { color: #8fdcd7; text-decoration: none; margin: 0 10px; }

/* Mobile */
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .hamburger { display: block; }
  nav {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--primary-dark);
    padding: 16px 24px 24px;
    box-shadow: 0 12px 24px rgba(30,140,134,0.3);
  }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 16px; align-items: flex-start; }
  .hero { padding: 120px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-visual { min-height: 320px; order: -1; margin-bottom: 24px; }
  .hero-photo { width: 250px; }
  .btn-ghost { margin-left: 0; margin-top: 12px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo-wrap, .about-photo { width: 220px; height: 220px; }
  .about-points { justify-content: center; }
  .cards { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 22px; }
}
