/* =============================================================
   WordPress-specific additions to the static design.
   ============================================================= */

/* Logged-in admin bar sits above the fixed header */
.admin-bar .site-header { top: 32px; }
.admin-bar .progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header, .admin-bar .progress { top: 46px; } }

/* Instructor photo crop that the static page set inline */
.member--john-figueroa .member__photo img { object-position: 22% 30%; }

/* ---------- WPForms (existing contact form, skinned to the design) ---------- */
.trial-form .wpforms-container { margin: 0; }
.trial-form .wpforms-form { display: grid; gap: 22px; }
.trial-form .wpforms-field-container { display: grid; gap: 22px; }
.trial-form .wpforms-field { padding: 0 !important; margin: 0 !important; }
.trial-form .wpforms-field-label,
.trial-form .wpforms-field-sublabel {
  display: block; margin: 0 0 10px; padding: 0;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.trial-form .wpforms-field-sublabel { margin: 8px 0 0; font-size: 10px; color: var(--faint); }
.trial-form .wpforms-required-label { color: var(--red-2); }
.trial-form .wpforms-field-row { display: grid !important; grid-template-columns: 1fr 1fr; gap: 22px; }
.trial-form .wpforms-field-row .wpforms-field-row-block { width: 100% !important; padding: 0 !important; margin: 0 !important; float: none !important; }
.trial-form input[type="text"],
.trial-form input[type="email"],
.trial-form input[type="tel"],
.trial-form textarea {
  width: 100% !important; max-width: none !important; padding: 12px 0 13px !important;
  background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--line-2) !important; border-radius: 0 !important;
  box-shadow: none !important; font-size: 18px !important; color: var(--text) !important; outline: none;
  transition: border-color .25s;
}
.trial-form textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.trial-form input:focus, .trial-form textarea:focus { border-bottom-color: var(--red) !important; box-shadow: none !important; }
.trial-form .wpforms-field-medium, .trial-form .wpforms-field-large { max-width: 100% !important; width: 100% !important; }
.trial-form .wpforms-submit-container { margin: 6px 0 0 !important; padding: 0 !important; }
.trial-form button.wpforms-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 21px 32px 20px !important; border: 0 !important; border-radius: 0 !important;
  background: var(--red) !important; color: #fff !important;
  font-family: var(--f-display); font-weight: 800; font-size: 20px !important; letter-spacing: .04em; text-transform: uppercase; line-height: 1;
  cursor: pointer; transition: background-color .25s;
}
.trial-form button.wpforms-submit:hover { background: var(--red-2) !important; }
.trial-form .wpforms-error, .trial-form label.wpforms-error, .trial-form em.wpforms-error { color: var(--red-2) !important; font-size: 13.5px; font-style: normal; }
.trial-form input.wpforms-error, .trial-form textarea.wpforms-error { border-bottom-color: var(--red-2) !important; }
.trial-form .wpforms-confirmation-container-full, .trial-form .wpforms-confirmation-container {
  padding: 32px; border: 1px solid var(--line-2) !important; background: var(--ink-2) !important; color: var(--text) !important; border-radius: 0 !important;
}
.trial-form .wpforms-confirmation-container-full p { color: var(--text); font-size: 18px; }
.trial-form .wpforms-hidden { display: none !important; }
@media (max-width: 560px) {
  .trial-form .wpforms-field-row { grid-template-columns: 1fr; }
  .trial-form button.wpforms-submit { width: 100%; }
}

/* Generic pages (fallback template) */
.plain { padding: calc(var(--header-h, 80px) + 64px) 0 96px; min-height: 60vh; }
.plain h1 { font-size: clamp(40px, 6vw, 80px); margin-bottom: 24px; }
.plain .entry > * + * { margin-top: 1em; }
.plain .entry a { color: var(--red-2); }

/* Visit card: Address | Contact, then Follow across the full width (hours removed) */
.visit__info > div:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }

/* WPForms adds ::before/::after clearfix boxes to rows; inside a grid they become cells and shift the fields */
.trial-form .wpforms-field-row::before,
.trial-form .wpforms-field-row::after { content: none !important; display: none !important; }

/* Phones and tablets: stack Alexandre's featured card (photo on top, text below on a solid panel)
   so the text never sits on top of his face or on a bright part of the photo. */
@media (max-width: 1023px) {
  .member--lead { display: block; }
  .member--lead .member__photo { position: relative; flex: none; height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .member--lead .member__photo img { object-position: 50% 30%; }
  .member--lead .member__photo::after { background: linear-gradient(0deg, rgba(17, 17, 19, .6), rgba(17, 17, 19, 0) 22%); }
  .member--lead .member__body { position: static; padding: 24px 28px 28px; }
  .member--lead h3 { font-size: 52px; }
  .member--lead .member__bio { color: var(--muted); font-size: 16px; }
}
@media (max-width: 600px) {
  .member--lead .member__photo { aspect-ratio: 4 / 5; }
  .member--lead .member__photo img { object-position: 50% 22%; }
  .member--lead .member__body { padding: 22px 20px 26px; }
  .member--lead h3 { font-size: 44px; }
}

/* Footer: small icons beside address, phone and email; social links as icon buttons */
.footer__col .ico-line { display: flex; align-items: flex-start; gap: 12px; }
.footer__col .ico-line .ico { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--red-2); }
.footer__col p.ico-line { margin: 0 0 8px; }
.footer__socials { margin-top: 18px; }

/* Small screens: the Contact column (longest line = the email) spans the full width so the two-column footer never overflows */
@media (max-width: 860px) {
  .footer__grid .footer__col:last-child { grid-column: 1 / -1; }
}

/* Footer now has three blocks (brand, Explore, Contact incl. address) */
.footer__grid { grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Community mosaic: wide band under the four photos (desktop only; hidden on phones/tablets) */
.tile--w { grid-area: w; }
.tile--w img { object-position: 50% 48%; }
@media (min-width: 861px) {
  .mosaic {
    grid-template-rows: clamp(260px, 27vw, 400px) clamp(300px, 30vw, 460px) clamp(250px, 25.5vw, 400px);
    grid-template-areas:
      "text text a a"
      "b c d e"
      "w w w w";
  }
}
/* Tablets (601-860px): the wide photo gets its own full-width row under the 2-column mosaic */
@media (max-width: 860px) {
  .mosaic {
    grid-template-rows: auto 260px 240px 240px clamp(240px, 46vw, 400px);
    grid-template-areas: "text text" "a a" "b c" "d e" "w w";
  }
}
/* Phones (600px and below): same full-width row, shorter, sized so nearly the whole group stays in frame */
@media (max-width: 600px) {
  .mosaic { grid-template-rows: auto 260px 240px 240px clamp(170px, 56vw, 300px); }
}

/* ---------- Weekly schedule: phone / tablet "week at a glance" ----------
   The whole week fits on one phone screen: one row per day, classes as small chips. */
.sw { display: none; }
@media (max-width: 900px) {
  .sw { display: block; border-top: 1px solid var(--line); }
}
.sw-row {
  display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 8px; align-items: start;
  padding: 7px 0; border-bottom: 1px solid var(--line); transition: opacity .3s;
}
.sw-row.is-today { background: rgba(227, 20, 27, .06); box-shadow: inset 3px 0 0 var(--red); }
.sw-row.is-empty { opacity: .3; }
.sw-day { padding: 6px 0 0 9px; font-family: var(--f-display); font-weight: 800; font-size: 20px; text-transform: uppercase; line-height: 1; }
.sw-day abbr { text-decoration: none; }
.sw-day small { display: block; margin-top: 3px; font-family: var(--f-mono); font-size: 8px; font-weight: 500; letter-spacing: .08em; color: var(--red-2); }
.sw-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 4px; }
.swc {
  --cat: var(--c-gi);
  display: flex; flex-direction: column; gap: 1px; min-height: 36px;
  padding: 4px 5px 4px 8px; background: var(--ink-3); box-shadow: inset 3px 0 0 var(--cat);
  line-height: 1.15; transition: opacity .3s;
}
.swc time { font-family: var(--f-mono); font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.swc b { font-weight: 600; font-size: 11px; }
.swc b i { font-style: normal; font-weight: 500; color: var(--muted); }
.swc.is-past { opacity: .42; }
.swc.is-now { background: rgba(227, 20, 27, .16); box-shadow: inset 3px 0 0 var(--cat), inset 0 0 0 1px var(--red); }
.sched:not([data-filter="all"]) .swc:not(.is-match) { display: none; }
.sw-none { padding: 8px 2px; font-size: 12px; color: var(--faint); }

/* one phone screen: dense week view, filters in a single scrolling row */
@media (max-width: 900px) {
  .sched-controls { gap: 6px; margin-bottom: 12px; }
  .sched-controls .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 2px; width: calc(100% + var(--gutter) * 2); }
  .sched-controls .chips::-webkit-scrollbar { display: none; }
  .sched-controls .chip { flex: none; padding: 7px 12px; font-size: 13px; }
  .sched-controls .tz { font-size: 10px; }
  .sw-row { padding: 5px 0; gap: 6px; }
  .sw-day { padding-top: 4px; font-size: 19px; }
  .sw-cells { gap: 3px; }
  .swc { min-height: 33px; padding: 3px 4px 3px 7px; }
  .swc time { font-size: 9px; }
  .swc b { font-size: 10.5px; }
}