/* =========================================================
   JKA Indonesia — faithful rebuild of jkaindonesia.or.id
   Light theme: cream bg, white header, JKA red accents
   Fonts: Bricolage Grotesque (display) + Inter (body)
   ========================================================= */

:root {
  --cream:      #f1ece8;   /* page background */
  --cream-soft: #f7f4f1;
  --footer-bg:  #e8dfdb;
  --white:      #ffffff;
  --red:        #ed1b24;
  --red-dark:   #c11018;
  --ink:        #1b2020;
  --ink-soft:   #3a4040;
  --muted:      #8a8a8a;
  --muted-2:    #6a6a6a;
  --blue:       #1a73e8;
  --line:       rgba(27,32,32,.10);

  --maxw: 1200px;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(60,40,30,.10);
  --shadow-sm: 0 8px 24px rgba(60,40,30,.07);
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,.display { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; color: var(--ink); }
/* any heading on a colored (red/dark) background stays white */
.scard.red :is(h1,h2,h3,h4),
.dcard.red :is(h1,h2,h3,h4),
.rcard :is(h1,h2,h3,h4),
.dk-right :is(h1,h2,h3,h4),
.dojos-hero :is(h1,h2,h3,h4) { color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 90px 0; position: relative; }
.section.tight { padding: 60px 0; }

.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; font-size: .76rem;
  color: var(--red); margin-bottom: 16px;
}
.section-head { text-align: center; max-width: 820px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.section-head p { color: var(--muted-2); margin-top: 14px; font-size: 1.08rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  padding: 15px 30px; border-radius: 999px; cursor: pointer;
  background: var(--red); color: var(--white); border: none;
  transition: transform .18s ease, background .18s ease;
}
.btn:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn.block { width: 100%; }
.btn.white { background: var(--white); color: var(--red); }
.btn.white:hover { background: #f3f3f3; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); box-shadow: 0 1px 0 rgba(0,0,0,.05); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.brand img { height: 48px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 38px; list-style: none; margin: 0 auto; }
.nav-links a {
  font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  letter-spacing: .03em; text-transform: uppercase; color: var(--ink);
  transition: color .15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--red); }
.wa-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--red); color: var(--white); font-family: var(--font-display);
  font-weight: 600; font-size: .92rem; padding: 11px 22px 11px 12px; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(237,27,36,.28); transition: transform .18s ease, background .18s ease;
}
.wa-btn:hover { background: var(--red-dark); transform: translateY(-2px); }
.wa-btn .ic { width: 30px; height: 30px; border-radius: 50%; background: var(--white); display: grid; place-items: center; }
.wa-btn .ic svg { width: 17px; height: 17px; fill: var(--red); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 30px; height: 30px; fill: currentColor; }

/* faint tiger / decorative watermark */
.watermark { position: absolute; pointer-events: none; opacity: .06; z-index: 0; }
.watermark img { width: 100%; }

/* ---------- Home hero ---------- */
.hero { padding: 70px 0 40px; position: relative; }
.hero .eyebrow { margin-bottom: 10px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 900px; margin-bottom: 40px; }
.hero-images { display: grid; grid-template-columns: 5fr 7fr; gap: 26px; }
.hero-images .frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-images .frame img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.hero-images .frame.bw img { filter: grayscale(1) contrast(1.02); }
.badge {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  background: rgba(20,20,20,.78); color: #fff; font-family: var(--font-display); font-weight: 600;
  letter-spacing: .18em; font-size: .72rem; text-transform: uppercase;
  padding: 11px 26px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35);
}

/* two-column prose intro */
.intro { padding: 70px 0 40px; position: relative; }
.intro-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; max-width: 1040px; }
.intro-cols p { color: var(--ink-soft); margin-bottom: 22px; font-size: 1.02rem; }
.intro-cols strong { color: var(--ink); font-weight: 700; }
.intro .watermark { right: 4%; top: 30%; width: 320px; }

/* ---------- Schedule cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.scard { background: var(--white); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.scard.red { background: var(--red); color: #fff; position: relative; overflow: hidden; }
.scard .pill { display: inline-block; align-self: flex-start; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 600; padding: 9px 20px; border-radius: 999px; font-size: .98rem; margin-bottom: 22px; }
.scard.red .pill { background: rgba(255,255,255,.95); color: var(--red); }
.scard h3 { font-size: 1.3rem; margin-bottom: 16px; }
.scard .rows { border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 22px; flex: 1; }
.scard.red .rows { border-top-color: rgba(255,255,255,.3); }
.scard .row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--ink-soft); font-size: .98rem; }
.scard.red .row { color: #fff; }
.scard .row svg { width: 18px; height: 18px; fill: var(--red); flex: none; }
.scard.red .row svg { fill: #fff; }
.scard p { color: var(--muted-2); font-size: .98rem; margin-bottom: 22px; flex: 1; }
.scard.red p { color: rgba(255,255,255,.9); }

/* ---------- About: core values layout ---------- */
.cv-grid { display: grid; grid-template-columns: 1fr 1.05fr 1fr; gap: 26px; align-items: start; }
.cv-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); align-self: stretch; }
.cv-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); min-height: 480px; }
.cv-col { display: grid; gap: 26px; }
.vcard { background: var(--white); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-sm); }
.tile { width: 56px; height: 56px; border-radius: 14px; background: var(--red); display: grid; place-items: center; margin-bottom: 18px; }
.tile img { width: 32px; height: 32px; object-fit: contain; filter: brightness(0) invert(1); }
.vcard h3 { font-size: 1.18rem; margin-bottom: 10px; }
.vcard p { color: var(--muted-2); font-size: .95rem; }

/* ---------- About: vision ---------- */
.vision { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
.vision-list { display: grid; gap: 18px; }
.rcard { background: var(--red); color: #fff; border-radius: 14px; padding: 20px 24px; display: flex; gap: 18px; align-items: center; }
.rcard .ic { width: 48px; height: 48px; flex: none; display: grid; place-items: center; }
.rcard .ic img { width: 34px; height: 34px; object-fit: contain; filter: brightness(0) invert(1); }
.rcard h4 { color: #fff; font-size: 1.15rem; margin-bottom: 2px; }
.rcard p { color: rgba(255,255,255,.88); font-size: .92rem; line-height: 1.4; }
.vision-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.vision-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }

/* CTA centered on cream */
.cta-center { text-align: center; padding: 30px 0 10px; }
.cta-center h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); max-width: 760px; margin: 0 auto 26px; }

/* ---------- Simple hero (about/dojokun/updates) ---------- */
.simple-hero { padding: 76px 0 10px; position: relative; }
.simple-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.simple-hero p { color: var(--ink-soft); max-width: 680px; margin-top: 18px; font-size: 1.05rem; }
.simple-hero .watermark { right: 6%; top: 20%; width: 300px; }

/* ---------- Dojokun ---------- */
.dk-intro-card { background: var(--white); border-radius: 22px; padding: 70px 40px; text-align: center; box-shadow: var(--shadow-sm); }
.dk-intro-card h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 26px; }
.dk-intro-card p { max-width: 760px; margin: 0 auto 20px; color: var(--ink-soft); font-size: 1.12rem; }
.dk-intro-card strong { font-weight: 700; }

.dk-split { display: grid; grid-template-columns: 1fr 1fr; border-top: 5px solid var(--red); border-radius: 4px 4px 22px 22px; overflow: hidden; box-shadow: var(--shadow-sm); }
.dk-left { background: var(--white); padding: 50px 46px; }
.dk-left h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 30px; font-weight: 600; }
.principle { padding: 22px 0; border-bottom: 1px dotted rgba(0,0,0,.22); }
.principle:last-child { border-bottom: none; }
.principle .romaji { font-weight: 700; color: var(--ink); font-size: .98rem; }
.principle .en-t { font-weight: 700; color: var(--ink); margin: 4px 0; }
.principle p { color: var(--muted-2); font-size: .96rem; }
.dk-right { background: var(--red); color: #fff; padding: 50px 46px; }
.kanji-cols { display: flex; gap: 6px; justify-content: center; margin-bottom: 40px; }
.kanji-cols .col { writing-mode: vertical-rl; text-orientation: upright; font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif; font-size: 1.85rem; line-height: 1.5; letter-spacing: .05em; }
.dk-why h3 { color: #fff; font-size: 1.35rem; margin-bottom: 16px; }
.dk-why .lead { font-weight: 600; margin-bottom: 12px; }
.dk-why .check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.dk-why .check svg { width: 18px; height: 18px; fill: #fff; flex: none; margin-top: 3px; }
.dk-why .quote { font-size: 1.35rem; font-style: italic; margin-top: 22px; line-height: 1.4; }

/* ---------- Dojos ---------- */
.dojos-hero { position: relative; min-height: 440px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.dojos-hero .bg { position: absolute; inset: 0; }
.dojos-hero .bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.8); }
.dojos-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,15,15,.78) 0%, rgba(15,15,15,.45) 45%, rgba(15,15,15,.15) 100%); }
.dojos-hero .inner { position: relative; z-index: 2; max-width: 620px; }
.dojos-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 8px; }
.dojos-hero .tagline { font-style: italic; font-size: 1.3rem; margin-bottom: 18px; font-family: var(--font-display); }
.dojos-hero p { color: rgba(255,255,255,.85); }

.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 44px; }
.tab { font-family: var(--font-display); font-weight: 600; cursor: pointer; padding: 11px 26px; border-radius: 8px; border: none; background: transparent; color: var(--ink-soft); font-size: .95rem; transition: all .15s ease; }
.tab:hover { color: var(--red); }
.tab.active { background: var(--red); color: #fff; }
.dojo-group { display: none; grid-template-columns: repeat(3,1fr); gap: 26px; }
.dojo-group.active { display: grid; }
.dcard { background: var(--white); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow-sm); }
.dcard.red { background: var(--red); color: #fff; }
.dcard h3 { font-size: 1.35rem; margin-bottom: 14px; }
.dcard.red h3 { color: #fff; }
.dcard .addr { color: var(--ink-soft); font-size: .96rem; margin-bottom: 4px; }
.dcard.red .addr { color: #fff; font-weight: 600; }
.dcard .label { display: block; font-family: var(--font-display); font-weight: 700; color: var(--red); font-size: .82rem; letter-spacing: .04em; margin-top: 20px; }
.dcard.red .label { color: #fff; }
.dcard .val { color: var(--ink-soft); font-size: .96rem; }
.dcard.red .val { color: #fff; }
.dojos-note { max-width: 1000px; margin: 70px auto 0; }
.dojos-note p { color: var(--muted); font-size: 1.4rem; line-height: 1.6; font-family: var(--font-display); font-weight: 400; margin-bottom: 24px; }

/* ---------- Updates ---------- */
.updates-head { text-align: center; margin-bottom: 56px; }
.updates-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.updates-head h1 .r { color: var(--red); }
.updates-head p { color: var(--muted-2); margin-top: 12px; font-size: 1.1rem; }
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; max-width: 940px; margin: 0 auto; }
.post { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post .thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post .tag { position: absolute; top: 16px; left: 16px; background: var(--blue); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .82rem; padding: 5px 14px; border-radius: 7px; }
.post .body { padding: 28px 30px 34px; text-align: center; }
.post h3 { font-size: 1.32rem; line-height: 1.35; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); padding: 64px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 40px; }
.footer-top img.flogo { height: 54px; margin-bottom: 6px; }
.site-footer h4 { font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--ink); margin-bottom: 12px; }
.site-footer address { font-style: normal; color: var(--ink-soft); font-size: .94rem; line-height: 1.8; }
.footer-bottom { border-top: 1px solid rgba(0,0,0,.10); margin-top: 46px; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: .9rem; color: var(--ink-soft); }
.follow { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.follow a { width: 34px; height: 34px; border-radius: 8px; background: var(--ink); display: grid; place-items: center; }
.follow a svg { width: 17px; height: 17px; fill: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-images { grid-template-columns: 1fr; }
  .hero-images .frame img { min-height: 280px; }
  .intro-cols { grid-template-columns: 1fr; gap: 0; }
  .cards-3 { grid-template-columns: 1fr; }
  .cv-grid { grid-template-columns: 1fr; }
  .cv-photo { order: -1; } .cv-photo img { min-height: 360px; }
  .vision { grid-template-columns: 1fr; }
  .dk-split { grid-template-columns: 1fr; }
  .dojo-group, .dojo-group.active { grid-template-columns: 1fr 1fr; }
  .posts { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links { display: flex; flex-direction: column; gap: 20px; position: absolute; top: 84px; left: 0; right: 0; background: #fff; padding: 26px 28px; box-shadow: 0 12px 24px rgba(0,0,0,.08); margin: 0; z-index: 99; }
  .wa-btn .label { display: none; } .wa-btn { padding: 8px; }
  .section { padding: 60px 0; }
  .dojo-group, .dojo-group.active { grid-template-columns: 1fr; }
  .kanji-cols .col { font-size: 1.4rem; }
  .dk-left, .dk-right { padding: 36px 26px; }
}
