/* ==========================================================================
   Shotokan Karate Kenkyujo — shared stylesheet
   Palette:  --red (crest red) / --red-deep (shadow red) / --cream (paper)
             --ink (body text) / --charcoal (muted text) / --gold (rank accent)
   Type:     Noto Serif JP (display) + Noto Sans JP (body + UI)
   ========================================================================== */

:root {
  --red: #A8201F;
  --red-deep: #6E1614;
  --cream: #F5F0E6;
  --cream-dim: #ECE4D3;
  --ink: #201C18;
  --charcoal: #56504A;
  --gold: #A8863E;
  --border: rgba(32, 28, 24, 0.12);
  --max: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }

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

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  display: inline-block;
  margin-bottom: 0.9em;
}

/* -------------------- crest mark (signature element) -------------------- */

.crest {
  display: inline-block;
  flex-shrink: 0;
}
.crest circle.crest-ring { fill: none; stroke: currentColor; stroke-width: 3; }
.crest path { fill: currentColor; }

.crest--watermark {
  position: absolute;
  color: var(--red);
  opacity: 0.05;
  pointer-events: none;
}

/* ------------------------------- header ---------------------------------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--cream);
  border-bottom: 2px solid var(--red);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: var(--max);
  margin: 0 auto;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-text {
  font-family: "Noto Serif JP", serif;
  line-height: 1.15;
}
.brand-jp { display: block; font-size: 0.95rem; letter-spacing: 0.02em; }
.brand-en { display: block; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--charcoal); }
.brand-logo { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
nav.primary-nav a {
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
nav.primary-nav a:hover,
nav.primary-nav a.active {
  color: var(--red);
  text-decoration: none;
  border-bottom-color: var(--red);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  border-radius: 4px;
  width: 40px;
  height: 36px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  nav.primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 28px 22px;
    border-bottom: 2px solid var(--red);
    gap: 4px;
  }
  nav.primary-nav.open { display: flex; }
  nav.primary-nav a { width: 100%; padding: 10px 0; }
}

/* -------------------------------- hero ------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow-jp {
  font-family: "Noto Serif JP", serif;
  color: var(--red);
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.hero h1 { max-width: 15ch; }
.hero-actions { display: flex; gap: 16px; margin-top: 1.6em; flex-wrap: wrap; }

.page-hero {
  padding: 46px 0 40px;
  border-bottom: 1px solid var(--border);
  background: var(--cream-dim);
}
.page-hero h1 { max-width: none; font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* ------------------------------- buttons ----------------------------------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 2px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  border: 2px solid var(--red);
}
.btn:hover { text-decoration: none; }
.btn-solid { background: var(--red); color: var(--cream); }
.btn-solid:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-outline { background: transparent; color: var(--red); }
.btn-outline:hover { background: var(--red); color: var(--cream); }

/* ------------------------------- sections ----------------------------------- */

section.block { padding: 64px 0; }
section.block.alt { background: var(--cream-dim); }
section.block.dark {
  background: var(--red);
  color: var(--cream);
}
section.block.dark h2, section.block.dark h3 { color: var(--cream); }
section.block.dark .eyebrow { color: var(--gold); }

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--red);
  margin: 0 0 40px;
}
.divider::before, .divider::after {
  content: "";
  height: 1px;
  width: 60px;
  background: var(--border);
}
.divider .crest {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; }
}

.figure {
  border: 1px solid var(--border);
  padding: 10px;
  background: #fff;
}
.figure img { width: 100%; height: auto; }
.figure figcaption {
  font-size: 0.78rem;
  color: var(--charcoal);
  padding-top: 8px;
  text-align: center;
}

ul.tenets, ol.tenets {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: tenet;
}
ul.tenets li, ol.tenets li {
  counter-increment: tenet;
  position: relative;
  padding: 14px 0 14px 52px;
  border-bottom: 1px solid var(--border);
}
ul.tenets li::before, ol.tenets li::before {
  content: counter(tenet, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 14px;
  font-family: "Noto Serif JP", serif;
  color: var(--red);
  font-size: 0.95rem;
  font-weight: 700;
}

ul.plain { margin: 0 0 1.1em; padding-left: 1.3em; }
ul.plain li { margin-bottom: 0.4em; }

/* -------------------------------- pull-quotes -------------------------------- */

.pullquote {
  position: relative;
  border-left: 3px solid var(--red);
  margin: 30px 0;
  padding: 4px 0 4px 28px;
  font-family: "Noto Serif JP", serif;
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--red-deep);
}
.pullquote::before {
  content: "\201C";
  position: absolute;
  left: 2px;
  top: -14px;
  font-family: "Noto Serif JP", serif;
  font-size: 2.6rem;
  font-style: normal;
  color: var(--red);
  opacity: 0.3;
  line-height: 1;
}
.pullquote cite {
  display: block;
  margin-top: 8px;
  font-family: "Noto Sans JP", sans-serif;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.values-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 28px;
}
@media (max-width: 600px) { .values-list { grid-template-columns: 1fr; } }
.values-list li {
  padding-left: 26px;
  position: relative;
}
.values-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
}

/* ------------------------------ values compass ------------------------------- */

.values-medallion { max-width: 640px; margin: 0 auto; }
.values-medallion .vm-full { display: block; width: 100%; height: auto; }
.values-medallion .vm-compact { display: none; }

.vm-compact-circle { max-width: 220px; margin: 0 auto 28px; }
.vm-compact-circle svg { width: 100%; height: auto; display: block; }

.vm-values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 32px;
  max-width: 480px;
  margin: 0 auto;
}
.vm-value {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 12px;
}
.vm-value .value-label {
  display: block;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--red-deep);
  margin-bottom: 4px;
}
.vm-value .vm-words {
  font-size: 0.85rem;
  color: var(--charcoal);
}

@media (max-width: 720px) {
  .values-medallion .vm-full { display: none; }
  .values-medallion .vm-compact { display: block; }
}
@media (max-width: 420px) {
  .vm-values-grid { grid-template-columns: 1fr; }
}

/* ------------------------------ instructor cards ----------------------------- */

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 36px;
}
.person-card {
  background: #fff;
  border: 1px solid var(--border);
}
.person-photo {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--cream-dim);
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-body { padding: 18px 20px 22px; }
.person-name { font-family: "Noto Serif JP", serif; font-size: 1.15rem; margin-bottom: 2px; }
.person-rank {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}
.person-body p { font-size: 0.95rem; margin-bottom: 0.9em; }

/* ------------------------------ dojo locations ------------------------------- */

.dojo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.dojo-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
}
.dojo-card h3 { margin-bottom: 10px; }
.dojo-card .sched { font-weight: 600; margin-bottom: 10px; }
.dojo-card .addr { color: var(--charcoal); font-size: 0.92rem; }

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

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
  margin: 0;
  color: var(--red-deep);
  font-size: 1.08rem;
}
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 300;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--red);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  content: "\2212";
}
.faq-item summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}
.faq-body { padding: 0 0 22px; }
.faq-body p:last-child { margin-bottom: 0; }

/* -------------------------------- contact form --------------------------------- */

.contact-form {
  display: grid;
  gap: 16px;
  max-width: 560px;
}
.contact-form label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--charcoal);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
}
.form-note {
  font-size: 0.85rem;
  color: var(--charcoal);
  margin-top: 4px;
}

/* -------------------------------- footer ---------------------------------------- */

footer.site-footer {
  background: var(--ink);
  color: var(--cream-dim);
  padding: 48px 0 30px;
}
footer.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.footer-col h4 {
  color: var(--cream);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col p, .footer-col a { color: var(--cream-dim); font-size: 0.92rem; }
.footer-col a:hover { color: var(--cream); }
.footer-jp { font-family: "Noto Serif JP", serif; color: var(--cream); margin-bottom: 4px; }
.footer-logo { width: 56px; height: 56px; object-fit: contain; margin-bottom: 14px; }
.social-row { display: flex; gap: 14px; margin-top: 14px; }
.social-row a {
  width: 34px; height: 34px;
  border: 1px solid var(--cream-dim);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream-dim);
}
.social-row a:hover { border-color: var(--red); color: var(--red); background: var(--cream); }
.footer-bottom {
  border-top: 1px solid rgba(245,240,230,0.15);
  margin-top: 36px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--charcoal);
}

.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.9rem;
  margin: 6px 8px 6px 0;
}

.note-box {
  background: var(--cream-dim);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  font-size: 0.92rem;
  color: var(--charcoal);
  margin: 24px 0;
}
