/*
Theme Name: Bushido Support Services
Description: Custom theme for Bushido Support Services CIC — financial services compliance assurance, software development, and support for people impacted by scams and unsuitable financial advice.
Author: Bushido Support Services CIC
Version: 2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: bushido
*/

/* ============================================================
   Bushido Support Services CIC
   Palette: White #FFFFFF · Mist #F2F5F8 · Navy #10263F
            Deep Navy #0A1A2C · Slate #44566B · Red #B01E28
   ============================================================ */

:root {
  --paper: #FFFFFF;
  --mist: #F2F5F8;
  --navy: #10263F;
  --navy-deep: #0A1A2C;
  --slate: #44566B;
  --red: #B01E28;
  --line: #D8DFE6;
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--navy);
  background: var(--paper);
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: "Spectral", Georgia, serif;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.6em; }
h3 { font-size: 1.12rem; margin-bottom: 0.4em; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 1em;
}

/* ---------- Header / nav ---------- */

header.site {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 28px;
  max-width: var(--max);
  margin: 0 auto;
  flex-wrap: wrap;
}

.brand {
  font-family: "Spectral", Georgia, serif;
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}
.brand span { color: var(--slate); font-weight: 400; }

nav.main { display: flex; flex-wrap: wrap; gap: 4px 26px; }
nav.main a {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
nav.main a:hover { color: var(--navy); }
nav.main a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--red);
}

/* ---------- Hero (home) ---------- */

.hero {
  background: var(--navy);
  color: var(--paper);
  padding: 104px 0 112px;
}
.hero .wrap { max-width: 820px; }
.hero .eyebrow { color: #D98A8E; }
.hero h1 { color: var(--paper); }
.hero h1::before {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--red);
  margin-bottom: 28px;
}
.hero p.lead {
  font-size: 1.14rem;
  color: #C3CEDB;
  margin-top: 1.3em;
  max-width: 36em;
}

.cta {
  display: inline-block;
  margin-top: 2.2em;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--red);
  padding: 15px 30px;
  text-decoration: none;
  border: 1px solid var(--red);
  transition: background 0.2s, border-color 0.2s;
}
.cta:hover { background: #8E171F; border-color: #8E171F; color: var(--paper); }

/* ---------- Page header (inner pages) ---------- */

.page-head {
  background: var(--navy);
  color: var(--paper);
  padding: 72px 0 76px;
}
.page-head .wrap { max-width: 820px; }
.page-head .eyebrow { color: #D98A8E; }
.page-head h1 { color: var(--paper); font-size: clamp(1.9rem, 4vw, 2.7rem); }
.page-head h1::before {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--red);
  margin-bottom: 24px;
}
.page-head p.lead {
  font-size: 1.1rem;
  color: #C3CEDB;
  margin-top: 1.2em;
  max-width: 36em;
}

/* ---------- Sections ---------- */

section.band { padding: 84px 0; }
section.band.tint { background: var(--mist); }
section.band + section.band:not(.tint) { border-top: 1px solid var(--line); }

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 44px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 30px 28px;
}
.card h3 {
  color: var(--navy);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.card h3::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
  transform: translateY(-1px);
}
.card p { color: var(--slate); font-size: 0.97rem; }

/* ---------- Prose ---------- */

.prose { max-width: 700px; }
.prose p { margin-bottom: 1.25em; color: var(--slate); }
.prose p strong { color: var(--navy); }
.prose ul { margin: 0 0 1.25em 1.2em; color: var(--slate); }
.prose li { margin-bottom: 0.5em; }

/* ---------- Contact ---------- */

.contact-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  padding: 34px 36px;
  max-width: 580px;
  margin-top: 40px;
}
.contact-block dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 1.3em;
}
.contact-block dt:first-child { margin-top: 0; }
.contact-block dd { margin: 0.25em 0 0; font-size: 1.05rem; color: var(--navy); }

/* ---------- Footer ---------- */

footer.site {
  background: var(--navy-deep);
  color: #A9B7C6;
  padding: 60px 0 44px;
  font-size: 0.9rem;
  line-height: 1.7;
}
footer.site .wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
}
@media (max-width: 720px) {
  footer.site .wrap { grid-template-columns: 1fr; }
}
footer.site a { color: #D98A8E; }
footer.site a:hover { color: #FFFFFF; }
footer.site .disclaimer { font-size: 0.8rem; color: #7E8FA1; }
footer.site .brandline {
  font-family: "Spectral", Georgia, serif;
  font-size: 1.12rem;
  color: #FFFFFF;
  margin-bottom: 0.7em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
footer.site .brandline::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}


/* ---------- WordPress-specific ---------- */

/* Menu output by wp_nav_menu */
nav.main ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 0; padding: 0; }
nav.main li { margin: 0; }
nav.main .current-menu-item > a,
nav.main .current_page_item > a {
  color: var(--navy);
  border-bottom-color: var(--red);
}

/* Page content area: sections are pasted as full-width bands */
.entry-content > p,
.entry-content > ul,
.entry-content > h2,
.entry-content > h3 {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}
.entry-content > p { margin-bottom: 1.25em; color: var(--slate); }
.entry-content { padding-bottom: 40px; }
.entry-content > section.band .wrap p { padding: 0; }

/* Contact form styling (WPForms / Contact Form 7 friendly) */
.band input[type="text"],
.band input[type="email"],
.band textarea,
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container textarea {
  width: 100%;
  max-width: 580px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  font: inherit;
  color: var(--navy);
  background: #fff;
}
.band input:focus, .band textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.band button[type="submit"],
.band input[type="submit"],
.wpforms-container button[type="submit"] {
  font-size: 0.86rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; background: var(--red); border: 1px solid var(--red);
  padding: 14px 28px; cursor: pointer; margin-top: 12px;
}
.band button[type="submit"]:hover { background: #8E171F; }

/* Admin bar offset for sticky header */
body.admin-bar header.site { top: 32px; }
@media (max-width: 782px) { body.admin-bar header.site { top: 46px; } }

/* Screen reader text (WP standard) */
.screen-reader-text {
  clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; overflow: hidden; position: absolute;
}
