/* =========================================================
   HEADER REFINEMENT v4: Square One Pilates (Kadence)
   ========================================================= */

/* Background + subtle divider */
.site-header {
  background-color: #3A8B8A;
  transition: background-color .3s ease, box-shadow .3s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}

/* Fallback sticky (in case Kadence Sticky Header isn’t enabled) */
@supports (position: sticky) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 999;
  }
  /* Logged-in WP admin bar offset */
  .admin-bar .site-header { top: 32px; }
  @media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
}

/* Align header rows nicely */
.site-header .header-container,
.site-header .header-section-inner,
.site-header .header-navigation-inner,
.site-header .header-section-left,
.site-header .header-section-center,
.site-header .header-section-right {
  display: flex;
  align-items: center;
}

/* === Logo sizing (Kadence uses .custom-logo) === */
.site-header .site-branding img,
.site-header .site-branding .custom-logo {
  max-height: 90px; /* desktop */
  width: auto;
  transition: max-height .25s ease;
}
.site-header.is-sticky .site-branding img,
.site-header.is-sticky .site-branding .custom-logo {
  max-height: 74px; /* shrink on scroll */
}

/* Hide text title/description if the logo includes the wordmark */
.site-header .site-branding .site-title,
.site-header .site-branding .site-description { display: none; }

/* === Navigation links (force white, peach hover) === */
.site-header .main-navigation .menu > li > a,
.site-header .primary-menu-container .menu > li > a,
.site-header .primary-menu > li > a,
.site-header .header-navigation .menu > li > a,
.site-header .dropdown-nav .menu > li > a {
  color: #FFFFFF !important;
  font-size: 18px;
  font-weight: 600;
  padding: 0 14px;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: color .2s ease, opacity .2s ease;
}
.site-header .main-navigation .menu > li > a:hover,
.site-header .primary-menu-container .menu > li > a:hover,
.site-header .primary-menu > li > a:hover,
.site-header .header-navigation .menu > li > a:hover,
.site-header .dropdown-nav .menu > li > a:hover,
.site-header .main-navigation .menu > li.current-menu-item > a,
.site-header .main-navigation .menu > li.current_page_item > a {
  color: #FFD3C2 !important; /* peach highlight */
}

/* Keep white when sticky */
.site-header.is-sticky .main-navigation .menu > li > a,
.site-header.is-sticky .primary-menu-container .menu > li > a,
.site-header.is-sticky .primary-menu > li > a {
  color: #FFFFFF !important;
}

/* Slightly tighter spacing on very wide screens */
@media (min-width: 1400px) {
  .site-header .main-navigation .menu > li > a,
  .site-header .primary-menu-container .menu > li > a { padding: 0 12px; }
}

/* === “Book a Class” CTA (HTML block with .header-cta class) === */
.header-cta,
.site-header .wp-block-html .header-cta {
  background: linear-gradient(135deg, #D88575, #E2967F);
  color: #fff !important;
  padding: 0.7rem 1.5rem;
  border-radius: 9999px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: all .25s ease;
  white-space: nowrap;
  margin-left: 12px; /* spacing from menu */
}
.header-cta:hover,
.site-header .wp-block-html .header-cta:hover {
  background: #C95F51;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Sticky polish */
.site-header.is-sticky {
  background-color: rgba(58,139,138,0.95) !important;
  backdrop-filter: blur(6px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* === Mobile / Tablet sizing === */
@media (max-width: 1024px) {
  .site-header .site-branding img,
  .site-header .site-branding .custom-logo { max-height: 76px; }
  .site-header.is-sticky .site-branding img,
  .site-header.is-sticky .site-branding .custom-logo { max-height: 68px; }
  .site-header .main-navigation .menu > li > a,
  .site-header .primary-menu-container .menu > li > a { font-size: 16px; }
}
@media (max-width: 768px) {
  .site-header .site-branding img,
  .site-header .site-branding .custom-logo { max-height: 64px; }
  .site-header .main-navigation .menu > li > a,
  .site-header .primary-menu-container .menu > li > a { font-size: 15px; padding: 0 12px; }
  .header-cta { font-size: 15.5px; padding: 0.55rem 1.1rem; }
}

/* Mobile menu colors */
@media (max-width: 1024px) {
  .site-header .mobile-navigation a,
  .site-header .mobile-toggle .menu-toggle,
  .site-header .drawer-nav a { color: #FFFFFF !important; }
  .site-header .mobile-navigation a:hover,
  .site-header .drawer-nav a:hover { color: #FFD3C2 !important; }
}

/* =========================================================
   BOTTOM ROW PROMO (site-wide): .header-promo
   - Place the HTML in Header → Bottom Row → HTML block
   - Control background & padding in Header → Bottom Row → Design
   ========================================================= */

.header-promo {
  max-width: 980px;            /* keeps the line length comfy */
  margin: 0 auto;
  text-align: center;
  color: #2b2b2b;              /* body text inside the banner */
  line-height: 1.45;
}

.header-promo .promo-lead {
  margin: 0 0 .35rem 0;
  font-size: 18px;
  font-weight: 700;
}

.header-promo .promo-sub {
  margin: 0 0 .25rem 0;
  font-size: 16px;
}

.header-promo .promo-local {
  margin: 0 0 .8rem 0;
  font-size: 14.5px;
  opacity: .9;
}

/* Buttons row */
.header-promo .promo-buttons {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Buttons */
.header-promo .promo-buttons a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease, color .2s ease;
}

/* Outline button (timetable) */
.header-promo .btn-outline {
  color: #165b5a;
  background: #ffffff;
  border: 2px solid rgba(0,0,0,.08);
}
.header-promo .btn-outline:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

/* Solid button (book a class) – brand peach */
.header-promo .btn-solid {
  background: linear-gradient(135deg, #D88575, #E2967F);
  color: #fff;
}
.header-promo .btn-solid:hover {
  background: #C95F51;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}

/* Responsive tweaks */
@media (max-width: 1024px) {
  .header-promo .promo-lead { font-size: 17px; }
  .header-promo .promo-sub  { font-size: 15.5px; }
}
@media (max-width: 640px) {
  .header-promo { max-width: 560px; }
  .header-promo .promo-lead { font-size: 16.5px; }
  .header-promo .promo-sub  { font-size: 15px; }
  .header-promo .promo-buttons a { width: 100%; text-align: center; }
}

/* (Optional) keyboard focus visibility for the two buttons */
.header-promo .promo-buttons a:focus {
  outline: 3px solid rgba(255,255,255,.9);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(0,0,0,.15);
}

/* (Optional) respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .header-promo .promo-buttons a { transition: none !important; }
}
/* Home hero: push the inner content down a bit */
.home .home-hero .kt-row-column-inner {
  padding-top: clamp(24px, 6vh, 90px);
}
/* 1) small gap between the teal header and the promo text */
.site-header .header-bottom-row #local-promo-bar {
  margin-top: 6px !important;     /* tweak 4–8px */
}

/* 2) make the strip slimmer (less “pink band” height) */
.site-header .header-bottom-row-inner {
  padding-top: 8px !important;     /* tweak 6–10px */
  padding-bottom: 0px !important;  /* tweak 6–10px */
}

/* Optional: tighten the space below the strip, above the hero */
#local-promo-bar {
  margin-bottom: 0px !important;   /* tweak 6–12px or remove if not needed */
}
/* Trim the space under the small heading between the strip and the hero */
.promo-title {
  margin-bottom: 8px !important;   /* adjust 4–12px to taste */
  line-height: 1.2;                 /* optional: tightens the text itself */
}/* Enlarge footer certification logos by ~50% */
.site-footer img[alt*="PILATES"],
.site-footer img[alt*="Girl"],
.site-footer img[alt*="Control"] {
  transform: scale(1.5);       /* 1.5 = 50% bigger */
  transform-origin: center;    /* keeps scaling from the middle */
  transition: transform 0.2s ease-in-out;
}

/* Optional: prevent them from overflowing on mobile */
@media (max-width: 768px) {
  .site-footer img[alt*="PILATES"],
  .site-footer img[alt*="Girl"],
  .site-footer img[alt*="Control"] {
    transform: scale(1.2);
  }
}
.site-footer .footer-widget-area {
  align-items: center;
}
/* ===== Footer menu: ultra-tight spacing ===== */

/* Target Kadence footer nav specifically and force a tight flex layout */
.site-footer .footer-navigation .menu,
.site-footer .footer-navigation ul.menu,
.site-footer .widget_nav_menu .menu {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 2px 10px !important;   /* row gap / column gap – smaller = tighter */
  margin: 0 !important;
  padding: 0 !important;
}

/* Kill default item margins */
.site-footer .footer-navigation .menu > li,
.site-footer .widget_nav_menu .menu > li {
  margin: 0 !important;
}

/* Trim link font and padding to pull items even closer */
.site-footer .footer-navigation .menu > li > a,
.site-footer .widget_nav_menu .menu > li > a {
  font-size: 13px !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  padding: 0 4px !important;  /* minimal horizontal padding */
  text-decoration: none !important;
}

/* Reduce the space around the nav block itself */
.site-footer .footer-navigation,
.site-footer .widget_nav_menu {
  margin-top: 4px !important;
  margin-bottom: 4px !important;
}

/* Tighten the copyright area a touch */
.site-footer .site-info {
  padding-top: 6px !important;
}

/* Small screens: keep it tidy but readable */
@media (max-width: 768px) {
  .site-footer .footer-navigation .menu,
  .site-footer .widget_nav_menu .menu {
    gap: 2px 8px !important;
  }
  .site-footer .footer-navigation .menu > li > a,
  .site-footer .widget_nav_menu .menu > li > a {
    font-size: 12.5px !important;
    padding: 0 3px !important;
  }
}
/* Big, responsive Google My Maps embed */
.sq1p-map-wrap {
  width: 100%;
  max-width: 1200px;      /* widen if you want */
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
}

/* Tall variant – nice and big on desktop, sensible on mobile */
.sq1p-map-tall {
  height: clamp(380px, 70vh, 900px); /* min 380px, usually ~70% of viewport height, max 900px */
}

.sq1p-map-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
/* Crop the My Maps header bar */
.map-embed {
  position: relative;
  overflow: hidden;
  height: 620px;            /* adjust as you like */
}
.map-embed iframe {
  position: absolute;
  top: -48px;               /* moves map up, hiding the header */
  left: 0;
  width: 100%;
  height: calc(100% + 48px);/* compensate for the shift */
  border: 0;
}

/* Optional: shorter map on mobiles */
@media (max-width: 768px) {
  .map-embed { height: 420px; }
}
.map-embed {
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.wp-block-table tr:nth-child(even) {
  background-color: #f9fbfb;
}
