/* Okinawan Martial Arts Club — shared stylesheet */

/* Self-hosted fonts — no external requests, GDPR-compliant */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-500.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-600.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-500-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-600.woff2") format("woff2");
}

/* Palette derived from the club logo:
   deep petrol blue (outline/knot), vermilion (shisa lions),
   turquoise (minsa pattern), warm cream (background) */
:root {
  --ink: #0d3442;        /* deep petrol — logo outline */
  --ink-soft: #14495c;
  --paper: #faf6ea;      /* warm cream — logo background */
  --paper-alt: #f1ead6;
  --red: #c2491d;        /* vermilion — shisa lions */
  --red-dark: #96350f;
  --teal: #2ba3b4;       /* turquoise — minsa pattern */
  --gold: #b08d3e;
  --gold-light: #e0c98a;
  --grey: #5f6e73;
  --line: #e5dcc3;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(13, 52, 66, 0.10);
  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", Helvetica, Arial, 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(--paper);
  line-height: 1.65;
  font-size: 17px;
}

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

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

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 52, 66, 0.97);
  color: #fff;
  border-bottom: 3px solid var(--red);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.25rem;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand img { height: 60px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}
.nav-links a {
  color: #e4eef1;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-links a:hover, .nav-links a.active { color: #fff; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px; }

.lang-switch {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.85rem;
}
.lang-switch a, .lang-switch span {
  color: #c3d7dc;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.lang-switch .current { background: var(--red); color: #fff; }
.lang-switch a:hover { background: var(--ink-soft); text-decoration: none; }

.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(rgba(13, 52, 66, 0.85), rgba(10, 42, 54, 0.92)),
    radial-gradient(ellipse at 30% 20%, #1b6478 0%, #0d3442 65%);
  color: #fff;
  text-align: center;
  padding: 96px 24px 88px;
}
.hero img.hero-logo { height: 200px; width: auto; margin: 0 auto 28px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: 0.02em; }
.hero .hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-family: var(--font-head);
  font-style: italic;
  color: var(--gold-light);
  margin-top: 10px;
  margin-bottom: 0;
  letter-spacing: 0.01em;
}
.hero .motto {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--gold-light);
  margin-top: 14px;
}
.hero .est { margin-top: 10px; font-size: 0.85rem; letter-spacing: 0.25em; text-transform: uppercase; color: #b3cdd5; }
.hero .cta-row { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  border: 0;
  font-family: var(--font-body);
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); text-decoration: none; }

.btn.loading {
  opacity: 0.85;
  cursor: wait;
  position: relative;
  padding-left: 48px;
}
.btn.loading::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); text-decoration: none; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--paper-alt); }

.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: 2.1rem; }
.section-head .kanji { color: var(--teal); font-size: 0.95rem; letter-spacing: 0.4em; margin-bottom: 6px; }
.section-head::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--red);
  margin: 18px auto 0;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.5rem; margin-bottom: 12px; color: var(--red-dark); }
.card ul { margin: 12px 0 0 20px; }
.card li { margin-bottom: 8px; }

/* ---------- Partners strip ---------- */
.partners-strip {
  background: var(--ink);
  border-bottom: 1px solid #1c4f61;
  padding: 18px 24px;
}
.partners-strip .inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.partner-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.partners-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7aaab8;
  white-space: nowrap;
  flex-shrink: 0;
}
.partners-logos {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.partner-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c8dde3;
  text-decoration: none;
  transition: color 0.2s;
}
.partner-item:hover {
  color: #fff;
  text-decoration: none;
}
.partner-item img {
  height: 64px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  transition: filter 0.2s, opacity 0.2s;
}
.partner-item img.invert-on-dark {
  filter: brightness(0) invert(1);
}
.partner-item span {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.partner-item span.wordmark {
  font-size: 2.6rem;
  line-height: 64px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}
.partners-divider {
  width: 1px;
  height: 40px;
  background: #1c4f61;
  flex-shrink: 0;
}

/* ---------- Seminar banner ---------- */
.banner {
  background: linear-gradient(100deg, var(--red-dark), var(--red));
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.banner h3 { font-size: 1.7rem; margin-bottom: 6px; }
.banner p { color: #f3dede; max-width: 560px; }
.banner .btn-ghost:hover { color: var(--red-dark); }

/* ---------- Info tables / details ---------- */
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.detail-item {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 6px;
  padding: 18px 20px;
}
.detail-item .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--grey); margin-bottom: 4px; }
.detail-item .value { font-weight: 600; font-size: 1.05rem; }

.placeholder { color: var(--gold); font-style: italic; }

/* ---------- Forms ---------- */
.form-card { max-width: 680px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }

label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
label .req { color: var(--red); }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #c6bb9f;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
textarea { min-height: 110px; resize: vertical; }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; }
.checkbox-row input { margin-top: 4px; }
.checkbox-row label { font-weight: 400; margin: 0; }

.form-note { font-size: 0.9rem; color: var(--grey); margin-top: 14px; }

.price-total {
  display: none;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 1.05rem;
}
.price-total strong { color: var(--red-dark); font-size: 1.25rem; margin-left: 6px; }

.form-status { margin-top: 18px; padding: 14px 18px; border-radius: 6px; display: none; }
.form-status.ok { display: block; background: #e8f3e8; border: 1px solid #9dc79d; color: #1e5c1e; }
.form-status.err { display: block; background: #fbeaea; border: 1px solid #dfa3a3; color: var(--red-dark); }

/* ---------- Payment method selector ---------- */
.payment-method-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.method-option {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 400;
  cursor: pointer;
  padding: 11px 16px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.15s, background 0.15s;
  flex: 1;
  min-width: 160px;
}
.method-option:has(input:checked) {
  border-color: var(--red);
  background: #fdf5f5;
}
.method-option input { accent-color: var(--red); margin: 0; flex-shrink: 0; }
.method-note { font-size: 0.8rem; color: var(--grey); display: block; margin-top: 1px; }

/* ---------- Transfer details box (thanks/bedankt pages) ---------- */
.transfer-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px auto 0;
  max-width: 480px;
  text-align: left;
}
.transfer-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.transfer-row:last-child { border-bottom: 0; }
.transfer-label {
  font-size: 0.82rem;
  color: var(--grey);
  white-space: nowrap;
  flex-shrink: 0;
}
.transfer-row strong {
  font-size: 1rem;
  color: var(--ink);
  word-break: break-all;
  text-align: right;
}

/* ---------- Info callout ---------- */
.info-callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-top: 22px;
  box-shadow: var(--shadow);
}
.info-callout .callout-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.info-callout p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.6;
}
.info-callout a { color: var(--teal); font-weight: 600; }
.info-callout a:hover { color: var(--ink-soft); }

/* ---------- Payment box ---------- */
.payment-box {
  background: var(--paper-alt);
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin-top: 28px;
}
.payment-box h3 { color: var(--ink); margin-bottom: 10px; font-size: 1.3rem; }
.payment-box table { border-collapse: collapse; margin-top: 8px; }
.payment-box td { padding: 4px 18px 4px 0; vertical-align: top; }
.payment-box td:first-child { color: var(--grey); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }

/* ---------- Sensei bio ---------- */
.bio { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
.bio-photo {
  border-radius: var(--radius);
  overflow: hidden;
}
.bio-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}
.bio h3 { font-size: 1.7rem; margin-bottom: 4px; }
.bio .bio-sub { color: var(--red); font-weight: 600; margin-bottom: 14px; }
.bio p { margin-bottom: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #b3cdd5;
  padding: 48px 0 32px;
  font-size: 0.9rem;
  margin-top: 72px;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.site-footer h4 { color: #fff; font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 12px; }
.site-footer a { color: #cfe0e4; }
.site-footer .legal { text-align: center; margin-top: 36px; padding-top: 20px; border-top: 1px solid #1c4f61; color: #8fb0ba; font-size: 0.8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .two-col, .bio { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  /* Nav: hide brand text, just show logo */
  .brand span { display: none; }
  .brand img { height: 48px; }
  .nav-wrap { gap: 8px; padding: 8px 16px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    padding: 18px 24px;
    gap: 16px;
    border-bottom: 3px solid var(--red);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 64px 20px 60px; }
  .banner { padding: 30px 26px; }

  /* Partners strip */
  .partners-strip { padding: 20px 20px; }
  .partners-strip .inner { flex-direction: column; align-items: stretch; gap: 20px; }
  .partner-row { flex-direction: column; align-items: center; gap: 12px; width: 100%; }
  .partners-label { text-align: center; }
  .partners-logos { flex-direction: column; align-items: center; gap: 16px; width: 100%; }
  .partner-item { width: 100%; justify-content: center; }
  .partner-item img { height: 48px; max-width: 130px; }
  .partner-item span { font-size: 0.82rem; }
  .partner-item span.wordmark { font-size: 1.9rem; line-height: 48px; }
  .partners-divider { display: none; }

  /* Programme table — stacked cards on mobile */
  .programme-table thead { display: none; }
  .programme-table tbody tr { display: block; padding: 14px 16px; border-bottom: 1px solid #e5dcc3; background: #fff; }
  .programme-table tbody tr:last-child { background: #faf6ea; border-bottom: none; }
  .programme-table td { display: flex; justify-content: space-between; align-items: baseline; padding: 3px 0; text-align: left !important; font-size: 0.9rem; }
  .programme-table td::before { content: attr(data-label); font-size: 0.75rem; color: #888; text-transform: uppercase; letter-spacing: 0.05em; margin-right: 12px; white-space: nowrap; }
  .programme-table td:first-child { font-size: 0.95rem; border-bottom: 1px solid #f0e8d8; padding-bottom: 8px; margin-bottom: 4px; }
  .programme-table td:first-child::before { display: none; }
}
