/* ---------------------------------------------------------------------------
   Website layout variants (page arrangement — separate from colour themes).
   .layout-classic uses the existing styles untouched. This file styles the
   Split Studio (sps-*) and Magazine Showcase (mag-*) layouts, plus the shared
   preview banner. All colours come from the theme CSS variables so every
   layout respects the salon's chosen theme.
--------------------------------------------------------------------------- */

/* ---- Preview banner (any layout) ---- */
.layout-preview-banner {
  position: sticky;
  top: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: .55rem 1rem;
  background: #111827;
  color: #fff;
  font-size: .85rem;
  text-align: center;
}
.layout-preview-banner a {
  color: #fbbf24;
  text-decoration: underline;
}

/* ============================ Split Studio ============================ */

/* Split hero: text/booking panel left, large image right. */
.sps-hero {
  display: grid;
  grid-template-columns: minmax(340px, 44%) 1fr;
  min-height: min(86vh, 760px);
}
.sps-hero-panel {
  background: var(--dark, #16161f);
  color: #fff;
  display: flex;
  align-items: center;
}
.sps-hero-panel-inner {
  padding: clamp(2.5rem, 5vw, 4.5rem);
  max-width: 560px;
}
.sps-hero-logo {
  max-height: 64px;
  max-width: 220px;
  object-fit: contain;
  margin-bottom: 1.4rem;
}
.sps-hero-brand {
  display: inline-block;
  font-family: var(--font-heading, sans-serif);
  font-size: 1.15rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  color: var(--accent, #c9a96a);
}
.sps-hero-title {
  font-family: var(--font-heading, sans-serif);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  color: #fff;
}
.sps-hero-subtitle {
  color: rgba(255, 255, 255, .82);
  font-size: clamp(.95rem, 1.6vw, 1.12rem);
  margin-bottom: 1.6rem;
}
.sps-hero-actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}
.sps-hero-status {
  margin-top: 1.4rem;
  font-size: .88rem;
  color: rgba(255, 255, 255, .78);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.sps-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  flex-shrink: 0;
}
.sps-hero-media {
  background-size: cover;
  background-position: center;
  min-height: 340px;
}

/* Quick booking/contact strip */
.sps-quick-strip {
  background: var(--light, #f6f5f2);
  border-bottom: 1px solid rgba(0, 0, 0, .07);
  padding: .8rem 0;
}
.sps-quick-inner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  font-size: .88rem;
}
.sps-quick-item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.sps-quick-book {
  margin-left: auto;
}

.sps-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.sps-head h2 {
  font-family: var(--font-heading, sans-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0;
}

/* Premium booking-focused service rows (not the Classic card grid). */
.sps-service-rows {
  display: flex;
  flex-direction: column;
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid rgba(0, 0, 0, .1);
}
.sps-service-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.35rem .35rem;
  border-bottom: 1px solid rgba(0, 0, 0, .1);
}
.sps-service-row h3 {
  margin: 0 0 .3rem;
  font-size: 1.12rem;
}
.sps-service-row p {
  margin: 0;
  font-size: .88rem;
  opacity: .8;
}
.sps-service-facts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .25rem;
  font-size: .88rem;
  white-space: nowrap;
}
.sps-price {
  font-weight: 700;
}

/* Alternating split sections */
.sps-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.sps-split-reverse > :first-child {
  order: 2;
}
.sps-split-media img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 6px;
}

/* Horizontal team cards, scrollable row on smaller screens */
.sps-team-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.sps-team-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--light, #fff);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.sps-team-photo,
.sps-team-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.sps-team-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  background: color-mix(in srgb, var(--accent, #c9a96a) 20%, #fff);
  color: var(--dark, #222);
}
.sps-team-card h3 {
  margin: 0 0 .15rem;
  font-size: 1.02rem;
}

/* Asymmetric gallery tiles: one lead + smaller supporting tiles */
.sps-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: .8rem;
}
.sps-gallery-tile {
  display: block;
  overflow: hidden;
  border-radius: 8px;
}
.sps-gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.sps-gallery-tile:hover img {
  transform: scale(1.05);
}
.sps-gallery-lead {
  grid-column: span 2;
  grid-row: span 2;
}

/* Quote-block reviews */
.sps-review-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.sps-review {
  margin: 0;
  padding: 1.6rem 1.5rem;
  border-left: 4px solid var(--accent, #c9a96a);
  background: var(--light, #fff);
  border-radius: 0 10px 10px 0;
}
.sps-review-text {
  font-size: 1rem;
  line-height: 1.55;
}

/* Final CTA band */
.sps-final-cta {
  background: var(--primary, #1b1b2f);
  color: #fff;
  padding: 3.25rem 0;
}
.sps-final-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.sps-final-cta h2 {
  margin: 0 0 .3rem;
  color: #fff;
}
.sps-final-cta p {
  margin: 0;
  opacity: .85;
}

/* Split Studio responsive */
@media (max-width: 1024px) {
  .sps-team-track { grid-template-columns: repeat(2, 1fr); }
  .sps-review-list { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
}
@media (max-width: 860px) {
  .sps-hero { grid-template-columns: 1fr; }
  .sps-hero-media { order: -1; min-height: 260px; }
  .sps-hero-panel-inner { padding: 2rem 1.25rem 2.5rem; }
  .sps-split { grid-template-columns: 1fr; }
  .sps-split-reverse > :first-child { order: 0; }
  .sps-quick-book { margin-left: 0; width: 100%; text-align: center; }
  .sps-gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .sps-gallery-lead { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 640px) {
  .sps-team-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: .5rem;
    -webkit-overflow-scrolling: touch;
  }
  .sps-team-card { min-width: 240px; scroll-snap-align: start; }
  .sps-service-row { grid-template-columns: 1fr; gap: .6rem; }
  .sps-service-facts { flex-direction: row; align-items: center; gap: .8rem; }
  .sps-service-book { justify-self: start; }
}

/* ========================== Magazine Showcase ========================== */

.mag-kicker {
  display: inline-block;
  font-size: .74rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent, #c9a96a);
  margin-bottom: .8rem;
}

/* Full-screen editorial hero with oversized headline */
.mag-hero {
  min-height: min(96vh, 860px);
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.mag-hero-inner {
  padding: 6rem 1.25rem 7.5rem; /* extra bottom room for the floating card */
}
.mag-hero-title {
  font-family: var(--font-heading, serif);
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 1.02;
  margin: 0 0 1rem;
  max-width: 14ch;
  color: #fff;
}
.mag-hero-standfirst {
  font-size: clamp(1rem, 2vw, 1.3rem);
  max-width: 560px;
  color: rgba(255, 255, 255, .88);
}

/* Floating booking card overlapping the hero */
.mag-booking-card-wrap {
  position: relative;
}
.mag-booking-card {
  position: relative;
  margin-top: -4.25rem;
  z-index: 5;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.mag-booking-card-info {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  font-size: .92rem;
}
.mag-booking-card-info strong {
  font-size: 1.05rem;
}
.mag-booking-card-actions {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
}

.mag-h2 {
  font-family: var(--font-heading, serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.12;
  margin: 0 0 .9rem;
}
.mag-lead {
  font-size: 1.08rem;
  line-height: 1.65;
}
.mag-section-head {
  max-width: 720px;
  margin-bottom: 2rem;
}

/* Story section: copy + tall image */
.mag-story-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.mag-story-media {
  margin: 0;
}
.mag-story-media img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 4px;
}

/* Signature services: large numbered editorial feature rows */
.mag-feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 960px;
  margin: 0 auto;
}
.mag-feature {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  background: var(--light, #fff);
  border: 1px solid rgba(0, 0, 0, .07);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.mag-feature-index {
  font-family: var(--font-heading, serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--accent, #c9a96a);
}
.mag-feature-body h3 {
  font-family: var(--font-heading, serif);
  font-size: 1.35rem;
  margin: 0 0 .35rem;
}
.mag-feature-body p {
  margin: 0 0 .5rem;
  font-size: .92rem;
  opacity: .85;
}
.mag-feature-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .88rem;
}
.mag-feature-price {
  font-weight: 700;
}

/* Why choose us */
.mag-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.mag-why-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .6rem;
  padding: 1.4rem 1.3rem;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 4px;
  font-weight: 600;
}

/* Team spotlight */
.mag-spotlight-grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.mag-spotlight-photo,
.mag-spotlight-avatar {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
}
.mag-spotlight-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading, serif);
  font-size: 3rem;
  background: color-mix(in srgb, var(--accent, #c9a96a) 18%, #fff);
  color: var(--dark, #222);
}
.mag-spotlight-copy h3 {
  font-family: var(--font-heading, serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 .3rem;
}
.mag-support-team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-top: 2rem;
}
.mag-support-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .35rem;
}
.mag-support-card img,
.mag-support-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
}
.mag-support-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: color-mix(in srgb, var(--accent, #c9a96a) 20%, #fff);
  color: var(--dark, #222);
}
.mag-support-name {
  font-weight: 600;
  font-size: .95rem;
}

/* Gallery collage: one large lead + supporting images */
.mag-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: .9rem;
}
.mag-collage-item {
  display: block;
  overflow: hidden;
  border-radius: 3px;
}
.mag-collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.mag-collage-item:hover img {
  transform: scale(1.04);
}
.mag-collage-lead {
  grid-column: span 2;
  grid-row: span 2;
}

/* Pull-quote testimonials */
.mag-pull-quote {
  margin: 0 auto 2rem;
  max-width: 860px;
  text-align: center;
}
.mag-pull-quote p {
  font-family: var(--font-heading, serif);
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  line-height: 1.35;
  margin: 0 0 .8rem;
}
.mag-pull-quote cite,
.mag-quote cite {
  font-style: normal;
  font-size: .9rem;
  opacity: .75;
}
.mag-quote-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  max-width: 860px;
  margin: 0 auto;
}
.mag-quote {
  margin: 0;
  padding: 1.5rem 1.5rem;
  background: var(--light, #fff);
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 4px;
}

/* Visit / location feature block */
.mag-visit-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  background: var(--light, #faf8f5);
  border: 1px solid rgba(0, 0, 0, .06);
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: 6px;
  align-items: center;
}

/* Final CTA */
.mag-final-cta {
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 5.5rem 0;
}
.mag-final-cta .mag-h2 {
  color: #fff;
}

/* Magazine responsive */
@media (max-width: 1024px) {
  .mag-why-grid { grid-template-columns: repeat(2, 1fr); }
  .mag-support-team { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .mag-story-grid,
  .mag-spotlight-grid,
  .mag-visit-panel { grid-template-columns: 1fr; }
  .mag-booking-card { margin-top: -3rem; flex-direction: column; align-items: stretch; }
  .mag-booking-card-actions .btn { flex: 1; text-align: center; }
  .mag-collage { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .mag-collage-lead { grid-column: span 2; grid-row: span 1; }
  .mag-quote-row { grid-template-columns: 1fr; }
  .mag-hero { min-height: 74vh; }
  .mag-hero-inner { padding: 4rem 1.25rem 5.5rem; }
}
@media (max-width: 560px) {
  .mag-feature { grid-template-columns: 1fr; gap: .8rem; }
  .mag-feature-index { font-size: 1.9rem; }
  .mag-feature-book { justify-self: start; }
  .mag-why-grid { grid-template-columns: 1fr; }
}
