/* Global Styles */
    :root {
      --primary: #c92a2a;
      /* Dojo Red */
      --primary-dark: #a61e1e;
      --dark: #121212;
      /* Charcoal Black */
      --light-gray: #f8f9fa;
      --border-color: #e9ecef;
      --text: #333333;
      --text-muted: #666666;
    }

    /* Anchor jumps (home#about, #kids-schedule) land below the sticky header */
    html {
      scroll-padding-top: 215px;
    }

    @media (max-width: 768px) {
      html {
        scroll-padding-top: 115px;
      }
    }

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

    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
      color: var(--text);
      line-height: 1.6;
      background-color: #ffffff;
    }

    @media screen and (max-width: 600px) {
      body {
        font-size: 14px;
        padding: 10px;
      }

      .container {
        width: 100%;
      }
    }

    a {
      color: inherit;
      text-decoration: none;
    }

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

    .container {
      max-width: 1140px;
      margin: 0 auto;
      padding: 0 20px;
    }

    .btn {
      display: inline-block;
      background-color: var(--primary);
      color: #fff;
      padding: 12px 26px;
      border-radius: 4px;
      font-weight: 600;
      border: none;
      cursor: pointer;
      transition: background-color 0.2s ease;
    }

    .btn:hover {
      background-color: var(--primary-dark);
    }

    .btn-sm {
      margin-top: 15px;
      padding: 10px 22px;
      font-size: 0.9rem;
    }

    .btn.btn-outline {
      background-color: transparent;
      color: var(--primary);
      border: 2px solid var(--primary);
    }

    .link-accent {
      color: var(--primary);
      font-weight: 600;
      text-decoration: underline;
    }

    .section-title {
      text-align: center;
      margin-bottom: 40px;
    }

    .section-title h1,
    .section-title h2 {
      font-size: 2.2rem;
      color: var(--dark);
      margin-bottom: 8px;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .section-title p {
      color: var(--text-muted);
    }

    /* Header & Navigation */
    header {
      background-color: var(--dark);
      color: #fff;
      position: sticky;
      top: 0;
      z-index: 100;
      border-bottom: 3px solid var(--primary);
    }

    .navbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 25px 0;
      position: relative;
    }

    .nav-toggle {
      display: none;
      flex-direction: column;
      justify-content: center;
      gap: 5px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 8px;
    }

    .nav-toggle span {
      display: block;
      width: 26px;
      height: 3px;
      background-color: #fff;
      border-radius: 2px;
      transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .nav-toggle.open span:nth-child(1) {
      transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.open span:nth-child(2) {
      opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
      transform: translateY(-8px) rotate(-45deg);
    }

    .brand-logo {
      display: flex;
      align-items: center;
      text-decoration: none;
      font-weight: 700;
      font-size: 1.25rem;
    }

    /* The anchor wraps both the image and text, so it — not the outer
       div — needs to be the flex row, otherwise the globally block-level
       <img> forces a line break and stacks the logo above the text. */
    .brand-logo a {
      display: flex;
      align-items: center;
      gap: 14px;
      color: #fff;
    }

    .brand-logo img {
      width: 150px;
      height: 150px;
      object-fit: contain;
      filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
    }

    .brand-text {
      display: flex;
      flex-direction: column;
      line-height: 1.2;
    }

    .brand-name {
      font-size: 1.15rem;
      font-weight: 800;
      letter-spacing: 0.5px;
    }

    .brand-tagline {
      font-size: 0.7rem;
      font-weight: 600;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: var(--primary);
    }

    .nav-links {
      display: flex;
      list-style: none;
      gap: 25px;
      align-items: center;
    }

    .nav-links a {
      position: relative;
      font-size: 0.9rem;
      font-weight: 600;
      letter-spacing: 0.5px;
      padding-bottom: 4px;
      white-space: nowrap;
    }

    @media (min-width: 769px) and (max-width: 1180px) {
      .nav-links {
        gap: 16px;
      }
    }

    .nav-links a::after {
      content: '';
      position: absolute;
      left: 0;
      bottom: 0;
      width: 0;
      height: 2px;
      background-color: var(--primary);
      transition: width 0.25s ease;
    }

    .nav-links a:hover::after {
      width: 100%;
    }

    .nav-links a:hover {
      color: var(--primary);
    }

    /* Hero Section */
    .hero {
      position: relative;
      background-color: #000;
      color: #fff;
      padding: 100px 0;
      overflow: hidden;
    }

    .hero-img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.7;
    }

    .hero-content {
      position: relative;
      max-width: 650px;
    }

    .hero-content h1 {
      font-size: 3rem;
      line-height: 1.2;
      margin-bottom: 20px;
      text-transform: uppercase;
    }

    .hero-content p {
      font-size: 1.2rem;
      margin-bottom: 30px;
      color: #e0e0e0;
    }

    /* About Section */
    .about {
      padding: 80px 0;
    }

    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 50px;
      align-items: center;
    }

    .about-img {
      border-radius: 8px;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .about-features {
      display: flex;
      flex-direction: column;
      gap: 18px;
    }

    .about-feature {
      display: flex;
      align-items: flex-start;
      gap: 14px;
    }

    .about-feature-icon {
      font-size: 1.5rem;
      line-height: 1.3;
      flex-shrink: 0;
    }

    .about-feature h4 {
      color: var(--dark);
      margin-bottom: 4px;
      font-size: 1.05rem;
    }

    .about-feature p {
      color: var(--text-muted);
      font-size: 0.95rem;
      margin-bottom: 0;
    }

    /* Programs Section */
    .programs {
      padding: 80px 0;
      background-color: var(--light-gray);
    }

    .program-cards {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 25px;
    }

    .card {
      background: #fff;
      border-radius: 8px;
      padding: 30px;
      border: 1px solid var(--border-color);
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
    }

    .card h3 {
      margin-bottom: 12px;
      color: var(--dark);
    }

    /* Schedule Section */
    .schedule {
      padding: 80px 0;
    }

    /* Simple Day/Time/Class schedule tables (Kids & Adult program breakdown) */
    .schedule-group {
      margin-bottom: 45px;
    }

    .schedule-group:last-child {
      margin-bottom: 0;
    }

    .schedule-group h3 {
      color: var(--dark);
      font-size: 1.3rem;
      margin-bottom: 15px;
      padding-bottom: 8px;
      border-bottom: 2px solid var(--border-color);
    }

    .schedule-table-simple {
      width: 100%;
      border-collapse: collapse;
    }

    .schedule-table-simple th,
    .schedule-table-simple td {
      border: 1px solid var(--border-color);
      padding: 12px 14px;
      text-align: left;
    }

    .schedule-table-simple th {
      background-color: var(--dark);
      color: #fff;
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .schedule-table-simple tr:nth-child(even) {
      background-color: var(--light-gray);
    }

    @media (max-width: 500px) {
      .schedule-table-simple th,
      .schedule-table-simple td {
        padding: 10px;
        font-size: 0.9rem;
      }
    }

    /* Instructor Spotlight */
    .instructor-spotlight {
      padding: 80px 0;
      background-color: var(--light-gray);
    }

    .instructor-spotlight-grid {
      display: grid;
      grid-template-columns: 220px 1fr;
      gap: 45px;
      align-items: center;
    }

    .instructor-spotlight-photo {
      width: 220px;
      height: 220px;
      border-radius: 12px;
      object-fit: cover;
      background: var(--border-color);
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .instructor-spotlight .eyebrow {
      color: var(--primary);
      font-weight: 700;
      font-size: 0.9rem;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 8px;
    }

    .instructor-spotlight h2 {
      font-size: 1.9rem;
      color: var(--dark);
      margin-bottom: 4px;
    }

    .instructor-title {
      color: var(--text-muted);
      font-weight: 600;
      margin-bottom: 14px;
    }

    .instructor-spotlight p:not(.eyebrow):not(.instructor-title) {
      margin-bottom: 22px;
      max-width: 560px;
    }

    @media (max-width: 768px) {
      .instructor-spotlight-grid {
        grid-template-columns: 1fr;
        text-align: center;
      }

      .instructor-spotlight-photo {
        margin: 0 auto;
      }

      .instructor-spotlight p:not(.eyebrow):not(.instructor-title) {
        margin-left: auto;
        margin-right: auto;
      }

    }

    /* Reviews Section */
    .reviews {
      padding: 80px 0;
      background-color: #fff;
    }

    /* Footer */
    footer {
      background-color: var(--dark);
      color: #a0a0a0;
      padding: 50px 0 25px 0;
    }

    .footer-content {
		color: #ffffff;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 30px;
      margin-bottom: 40px;
    }

    .footer-content h4 {
      position: relative;
      color: #fff;
      padding-bottom: 12px;
      margin-bottom: 14px;
    }

    .footer-content h4::after {
      content: '';
      position: absolute;
      left: 0;
      bottom: 0;
      width: 36px;
      height: 2px;
      background-color: var(--primary);
    }

    .footer-content p {
      color: #cfcfcf;
      font-size: 0.92rem;
      margin-bottom: 8px;
      line-height: 1.5;
    }

    .footer-map h4 {
     /* color: #fff;*/
      margin-bottom: 15px;
    }

    .footer-map-embed {
      width: 260px;
      max-width: 100%;
      height: 170px;
      border: 0;
      border-radius: 6px;
      display: block;
    }

    .footer-map-link {
      display: inline-block;
      margin-top: 10px;
      color: var(--primary);
      font-weight: 600;
      font-size: 0.9rem;
    }

    .footer-map-link:hover {
      text-decoration: underline;
    }

    .social-links {
      display: flex;
      gap: 22px;
      margin-top: 10px;
    }

    .social-links a {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      color: #cfcfcf;
      font-size: 0.85rem;
      text-align: center;
    }

    .social-icon-circle {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 52px;
      height: 52px;
      border-radius: 50%;
      background-color: #fff;
      border: 2px solid #3a3a3a;
      overflow: hidden;
      transition: transform 0.2s ease, border-color 0.2s ease;
    }

    .social-icon-circle img {
      width: 28px;
      height: 28px;
      object-fit: contain;
    }

    .social-links a:hover {
      color: #fff;
    }

    .social-links a:hover .social-icon-circle {
      border-color: var(--primary);
      transform: translateY(-3px);
    }

    .footer-bottom {
      border-top: 1px solid #2b2b2b;
      text-align: center;
      padding-top: 20px;
      font-size: 0.9rem;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .navbar {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0;
      }

      .brand-logo {
        font-size: 1rem;
      }

      .brand-logo img {
        width: 50px;
        height: 50px;
      }

      .brand-name {
        font-size: 1rem;
      }

      .brand-tagline {
        font-size: 0.6rem;
      }

      .nav-toggle {
        display: flex;
      }

      .navbar > nav {
        flex-basis: 100%;
        order: 3;
      }

      .nav-links {
        flex-basis: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
      }

      .nav-links.open {
        max-height: 420px; /* 7 links + padding; 300px used to clip the last item */
        padding-top: 15px;
      }

      .nav-links li {
        width: 100%;
      }

      .nav-links a {
        display: block;
        padding: 12px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
      }

      .about-grid {
        grid-template-columns: 1fr;
      }

      .hero-content h1 {
        font-size: 2.2rem;
      }

      .section-title h1,
      .section-title h2 {
        font-size: 1.6rem;
      }

      .programs,
      .schedule,
      .reviews {
        padding: 50px 0;
      }

      .card {
        padding: 22px;
      }

      .footer-content {
        flex-direction: column;
        text-align: center;
      }

      .social-links {
        justify-content: center;
      }

      .footer-map-embed {
        margin: 0 auto;
      }
    }

    @media (max-width: 400px) {
      .hero-content h1 {
        font-size: 1.8rem;
      }

      .section-title h1,
      .section-title h2 {
        font-size: 1.4rem;
      }
    }

    /* Accessibility helpers (no effect on the visual layout) */
    .skip-link {
      position: absolute;
      left: -9999px;
      top: 0;
      z-index: 200;
      background: var(--primary);
      color: #fff;
      padding: 10px 16px;
      font-weight: 600;
    }

    .skip-link:focus {
      left: 10px;
      top: 10px;
    }

    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      margin: -1px;
      padding: 0;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    :focus-visible {
      outline: 2px solid var(--primary);
      outline-offset: 2px;
    }

    header :focus-visible,
    footer :focus-visible {
      outline-color: #fff;
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        transition: none !important;
        animation: none !important;
      }
    }

    @media print {
      .skip-link {
        display: none;
      }
    }

    /* ---- Announcement banner (driven by announcement.json) ---- */
    .announce {
      background-color: var(--primary);
      color: #fff;
      text-align: center;
      font-size: 0.95rem;
      line-height: 1.4;
      padding: 10px 46px 10px 16px;
      position: relative;
    }

    .announce a {
      color: #fff;
      font-weight: 700;
      text-decoration: underline;
      margin-left: 8px;
      white-space: nowrap;
    }

    .announce-close {
      position: absolute;
      right: 6px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: 0;
      color: #fff;
      font-size: 1.5rem;
      line-height: 1;
      padding: 4px 10px;
      cursor: pointer;
    }

    .announce-sep {
      display: inline-block;
      margin: 0 1.1em;
      opacity: 0.85;
    }

    .announce-item a {
      margin-left: 8px;
    }

    .announce :focus-visible {
      outline-color: #fff;
    }

    /* Flash: three slow pulses (under 1 per second) when the banner appears, then it stays steady */
    .announce.is-flash {
      animation: announce-flash 1.2s ease-in-out 3;
    }

    .announce.is-flash a,
    .announce.is-flash .announce-close {
      color: inherit;
    }

    @keyframes announce-flash {
      0%, 100% { background-color: var(--primary); color: #fff; }
      50% { background-color: #fff; color: var(--primary); }
    }

    /* Scroll: message slides across like a notice board; pauses on hover/focus */
    .announce.is-scroll {
      padding-right: 46px;
    }

    .announce-track {
      overflow: hidden;
      white-space: nowrap;
    }

    .announce.is-scroll .announce-text {
      display: inline-block;
      padding-left: 100%;
      animation: announce-scroll 20s linear infinite;
    }

    /* Paused state is set by site.js: mouse hover, or tap on touch screens */
    .announce.is-scroll.is-paused .announce-text {
      animation-play-state: paused;
    }

    .announce.is-scroll { cursor: pointer; }
    .announce.is-scroll a, .announce.is-scroll .announce-close { cursor: pointer; }

    @keyframes announce-scroll {
      from { transform: translateX(0); }
      to { transform: translateX(-100%); }
    }

    @media (prefers-reduced-motion: reduce) {
      .announce.is-flash,
      .announce.is-scroll .announce-text {
        animation: none !important;
      }

      .announce.is-scroll .announce-text {
        padding-left: 0;
        white-space: normal;
      }

      .announce-track {
        white-space: normal;
      }
    }

    /* ---- Sticky call / trial bar (mobile only; created by site.js) ---- */
    .callbar {
      display: none;
    }

    @media (max-width: 768px) {
      .callbar {
        display: flex;
        gap: 8px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        background-color: var(--dark);
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        border-top: 2px solid var(--primary);
      }

      .callbar a {
        flex: 1;
        text-align: center;
        color: #fff;
        font-weight: 600;
        font-size: 0.95rem;
        padding: 11px 8px;
        border-radius: 4px;
        text-decoration: none;
        border: 2px solid var(--primary);
      }

      .callbar a.cb-trial {
        background-color: var(--primary);
      }

      .callbar :focus-visible {
        outline-color: #fff;
      }

      /* keep the last bit of the page clear of the bar */
      html.has-callbar footer {
        padding-bottom: calc(25px + 66px + env(safe-area-inset-bottom));
      }
    }

    @media print {
      .announce,
      .callbar {
        display: none !important;
      }
    }

    /* ---- "More" dropdown in the main menu ---- */
    .nav-more {
      position: relative;
    }

    .nav-more-btn {
      position: relative;
      background: none;
      border: 0;
      color: inherit;
      font: inherit;
      font-size: 0.9rem;
      font-weight: 600;
      letter-spacing: 0.5px;
      padding: 0 0 4px;
      cursor: pointer;
      white-space: nowrap;
      text-transform: uppercase;
    }

    .nav-more-btn::after {
      content: " \25BE";
      font-size: 0.8em;
    }

    .nav-more-btn:hover,
    .nav-more.open > .nav-more-btn,
    .nav-more-btn.is-current {
      color: var(--primary);
    }

    .nav-sub {
      display: none;
      list-style: none;
      position: absolute;
      top: calc(100% + 14px);
      left: -16px;
      min-width: 190px;
      background-color: var(--dark);
      border-top: 3px solid var(--primary);
      border-radius: 0 0 6px 6px;
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
      padding: 8px 0;
      z-index: 120;
    }

    /* invisible bridge so the menu stays open while the pointer crosses the gap */
    .nav-sub::before {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      top: -17px;
      height: 17px;
    }

    .nav-more.open > .nav-sub {
      display: block;
    }

    .nav-sub li {
      display: block;
    }

    .nav-sub a {
      display: block;
      padding: 10px 20px 10px;
    }

    .nav-sub a::after {
      display: none;
    }

    @media (min-width: 769px) and (hover: hover) {
      .nav-more:hover > .nav-sub {
        display: block;
      }
    }

    @media (max-width: 768px) {
      .nav-links.open {
        max-height: 640px;
      }

      .nav-more-btn {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 12px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
      }

      .nav-sub {
        position: static;
        min-width: 0;
        background: none;
        border-top: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 0 0 6px;
      }

      .nav-sub::before {
        display: none;
      }

      .nav-sub a {
        padding: 10px 0 10px 18px;
        font-weight: 500;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
      }
    }

    /* ---- Phone menu: panel slides in from the right ---- */
    .nav-close, .nav-overlay { display: none; }

    @media (max-width: 768px) {
      .navbar > nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(82vw, 320px);
        flex-basis: auto;
        background: var(--dark);
        border-left: 3px solid var(--primary);
        box-shadow: -8px 0 24px rgba(0, 0, 0, 0.45);
        padding: 64px 22px 28px;
        overflow-y: auto;
        z-index: 1200;
        transform: translateX(105%);
        visibility: hidden;
        transition: transform 0.25s ease, visibility 0s linear 0.25s;
      }

      html.nav-open .navbar > nav {
        transform: translateX(0);
        visibility: visible;
        transition: transform 0.25s ease, visibility 0s;
      }

      .nav-links,
      .nav-links.open {
        max-height: none;
        overflow: visible;
        padding-top: 0;
      }

      .nav-close {
        display: block;
        position: absolute;
        top: 10px;
        right: 14px;
        background: none;
        border: 0;
        color: #fff;
        font-size: 2.2rem;
        line-height: 1;
        padding: 4px 10px;
        cursor: pointer;
      }

      .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 99;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
      }

      html.nav-open .nav-overlay {
        opacity: 1;
        pointer-events: auto;
      }

      html.nav-open { overflow: hidden; }
      html.nav-open .callbar { display: none; }
    }

    @media (prefers-reduced-motion: reduce) {
      .navbar > nav, .nav-overlay { transition: none !important; }
    }
