/* PMA BJJ shares the school’s brand, with its own navigation and page rhythm. */
.bjj-page {
  --color-page: #fbfcf8;
  --color-section-alt: #f0f3ec;
  --color-brand-dark: #101c16;
}

.bjj-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.bjj-brand > img { width: 61px; height: auto; }
.bjj-brand > span { display: grid; gap: 4px; }
.bjj-brand strong { color: #f7f8f2; font: 400 2.2rem/1 var(--font-display); white-space: nowrap; }
.bjj-brand em { color: var(--color-yellow); font-style: normal; }
.bjj-brand small { color: #c0ccc2; font-size: 0.61rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; }
.bjj-header .nav { min-height: 74px; }
.bjj-header .nav-links { gap: clamp(16px, 1.7vw, 26px); }
.bjj-header .nav-links a[aria-current="page"] { color: var(--color-yellow); background-size: 100% 2px; }

.bjj-skip-link {
  position: absolute;
  top: 8px;
  left: var(--gutter);
  z-index: 100;
  padding: 12px 20px;
  background: var(--color-yellow);
  color: #101c16;
  transform: translateY(-200%);
}
.bjj-skip-link:focus { transform: translateY(0); }

.bjj-page #site-main a:not(.button):not(.text-link) { text-underline-offset: 4px; }
.bjj-copy a, .bjj-schedule-help a { color: var(--color-brand); font-weight: 700; }
.hero.bjj-hero { padding-top: clamp(48px, 5.5vw, 84px); padding-bottom: 0; border-bottom: 0; }
.bjj-hero-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(30px, 4.5vw, 72px); align-items: center; }
.bjj-hero .hero-copy { min-width: 0; }
.hero.bjj-hero h1 { max-width: 780px; margin-bottom: 26px; font-size: clamp(2.8rem, 4.5vw, 4.8rem); line-height: 1.1; }
.bjj-hero h1 > .bjj-hero-location { display: block; margin-top: 10px; color: var(--color-mint); font-size: 0.6em; line-height: 1.2; }
.bjj-keep-together { white-space: nowrap; }
.bjj-hero .hero-copy > p:not(.section-eyebrow) { font-size: 1.02rem; line-height: 1.7; }
.bjj-hero .hero-copy > p a { color: #f7f8f2; font-weight: 600; }
.bjj-hero .section-eyebrow a { color: inherit; }
.bjj-hero .section-eyebrow > span { margin: 0 10px; color: #91a697; }
.bjj-page .hero-actions { margin-top: 28px; gap: 14px; }
.bjj-page .hero-actions .button, .bjj-page .hero-actions .text-link { margin-top: 0; }
.bjj-hero-photo { min-width: 0; margin: 0; }
.bjj-hero-photo img { display: block; width: 100%; height: auto; border-bottom: 4px solid var(--color-yellow); }
.bjj-hero-photo figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding-top: 16px; color: #c0ccc2; font-size: 0.75rem; }
.bjj-hero-photo figcaption span:first-child { color: #f7f8f2; font-weight: 600; }
.bjj-hero-details { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: clamp(44px, 5vw, 72px); padding: 22px 0; border-top: 1px solid #35463a; color: #d7e1d8; font-size: 0.85rem; }
.bjj-hero-details > :first-child { color: var(--color-mint); }
.bjj-hero-details a { text-decoration: none; }
.bjj-hero-details a:hover { color: var(--color-yellow); }
.bjj-hero-details a span { margin-left: 10px; }

.bjj-page .section h2 { text-wrap: balance; font-size: clamp(2.1rem, 3.3vw, 3.3rem); }
.bjj-copy-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.bjj-copy-layout > * { min-width: 0; }
.bjj-copy-layout h2 { max-width: 520px; }
.bjj-copy { padding-top: 8px; }
.bjj-copy p + p { margin-top: 22px; }

.section.bjj-programs { background: var(--color-page); }
.bjj-program-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 36px; border-top: 1px solid #bcc9bf; }
.bjj-program { display: flex; flex-direction: column; align-items: flex-start; padding: 36px 48px 0 0; }
.bjj-program + .bjj-program { padding: 36px 0 0 48px; border-left: 1px solid #bcc9bf; }
.bjj-program .bjj-program-label { margin: 0 0 14px; color: var(--color-brand); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.bjj-program h3 { margin: 0 0 18px; font: 400 clamp(1.75rem, 2.4vw, 2.5rem)/1.2 var(--font-display); }
.bjj-program .section-list { margin-top: 22px; margin-bottom: 30px; }
.bjj-program li + li { margin-top: 6px; }
.bjj-program .bjj-explore { display: flex; justify-content: space-between; gap: 20px; width: 100%; margin-top: auto; padding: 18px 0; border-top: 1px solid #bcc9bf; border-bottom: 1px solid #bcc9bf; color: var(--color-brand); font-size: 0.96rem; font-weight: 700; text-decoration: none; }
.bjj-program .bjj-explore:hover { color: #101c16; text-decoration: underline; }
.bjj-explore span { flex-shrink: 0; }

.section.bjj-welcome, .section.bjj-training { background: var(--color-section-alt); }
.section.bjj-gallery { background: var(--color-page); }
.bjj-gallery-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: 28px; margin-top: 36px; align-items: start; }
.bjj-gallery-grid figure:last-child { margin-top: 48px; }
.bjj-gallery-grid .site-photo img { width: 100%; height: auto; }

.section.bjj-benefits {
  --color-ink: #f7f8f2;
  --color-muted: #c4d0c6;
  --color-line: #35463a;
  --color-blue: var(--color-mint);
  color: var(--color-ink);
  background: var(--color-brand-dark);
}
.bjj-benefit-list { display: grid; }
.bjj-benefit-list article { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 20px; padding: 26px 0; border-top: 1px solid var(--color-line); }
.bjj-benefit-list article:first-child { padding-top: 0; border-top: 0; }
.bjj-benefit-list article:last-child { padding-bottom: 0; }
.bjj-benefit-list article > span { padding-top: 5px; color: var(--color-yellow); font-size: 0.8rem; font-weight: 600; }
.bjj-benefit-list h3 { margin: 0 0 10px; font: 400 clamp(1.5rem, 2vw, 2rem)/1.2 var(--font-display); }
.section.bjj-story { background: var(--color-page); }
.bjj-culture { padding-top: 50px; margin-top: 50px; border-top: 1px solid var(--color-line); }
.bjj-culture > h2 { font-size: clamp(1.8rem, 2.5vw, 2.6rem); }
.bjj-culture-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-top: 30px; }
.bjj-culture-grid h3 { margin: 0 0 12px; font: 400 1.6rem/1.2 var(--font-display); }
.bjj-page .section.reviews, .section.bjj-location { background: var(--color-section-alt); }
/* The external reviews widget has a 320px minimum inside its shadow root. */
.bjj-page .reviews-placeholder { max-width: 100%; overflow-x: auto; }
.section.bjj-schedule, .section.bjj-faq { background: var(--color-page); }
.bjj-schedule .bjj-schedule-help { max-width: none; margin-top: 22px; }
.bjj-address { display: grid; gap: 14px; margin: 26px 0; font-style: normal; }
.bjj-address a { width: fit-content; color: var(--color-brand); font-weight: 700; }
.bjj-directions { color: var(--color-brand); font-size: 0.9rem; font-weight: 700; }
.bjj-faq .faq-list { border-width: 1px 0 0; border-radius: 0; }
.bjj-faq .faq-list details { padding: 22px 0; background: transparent; border-bottom: 1px solid var(--color-line); }
.bjj-faq .faq-list summary { font-size: 1rem; font-weight: 600; }
.bjj-faq .faq-list p { padding-right: 24px; }
.section.bjj-final-cta { min-height: 0; border-top: 4px solid var(--color-yellow); }
.bjj-final-cta .section-eyebrow { color: var(--color-mint); }
.bjj-final-cta h2 { max-width: 850px; }
.bjj-final-cta .button { margin-top: 28px; }
.bjj-footer .footer-brand > p { color: #c0ccc2; margin: 20px 0; font-size: 0.93rem; }
.bjj-footer .bjj-brand strong { font-size: 3.4rem; }
.bjj-footer .bjj-parent-link { display: inline-block; margin-top: 20px; color: #d1dcd3; font-size: 0.85rem; text-underline-offset: 4px; }
.bjj-footer .footer-brand > .bjj-parent-link { margin-top: 0; }
.bjj-footer .social-links { margin-top: 22px; }

@media (max-width: 1100px) {
  .bjj-header .nav-links { gap: 0; }
}
@media (max-width: 900px) {
  .bjj-hero-layout, .bjj-copy-layout { grid-template-columns: minmax(0, 1fr); }
  .bjj-hero-layout { gap: 36px; }
  .bjj-hero-photo { width: min(100%, 720px); }
  .hero.bjj-hero h1 { font-size: clamp(2.8rem, 6.8vw, 4.5rem); }
  .bjj-copy-layout { gap: 24px; }
  .bjj-copy-layout h2 { max-width: 680px; margin-bottom: 0; }
  .bjj-copy { padding-top: 0; }
  .bjj-program { padding-right: 28px; }
  .bjj-program + .bjj-program { padding-left: 28px; }
  .bjj-culture-grid { gap: 24px; }
}
@media (max-width: 600px) {
  .bjj-brand > img { width: 50px; }
  .bjj-brand strong { font-size: 1.9rem; }
  .bjj-header .nav { min-height: 62px; }
  .hero.bjj-hero h1 { font-size: clamp(2.65rem, 10vw, 3.6rem); }
  .bjj-hero h1 > .bjj-hero-location { font-size: 0.59em; }
  .bjj-hero-details { flex-direction: column; gap: 10px; margin-top: 36px; padding: 20px 0; }
  .bjj-hero-photo figcaption { font-size: 0.7rem; }
  .bjj-program-grid, .bjj-gallery-grid, .bjj-culture-grid { grid-template-columns: minmax(0, 1fr); }
  .bjj-program, .bjj-program + .bjj-program { padding: 28px 0 0; border-left: 0; }
  .bjj-program + .bjj-program { margin-top: 20px; }
  .bjj-gallery-grid figure:last-child { margin-top: 0; }
  .bjj-culture { margin-top: 32px; padding-top: 32px; }
  .bjj-culture-grid { gap: 28px; }
  .bjj-benefit-list article { gap: 12px; grid-template-columns: 26px minmax(0, 1fr); }
  .bjj-faq .faq-list p { padding-right: 0; }
}
