/* =========================================================
   Yokchan — Shared stylesheet
   Palette inspired by the Yokchan logo:
   green #2FAA52, red #E8453D, blue #3DA5E8, yellow #FFD233,
   orange #F58A3D, leaf #B8E986
   ========================================================= */

:root {
  --green:      #2FAA52;
  --green-soft: #D9F2DF;
  --red:        #E8453D;
  --red-soft:   #FBDAD7;
  --blue:       #3DA5E8;
  --blue-soft:  #D8ECFB;
  --yellow:     #FFD233;
  --yellow-soft:#FFF3C4;
  --orange:     #F58A3D;
  --leaf:       #B8E986;
  --cream:      #FFF9EE;
  --ink:        #23324A;
  --ink-soft:   #4A5A74;
  --line:       #EAE2CF;
  --shadow:     0 6px 20px rgba(35, 50, 74, .08);
  --shadow-lg:  0 14px 36px rgba(35, 50, 74, .12);
  --radius:     18px;
  --radius-lg:  26px;
  --maxw:       1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fredoka', 'Nunito', system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

p  { margin: 0 0 1em; color: var(--ink-soft); }

a  { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ================= Top announcement bar ================= */
.top-bar {
  background: linear-gradient(90deg, var(--green), var(--blue));
  color: #fff;
  text-align: center;
  font-size: .9rem;
  padding: 8px 16px;
  font-weight: 600;
}
.top-bar a { color: #FFF3C4; text-decoration: underline; }

/* ================= Header & Nav ================= */
.site-header {
  background: #fff;
  border-bottom: 2px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.brand svg, .brand img { width: 48px; height: 48px; }
.brand .name {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.6rem; font-weight: 600;
  line-height: 1;
}
.brand .tagline {
  font-size: .72rem;
  color: var(--ink-soft);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex; gap: 6px; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: .98rem;
}
.nav-links a:hover {
  background: var(--yellow-soft);
  text-decoration: none;
}
.nav-links a.active {
  background: var(--green-soft);
  color: var(--green);
}
.nav-links .cta {
  background: var(--red);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 30px;
  margin-left: 6px;
  box-shadow: 0 4px 0 #b8332c;
}
.nav-links .cta:hover { background: #d33a32; text-decoration: none; }

.menu-toggle {
  display: none;
  background: none; border: 2px solid var(--line);
  border-radius: 10px; padding: 8px 10px; cursor: pointer;
  font-size: 1.2rem;
}

/* ================= Hero ================= */
.hero {
  position: relative;
  padding: 72px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, var(--yellow-soft) 0, transparent 40%),
    radial-gradient(circle at 88% 30%, var(--blue-soft) 0, transparent 40%),
    radial-gradient(circle at 50% 95%, var(--green-soft) 0, transparent 45%),
    var(--cream);
}
.hero-grid {
  display: grid; gap: 48px;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
}
.hero .eyebrow {
  display: inline-block;
  background: #fff;
  border: 2px solid var(--leaf);
  color: var(--green);
  font-weight: 800;
  font-size: .8rem;
  padding: 6px 14px;
  border-radius: 30px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero h1 { margin-top: 16px; }
.hero h1 .highlight {
  background: linear-gradient(180deg, transparent 60%, var(--yellow) 60%);
  padding: 0 4px;
}
.hero p.lead {
  font-size: 1.15rem; color: var(--ink-soft); max-width: 540px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }

.hero-art {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-art::before,
.hero-art::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(2px);
}
.hero-art::before { width: 28px; height: 28px; background: var(--red); top: -10px; right: 40px; }
.hero-art::after  { width: 22px; height: 22px; background: var(--yellow); bottom: 22px; left: -10px; }
.hero-art svg { width: 100%; height: auto; }

/* ================= Buttons ================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 30px;
  font-weight: 800;
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  border: 0; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary  { background: var(--red); color: #fff; box-shadow: 0 5px 0 #b8332c; }
.btn-primary:hover { background: #d33a32; }
.btn-secondary{ background: var(--blue); color: #fff; box-shadow: 0 5px 0 #2b7fb4; }
.btn-secondary:hover { background: #2d96d8; }
.btn-outline  { background: #fff; color: var(--ink); border: 2px solid var(--line); box-shadow: 0 5px 0 var(--line); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-yellow   { background: var(--yellow); color: var(--ink); box-shadow: 0 5px 0 #d6ac21; }

/* ================= Category strip ================= */
.cat-strip { padding: 40px 0; }
.cat-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}
.cat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  border: 2px solid var(--line);
  display: flex; gap: 16px; align-items: center;
  transition: transform .15s ease, border-color .2s, box-shadow .2s;
  color: var(--ink); text-decoration: none;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.cat-card .icon {
  flex-shrink: 0;
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.8rem;
}
.cat-card.math  .icon { background: var(--blue-soft); color: var(--blue); }
.cat-card.math:hover  { border-color: var(--blue); }
.cat-card.sel   .icon { background: var(--red-soft); color: var(--red); }
.cat-card.sel:hover   { border-color: var(--red); }
.cat-card.yt    .icon { background: var(--yellow-soft); color: var(--orange); }
.cat-card.yt:hover    { border-color: var(--yellow); }
.cat-card h3 { margin: 0 0 4px; }
.cat-card p  { margin: 0; font-size: .95rem; }

/* ================= Sections ================= */
section.block { padding: 64px 0; }
section.block.alt { background: #fff; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }

.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--ink-soft); }
.section-head .tag {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800; font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 30px; margin-bottom: 8px;
}
.section-head.red .tag   { background: var(--red-soft); color: var(--red); }
.section-head.blue .tag  { background: var(--blue-soft); color: var(--blue); }
.section-head.yellow .tag{ background: var(--yellow-soft); color: #A47900; }

/* ================= Product cards ================= */
.product-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(4, 1fr);
}
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .2s, border-color .2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--leaf); }
.product-thumb {
  aspect-ratio: 4/3;
  display: grid; place-items: center;
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.4rem;
  padding: 16px;
  text-align: center;
  position: relative;
}
.product-thumb .badge {
  position: absolute; top: 12px; left: 12px;
  background: #fff; color: var(--ink);
  padding: 4px 10px; border-radius: 30px;
  font-size: .72rem; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase;
}
.thumb-1 { background: linear-gradient(135deg, #3DA5E8, #2b7fb4); }
.thumb-2 { background: linear-gradient(135deg, #FFD233, #F58A3D); color: #23324A;}
.thumb-3 { background: linear-gradient(135deg, #E8453D, #b8332c); }
.thumb-4 { background: linear-gradient(135deg, #2FAA52, #1b7a39); }
.thumb-5 { background: linear-gradient(135deg, #B8E986, #2FAA52); color: #23324A;}
.thumb-6 { background: linear-gradient(135deg, #F58A3D, #E8453D); }
.thumb-7 { background: linear-gradient(135deg, #FFD233, #B8E986); color: #23324A;}
.thumb-8 { background: linear-gradient(135deg, #3DA5E8, #2FAA52); }

.product-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; gap: 6px;}
.product-body .meta {
  font-size: .78rem; font-weight: 800;
  color: var(--green); letter-spacing: .06em; text-transform: uppercase;
}
.product-body .meta.red  { color: var(--red); }
.product-body .meta.blue { color: var(--blue); }
.product-body h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.product-body h3 a { color: var(--ink); }
.product-body h3 a:hover { color: var(--blue); text-decoration: none; }
.product-body .row {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 10px;
}
.price { font-weight: 800; color: var(--red); font-size: 1.05rem; }
.rating { color: #A47900; font-weight: 700; font-size: .9rem; }
.product-body .grade {
  display: inline-block; font-size: .78rem; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
  background: var(--yellow-soft); color: #A47900;
}

/* ================= Featured / About strip ================= */
.about-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.about-split .card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 2px solid var(--line);
}
.pill-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li {
  background: var(--green-soft); color: var(--green);
  padding: 6px 14px; border-radius: 30px; font-weight: 700; font-size: .9rem;
}
.pill-list li:nth-child(2n)  { background: var(--blue-soft); color: var(--blue); }
.pill-list li:nth-child(3n)  { background: var(--yellow-soft); color: #A47900; }
.pill-list li:nth-child(4n)  { background: var(--red-soft); color: var(--red); }

/* ================= YouTube embed ================= */
.yt-hero {
  background: linear-gradient(135deg, #fff 0%, var(--yellow-soft) 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px;
  align-items: center;
  border: 2px solid var(--line);
}
.video-frame {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
}
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #E8453D, #F58A3D);
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.5rem;
  text-align: center;
  padding: 20px;
}
.video-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}

/* ================= Newsletter ================= */
.newsletter {
  background:
    radial-gradient(circle at 10% 10%, var(--yellow-soft) 0, transparent 40%),
    radial-gradient(circle at 90% 80%, var(--blue-soft) 0, transparent 40%),
    #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}
.newsletter h2 { margin-bottom: 8px; }
.newsletter form {
  display: flex; gap: 10px; justify-content: center;
  flex-wrap: wrap; margin-top: 18px;
}
.newsletter input[type="email"] {
  min-width: 280px;
  padding: 14px 18px;
  border-radius: 30px;
  border: 2px solid var(--line);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}
.newsletter input[type="email"]:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft);
}
.newsletter small { color: var(--ink-soft); }

/* ================= Footer ================= */
.site-footer {
  background: #23324A;
  color: #EAE2CF;
  padding: 56px 0 28px;
  margin-top: 64px;
}
.site-footer a { color: #EAE2CF; }
.site-footer a:hover { color: var(--yellow); text-decoration: none; }

.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px; padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand p { color: #C7D0DE; }
.footer-grid h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 6px 0; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  padding-top: 20px; font-size: .88rem; color: #C7D0DE; gap: 10px;
}
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08);
  color: #fff; font-weight: 800; font-size: .95rem;
}
.social a:hover { background: var(--yellow); color: var(--ink); }

/* ================= Forms ================= */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.form-grid .full { grid-column: 1/-1; }
label { font-weight: 700; font-size: .92rem; display: block; margin-bottom: 6px;}
input[type="text"], input[type="email"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  font-family: inherit; font-size: 1rem;
  background: #fff;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft);
}
textarea { min-height: 140px; resize: vertical; }

/* ================= Page hero (inner pages) ================= */
.page-hero {
  padding: 60px 0 40px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, var(--yellow-soft) 0, transparent 40%),
    var(--cream);
}
.page-hero .tag {
  display: inline-block;
  background: #fff; border: 2px solid var(--leaf);
  color: var(--green); font-weight: 800; font-size: .78rem;
  padding: 6px 14px; border-radius: 30px;
  letter-spacing: .08em; text-transform: uppercase;
}
.page-hero h1 { margin-top: 16px; }
.page-hero p { max-width: 620px; margin: 0 auto; }

/* ================= Utilities ================= */
.center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

/* ================= Responsive ================= */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cat-grid  { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .about-split, .yt-hero { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column;
    padding: 14px; border-bottom: 2px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; }
  .nav-links .cta { margin: 6px 0 0; }
  .menu-toggle { display: inline-block; }
  .nav-wrap { position: relative; }
  .cat-grid  { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter { padding: 32px 20px; }
  .hero-art { padding: 18px; }
}
