/* ================================================================
   Shin Kaze Aikido Alliance — shared styles
   Palette taken from aikido-db.com + the SKAA logo:
     brand link blue #006699, logo navy, wave blues.
   Kept the site's Arial/Helvetica typeface, refined the spacing.
   ================================================================ */

:root {
  --navy:      #1b2a4a;
  --blue:      #006699;   /* the original site's link colour */
  --blue-2:    #3a7ca5;   /* lighter wave blue from the logo   */
  --wave:      #2f6f9f;
  --bg:        #ffffff;
  --surface:   #f4f8fb;
  --surface-2: #eaf1f7;
  --ink:       #1a1f2b;
  --muted:     #5b6472;
  --line:      #dbe4ec;
  --danger:    #b3261e;
  --ok:        #1f7a4d;
  --radius:    12px;
  --shadow:    0 6px 24px rgba(27, 42, 74, 0.08);
  --shadow-sm: 0 2px 8px rgba(27, 42, 74, 0.06);
  --maxw:      980px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }

a { color: var(--blue); }
a:hover { color: var(--navy); }

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

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 46px; width: auto; display: block; }
.brand .brand-text { display: none; }
.nav { display: flex; gap: 8px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--navy); font-weight: 700;
  padding: 8px 14px; border-radius: 999px; font-size: .98rem;
}
.nav a:hover { background: var(--surface-2); }
.nav a.active { background: var(--blue); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--wave) 60%, var(--blue-2) 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; right: -60px; bottom: -80px;
  width: 420px; height: 420px;
  background: url("swirl.png") center/contain no-repeat;
  opacity: .12; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; padding: 64px 20px; }
.hero h1 { color: #fff; max-width: 18ch; font-size: 2.5rem; }
.hero p.lede { color: #eaf2f8; font-size: 1.2rem; max-width: 60ch; margin-bottom: 0; }
.hero .kicker {
  display: inline-block; letter-spacing: .14em; text-transform: uppercase;
  font-size: .8rem; font-weight: 700; color: #bfe0f0; margin-bottom: 14px;
}

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { text-align: center; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--muted); max-width: 60ch; margin: 0 auto 36px; }

.prose { max-width: 68ch; margin: 0 auto; }
.prose p { color: #33404f; }

/* ---------- Value cards ---------- */
.cards {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .dot {
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.1rem;
}
.card h3 { margin-bottom: 4px; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; border: 0; font: inherit; font-weight: 700;
  padding: 13px 26px; border-radius: 999px; text-decoration: none;
  background: var(--blue); color: #fff; box-shadow: var(--shadow-sm);
  transition: background .15s ease, transform .05s ease;
}
.btn:hover { background: #00557f; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); box-shadow: none; }
.btn.ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy); color: #cdd8e6; padding: 34px 0; font-size: .92rem;
}
.site-footer a { color: #9fc6df; }
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ================================================================
   Form page
   ================================================================ */
.form-wrap { max-width: 820px; margin: 0 auto; }
form.dojo-form { display: grid; gap: 30px; }

fieldset {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin: 0; background: #fff; box-shadow: var(--shadow-sm);
}
legend {
  font-weight: 700; color: var(--navy); font-size: 1.1rem; padding: 0 10px;
  display: flex; align-items: center; gap: 10px;
}
legend .num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: .85rem;
}

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .92rem; color: var(--navy); }
.field label .req { color: var(--danger); }
.field .hint { font-size: .82rem; color: var(--muted); }

.field input, .field select {
  font: inherit; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,102,153,.15);
}
.field input.invalid, .field select.invalid { border-color: var(--danger); background: #fff6f5; }
.field .error-text { color: var(--danger); font-size: .82rem; min-height: 0; }

.form-actions { display: flex; gap: 14px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.form-note { color: var(--muted); font-size: .88rem; margin-right: auto; }

/* ---------- Custom dialog (no native alert/confirm) ---------- */
.dialog-backdrop {
  position: fixed; inset: 0; background: rgba(27,42,74,.55);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.dialog-backdrop.open { display: flex; }
.dialog {
  background: #fff; border-radius: var(--radius); max-width: 460px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.3); padding: 28px; text-align: center;
  animation: pop .16s ease;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.dialog .icon {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #fff;
}
.dialog .icon.ok   { background: var(--ok); }
.dialog .icon.err  { background: var(--danger); }
.dialog h3 { margin-bottom: 8px; }
.dialog p { color: var(--muted); }
.dialog .dialog-actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 2rem; }
  .hero .container { padding: 46px 20px; }
  .grid2 { grid-template-columns: 1fr; }
  .brand .brand-text { display: none; }
}
