/* Core Point Salon & Spa — responsive overrides
   Linked after style.css. Fixes fixed-width template for mobile
   without relying on overflow:hidden to fake a pass.
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  max-width: 100%;
}

body {
  min-width: 0 !important;
  max-width: 100%;
  overflow-x: auto; /* allow scroll only if something still overflows; do not clip as a fix */
}

#wrapper {
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  height: auto !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* bootstrap.css: .container { width: 1132px; } */
.container,
.container.pos_rel {
  width: 100% !important;
  max-width: 1132px;
  min-width: 0;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 16px;
  padding-right: 16px;
}

header,
#content_part,
#wrapper > section,
#wrapper > section > #content_part,
#splash,
footer {
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
}

header .container,
footer .container {
  width: 100% !important;
  max-width: 1132px;
}

#splash .navbar,
#splash .navbar > .navbar-inner,
.sf-menu {
  width: 100% !important;
  max-width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#bgStretch {
  max-width: 100vw;
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}
.social_icons img {
  max-width: none;
}

/* Maps / iframes */
.g_map,
.g_map iframe,
iframe {
  max-width: 100% !important;
  width: 100% !important;
}
.g_map iframe {
  height: auto;
  min-height: 240px;
  aspect-ratio: 4 / 3;
}

/* h1 clipping: bootstrap line-height:30px vs font-size:90.5px */
header {
  height: auto !important;
  overflow: visible;
  order: 1; /* branding before splash/nav when #wrapper is flex column */
}
header .container {
  height: auto !important;
  overflow: visible;
}
header h1,
h1 {
  height: auto !important;
  max-height: none !important;
  line-height: 1.1 !important;
  overflow: visible !important;
  font-size: clamp(36px, 12vw, 90.5px) !important;
  margin-bottom: 0.25em !important;
  white-space: normal;
}
h4 {
  white-space: normal !important;
  line-height: 1.2 !important;
  height: auto !important;
}

/* Keep splash/nav after header in flex order; social strip first */
.container.pos_rel {
  order: 0;
}
#splash {
  order: 2;
}
#wrapper > section {
  order: 3;
}
footer {
  order: 4;
}

/* Header CTAs */
.cp-header-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin: 16px auto 8px;
  max-width: 100%;
  position: relative;
  z-index: 1001;
}
.cp-header-cta .cp-book-btn,
.cp-header-cta .cp-phone-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 12px 20px;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  border-radius: 8px;
  text-decoration: none !important;
  text-transform: uppercase;
  font: 600 16px/1.2 Arial, "Helvetica Neue", Helvetica, sans-serif;
}
.cp-header-cta .cp-book-btn {
  /* Measured contrast vs #fff: #c41e3a ≈ 5.84:1 (was #ed2f53 ≈ 4.09:1) */
  background: #c41e3a;
  color: #fff !important;
}
.cp-header-cta .cp-book-btn:hover {
  background: #a50e2d; /* ≈ 7.78:1 */
  color: #fff !important;
}
.cp-header-cta .cp-book-btn:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.cp-header-cta .cp-phone-btn {
  background: rgba(0, 0, 0, 0.65);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.cp-header-cta .cp-phone-btn:hover,
.cp-header-cta .cp-phone-btn:focus {
  background: rgba(0, 0, 0, 0.85);
  color: #fff !important;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.social_icons > li a {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
}
.social_holder {
  height: auto;
  min-height: 56px;
  width: auto;
  max-width: 100%;
  right: 8px;
  padding: 4px 8px;
  background-size: contain;
}

footer a,
.footer_holder a {
  display: inline-flex !important;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 8px;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  line-height: 1.2;
}

/* Content pages: fluid bootstrap spans */
.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
[class*="span"] {
  float: none !important;
  min-width: 0;
  max-width: 100%;
}
.cont_pad {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  box-sizing: border-box;
}
.dynamicContent,
.dynamicContent > .content {
  max-width: 100%;
  box-sizing: border-box;
}
.imgIndent {
  float: none;
  display: block;
  margin: 0 0 16px 0;
  max-width: 100%;
}
.listWithMarker a {
  display: inline-block;
  min-height: 44px;
  padding: 6px 0;
  line-height: 1.35;
}
.phones_part a {
  color: inherit;
  text-decoration: underline;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ========== Mobile ========== */
@media (max-width: 767px) {
  header {
    margin-top: 24px !important;
    position: relative;
    z-index: 1000;
    order: 1;
  }

  .container.pos_rel {
    order: 0;
  }

  #splash {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 12px 0 20px !important;
    overflow: visible !important;
    z-index: 20;
    order: 2;
  }

  #splash .navbar {
    text-align: left;
  }

  #splash .navbar > .navbar-inner {
    display: block !important;
    width: 100% !important;
    margin-left: 0 !important;
  }

  .sf-menu {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100% !important;
  }

  .sf-menu > li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    left: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -ms-transform: none !important;
    -o-transform: none !important;
    float: none !important;
  }

  .sf-menu > li:has(> a[href*="squareup.com/appointments"]) {
    order: -1;
  }

  .sf-menu > li > a {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100% !important;
    min-height: 48px;
    padding: 10px 14px !important;
    background: rgba(0, 0, 0, 0.78);
    border-radius: 10px;
    font: 600 18px/1.2 Arial, "Helvetica Neue", Helvetica, sans-serif !important;
    color: #fff !important;
    text-align: left;
  }

  .sf-menu > li > a[href*="squareup.com/appointments"] {
    background: #c41e3a;
    min-height: 52px;
    font-size: 20px !important;
  }

  .sf-menu > li > a .base_text,
  .sf-menu > li > a .base_text.position_bottom {
    position: static !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border-radius: 0 !important;
    font: inherit !important;
    line-height: 1.2 !important;
    color: inherit !important;
    text-align: left;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: auto !important;
  }

  .sf-menu > li > a .img_holder,
  .sf-menu > li > a img {
    display: none !important;
  }

  .social_holder {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    margin: 8px auto 0;
    width: 100%;
    max-width: 280px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 8px;
  }

  .social_icons {
    margin: 8px auto !important;
    display: flex;
    justify-content: center;
    gap: 8px;
  }

  #wrapper > section > #content_part {
    margin-top: 16px !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    top: auto !important;
    visibility: visible !important;
    overflow: visible !important;
  }

  #content_part > .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box;
  }

  /* Was absolute + width 100% inside padded container → right edge ~406px */
  #content_part .dynamicContent,
  #content_part .dynamicContent.currentHolder {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
  }

  #content_part .dynamicContent > .content {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow: visible !important;
  }

  /* style.css .cont_pad { padding: 78px 0 50px 96px } caused x96 start, 0 right gutter */
  .cont_pad {
    padding: 56px 16px 72px 16px !important;
    min-height: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow: visible !important;
  }

  .title_main {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: auto !important;
    max-width: 100% !important;
    transform: none !important;
    -webkit-transform: none !important;
    margin: 0 0 20px 0 !important;
  }

  .cont_pad .row,
  .cont_pad [class*="span"],
  .cont_pad h2,
  .cont_pad h3,
  .cont_pad h4,
  .cont_pad p,
  .cont_pad .address,
  .cont_pad img,
  .cont_pad figure {
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .cont_pad h2,
  .cont_pad h2.v2,
  .cont_pad h3,
  .cont_pad h3.v2,
  .cont_pad p,
  .cont_pad .address {
    width: 100% !important;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal !important;
  }

  .g_map,
  .g_map iframe {
    max-width: 100% !important;
    width: 100% !important;
  }

  .close_main {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    display: inline-flex !important;
    align-items: center;
    min-height: 44px;
    transform: none !important;
    -webkit-transform: none !important;
    margin: 8px 0;
  }

  footer {
    position: relative !important;
    bottom: auto !important;
    margin-top: 24px;
    padding-bottom: 24px;
  }

  .footer_holder {
    max-width: 100%;
    padding: 10px 12px;
  }
  .footer_holder:before,
  .footer_holder:after {
    display: none !important;
  }

  /* Stack all grid columns */
  .row {
    display: block;
  }
  [class*="span"] {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 16px;
    float: none !important;
  }

  .vline2 {
    border: none !important;
    padding-right: 0 !important;
  }

  .badge {
    float: left;
    margin-right: 12px;
  }

  .title_main {
    font-size: clamp(28px, 8vw, 48px);
    line-height: 1.15;
    word-break: break-word;
  }

  h2, h2.v2 {
    font-size: clamp(28px, 7vw, 48px) !important;
    line-height: 1.15 !important;
  }
  h3, h3.v2 {
    font-size: clamp(18px, 4.5vw, 24px) !important;
    line-height: 1.25 !important;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .container,
  .container.pos_rel,
  header .container,
  footer .container {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  .cont_pad {
    padding: 64px 48px 80px 48px !important;
  }

  #content_part .dynamicContent,
  #content_part .dynamicContent.currentHolder {
    position: relative !important;
    width: 100% !important;
    left: auto !important;
  }

  #splash {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    overflow: visible !important;
    padding-top: 24px !important;
  }

  header {
    margin-top: 48px !important;
  }

  .sf-menu {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .sf-menu > li {
    left: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    -webkit-transform: none !important;
    margin: 4px !important;
  }

  .sf-menu > li > a {
    display: block;
    width: 140px;
    max-width: 30vw;
  }

  .sf-menu > li > a img {
    width: 100%;
    height: auto;
  }

  .sf-menu > li > a .base_text,
  .sf-menu > li > a .base_text.position_bottom {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 40px;
    line-height: 1.2 !important;
    padding: 8px 4px !important;
    background: rgba(0,0,0,0.85) !important;
    border-radius: 8px !important;
    margin-top: 4px !important;
    top: auto !important;
    bottom: auto !important;
  }

  [class*="span"] {
    max-width: 100%;
  }
  .span10, .span6, .span5 {
    width: 100% !important;
    margin-left: 0 !important;
  }
  .span3, .span2 {
    width: 48% !important;
    display: inline-block;
    vertical-align: top;
  }
}

/* Desktop: preserve skewed tile strip character */
@media (min-width: 1024px) {
  header h1,
  h1 {
    font-size: 90.5px !important;
    line-height: 1.05 !important;
  }

  #splash {
    width: 100% !important;
  }

  /* On desktop flex order still puts header before splash in document flow,
     but splash is absolutely positioned so visual layout stays original. */
  #wrapper {
    display: block; /* avoid flex reflow fighting absolute splash */
  }
  header,
  .container.pos_rel,
  #splash,
  #wrapper > section,
  footer {
    order: initial;
  }
}


/* ===== Services card grid (replaces float span2/span3 zigzag) ===== */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 24px;
  width: 100%;
  max-width: 100%;
  align-items: stretch;
  margin: 0;
  padding: 0;
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  float: none !important;
  clear: both;
}
.service-card-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: #1a1a1a;
}
.service-card-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  margin-bottom: 0 !important; /* override style.css .dynamicContent img margin */
}
.service-card-body {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.service-card-body > p {
  flex: 1 1 auto;
  margin-bottom: 0;
}
.service-card-body h3 {
  margin-top: 0;
  margin-bottom: 8px;
  white-space: normal !important;
  overflow-wrap: anywhere;
  min-height: 2.6em; /* keep BOOK NOW / contact lined up when titles wrap */
  line-height: 1.3;
}
.service-book-btn {
  background-color: transparent;
  border: 2px solid #ed2f53;
  color: #ed2f53 !important;
  height: 44px;
  text-transform: uppercase;
  font-family: Tahoma, Geneva, sans-serif;
  letter-spacing: 1px;
  line-height: 40px;
  padding: 0 28px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  text-decoration: none !important;
  margin-top: auto;
  align-self: flex-start;
}
.service-book-btn:hover,
.service-book-btn:focus {
  background: #ed2f53;
  color: #fff !important;
}
.service-contact {
  margin-top: 14px;
  color: #fff;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.service-contact a {
  color: #ed2f53;
  text-decoration: underline;
}

@media (min-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 28px;
  }
  .service-card {
    /* keep image above text inside each card for consistent tops */
  }
}

/* ===== About / staff listing ===== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  width: 100%;
  max-width: 100%;
}
.about-intro-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.about-photo img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.staff-panel h2 {
  margin-bottom: 12px;
}
.staff-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.staff-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.staff-list.listWithMarker {
  /* keep bullet look via our markers */
}
.staff-item {
  margin: 0 0 2px 0;
  padding: 0;
}
.staff-item a {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 1px;
  min-height: 0 !important;
  padding: 3px 4px 3px 0 !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  color: #d8d8d8 !important;
  text-decoration: none !important;
  border-radius: 6px;
  position: relative;
  line-height: 1.3;
  box-sizing: border-box;
}
.staff-item a::before {
  content: none !important; /* bullet lives on .staff-name */
  display: none !important;
}
.staff-name {
  position: relative;
  display: block;
  padding-left: 14px;
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
}
.staff-name::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc((1.3em - 6px) / 2); /* center on first line box */
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ed2f53;
}
.staff-phone {
  display: block;
  padding-left: 14px;
  color: #cfcfcf;
  font-size: 13px;
  line-height: 1.3;
}
.staff-item a:hover,
.staff-item a:focus {
  background: rgba(255,255,255,0.06);
  outline: 2px solid rgba(255,255,255,0.35);
  outline-offset: 1px;
}
.staff-group h4 {
  white-space: normal !important;
  margin: 0 0 10px 0;
  color: #fff;
}

@media (min-width: 768px) {
  .about-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
  }
  .about-intro-inner {
    grid-template-columns: 1fr;
  }
  .staff-columns {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .staff-columns {
    /* two groups side by side already; each group is a single column list */
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== Footer / content height: never overlay content =====
   Root cause at ≥1024px: style.css keeps .dynamicContent position:absolute,
   so #content_part collapses to 0 height. ajax.js.switch.js then sizes
   <section> to .content height only — missing the close_main offset —
   and the absolute panel sticks ~52px into the footer on every page.
   Fix: put dynamicContent back in normal flow at ALL breakpoints; ignore
   the JS inline section height; keep footer relative below content. */
#wrapper > section {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}
#wrapper > section > #content_part,
#content_part {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  position: relative !important;
}
#content_part .dynamicContent,
#content_part .dynamicContent.currentHolder {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  box-sizing: border-box;
}
#content_part .dynamicContent > .content {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
.cont_pad {
  height: auto !important;
  overflow: visible !important;
  box-sizing: border-box;
}

/* When SPA content is present, footer flows after content instead of absolute overlay */
body:has(.cont_pad) footer,
#wrapper:has(.cont_pad) footer,
body:has(#content_part .cont_pad) footer {
  position: relative !important;
  bottom: auto !important;
  margin-top: 28px;
  padding-bottom: 20px;
  z-index: 2;
}
body:has(#content_part .cont_pad) #wrapper {
  height: auto !important;
  min-height: 100vh;
  padding-bottom: 0;
}

/* Staff list: kill double markers (listWithMarker bg + ::before) */
.staff-list.listWithMarker li,
.staff-item {
  background-image: none !important;
  padding-left: 0 !important;
}
.staff-list.listWithMarker li a:hover {
  padding-left: 2px !important; /* cancel style.css +7px hover shift */
  color: #fff !important;
}
.staff-list.listWithMarker li {
  padding-bottom: 0 !important; /* style.css had 14px */
}
.staff-item a,
.listWithMarker.staff-list a,
.staff-list .staff-item a {
  min-height: 0 !important; /* override global .listWithMarker a { min-height:44px } */
}

/* Mid desktop / large tablet: equal gutters, slightly tighter than 96 */
@media (min-width: 768px) and (max-width: 1199px) {
  .cont_pad {
    padding: 64px 48px 80px 48px !important;
  }
}
@media (min-width: 1200px) {
  .cont_pad {
    padding: 78px 96px 80px 96px !important;
  }
}

/* ===== Splash (home menu) at desktop widths =====
   1024–1199: the six skewed tiles need ~1100px, so the last tile wrapped to a
   second row under the footer. Keep one row and scale the strip to fit.
   ≥1024 on short screens (e.g. 1024×768, 1280×720): the footer is pinned to
   the bottom of a 100%-height wrapper and sat over the tiles. Give the splash
   state a min-height that clears the tile row (tiles end at ~730px). */
@media (min-width: 1024px) and (max-width: 1199px) {
  #splash .navbar > .navbar-inner {
    width: 1100px;
    position: relative;
    left: 50%;
    transform: translateX(calc(-50% - 20px)) scale(0.86);
    transform-origin: top center;
  }
  #splash .sf-menu {
    white-space: nowrap;
  }
}
@media (min-width: 1024px) {
  body:not(:has(#content_part .cont_pad)) #wrapper {
    min-height: max(840px, 100vh) !important;
  }
}
