/*
Theme Name: Jitsu-Do Child
Template: generatepress
Version: 1.0
*/

/* ── Variables ── */
:root {
  --jd-black: #0a0a0a;
  --jd-white: #ffffff;
  --jd-red:   #c8102e;
  --jd-grey:  #f4f4f4;
  --jd-mid:   #555555;
}

/* ── Base ── */
body {
  font-family: 'Inter', sans-serif !important;
  color: var(--jd-black);
  background: var(--jd-white);
}

h1, h2, h3, h4, h5, h6,
.main-title, .entry-title,
.site-title, .page-title {
  font-family: 'Aldrich', sans-serif !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ── Header — black bar ── */
.site-header {
  background-color: var(--jd-black) !important;
  border-bottom: 3px solid var(--jd-red) !important;
}
.site-header .inside-header { padding: 0 1.5rem; min-height: 64px; }
.main-title a,
.main-title a:hover {
  color: var(--jd-white) !important;
  font-family: 'Aldrich', sans-serif !important;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
}

/* ── Nav — black background, white text ── */
.main-navigation,
.main-navigation ul ul {
  background-color: var(--jd-black) !important;
}
.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.main-navigation .menu-bar-items {
  color: var(--jd-white) !important;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a {
  color: var(--jd-red) !important;
}
.main-navigation ul ul {
  border-top: 2px solid var(--jd-red) !important;
  min-width: 200px;
}

/* Join Now — last nav item gets red pill */
.main-navigation .main-nav > ul > li:last-child > a {
  background: var(--jd-red) !important;
  color: var(--jd-white) !important;
  padding: 0.35rem 1rem !important;
  border-radius: 2px;
}
.main-navigation .main-nav > ul > li:last-child > a:hover {
  background: var(--jd-white) !important;
  color: var(--jd-black) !important;
}

/* ── Website Builder imported class fixes ── */
.body-large {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--jd-mid);
  max-width: 760px;
}
.body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--jd-mid);
}
[dir="auto"] { text-align: left; }
h1[dir="auto"] {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  font-family: 'Aldrich', sans-serif !important;
}
h6[dir="auto"] {
  font-family: 'Inter', sans-serif !important;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--jd-mid);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 1.5rem;
}

/* ── Content layout ── */
.container { max-width: 1160px; }
.entry-content { max-width: 100%; }
.entry-content h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin: 2.5rem 0 1rem; }
.entry-content h3 { font-size: 1.2rem; margin: 2rem 0 0.75rem; }
.entry-content p  { margin-bottom: 1.25rem; }
a { color: var(--jd-red); }
a:hover { color: var(--jd-black); }

/* ── Buttons ── */
.wp-block-button__link,
a.button,
button,
input[type="submit"] {
  background-color: var(--jd-red) !important;
  color: var(--jd-white) !important;
  font-family: 'Aldrich', sans-serif !important;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 0;
}
.wp-block-button__link:hover,
a.button:hover,
button:hover,
input[type="submit"]:hover {
  background-color: var(--jd-black) !important;
  color: var(--jd-white) !important;
}

/* ── Footer ── */
.site-footer,
.site-info {
  background-color: var(--jd-black) !important;
  color: #999 !important;
}
.site-footer a,
.site-info a { color: var(--jd-mid) !important; }
.site-footer a:hover,
.site-info a:hover { color: var(--jd-white) !important; }

/* ── Force no-sidebar full-width ── */
.widget-area.sidebar,
#right-sidebar,
#left-sidebar { display: none !important; }
.content-area,
.site-content .content-area { width: 100% !important; float: none !important; }
.is-right-sidebar,
.is-left-sidebar { display: none !important; }

/* ── Image sizing ── */
.entry-content img {
  max-width: 100%;
  height: auto;
}
.wp-block-image { max-width: 100%; }

/* ── Blog post cards ── */
.post .entry-title a {
  color: var(--jd-black) !important;
  text-decoration: none;
}
.post .entry-title a:hover { color: var(--jd-red) !important; }

/* ── Mobile ── */
@media (max-width: 768px) {
  .mobile-menu-control-wrapper .menu-toggle,
  .mobile-menu-control-wrapper .menu-toggle:hover {
    background-color: var(--jd-black) !important;
    color: var(--jd-white) !important;
  }
  h1[dir="auto"] { font-size: 1.8rem; }
  .body-large { font-size: 1rem; }
}


/* ── Hide page title on front page ── */
body.home .entry-title,
body.home .page-header { display: none !important; }

/* ── Hero section (first content block on home) ── */
body.home .entry-content > h1:first-of-type {
  font-size: clamp(2.2rem, 5vw, 4rem) !important;
  line-height: 1.05;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

/* ── Content images: cap height, cover-crop like feature photos ── */
.entry-content img {
  max-width: 100%;
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  margin: 1.5rem 0;
}

/* ── Portrait / small images should not be stretched ── */
.entry-content img[width],
.entry-content .wp-block-image img {
  width: auto;
  height: auto;
  max-width: 100%;
}

/* ── Add breathing room to entry content ── */
.entry-content {
  padding: 2rem 1.5rem;
}
@media (min-width: 769px) {
  .entry-content {
    padding: 2.5rem 3rem;
  }
}

/* ── Section dividers between major h3 blocks ── */
.entry-content h3[dir="auto"] {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
}
.entry-content h3[dir="auto"]:first-of-type {
  border-top: none;
  padding-top: 0;
}


/* ── Hide empty entry-header on home page ── */
body.home .entry-header {
  display: none !important;
}
body.home .entry-content {
  padding-top: 0 !important;
}

/* ── Hero section on home: dark band ── */
body.home .entry-content > h1[dir="auto"]:first-child {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem) !important;
  line-height: 1.05;
  background: var(--jd-black);
  color: var(--jd-white) !important;
  padding: 3.5rem 3rem 1rem;
  margin: 0 -3rem;
  width: calc(100% + 6rem);
}
body.home .entry-content > h6[dir="auto"]:nth-child(2),
body.home .entry-content > h6[dir="auto"]:nth-child(3) {
  background: var(--jd-black);
  color: #ccc !important;
  padding: 0 3rem;
  margin: 0 -3rem;
  width: calc(100% + 6rem);
}
body.home .entry-content > h6[dir="auto"]:nth-child(4) {
  background: var(--jd-black);
  color: var(--jd-white) !important;
  padding: 0.5rem 3rem 3rem;
  margin: 0 -3rem 2rem;
  width: calc(100% + 6rem);
}
/* red accent line under hero */
body.home .entry-content > h6[dir="auto"]:nth-child(4)::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--jd-red);
  margin-top: 2rem;
}


@media (min-width: 769px) {
  body.home .entry-content { padding-top: 0 !important; }
}


/* ── Remove top gap on home page ── */
body.home .content-area,
body.home .site-main,
body.home article.entry,
body.home .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
/* GP adds padding to .grid-container-inner / inside-container */
body.home .inside-article {
  padding: 0 !important;
}

/* ── CTA band at bottom of home ── */
.jd-cta-band {
  background: var(--jd-black);
  text-align: center;
  padding: 3.5rem 2rem;
  margin: 3rem -3rem 0;
  width: calc(100% + 6rem);
  border-top: 3px solid var(--jd-red);
}
.jd-cta-band h3 {
  font-family: 'Aldrich', sans-serif !important;
  font-size: clamp(1.4rem, 3vw, 2.2rem) !important;
  color: var(--jd-white) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  border: none !important;
}
.jd-cta-band p {
  color: #aaa !important;
  margin-bottom: 1.5rem;
}
.jd-cta-band .wp-block-button__link {
  display: inline-block;
  margin-top: 1rem;
}
