/* J&R Japanese Language Tutorial — website styles */
:root {
  --red: #b3261e; --maroon: #7a1712; --deep: #5e100c; --night: #2a0806;
  --gold: #e0a526; --gold-d: #a87612; --gold-l: #fbe7b0;
  --cream: #fff8ef; --peach: #fbe3c4; --ink: #1f1f1f; --muted: #66605a; --line: #eadfd3;
  --radius: 18px; --shadow: 0 10px 30px rgba(122, 23, 18, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 16px/1.65 "Poppins", system-ui, sans-serif; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
.jp { font-family: "Noto Sans JP", sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.mt { margin-top: 40px; }
.muted { color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
       font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; font-size: 15px;
       transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-gold { background: var(--gold); color: var(--deep); box-shadow: 0 5px 0 var(--gold-d); }
.btn-gold:hover { box-shadow: 0 7px 0 var(--gold-d); }
.btn-ghost { border: 2px solid rgba(255, 255, 255, .75); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 5px 0 var(--deep); }

/* top bar + header */
.topbar { background: var(--night); color: rgba(255, 255, 255, .8); font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: var(--gold-l); text-decoration: none; font-weight: 600; }
header { position: sticky; top: 0; z-index: 30; background: var(--maroon); transition: box-shadow .2s; }
header.scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; font-weight: 800; font-size: 17px; line-height: 1.15; }
.brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold); }
.brand small { display: block; font-weight: 500; font-size: 10.5px; letter-spacing: 1.6px; opacity: .85; }
.links { display: flex; gap: 24px; align-items: center; }
.links a { color: #fff; text-decoration: none; font-weight: 600; font-size: 14.5px; opacity: .9; }
.links a:hover { opacity: 1; color: var(--gold-l); }
.links .btn { opacity: 1; color: var(--deep); padding: 10px 20px; }
.menu { display: none; background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; }

/* hero */
.hero { position: relative; overflow: hidden; color: #fff; padding: 64px 0 0;
        background: radial-gradient(circle at 78% 28%, #d9442f 0, transparent 48%), linear-gradient(160deg, #b3261e, #7a1712 62%, #5e100c); }
.hero::before { content: "日本語"; position: absolute; left: -30px; bottom: 40px; font: 700 220px/1 "Noto Sans JP", sans-serif;
                color: rgba(255, 255, 255, .05); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; position: relative; }
.eyebrow { display: inline-block; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3);
           padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .4px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.08; margin: 20px 0 16px; font-weight: 800; letter-spacing: -.5px; }
.hero h1 span { color: var(--gold-l); }
.lead { font-size: 18px; opacity: .95; max-width: 580px; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-visual { position: relative; justify-self: center; width: min(360px, 100%); }
.hero-logo { width: 100%; border-radius: 50%; box-shadow: 0 0 0 8px rgba(224, 165, 38, .95), 0 26px 60px rgba(0, 0, 0, .45);
             animation: float 6s ease-in-out infinite; }
.float-card { position: absolute; background: #fff; color: var(--ink); border-radius: 14px; padding: 10px 14px;
              box-shadow: 0 14px 30px rgba(0, 0, 0, .25); display: flex; flex-direction: column; font-size: 12px; }
.float-card b { font: 700 20px "Noto Sans JP", sans-serif; color: var(--red); }
.fc1 { left: -30px; top: 30px; animation: float 7s ease-in-out infinite; }
.fc2 { right: -24px; bottom: 30px; animation: float 8s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translateY(-10px); } }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 60px; background: rgba(0, 0, 0, .2);
         border-radius: 18px 18px 0 0; position: relative; }
.trust div { padding: 20px 22px; border-right: 1px solid rgba(255, 255, 255, .12); }
.trust div:last-child { border-right: 0; }
.trust b { display: block; font-size: 22px; color: var(--gold-l); }
.trust span { font-size: 14px; opacity: .9; }

/* sections */
section { padding: 88px 0; }
.tint { background: var(--cream); }
.head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.tag { color: var(--red); font-weight: 700; letter-spacing: 2.2px; font-size: 12.5px; text-transform: uppercase; }
.tag.light { color: var(--gold-l); }
h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.18; margin: 8px 0 12px; color: var(--maroon); font-weight: 800; letter-spacing: -.3px; }
.sub { color: var(--muted); margin: 0; }
h3 { margin: 0 0 6px; font-size: 18.5px; color: var(--maroon); line-height: 1.3; }

/* method */
.method { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.m { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.m-n { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 20px;
       background: linear-gradient(135deg, var(--red), var(--maroon)); color: #fff; margin-bottom: 16px; box-shadow: 0 5px 0 var(--gold); }
.m p { margin: 0; color: var(--muted); font-size: 15px; }

/* courses */
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.course { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
          padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.course:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(122, 23, 18, .14); }
.course .ghost { position: absolute; right: 16px; top: 6px; font: 700 58px "Noto Sans JP", sans-serif; color: rgba(179, 38, 30, .07); }
.lvl { align-self: flex-start; font-weight: 800; font-size: 12.5px; color: #fff; background: var(--red); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.lvl.gold { background: var(--gold); color: var(--deep); }
.for { color: var(--muted); margin: 0 0 6px; font-size: 14.5px; }
.course ul { margin: 6px 0 16px; padding-left: 18px; color: #4a4540; font-size: 15px; flex: 1; }
.more { color: var(--red); font-weight: 700; text-decoration: none; }

/* levels */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lv { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.badge { flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px;
         color: var(--deep); background: var(--gold-l); box-shadow: inset 0 0 0 3px var(--gold); }
.lv p { margin: 0; color: var(--muted); font-size: 15px; }

/* books */
.books-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 26px; }
.book { margin: 0; text-align: center; }
.book img { max-width: 230px; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 16px 34px rgba(0, 0, 0, .18); margin: 0 auto 14px; transition: transform .25s; }
.book:hover img { transform: translateY(-6px) rotate(-1deg); }
.book b { display: block; color: var(--maroon); font-size: 15px; line-height: 1.35; }
.book span { color: var(--muted); font-size: 13px; }

/* about */
.about { background: linear-gradient(160deg, var(--maroon), var(--deep)); color: #fff; }
.about-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 56px; align-items: center; }
.about h2 { color: #fff; }
.about img { width: min(300px, 100%); border-radius: 50%; box-shadow: 0 0 0 6px var(--gold); margin: 0 auto; }
.about p { opacity: .93; }
.sign { font-weight: 700; color: var(--gold-l); }

/* faq */
details { border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; background: #fff; box-shadow: 0 4px 14px rgba(122, 23, 18, .04); }
summary { cursor: pointer; font-weight: 700; color: var(--maroon); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--red); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--muted); }

/* enroll */
.enroll-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; margin: 26px 0 0; padding: 0; }
.contact-list li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.contact-list .i { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--peach); color: var(--maroon); font-weight: 800; font-size: 18px; }
.contact-list small { display: block; color: var(--muted); font-size: 13px; }
.contact-list a { text-decoration: none; font-weight: 700; color: var(--maroon); font-size: 17px; }
.contact-list b { color: var(--maroon); font-size: 17px; }
.form { background: #fff; border-radius: 22px; padding: 32px; border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(122, 23, 18, .1); display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--maroon); }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; color: var(--ink); padding: 12px 14px; border: 1.5px solid var(--line);
       border-radius: 12px; background: #fffdfa; outline: none; transition: border-color .15s, box-shadow .15s; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(224, 165, 38, .2); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.fine { margin: 0; font-size: 12.5px; color: var(--muted); }

/* footer */
footer { background: var(--night); color: rgba(255, 255, 255, .72); padding: 56px 0 26px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
footer h4 { color: #fff; margin: 4px 0 12px; font-size: 15px; }
footer .foot-grid a:not(.brand) { display: block; color: rgba(255, 255, 255, .72); text-decoration: none; padding: 3px 0; }
footer .foot-grid a:not(.brand):hover { color: var(--gold-l); }
footer p { max-width: 340px; }
.copy { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 34px; padding-top: 20px; font-size: 13px; }
.copy .priv { display: block; margin-top: 8px; font-size: 11.5px; opacity: .65; max-width: 720px; }

/* floating call button (mobile) */
.fab { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 40; background: var(--gold); color: var(--deep);
       text-decoration: none; font-weight: 800; padding: 13px 18px; border-radius: 999px; box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.show { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1000px) {
  .method, .books-grid { grid-template-columns: repeat(2, 1fr); }
  .course-grid, .levels { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .fc1 { left: -10px; } .fc2 { right: -6px; }
}
@media (max-width: 760px) {
  .topbar span { display: none; }
  .topbar .wrap { justify-content: center; }
  .links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
           background: var(--maroon); padding: 6px 0 18px; box-shadow: 0 14px 24px rgba(0, 0, 0, .25); }
  .links.open { display: flex; }
  .links a { padding: 12px 22px; width: 100%; }
  .links .btn { margin: 10px 22px 0; width: auto; }
  .menu { display: block; }
  .hero { padding-top: 36px; }
  .hero-grid, .about-grid, .enroll-grid { grid-template-columns: 1fr; }
  .hero-text { text-align: center; }
  .hero-visual { order: -1; width: 230px; }
  .float-card { display: none; }
  .cta { justify-content: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .trust { grid-template-columns: 1fr 1fr; margin-top: 40px; }
  .trust div:nth-child(2) { border-right: 0; }
  .trust div { border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .method, .course-grid, .levels { grid-template-columns: 1fr; }
  .books-grid { gap: 18px; }
  section { padding: 64px 0; }
  .form { padding: 22px; }
  .foot-grid { grid-template-columns: 1fr; }
  .fab.on { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-logo, .float-card { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* presyo sa course card */
.course .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 14px; padding: 12px 14px;
  border-radius: 12px; background: #fdf3e0; border: 1px solid #f1d9a6; }
.course .price b { font: 800 26px Poppins, sans-serif; color: var(--maroon); }
.course .price span { font-weight: 600; color: var(--red); font-size: 14px; }
.course .price small { flex-basis: 100%; color: #6b5a3a; font-size: 13.5px; }

/* testimonya (video) */
.testi-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.testi { margin: 0; width: 300px; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 12px 30px rgba(122, 23, 18, .10); }
.testi video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: #000; object-fit: cover; }
.testi figcaption { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.testi figcaption b { color: var(--maroon); font-size: 17px; }
.testi figcaption span { color: var(--red); font-weight: 600; font-size: 14px; }

/* e-book store */
.book figcaption { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.book .bprice { font-style: normal; font: 800 22px Poppins, sans-serif; color: var(--red); margin-top: 6px; }
.book .buy { margin-top: 6px; display: inline-block; padding: 7px 18px; border-radius: 999px; background: var(--gold); color: #5e100c;
  font-weight: 700; font-size: 14px; text-decoration: none; transition: transform .2s, background .2s; }
.book .buy:hover { background: #f0b93a; transform: translateY(-2px); }
.fine.center { max-width: 640px; margin: 10px auto 0; }

/* paano magbayad */
.pay-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 24px; align-items: start; }
.pay { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 30px rgba(122, 23, 18, .10); }
.pay img { display: block; width: 100%; height: auto; }
.pay figcaption { padding: 12px 16px; display: flex; flex-direction: column; text-align: center; }
.pay figcaption b { color: var(--maroon); }
.pay figcaption span { color: var(--muted); font-size: 14px; }
.pay-steps { background: var(--peach); border-radius: var(--radius); padding: 24px 26px; }
.pay-steps h3 { margin: 0 0 10px; color: var(--maroon); }
.pay-steps ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 10px; color: #4a4540; }
.pay-steps a { color: var(--red); font-weight: 600; }
@media (max-width: 1000px) { .pay-grid { grid-template-columns: 1fr 1fr; } .pay-steps { grid-column: 1 / -1; } }
@media (max-width: 560px) { .pay-grid { grid-template-columns: 1fr; } .pay { max-width: 340px; margin: 0 auto; } }

/* order form: e-book picker */
.form .hint { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.ebooks { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0; display: grid; gap: 4px; }
.ebooks[hidden] { display: none; }
.ebooks legend { font-weight: 700; font-size: 14px; color: var(--maroon); padding: 0 6px; }
.form .eb { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-weight: 400; color: var(--ink); padding: 6px 4px; border-bottom: 1px dashed var(--line); cursor: pointer; }
.form .eb input { width: 18px; height: 18px; padding: 0; accent-color: var(--red); }
.form .eb b { color: var(--red); }
.eb-total { margin: 8px 4px 0; text-align: right; color: var(--maroon); }
.eb-total b { font-size: 18px; }


/* store: centered rows so the last row doesn't hang left */
.books-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.books-grid .book { flex: 0 1 calc((100% - 52px) / 3); }
@media (max-width: 1000px) { .books-grid .book { flex-basis: calc((100% - 26px) / 2); } }
@media (max-width: 760px) { .books-grid .book { flex-basis: calc((100% - 18px) / 2); } }

.incl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.incl > div { background: #fff8e8; border: 1px solid rgba(164,42,29,.18); border-radius: 14px; padding: 16px 18px; }
.incl h3 { font: 700 16px Poppins, sans-serif; color: var(--maroon); margin: 0 0 8px; }
.incl ul { margin: 0; padding-left: 0; list-style: none; }
.incl li { margin: 6px 0; font-size: 14.5px; }
@media (max-width: 760px) { .incl { grid-template-columns: 1fr; } }

.review-cta { margin: 28px auto 0; max-width: 760px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; border: 2px solid var(--gold); border-radius: var(--radius); padding: 18px 22px; }
.review-cta div { flex: 1 1 320px; display: flex; flex-direction: column; gap: 4px; }
.review-cta b { color: var(--maroon); font-size: 17px; }
.review-cta span { color: var(--muted); font-size: 14.5px; }

/* testimonya: FB reviews (generated by tools/fb_reviews.js) */
.fb-reviews { margin-top: 48px; }
.fbr-head { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 22px; text-align: center; }
.fbr-head b { font-size: 24px; color: var(--maroon); }
.fbr-head span { color: var(--muted); }
.fbr-grid { columns: 3 300px; column-gap: 20px; }
.fbr-grid:not(.all) .fbr.more { display: none; }
.fbr { break-inside: avoid; margin: 0 0 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.fbr-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.fbr-ava { width: 36px; height: 36px; border-radius: 50%; background: var(--maroon); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.fbr-top b { color: var(--maroon); }
.fbr-rec { margin-left: auto; font-size: 12.5px; color: #1b74e4; font-weight: 600; }
.fbr blockquote { margin: 0; color: #3d3833; font-size: 14.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.fbr blockquote.open { -webkit-line-clamp: unset; display: block; }
#fbr-more { margin-top: 4px; }

.pt-link { margin: 18px 0 0; font-size: 15px; }
.pt-link a { color: var(--gold-l); border-bottom: 1px dashed currentColor; }
.pt-link a:hover { color: #fff; }
