/* ============================================================
   WSKF Canada / NOBI DOJO — Site Stylesheet
   Clean rebuild · Inter · navy #0f172a · red #dc2626
   ============================================================ */

:root {
  --navy: #0f172a;
  --navy-2: #1e293b;
  --red: #dc2626;
  --cream-1: #faf9f7;
  --cream-2: #eee9e2;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --text-faint: #94a3b8;
  --radius: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.10);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }

/* ---------- Eyebrow + section headings ---------- */
.eyebrow {
  display: block; text-align: center;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.2em; color: var(--red);
  margin-bottom: 0.75rem; text-transform: uppercase;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700; text-align: center;
  letter-spacing: -0.01em; line-height: 1.2;
}
.section-sub {
  text-align: center; color: var(--text-3);
  max-width: 560px; margin: 0.75rem auto 0;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  height: 72px;
}
.site-header .container {
  height: 100%; display: flex; align-items: center; gap: 1rem;
  max-width: 1280px;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { height: 46px; width: auto; }
.brand-name { font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em; }
.brand-name em { font-style: normal; color: var(--red); }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 0.25rem; }
.main-nav a {
  font-size: 0.875rem; font-weight: 500; color: var(--text-2);
  padding: 0.5rem 1rem; border-radius: 8px;
  transition: all 0.2s ease;
}
.main-nav a:hover { background: #f1f5f9; color: var(--text); }
.main-nav a.active { color: var(--text); font-weight: 600; }
.main-nav .nav-cta {
  background: var(--navy); color: #fff !important;
  border-radius: 50rem; padding: 0.55rem 1.4rem; margin-left: 0.5rem;
  font-weight: 600;
  transition: all 0.25s var(--ease);
}
.main-nav .nav-cta:hover { background: var(--navy-2); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15,23,42,0.25); }

/* Mobile nav */
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

main { padding-top: 72px; }

/* ---------- Hero (flag banner) ---------- */
.hero { position: relative; background: #fdf7f5; }
.hero-banner-img {
  display: block; width: 100%; height: auto;
  animation: fadein 0.8s var(--ease) both;
}
@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* Content sits in the open flag area below the federation wordmark.
   Percentage offsets track the artwork as the image scales. */
.hero-inner {
  position: absolute; left: 33%; top: 45%;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 1.3rem; max-width: 23%;
}
.hero-tagline {
  color: var(--text-2); letter-spacing: 0.02em;
  font-size: clamp(0.8rem, 1.3vw, 1.0625rem);
  position: relative; padding-top: 1.1rem;
}
.hero-tagline::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 40px; height: 1px; background: #cbd5e1;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 860px) {
  .hero-inner {
    position: static; max-width: none;
    align-items: center; text-align: center;
    padding: 2.25rem 1.5rem 2.75rem;
  }
  .hero-tagline { font-size: 0.9375rem; max-width: 480px; }
  .hero-tagline::before { left: 50%; transform: translateX(-50%); }
  .hero-ctas { justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.9rem 2.4rem;
  border-radius: 50rem; font-size: 0.9375rem; font-weight: 600;
  letter-spacing: 0.01em; cursor: pointer; border: 0;
  transition: all 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-dark {
  background: var(--navy); color: #fff;
  box-shadow: 0 2px 12px rgba(15,23,42,0.18);
}
.btn-dark:hover { background: var(--navy-2); box-shadow: 0 8px 28px rgba(15,23,42,0.28); }
.btn-outline {
  background: transparent; color: var(--navy);
  border: 2px solid rgba(15,23,42,0.45);
}
.btn-outline:hover { background: rgba(15,23,42,0.06); border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.btn-light:hover { background: var(--bg-alt); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

/* ---------- Sections ---------- */
.section { padding: 5rem 2rem; }
.section-alt { background: var(--bg-alt); }

/* ---------- Cards (programs) ---------- */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; margin-top: 2.5rem;
}
.card {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--red); z-index: 1;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #cbd5e1; }
.card-media { aspect-ratio: 4/3; overflow: hidden; }
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.card-body h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.card-body p { font-size: 0.875rem; color: var(--text-3); line-height: 1.7; }

.card-more {
  display: inline-block; margin-top: 0.75rem;
  font-size: 0.875rem; font-weight: 600; color: var(--red);
}
.card-more:hover { text-decoration: underline; }

/* ---------- Dark CTA band ---------- */
.cta-band {
  background: var(--navy); color: #fff; text-align: center;
  padding: 5rem 2rem; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px; pointer-events: none;
}
.cta-band .eyebrow { color: var(--red); }
.cta-band h2 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  line-height: 1.15; letter-spacing: -0.02em;
  max-width: 800px; margin: 0 auto;
}
.cta-band p {
  color: rgba(255,255,255,0.75); max-width: 640px;
  margin: 1.5rem auto 2.25rem; line-height: 1.75;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; margin-top: 2.5rem;
  max-width: 1280px; margin-left: auto; margin-right: auto;
}
.gallery-item {
  border-radius: 12px; overflow: hidden; aspect-ratio: 1.5;
  background: var(--border); position: relative;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(to top, rgba(15,23,42,0.18), transparent);
  pointer-events: none;
}

/* ---------- Testimonials ---------- */
.quotes-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem; margin-top: 2.5rem;
}
.quote-card {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  display: flex; flex-direction: column; gap: 1.25rem;
  transition: all 0.3s var(--ease);
}
.quote-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.quote-card blockquote {
  font-size: 0.9375rem; color: var(--text-2); line-height: 1.75;
  font-style: italic; position: relative; padding-left: 1.5rem;
}
.quote-card blockquote::before {
  content: '\201C'; position: absolute; left: 0; top: -8px;
  font-size: 3rem; line-height: 1; font-weight: 700; font-style: normal;
  color: var(--red);
}
.quote-author { display: flex; align-items: center; gap: 1rem; margin-top: auto; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700;
}
.avatar-red { background: var(--red); }
.avatar-blue { background: #2e78b7; }
.avatar-green { background: #219270; }
.quote-author strong { display: block; font-size: 0.9rem; }
.quote-author span { font-size: 0.8rem; color: var(--text-faint); }

/* ---------- Feature list (About) ---------- */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 2.5rem;
}
.feature {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: all 0.3s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature h3 {
  font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem;
  padding-left: 0.85rem; border-left: 3px solid var(--red);
  letter-spacing: -0.01em;
}
.feature p { font-size: 0.875rem; color: var(--text-3); line-height: 1.7; }

/* ---------- Prose (About intro) ---------- */
.prose { max-width: 720px; margin: 2rem auto 0; }
.prose p { color: var(--text-2); margin-bottom: 1.25rem; line-height: 1.8; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 3rem; margin-top: 2.5rem; align-items: start;
}
.info-card {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.25rem;
}
.info-card h3 {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--red); margin-bottom: 0.6rem;
}
.info-card p { font-size: 0.9375rem; color: var(--text-2); line-height: 1.7; }
.info-card a { color: var(--navy); font-weight: 600; }
.info-card a:hover { text-decoration: underline; }

.contact-form {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block; font-size: 0.8125rem; font-weight: 600;
  margin-bottom: 0.4rem; color: var(--text);
}
.form-field input, .form-field textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 1px solid var(--border); border-radius: 10px;
  font: inherit; font-size: 0.9rem; color: var(--text);
  background: var(--bg-alt);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15,23,42,0.08);
  background: #fff;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field select {
  width: 100%; padding: 0.75rem 1rem;
  border: 1px solid var(--border); border-radius: 10px;
  font: inherit; font-size: 0.9rem; color: var(--text);
  background: var(--bg-alt);
}
.form-field select:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15,23,42,0.08); background: #fff;
}
.form-note { font-size: 0.8125rem; color: var(--text-2); margin-top: 0.75rem; }

/* ---------- Map embed ---------- */
.map-embed {
  margin-top: 1.25rem; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.map-embed iframe { display: block; width: 100%; height: 300px; border: 0; }

/* ---------- Schedule table ---------- */
.schedule-table {
  width: 100%; max-width: 760px; margin: 2.5rem auto 0;
  border-collapse: collapse; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.schedule-table th, .schedule-table td {
  padding: 1rem 1.5rem; text-align: left; font-size: 0.9375rem;
  border-bottom: 1px solid var(--border);
}
.schedule-table th {
  background: var(--navy); color: #fff; font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
}
.schedule-table tr:last-child td { border-bottom: 0; }
.schedule-table td { color: var(--text-2); }
.schedule-table td strong { color: var(--text); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 2.5rem; max-width: 1000px;
  margin-left: auto; margin-right: auto;
}
.price-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem 1.75rem;
  text-align: center; display: flex; flex-direction: column; gap: 0.75rem;
}
.price-card.featured { border: 2px solid var(--red); position: relative; }
.price-card .badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff; font-size: 0.6875rem;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.25rem 0.9rem; border-radius: 50rem;
}
.price-card h3 { font-size: 1.0625rem; }
.price-card .price { font-size: 1.75rem; font-weight: 700; color: var(--navy); }
.price-card .price span { font-size: 0.875rem; font-weight: 500; color: var(--text-2); }
.price-card p { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; flex: 1; }
.price-card .btn { margin-top: 0.5rem; }

/* ---------- Instructor bio ---------- */
.bio-grid {
  display: grid; grid-template-columns: 320px 1fr;
  gap: 3rem; align-items: center; margin-top: 2.5rem;
}
.bio-photo img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow-md); display: block;
}
.bio-body h3 { font-size: 1.375rem; margin-bottom: 0.25rem; }
.bio-body .bio-rank {
  display: block; color: var(--red); font-weight: 600;
  font-size: 0.875rem; letter-spacing: 0.06em; margin-bottom: 1rem;
}
.bio-body p { color: var(--text-2); line-height: 1.8; margin-bottom: 1rem; }
.bio-creds { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.bio-creds li {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 50rem; padding: 0.35rem 0.9rem; font-size: 0.8125rem;
  color: var(--text-2); font-weight: 500;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 2.5rem auto 0; }
.faq-list details {
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-list summary {
  padding: 1.1rem 1.5rem; font-weight: 600; font-size: 0.9375rem;
  cursor: pointer; list-style: none; position: relative;
  transition: background 0.2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+'; position: absolute; right: 1.5rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem; font-weight: 400; color: var(--red);
  transition: transform 0.25s var(--ease);
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list summary:hover { background: var(--bg-alt); }
.faq-list details p {
  padding: 0 1.5rem 1.25rem; font-size: 0.9rem;
  color: var(--text-3); line-height: 1.75;
}

/* ---------- Blog ---------- */
.posts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 2.5rem;
}
.post-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  transition: all 0.3s var(--ease); position: relative; overflow: hidden;
}
.post-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card:hover::before { transform: scaleX(1); }
.post-card .post-tag {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--red);
}
.post-card h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; }
.post-card p { font-size: 0.875rem; color: var(--text-3); line-height: 1.7; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(175deg, var(--cream-1) 0%, var(--cream-2) 100%);
  padding: 4.5rem 2rem 3.5rem; text-align: center;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.15;
}
.page-hero p { color: var(--text-2); max-width: 560px; margin: 1rem auto 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,0.65);
  padding: 3.5rem 2rem 2rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
}
.footer-brand {
  font-size: 0.875rem; font-weight: 700; color: #fff;
  letter-spacing: 0.15em; text-transform: uppercase;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.25rem; justify-content: center; }
.footer-nav a {
  font-size: 0.8125rem; padding: 0.4rem 0.85rem; border-radius: 8px;
  color: rgba(255,255,255,0.6); transition: all 0.2s;
}
.footer-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.footer-socials { display: flex; gap: 0.75rem; }
.footer-social {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); transition: all 0.2s;
}
.footer-social:hover { background: rgba(255,255,255,0.15); color: #fff; }
.footer-copy { font-size: 0.6875rem; color: rgba(255,255,255,0.25); letter-spacing: 0.03em; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .cards-grid, .features-grid, .posts-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
  .bio-grid { grid-template-columns: 1fr; gap: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 640px) {
  .site-header { height: 64px; }
  main { padding-top: 64px; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 0.75rem 1.25rem 1.25rem; gap: 0.25rem;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.85rem 1rem; }
  .main-nav .nav-cta { margin: 0.5rem 0 0; text-align: center; }
  .section { padding: 3.5rem 1.25rem; }
  .cards-grid, .features-grid, .posts-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .btn { padding: 0.8rem 2rem; font-size: 0.875rem; }
}
