/*
Theme Name: JRB Consulting Group
Theme URI: https://jrbconsultinggroup.com
Author: JRB Consulting Group
Description: Custom block theme for the 2026 JRB Consulting Group brand refresh — sage/gold spa-like palette, Cormorant Garamond + Montserrat.
Version: 1.9.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: jrb-theme
*/

/* Design tokens are registered in theme.json as CSS custom properties
   (--wp--preset--color--sage-deep, etc). This file only holds layout
   and component rules that native blocks can't express on their own. */

body {
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; }
:focus-visible { outline: 2px solid var(--wp--preset--color--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Top bar ---------- */
.jrb-topbar {
  background: var(--wp--preset--color--sage-deep);
  color: var(--wp--preset--color--ivory);
}
.jrb-topbar a { color: var(--wp--preset--color--ivory); opacity: 0.92; }
.jrb-topbar a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Header ---------- */
.jrb-header {
  border-bottom: 1px solid rgba(58,60,51,0.14);
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--wp--preset--color--cream);
}
.jrb-brand-tagline {
  font-size: 10.5px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ink-soft);
  font-weight: 600;
}
.jrb-header .wp-block-navigation { font-size: 12.5px; letter-spacing: 0.09em; text-transform: uppercase; }
.jrb-brand-group { display: flex; align-items: center; }

/* ---------- Mobile nav overlay ---------- */
/* Scoped strictly to the OPEN overlay state (.is-menu-open) so this never
   affects the normal inline desktop nav, which shares some of the same
   underlying class names when closed. */
.wp-block-navigation__responsive-container.is-menu-open {
  background: var(--wp--preset--color--cream) !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 32px !important;
  width: 100%;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px !important;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--wp--preset--color--ink) !important;
  padding: 6px 0 !important;
  border: none !important;
  box-shadow: none !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus {
  color: var(--wp--preset--color--gold-text) !important;
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
  color: var(--wp--preset--color--ink) !important;
}

/* ---------- Mobile header row tightening ---------- */
@media (max-width: 600px) {
  .jrb-brand-group .wp-block-site-title a { font-size: 18px !important; }
  .jrb-nav-cta .wp-block-button__link {
    padding: 8px 14px !important;
    font-size: 10.5px !important;
  }
}
.jrb-header .wp-block-navigation a:hover { color: var(--wp--preset--color--gold-text); }
.jrb-nav-cta .wp-block-button__link {
  font-size: 12px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--wp--preset--color--sage-deep) !important;
  color: var(--wp--preset--color--sage-deep) !important;
  background: transparent !important;
  padding: 10px 22px !important;
}
.jrb-nav-cta .wp-block-button__link:hover { background: var(--wp--preset--color--sage-deep) !important; color: var(--wp--preset--color--ivory) !important; }

/* ---------- Hero (homepage) ---------- */
.jrb-hero { padding: 88px 0 96px; }
.jrb-hero-eyebrow {
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--wp--preset--color--gold-text); font-weight: 600; display: block; margin-bottom: 18px;
}
.jrb-hero h1 { max-width: 16ch; }
.jrb-hero h1 em { font-style: italic; color: var(--wp--preset--color--sage-deep); }
.jrb-hero-lede { max-width: 46ch; color: var(--wp--preset--color--ink-soft); }
.jrb-btn-primary .wp-block-button__link {
  background: var(--wp--preset--color--sage-deep) !important;
  color: var(--wp--preset--color--ivory) !important;
  border: 1px solid var(--wp--preset--color--sage-deep) !important;
  font-size: 12.5px !important; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 15px 30px !important;
}
.jrb-btn-primary .wp-block-button__link:hover { background: transparent !important; color: var(--wp--preset--color--sage-deep) !important; }
.jrb-btn-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--wp--preset--color--sage-deep) !important;
  border: 1px solid var(--wp--preset--color--sage-deep) !important;
  font-size: 12.5px !important; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 14px 28px !important;
}
.jrb-btn-outline .wp-block-button__link:hover { background: var(--wp--preset--color--sage-deep) !important; color: var(--wp--preset--color--ivory) !important; }
.jrb-btn-row-center { display: flex; justify-content: center; }

/* ---------- Contact page ---------- */
.jrb-contact-line { font-family: var(--wp--preset--font-family--heading); font-size: 20px; margin-bottom: 6px; }
.jrb-contact-line a:hover { color: var(--wp--preset--color--gold-text); }
.jrb-service-panel .jrb-free-advice-form label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 8px;
  color: var(--wp--preset--color--ink-soft);
}
.jrb-service-panel .jrb-free-advice-form input,
.jrb-service-panel .jrb-free-advice-form textarea {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid rgba(58,60,51,0.25);
  color: var(--wp--preset--color--ink); font-family: inherit; font-size: 15px; padding: 8px 2px; resize: none;
}
.jrb-service-panel .jrb-free-advice-form input:focus,
.jrb-service-panel .jrb-free-advice-form textarea:focus { outline: none; border-bottom-color: var(--wp--preset--color--gold); }
.jrb-service-panel .jrb-free-advice-form p { margin-bottom: 22px; }
.jrb-btn-primary-form {
  background: var(--wp--preset--color--sage-deep); color: var(--wp--preset--color--ivory);
  border: 1px solid var(--wp--preset--color--sage-deep); font-family: inherit;
  font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 14px 28px; cursor: pointer;
}
.jrb-btn-primary-form:hover { background: transparent; color: var(--wp--preset--color--sage-deep); }

/* ---------- WPForms restyling ---------- */
/* Dark context: CTA bands (sage-deep background) on Home/Services/Team */
.jrb-cta-band .wpforms-container { margin: 0; }
.jrb-cta-band .wpforms-field-label,
.jrb-cta-band .wpforms-field-label-inline,
.jrb-cta-band .wpforms-field-sublabel {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(253,251,246,0.75) !important;
  font-weight: 400 !important;
}
.jrb-cta-band .wpforms-field { padding: 0 0 22px !important; }
.jrb-cta-band .wpforms-field input[type=text],
.jrb-cta-band .wpforms-field input[type=email],
.jrb-cta-band .wpforms-field textarea {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(253,251,246,0.4) !important;
  border-radius: 0 !important;
  color: var(--wp--preset--color--ivory) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 15px !important;
  padding: 8px 2px !important;
  box-shadow: none !important;
}
.jrb-cta-band .wpforms-field input:focus,
.jrb-cta-band .wpforms-field textarea:focus {
  outline: none !important; border-bottom-color: var(--wp--preset--color--gold) !important;
}
.jrb-cta-band .wpforms-field input::placeholder,
.jrb-cta-band .wpforms-field textarea::placeholder { color: rgba(253,251,246,0.4) !important; }
.jrb-cta-band .wpforms-required-label { color: var(--wp--preset--color--gold) !important; }
.jrb-cta-band .wpforms-submit-container { margin-top: 6px !important; }
.jrb-cta-band button.wpforms-submit {
  background: var(--wp--preset--color--ivory) !important;
  color: var(--wp--preset--color--sage-deep) !important;
  border: 1px solid var(--wp--preset--color--ivory) !important;
  border-radius: 0 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 12px !important; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 14px 30px !important; font-weight: 600 !important; box-shadow: none !important;
}
.jrb-cta-band button.wpforms-submit:hover { background: transparent !important; color: var(--wp--preset--color--ivory) !important; }

/* Light context: the Contact page's ivory panel */
.jrb-service-panel .wpforms-container { margin: 0; }
.jrb-service-panel .wpforms-field-label,
.jrb-service-panel .wpforms-field-sublabel {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ink-soft) !important;
  font-weight: 400 !important;
}
.jrb-service-panel .wpforms-field { padding: 0 0 22px !important; }
.jrb-service-panel .wpforms-field input[type=text],
.jrb-service-panel .wpforms-field input[type=email],
.jrb-service-panel .wpforms-field textarea {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(58,60,51,0.25) !important;
  border-radius: 0 !important;
  color: var(--wp--preset--color--ink) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 15px !important;
  padding: 8px 2px !important;
  box-shadow: none !important;
}
.jrb-service-panel .wpforms-field input:focus,
.jrb-service-panel .wpforms-field textarea:focus {
  outline: none !important; border-bottom-color: var(--wp--preset--color--gold) !important;
}
.jrb-service-panel .wpforms-required-label { color: var(--wp--preset--color--gold-text) !important; }
.jrb-service-panel button.wpforms-submit {
  background: var(--wp--preset--color--sage-deep) !important;
  color: var(--wp--preset--color--ivory) !important;
  border: 1px solid var(--wp--preset--color--sage-deep) !important;
  border-radius: 0 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 12.5px !important; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 14px 28px !important; font-weight: 600 !important; box-shadow: none !important; cursor: pointer;
}
.jrb-service-panel button.wpforms-submit:hover { background: transparent !important; color: var(--wp--preset--color--sage-deep) !important; }

.jrb-hero-quote {
  max-width: 270px; padding-left: 30px; border-left: 1px solid rgba(58,60,51,0.14);
}
.jrb-hero-quote p { font-style: italic; font-size: 22px; line-height: 1.5; }
.jrb-hero-quote .jrb-attr {
  display: block; margin-top: 16px; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--wp--preset--color--gold-text); font-weight: 600;
}

/* ---------- Page hero (interior pages, e.g. Services) ---------- */
.jrb-page-hero { padding: 76px 0 64px; border-bottom: 1px solid rgba(58,60,51,0.14); }
.jrb-page-hero .jrb-kicker {
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--wp--preset--color--gold-text); font-weight: 600; display: block; margin-bottom: 14px;
}
.jrb-page-hero h1 { max-width: 34ch; }
.jrb-page-hero p { max-width: 76ch; color: var(--wp--preset--color--ink-soft); }

/* ---------- Services teaser row (homepage, 4 up) ---------- */
.jrb-services-row { border-top: 1px solid rgba(58,60,51,0.14); }
.jrb-services-row > .wp-block-column {
  border-right: 1px solid rgba(58,60,51,0.14);
  padding: 40px 34px 8px 0 !important;
}
.jrb-services-row > .wp-block-column:last-child { border-right: none; }
.jrb-services-row h3 { overflow-wrap: normal; word-break: normal; hyphens: none; }
.jrb-section-head { margin-left: 0 !important; margin-right: 0 !important; }

/* ---------- Sections that need explicit width/inset (see note) ---------- */
.jrb-services-section,
.jrb-contact-section,
.jrb-service-list-section,
.jrb-team-bios-section,
.jrb-hero,
.jrb-page-hero,
.jrb-team-teaser {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
}
/* Full-bleed color bands need their background to stay edge-to-edge, so the
   constraint goes on an inner wrapper instead of the section itself. */
.jrb-inner-wrap {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
}
.jrb-service-icon { color: var(--wp--preset--color--sage-deep); margin-bottom: 18px; }
.jrb-service-more {
  display: inline-block; margin-top: 18px; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--wp--preset--color--sage-deep);
  border-bottom: 1px solid var(--wp--preset--color--gold); padding-bottom: 3px;
}
.jrb-service-more a { color: inherit; }
@media (max-width: 782px) {
  .jrb-services-row { flex-wrap: wrap; border-top: none; }
  .jrb-services-row > .wp-block-column { border-right: none !important; border-bottom: 1px solid rgba(58,60,51,0.14); padding: 34px 0 !important; }
}

/* ---------- Service detail rows (Services page) ---------- */
.jrb-service-row { padding: 52px 0; border-bottom: 1px solid rgba(58,60,51,0.14); align-items: center; }
.jrb-service-row .jrb-num {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--wp--preset--color--gold-text); font-weight: 600; display: block; margin-bottom: 12px;
}
.jrb-service-panel { background: var(--wp--preset--color--ivory); border: 1px solid rgba(58,60,51,0.14); padding: 38px !important; }
.jrb-service-panel h3 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; margin-bottom: 16px; }
.jrb-service-panel ul { list-style: none; margin: 0; padding: 0; }
.jrb-service-panel li { font-size: 14.5px; color: var(--wp--preset--color--ink-soft); padding-left: 18px; position: relative; margin-bottom: 13px; }
.jrb-service-panel li::before { content: "—"; position: absolute; left: 0; color: var(--wp--preset--color--gold); }
@media (max-width: 782px) { .jrb-service-row { flex-wrap: wrap; } }

/* ---------- Testimonials ---------- */
.jrb-testimonials { background: var(--wp--preset--color--sage-light); padding: 92px 0; }
.jrb-testimonial-col { padding: 0 34px; border-left: 1px solid rgba(58,60,51,0.16); }
.jrb-testimonial-col:first-child { border-left: none; padding-left: 0; }
.jrb-testimonial-col p { font-style: italic; font-size: 18.5px; line-height: 1.5; }
.jrb-testimonial-who { margin-top: 18px; font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; font-weight: 600; }
.jrb-testimonial-who span { display: block; text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--wp--preset--color--ink-soft); margin-top: 2px; font-weight: 500; }
@media (max-width: 782px) {
  .jrb-testimonial-col { border-left: none !important; padding: 0 0 34px !important; border-bottom: 1px solid rgba(58,60,51,0.16); margin-bottom: 34px; }
}

/* ---------- How We Work (Services page) ---------- */
.jrb-how-we-work { background: var(--wp--preset--color--sage-light); padding: 88px 0; }
.jrb-hww-col { padding: 0 32px; border-left: 1px solid rgba(58,60,51,0.16); }
.jrb-hww-col:first-child { border-left: none; padding-left: 0; }
@media (max-width: 782px) { .jrb-hww-col { border-left: none !important; padding-left: 0 !important; } }

/* ---------- CTA band ---------- */
.jrb-cta-band { background: var(--wp--preset--color--sage-deep); padding: 88px 0; }
.jrb-cta-band h2, .jrb-cta-band p, .jrb-cta-band label { color: var(--wp--preset--color--ivory); }
.jrb-cta-band h2 { max-width: 20ch; }
.jrb-cta-band p { max-width: 44ch; opacity: 0.85; }
.jrb-cta-band input, .jrb-cta-band textarea {
  background: transparent; border: none; border-bottom: 1px solid rgba(253,251,246,0.4);
  color: var(--wp--preset--color--ivory); width: 100%; padding: 8px 2px; font-family: inherit;
}
.jrb-cta-band input::placeholder, .jrb-cta-band textarea::placeholder { color: rgba(253,251,246,0.4); }
.jrb-cta-band input:focus, .jrb-cta-band textarea:focus { outline: none; border-bottom-color: var(--wp--preset--color--gold); }
.jrb-cta-band label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 8px; opacity: 0.75; }
.jrb-btn-ghost-light {
  background: var(--wp--preset--color--ivory) !important; color: var(--wp--preset--color--sage-deep) !important;
  border: 1px solid var(--wp--preset--color--ivory) !important;
  font-size: 12px !important; letter-spacing: 0.1em; text-transform: uppercase; padding: 14px 30px !important;
}
.jrb-btn-ghost-light:hover { background: transparent !important; color: var(--wp--preset--color--ivory) !important; }

/* ---------- Team teaser ---------- */
.jrb-team-teaser { padding: 100px 0; }
.jrb-team-photo {
  max-width: 340px; margin: 0 auto;
}
.jrb-team-photo img { width: 100%; height: auto; display: block; }

/* ---------- Small circular photo (Team page bio panels) ---------- */
.jrb-team-photo-sm {
  width: 96px; height: 96px; border-radius: 50%; margin-bottom: 22px;
  background: linear-gradient(160deg, var(--wp--preset--color--sage-light), var(--wp--preset--color--ivory));
  border: 1px solid rgba(58,60,51,0.14);
  object-fit: cover; display: block;
}

/* ---------- Footer ---------- */
.jrb-footer { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--cream); padding: 70px 0 30px; }
.jrb-footer h4 { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp--preset--color--sage-light); margin-bottom: 18px; font-weight: 600; }
.jrb-footer p, .jrb-footer a { color: rgba(247,244,236,0.85); }
.jrb-footer a:hover { color: var(--wp--preset--color--gold); }
.jrb-footer-bottom { border-top: 1px solid rgba(247,244,236,0.14); padding-top: 26px; margin-top: 20px; font-size: 12px; color: rgba(247,244,236,0.65); }
