/* ============================================================
   Crane Karate Academy — site styles
   Clean Bootstrap 5 theme. Palette: black + white + crane red.
   ============================================================ */

:root {
  --ink:          #15110f;   /* near-black, warm */
  --ink-soft:     #2b2522;
  --crane-red:    #c1121f;   /* accent — the crane's red crown */
  --crane-red-dk: #97121c;
  --paper:        #fbf9f6;   /* warm off-white page bg */
  --sand:         #f1ece4;   /* light alt-section bg */
  --line:         #e3dcd2;   /* hairline borders */
  --muted:        #6c635c;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink-soft);
  background: var(--paper);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, .display-font {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  color: var(--ink);
  letter-spacing: .2px;
}

h2 { font-weight: 700; }

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

.text-muted-warm { color: var(--muted) !important; }

/* Section rhythm */
.section { padding: 4.5rem 0; }
.section-sand { background: var(--sand); }
.section-ink { background: var(--ink); color: #e9e3da; }
.section-ink h1, .section-ink h2, .section-ink h3 { color: #fff; }

/* A small red rule used under headings */
.heading-rule {
  width: 60px; height: 3px; background: var(--crane-red);
  border: 0; opacity: 1; margin: .9rem 0 1.5rem;
}
.heading-rule.center { margin-left: auto; margin-right: auto; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--crane-red);
  font-family: "Inter", sans-serif;
}

/* ---------- Buttons ---------- */
.btn-crane {
  --bs-btn-bg: var(--crane-red);
  --bs-btn-border-color: var(--crane-red);
  --bs-btn-hover-bg: var(--crane-red-dk);
  --bs-btn-hover-border-color: var(--crane-red-dk);
  --bs-btn-active-bg: var(--crane-red-dk);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  font-weight: 600;
  letter-spacing: .3px;
  padding: .65rem 1.6rem;
}
.btn-outline-light-crane {
  border: 2px solid #fff; color: #fff; font-weight: 600;
  padding: .65rem 1.6rem;
}
.btn-outline-light-crane:hover { background: #fff; color: var(--ink); }

/* ---------- Navbar ---------- */
.navbar-crane {
  background: var(--ink);
  border-bottom: 3px solid var(--crane-red);
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.navbar-crane .navbar-brand {
  display: flex; align-items: center; gap: .65rem;
  color: #fff; font-family: "Playfair Display", serif; font-weight: 700;
}
.navbar-crane .navbar-brand img { height: 80px; width: 80px; object-fit: contain; }
/* Crane artwork — "Our Namesake" feature section */
.namesake-crane { width: 100%; max-width: 480px; height: auto; }
.navbar-crane .navbar-brand .brand-text { font-size: 1.35rem; line-height: 1.05; }
.navbar-crane .navbar-brand .brand-text { line-height: 1.15; }
.navbar-crane .navbar-brand .brand-text small {
  display: block; margin-top: 2px;
  font-family: "Inter", sans-serif; font-weight: 600;
  font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: #e7a6ab; opacity: 1;
}
.navbar-crane .nav-link {
  color: #d9d2c9; font-weight: 500; font-size: .95rem;
  padding-left: .9rem; padding-right: .9rem;
}
.navbar-crane .nav-link:hover,
.navbar-crane .nav-link.active { color: #fff; }
.navbar-crane .nav-link.active { border-bottom: 2px solid var(--crane-red); }
.navbar-crane .navbar-toggler { border-color: rgba(255,255,255,.4); }
.navbar-crane .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(255,255,255,.25); }
.navbar-crane .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,8,7,.55) 0%, rgba(10,8,7,.78) 100%);
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero .lead { color: #f0ebe4; font-size: 1.25rem; }
.hero-tall { padding: 7rem 0; }
.hero-mid  { padding: 4.5rem 0; }

/* ---------- Cards ---------- */
.card-clean {
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card-clean:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.10); }
.card-clean .card-img-top { aspect-ratio: 16/10; object-fit: cover; }
.card-clean .card-title { font-size: 1.2rem; }

.icon-badge {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(193,18,31,.10); color: var(--crane-red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1rem;
}

/* ---------- Quotes ---------- */
.quote {
  border-left: 4px solid var(--crane-red);
  padding: .25rem 0 .25rem 1.4rem;
  font-family: "Playfair Display", serif;
  font-style: italic; font-size: 1.15rem; color: var(--ink);
}
.quote cite {
  display: block; margin-top: .6rem;
  font-family: "Inter", sans-serif; font-style: normal;
  font-size: .85rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- Kata list ---------- */
.kata-col h4 { color: var(--crane-red); }
.kata-col ul { list-style: none; padding-left: 0; }
.kata-col li { padding: .35rem 0; border-bottom: 1px dashed var(--line); }

/* ---------- Hours block ---------- */
.hours-row {
  display: flex; justify-content: space-between;
  padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.12);
}
.hours-row span:last-child { font-weight: 600; color: #fff; }
.hours-row:last-child { border-bottom: 0; }

/* ---------- Article typography ---------- */
.article-body { font-size: 1.08rem; }
.article-body p { margin-bottom: 1.3rem; }
.article-body h3 { margin-top: 2.2rem; margin-bottom: .8rem; }
.article-meta { color: var(--muted); font-size: .9rem; letter-spacing: .4px; }
.article-hero { max-height: 420px; object-fit: cover; width: 100%; border-radius: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9b1a8; padding: 3.5rem 0 1.5rem; }
.site-footer h5 { color: #fff; font-family: "Inter", sans-serif; font-weight: 600;
  font-size: .85rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer a { color: #d9d2c9; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer .footer-logos img { background:#fff; padding:.4rem .6rem; border-radius:6px; height:54px; width:auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem;
  font-size: .85rem; color: #8d857c; }

/* ---------- Misc ---------- */
.img-rounded { border-radius: 6px; }
.list-virtues { columns: 2; gap: 2rem; }
@media (max-width: 575px) { .list-virtues { columns: 1; } }
