/* Shared layout for individual service pages, in the same visual language
   as home.css (section-title eyebrow pattern, gold gradients, 20px card
   radius, dark-section inversion). Only loaded on service/hub pages. */

/* Breadcrumbs always render inside the (always-dark) hero section — see the
   comment on .service-hero in service-page.php — so they use chrome tokens
   rather than the page's own surface/text tokens. */
.breadcrumbs {
  margin-bottom: 24px;
  font-size: 14px;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--chrome-text);
  opacity: 0.7;
}

.breadcrumbs__list li {
  display: inline-flex;
  gap: 6px;
}

.breadcrumbs__list a {
  color: inherit;
  transition: opacity 0.3s ease-in-out;
}

.breadcrumbs__list a:hover {
  opacity: 1;
}

/* ---- Service hero ---- */

.service-hero {
  padding: 150px 0 60px;
}

.service-hero__inner {
  display: grid;
  gap: 40px;
}

.service-hero--split .service-hero__inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

@media (max-width: 860px) {
  .service-hero--split .service-hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

.service-hero__media {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
}

.service-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-hero__lede {
  color: var(--text-body);
  font-size: 18px;
  max-width: 60ch;
  margin-top: 16px;
}

.service-hero__cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Bold stat strip — Maverick hero */
.fact-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  margin-top: 50px;
}

.fact-bar__item {
  padding: 24px;
  text-align: center;
  border-left: 1px solid var(--divider);
}

.fact-bar__item:first-child {
  border-left: none;
}

.fact-bar__value {
  display: block;
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--accent);
}

.fact-bar__label {
  font-size: 13px;
  color: var(--text-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Quiet definition list — Lavish hero */
.fact-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 24px;
}

.fact-list__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 360px;
  padding-block: 8px;
  border-bottom: 1px dashed var(--divider);
  font-size: 15px;
}

.fact-list__row dt {
  color: var(--text-body);
}

.fact-list__row dd {
  margin: 0;
  font-weight: 700;
  color: var(--accent-strong);
}

/* service-hero is always .dark-section (see comment on .service-hero in
   service-page.php) so fact-list's normal light-theme tokens (tuned for
   Lavish's light surface) need a chrome-aware override here too. */
.dark-section .fact-list__row {
  border-bottom-color: var(--chrome-divider);
}

.dark-section .fact-list__row dt {
  color: var(--chrome-text);
  opacity: 0.7;
}

/* ---- Content sections ---- */

.service-section {
  padding-block: 70px;
}

.service-section:nth-of-type(even) {
  background: var(--surface-alt);
}

.service-section__inner {
  max-width: 820px;
  margin-inline: auto;
  padding-inline: 15px;
}

.service-section h2 {
  font-size: 34px;
  text-transform: uppercase;
  margin-top: 48px;
  margin-bottom: 16px;
}

.service-section h2:first-child {
  margin-top: 0;
}

.service-section h3 {
  font-size: 20px;
  margin-top: 24px;
  margin-bottom: 8px;
}

/* Numbered process steps */
.process-steps {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 30px;
}

.process-step__index {
  font-family: var(--font-heading);
  font-size: 34px;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  display: block;
  margin-bottom: 10px;
}

.process-step h3 {
  margin-top: 0;
}

.process-step p {
  color: var(--text-body);
  font-size: 15px;
}

/* Benefits grid */
.benefits-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 30px;
}

.benefit-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 24px;
}

.benefit-card h3 {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 8px;
}

.benefit-card p {
  color: var(--text-body);
  font-size: 15px;
}

/* Preparation / aftercare two-column info */
.info-columns {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 30px;
}

@media (max-width: 700px) {
  .info-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 30px;
}

.info-card h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

.info-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-card li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--text-body);
}

.info-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Compact price-at-a-glance card */
.service-price-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
}

.service-price-card__price {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--accent-strong);
}

.service-price-card__meta {
  color: var(--text-body);
  font-size: 14px;
}

/* Multi-row price guide (threading/waxing by area, manicure/pedicure options, etc.) */
.price-table {
  max-width: 720px;
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.price-table__group {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 24px 30px;
}

.price-table__heading {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  color: var(--text-heading);
}

.price-table__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-block: 10px;
  border-bottom: 1px dashed var(--divider);
  font-size: 15px;
}

.price-table__row:last-child {
  border-bottom: none;
}

.price-table__row--head {
  color: var(--text-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.price-table__values {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
}

.price-table__value {
  min-width: 48px;
  text-align: right;
  font-weight: 700;
  color: var(--accent-strong);
}

.price-table__row--head .price-table__value {
  font-weight: 400;
  color: inherit;
}

.price-table__note {
  font-size: 13px;
  color: var(--text-body);
}

/* Related services pills */
.related-services {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.related-services a {
  padding: 8px 20px;
  border: 1px solid var(--divider);
  border-radius: 999px;
  font-size: 14px;
  transition: border-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.related-services a:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

/* ---- Reviews ---- */

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .review-grid { grid-template-columns: minmax(0, 1fr); }
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 28px;
}

.review-card__stars {
  color: var(--accent-strong);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review-card__quote {
  color: var(--text-heading);
  font-size: 15px;
}

.review-card__meta {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: var(--text-body);
}

.review-card__meta cite {
  font-style: normal;
  font-weight: 700;
  color: var(--accent-strong);
}

.review-notice {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 30px;
  color: var(--text-body);
  font-size: 14px;
}

/* ---- Blog ---- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: minmax(0, 1fr); }
}

.blog-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px #00000026;
}

.blog-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__body {
  padding: 24px;
}

.blog-card__category {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
  font-weight: 700;
}

.blog-card__body h3 {
  font-size: 20px;
  margin: 10px 0;
}

.blog-card__body p {
  color: var(--text-body);
  font-size: 14px;
}

.blog-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-body);
  margin-top: 12px;
}

/* ---- Blog toolbar: search + category filter ---- */

.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.blog-search {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 380px;
}

.blog-search input[type='search'] {
  flex: 1;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  padding: 0 20px;
  border: 1px solid var(--divider);
  border-radius: 100px;
  background: var(--surface);
  color: var(--text-heading);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.3s ease-in-out;
}

.blog-search input[type='search']:focus {
  border-color: var(--accent-strong);
  outline: none;
}

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-categories a {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border: 1px solid var(--divider);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
  transition: all 0.3s ease-in-out;
}

.blog-categories a:hover {
  border-color: var(--accent-strong);
  color: var(--text-heading);
}

.blog-categories a.is-active {
  background: linear-gradient(to right, var(--accent) 0%, var(--accent-strong) 100%);
  border-color: transparent;
  color: var(--on-accent);
}

.blog-results-meta {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-body);
}

.blog-results-meta a {
  color: var(--accent-strong);
  font-weight: 600;
}

.blog-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-body);
}

.blog-empty h3 {
  color: var(--text-heading);
  margin-bottom: 10px;
}

.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}

.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 8px;
  border-radius: 100px;
  border: 1px solid var(--divider);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
  transition: all 0.3s ease-in-out;
}

.blog-pagination a:hover {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.blog-pagination span.is-current {
  background: linear-gradient(to right, var(--accent) 0%, var(--accent-strong) 100%);
  border-color: transparent;
  color: var(--on-accent);
}

.blog-pagination span.is-disabled {
  opacity: 0.35;
}

.blog-post-body {
  max-width: 720px;
  margin-inline: auto;
}

.blog-post-image {
  margin: 30px 0;
  border-radius: 16px;
  overflow: hidden;
}

.blog-post-body h2 {
  font-size: 28px;
  text-transform: uppercase;
  margin-top: 40px;
  margin-bottom: 16px;
}

.blog-post-body p {
  font-size: 16px;
}

.blog-post-body ul {
  margin: 0 0 1.5em;
  padding-left: 22px;
  list-style: disc;
  color: var(--text-body);
}

.blog-post-body ul li {
  margin-bottom: 8px;
}

/* ---- Before/after transformation cards ----
   No real transformation photography exists yet, so these render as clearly
   labeled "photo coming soon" placeholders rather than mismatched stock
   photos standing in for hair-colour results — swap the two placeholder
   panels per card for real before/after photos as they become available. */

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

@media (max-width: 700px) {
  .before-after-grid { grid-template-columns: minmax(0, 1fr); }
}

.before-after-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 20px;
  overflow: hidden;
}

.before-after-card__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.before-after-panel {
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface-alt);
  color: var(--text-body);
  position: relative;
}

.before-after-panel:first-child {
  border-right: 1px solid var(--divider);
}

.before-after-panel__label {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--chrome-bg);
  color: var(--chrome-text);
  padding: 4px 10px;
  border-radius: 999px;
}

.before-after-panel__icon {
  width: 32px;
  height: 32px;
  opacity: 0.35;
}

.before-after-panel__note {
  font-size: 12px;
  text-align: center;
  opacity: 0.7;
  padding: 0 12px;
}

.before-after-card__caption {
  padding: 20px 24px;
}

.before-after-card__caption h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.before-after-card__caption p {
  color: var(--text-body);
  font-size: 14px;
  margin: 0;
}

/* ---- Brand hub pages ---- */

.hub-hero {
  position: relative;
  padding: 190px 0 90px;
  overflow: hidden;
}

.hub-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Darkens the video enough to keep white hero text legible regardless of
   what's playing underneath — same treatment as the homepage .hero__scrim. */
.hub-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0C0C0Dcc 0%, #0C0C0D99 45%, #0C0C0Dd9 100%);
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hub-hero__video {
    display: none;
  }
}

.hub-hero .container {
  position: relative;
  z-index: 2;
}

.hub-hero__title {
  max-width: 820px;
}

.hub-hero__cta-row {
  margin-top: 30px;
}

.hub-services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 1200px) {
  .hub-services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hub-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .hub-services-grid { grid-template-columns: minmax(0, 1fr); }
}

.hub-service-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hub-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px #00000026;
}

.hub-service-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.hub-service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hub-service-card:hover .hub-service-card__media img {
  transform: scale(1.06);
}

.hub-service-card__body {
  padding: 24px;
}

.hub-service-card__body h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.hub-service-card__body p {
  color: var(--text-body);
  font-size: 14px;
  margin-bottom: 16px;
}

.hub-service-card__price {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-strong);
  font-weight: 700;
}
