/*
Theme Name: Combat-Do
Template: twentytwentyfour
Version: 3.0.0
Description: Combat-Do — Mind, Body, Spirit. Mobile-first dark + red.
              Custom classic templates override TT4 block templates.
Author: Zakley Inc
*/

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

:root {
  --bg:        #0E0E0E;
  --bg-alt:    #1A1A1A;
  --bg-card:   #232323;
  --text:      #FFFFFF;
  --text-mid:  #C8C8C8;
  --text-dim:  #8A8A8A;
  --red:       #d7393e;
  --red-dark:  #a02428;
  --rule:      #2c2c2c;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
  font-family: "Oswald", "Roboto", sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
p  { margin-bottom: 1rem; color: var(--text-mid); }
a  { color: var(--red); text-decoration: none; }
a:hover { color: var(--text); }

/* === SITE HEADER === */
.cd-header {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
}
.cd-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 60px;
}
.cd-header__logo img {
  max-height: 45px;
  max-width: 45px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.cd-nav { display: none; }
.cd-nav ul { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.cd-nav a {
  color: var(--text);
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.cd-nav a:hover { color: var(--red); }
.cd-nav-toggle {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--text);
  padding: 0.4rem 0.7rem;
  font-family: "Oswald", sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 2px;
}
@media (min-width: 768px) {
  .cd-nav { display: block; }
  .cd-nav-toggle { display: none; }
}
@media (max-width: 767px) {
  .cd-nav { display: none; flex: 1; }
  .cd-nav.is-open { display: block; flex-basis: 100%; padding: 1rem 0; }
  .cd-nav.is-open ul { flex-direction: column; gap: 0.75rem; }
}

/* === SITE FOOTER === */
.cd-footer {
  background: var(--bg-alt);
  color: var(--text-dim);
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 0.9rem;
}
.cd-footer a { color: var(--text-mid); }
.cd-footer a:hover { color: var(--red); }
.cd-footer__credit { line-height: 1.7; }
.cd-footer__nav { margin-top: 1.25rem; }
.cd-footer__menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.cd-footer__menu li { margin: 0; }
.cd-footer__menu a {
  color: var(--text-dim);
  font-family: "Oswald", sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.cd-footer__menu a:hover { color: var(--red); }

/* === BUTTONS === */
.cd-btn {
  display: inline-block;
  padding: 0.95rem 1.6rem;
  background: var(--red);
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.95rem;
  border: 2px solid var(--red);
  border-radius: 2px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.cd-btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.cd-btn--ghost { background: transparent; color: var(--text); border-color: var(--text); }
.cd-btn--ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* === HERO — full viewport, hard 50/50 flex === */
.cd-hero {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 80vh;
  overflow: hidden;
}
.cd-hero__copy {
  flex: 1 1 auto;
  width: 100%;
  background: var(--bg);
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cd-hero__photo {
  flex: 1 1 auto;
  width: 100%;
  min-height: 50vh;
  background-position: center 25%;
  background-size: cover;
  background-color: var(--bg-alt);
}
.cd-hero h1 .accent { color: var(--red); display: block; margin-top: 0.25rem; }
.cd-hero__sub {
  font-family: "Oswald", sans-serif;
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  margin-top: 1rem;
}
.cd-hero__cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 360px;
}
@media (min-width: 768px) {
  .cd-hero { flex-direction: row; }
  .cd-hero__copy {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 4rem 3rem;
  }
  .cd-hero__photo {
    flex: 0 0 50%;
    max-width: 50%;
    min-height: 80vh;
  }
  .cd-hero__cta { flex-direction: row; max-width: none; }
}
@media (min-width: 1280px) {
  .cd-hero__copy { padding: 5rem 5rem 5rem 6rem; }
}

/* === CREDIBILITY STRIP === */
.cd-creds {
  background: var(--bg-alt);
  border-top: 2px solid var(--red);
  border-bottom: 1px solid var(--rule);
}
.cd-creds__list {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 1.5rem 1.5rem;
  gap: 0.85rem;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.cd-creds__list li {
  font-family: "Oswald", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  padding-left: 1.25rem;
  position: relative;
}
.cd-creds__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--red);
}
@media (min-width: 768px) {
  .cd-creds__list {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 1.25rem 2rem;
    gap: 1.5rem;
  }
}

/* === ZONE CARDS === */
.cd-zones-wrap {
  background: var(--bg);
  padding: 3rem 1.5rem;
}
@media (min-width: 768px) { .cd-zones-wrap { padding: 5rem 2rem; } }
.cd-zones {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}
@media (min-width: 700px) {
  .cd-zones { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
.cd-zone {
  padding: 3rem 2.5rem;
  text-align: left;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
@media (min-width: 1024px) { .cd-zone { padding: 3.5rem 3rem; } }
.cd-zone--train { border-top: 4px solid var(--red); }
.cd-zone--geezer { border-top: 4px solid var(--text); }
.cd-zone h2 {
  color: var(--text);
  margin-bottom: 1.25rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  letter-spacing: 1px;
}
.cd-zone__lead {
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.65;
  color: var(--text-mid);
  margin-bottom: 2rem;
  flex: 1;
}
.cd-zone .cd-btn { align-self: flex-start; }

/* === BOTTOM (About + Visit) === */
.cd-bottom {
  background: var(--bg-alt);
  padding: 3rem 1.5rem;
}
@media (min-width: 768px) { .cd-bottom { padding: 5rem 2rem; } }
.cd-bottom__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .cd-bottom__grid { grid-template-columns: 3fr 2fr; gap: 3.5rem; }
}
.cd-bottom__about h2,
.cd-bottom__visit h2 { color: var(--red); margin-bottom: 1rem; font-size: clamp(1.6rem, 3vw, 2rem); }
.cd-bottom__about p { font-size: clamp(1.05rem, 1.5vw, 1.15rem); line-height: 1.7; }
.cd-bottom__visit {
  background: var(--bg);
  padding: 2.25rem 2rem;
  border-left: 4px solid var(--red);
  border-radius: 4px;
}
.cd-bottom__visit p { font-size: 1.1rem; line-height: 1.85; color: var(--text); }
.cd-bottom__visit a { color: var(--red); }
.cd-bottom__visit strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-family: "Oswald", sans-serif;
  letter-spacing: 1px;
}

/* === Contact Form 7 — match dark palette === */
.wpcf7 { margin: 1.5rem 0; }
.wpcf7-form p { margin-bottom: 1rem; }
.wpcf7-form label {
  display: block;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-family: inherit;
  font-size: 1rem;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  outline: none;
  border-color: var(--red);
  background: var(--bg-card);
}
.wpcf7-form textarea { resize: vertical; min-height: 7rem; }
.wpcf7-form .wpcf7-submit {
  background: var(--red);
  color: #fff;
  border: 2px solid var(--red);
  padding: 0.85rem 1.6rem;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.95rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s;
}
.wpcf7-form .wpcf7-submit:hover { background: var(--red-dark); border-color: var(--red-dark); }
.wpcf7-not-valid-tip {
  color: var(--red);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: block;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  border: 2px solid var(--red);
  color: var(--text);
  background: var(--bg-card);
  padding: 0.85rem 1rem;
  margin-top: 1rem;
}
.wpcf7 form.sent .wpcf7-response-output {
  border: 2px solid #4caf50;
  color: var(--text);
  background: var(--bg-card);
  padding: 0.85rem 1rem;
  margin-top: 1rem;
}
.wpcf7-spinner { background: var(--text-mid); }

/* === GENERIC PAGE BODY (about-bob etc.) === */
.cd-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.cd-page h1 { color: var(--red); margin-bottom: 2rem; font-size: clamp(2rem, 5vw, 3rem); }
.cd-page h2 { color: var(--red); margin: 2rem 0 1rem; }
.cd-page h3 { color: var(--text); margin: 1.5rem 0 0.5rem; }
.cd-page p  { color: var(--text-mid); margin-bottom: 1rem; font-size: 1.05rem; line-height: 1.7; }
.cd-page ul { color: var(--text-mid); padding-left: 1.5rem; margin-bottom: 1rem; }
.cd-page li { margin-bottom: 0.5rem; }
.cd-page strong { color: var(--text); }
