@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Noto+Serif+JP:wght@200;300;400&family=Cinzel:wght@400;500&family=IM+Fell+English:ital@0;1&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --ink:       #222120;
  --smoke:     #1c1b1a;
  --paper:     #f7f3ec;
  --warm:      #ede6d8;
  --stone:     #8c7e6e;
  --gold:      #c9a84c;
  --gold-dim:  #7a6030;
  --red:       #8b2020;
  --sage:      #4a6741;
  --mist:      #d6cfc3;
  --white:     #fdfaf5;
  --nav-h:     60px;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background: var(--smoke);
  color: var(--ink);
  min-height: 100vh;
}

/* ── SITE SHELL ──────────────────────────────────────────── */
.site {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 80px rgba(0,0,0,0.6);
}

/* ── HEADER ──────────────────────────────────────────────── */
.site-header {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  padding: 0;
}

.header-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(201,168,76,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 80% at 10% 50%, rgba(139,32,32,0.08) 0%, transparent 60%);
}



.header-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.5rem;
}

.header-seal {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-seal img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 50%;
}

.header-text { text-align: center; }

.header-text h1 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.12em;
  line-height: 1.1;
}

.header-text h1 em {
  color: var(--gold);
  font-style: normal;
}

.header-text .sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--stone);
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
}

.header-text .sub strong {
  color: rgba(201,168,76,0.7);
  font-style: normal;
  font-weight: 400;
}

.header-jp {
  font-family: 'Noto Serif JP', serif;
  font-weight: 200;
  font-size: 1.6rem;
  color: rgba(201,168,76,0.35);
  writing-mode: vertical-rl;
  letter-spacing: 0.15em;
  line-height: 1;
}

/* ── NAV ─────────────────────────────────────────────────── */
nav.main-nav {
  background: var(--smoke);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  align-items: stretch;
  height: var(--nav-h);
  overflow-x: auto;
  scrollbar-width: none;
}

nav.main-nav ul::-webkit-scrollbar { display: none; }

nav.main-nav ul li { position: relative; }

nav.main-nav ul li a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 1.2rem;
  color: var(--stone);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.25s;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

nav.main-nav ul li a:hover {
  color: var(--gold);
}

nav.main-nav ul li a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

nav.main-nav ul li.jp-nav a {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: rgba(140,126,110,0.6);
}

/* ── PAGE LAYOUT ─────────────────────────────────────────── */
.page-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ── PAGE HERO ───────────────────────────────────────────── */
.page-hero {
  background: var(--ink);
  padding: 3rem 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 0% 50%, rgba(201,168,76,0.06), transparent);
}

.page-hero::after {
  content: attr(data-kanji);
  position: absolute;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Noto Serif JP', serif;
  font-size: 5rem;
  font-weight: 200;
  color: rgba(201,168,76,0.08);
  line-height: 1;
  pointer-events: none;
}

.page-hero h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.08em;
  position: relative;
  z-index: 1;
}

.page-hero p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--stone);
  font-size: 1rem;
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}

/* ── CONTENT ─────────────────────────────────────────────── */
.content {
  padding: 2.5rem 3rem;
  flex: 1;
}

.content h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.08em;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--mist);
}

.content h3:first-child { margin-top: 0; }

.content p {
  font-size: 1rem;
  line-height: 1.85;
  color: #2d2820;
  margin-bottom: 1rem;
}

.content p.jp {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.85rem;
  color: var(--stone);
  line-height: 2;
  margin-bottom: 1rem;
}

.content em { color: var(--sage); font-style: italic; }

.content strong { color: var(--ink); font-weight: 600; }

.content a {
  color: var(--sage);
  text-decoration: none;
  border-bottom: 1px solid rgba(74,103,65,0.3);
  transition: color 0.2s, border-color 0.2s;
}

.content a:hover { color: var(--red); border-bottom-color: var(--red); }

/* ── PULL QUOTE ──────────────────────────────────────────── */
.pull-quote {
  border-left: 3px solid var(--gold);
  padding: 0.8rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(201,168,76,0.04);
}

.pull-quote p {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--stone) !important;
  margin: 0 !important;
  line-height: 1.7 !important;
}

/* ── INFO BOX ────────────────────────────────────────────── */
.info-box {
  background: var(--warm);
  border: 1px solid var(--mist);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}

.info-box h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.info-box p { font-size: 0.92rem; margin-bottom: 0.5rem; }
.info-box p:last-child { margin-bottom: 0; }

/* ── DIVIDER ─────────────────────────────────────────────── */
.brush-divider {
  text-align: center;
  color: var(--gold-dim);
  font-size: 1rem;
  letter-spacing: 0.6rem;
  margin: 1.8rem 0;
  opacity: 0.5;
}

/* ── IMAGES ──────────────────────────────────────────────── */
.content img {
  max-width: 100%;
  height: auto;
  display: block;
}

.img-right {
  float: right;
  margin: 0 0 1.2rem 1.8rem;
  max-width: 200px;
  border: 2px solid var(--mist);
}

.img-left {
  float: left;
  margin: 0 1.8rem 1.2rem 0;
  max-width: 160px;
  border: 2px solid var(--mist);
}

.img-full {
  width: 100%;
  margin: 1.5rem 0;
  border: 2px solid var(--mist);
}

.clearfix::after { content: ''; display: table; clear: both; }

/* ── TABS (Kung Fu page) ─────────────────────────────────── */
.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: var(--warm);
  border-bottom: 1px solid var(--mist);
  padding: 0 2rem;
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.85rem 1rem;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.tab-btn:hover { color: var(--ink); }

.tab-btn.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── HOME GRID ───────────────────────────────────────────── */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--mist);
}

.home-card {
  padding: 1.8rem 1.5rem;
  border-right: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
  text-decoration: none;
  display: block;
  transition: background 0.2s;
}

.home-card:last-child, .home-card:nth-child(3n) { border-right: none; }

.home-card:hover { background: var(--warm); border-bottom-color: var(--mist); }

.home-card .card-kanji {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.8rem;
  font-weight: 200;
  color: rgba(201,168,76,0.4);
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.home-card .card-title {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}

.home-card .card-desc {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--stone);
  line-height: 1.5;
}

/* ── CONTACT FORM AREA ───────────────────────────────────── */
.contact-strip {
  background: var(--ink);
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-strip p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--stone);
  font-size: 1rem;
}

.contact-strip a {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid rgba(201,168,76,0.3);
  padding: 0.6rem 1.4rem;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.contact-strip a:hover {
  background: var(--gold);
  color: var(--ink);
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer.site-footer {
  background: var(--ink);
  border-top: 1px solid rgba(201,168,76,0.12);
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

footer .foot-left {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.82rem;
  color: var(--stone);
  line-height: 1.7;
}

footer .foot-left a { color: var(--gold-dim); text-decoration: none; }
footer .foot-left a:hover { color: var(--gold); }

footer .foot-right {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.78rem;
  color: rgba(140,126,110,0.4);
  text-align: right;
}

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-hero h2, .page-hero p { animation: fadeUp 0.6s ease both; }
.page-hero p { animation-delay: 0.1s; }
.content { animation: fadeUp 0.5s 0.15s ease both; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 700px) {
  .header-inner { grid-template-columns: auto 1fr; padding: 1.2rem 1.5rem; }
  .header-jp { display: none; }
  .header-text h1 { font-size: 1.3rem; }
  .page-hero, .content { padding: 1.8rem 1.5rem; }
  .home-grid { grid-template-columns: 1fr 1fr; }
  .contact-strip { padding: 1.5rem; }
  footer.site-footer { padding: 1.2rem 1.5rem; flex-direction: column; text-align: center; }
  footer .foot-right { text-align: center; }
  .tab-bar { padding: 0 0.5rem; }
  .tab-btn { padding: 0.75rem 0.6rem; font-size: 0.62rem; }
  .img-right, .img-left { float: none; max-width: 100%; margin: 1rem 0; display: block; }
}
