/* Stage 3A — fluid, restrained responsive shell for Katie's Salon.
   This changes layout only: brand imagery, menu links, contact methods,
   customer content, Wix services and consent behaviour remain untouched. */
:root {
  --salon-shell-width: 1360px;
  --salon-shell-gutter: clamp(18px, 3.2vw, 54px);
}
.header .container,
.footer .container,
.ribbon .container {
  width: min(calc(100% - 2 * var(--salon-shell-gutter)), var(--salon-shell-width));
  margin-inline: auto;
}
.header .bar {
  height: auto;
  min-height: clamp(74px, 6.35vw, 96px);
  gap: clamp(12px, 1.5vw, 24px);
}
.header .brand {
  min-width: 0;
  flex: 0 0 auto;
}
.header .brand img {
  width: clamp(165px, 15.1vw, 230px);
  height: auto;
  max-width: 100%;
  max-height: 74px;
  object-fit: contain;
}
.header .nav {
  min-width: 0;
  gap: clamp(2px, .35vw, 8px);
  align-items: center;
  flex-wrap: nowrap;
}
.header .nav a {
  font-size: clamp(.79rem, .56vw + .39rem, .88rem);
  line-height: 1.4;
  white-space: nowrap;
  padding: 10px clamp(5px, .48vw, 11px);
}
.header .nav a:focus-visible,
.header .nav-toggle:focus-visible,
.footer a:focus-visible,
.footer button:focus-visible,
.ribbon a:focus-visible {
  outline: 3px solid #c6a268;
  outline-offset: 3px;
}
.footer .foot-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 52px);
}
.footer .foot-grid > * {
  min-width: 0;
}
.footer,
.footer .bottom {
  overflow-wrap: anywhere;
}
.footer .bottom {
  line-height: 1.7;
}
.ribbon .split {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
  gap: clamp(24px, 4vw, 72px);
}
.ribbon .split > * {
  min-width: 0;
}
.ribbon h2 {
  font-size: clamp(2rem, 2.3vw + .9rem, 3.45rem);
}
@media (max-width: 1240px) {
  .header .bar {
    min-height: 78px;
    height: auto;
  }
  .header .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 12px max(18px, var(--salon-shell-gutter)) 20px;
    gap: 3px;
    background: #fffbfd;
    border-bottom: 1px solid #dbc8de;
    box-shadow: 0 14px 26px rgba(40, 26, 44, .17);
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .header .nav.open {
    display: flex;
  }
  .header .nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 15px;
    font-size: .93rem;
    white-space: normal;
  }
  .header .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 5px 10px;
    flex: 0 0 auto;
    border-radius: 6px;
    cursor: pointer;
  }
}
@media (max-width: 980px) and (min-width: 701px) {
  .footer .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 36px;
  }
  .footer .foot-grid > :first-child {
    grid-column: 1 / -1;
    max-width: 68ch;
  }
}
@media (max-width: 820px) {
  .ribbon .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
}
@media (max-width: 700px) {
  html {
    scroll-padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }
  .header .bar {
    min-height: 72px;
  }
  .header .brand img {
    width: clamp(154px, 43vw, 195px);
    max-height: 64px;
  }
  .footer .foot-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .footer .foot-grid > :first-child {
    grid-column: auto;
  }
  .footer {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-bar {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}
@media (max-width: 350px) {
  .header .brand img {
    width: min(154px, 100%);
  }
  .header .bar {
    gap: 8px;
  }
}
@media (max-width: 680px) {
  body.home-v15 .hero,
  body[class] .pagehero,
  .gallery-page .section.marble-section {
    background: linear-gradient(135deg, #fffdfa, #f3e9f4);
  }
}
