/* ==========================================================================
   Fringe — Service pages (Hair Services template)
   Builds on home.css (.home-section, .home-container, .home-title, .home-text)
   and style.css (.textured, .image-frame, tokens). Only new pieces live here.
   ========================================================================== */

/* ---------- Top image ---------- */
.service-hero {
  padding: 1.5rem 5vw 0;
  background-color: var(--ivory);
}
.service-hero figure {
  max-width: var(--home-width);
  margin: 0 auto;
  aspect-ratio: 15 / 8;
}
.service-hero + .service-block { padding-top: 2.8rem; }

/* ---------- Section variants ---------- */
.service-copy { text-align: left; }
.service-copy p { max-width: none; margin: 0 0 1.25rem; }

.service-subtitle {
  margin: 3.2rem 0 0;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
}
.service-block-left .home-title,
.service-subtitle {
  text-align: left;
  text-transform: none; /* "Extensions" renders as small caps in Julius Sans One */
}

/* ---------- Price table ---------- */
.price-table {
  max-width: 560px;
  margin: 2.8rem auto 0;
  text-align: left;
}
.price-table-title {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 1.35rem;
  font-weight: 500;
}
.price-table-title.is-small {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
}
.price-table.is-wide {
  max-width: none;
  padding: 0 4.5%;
}
.price-table.is-wide .price-row { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.price-table.is-wide .price-table-title { font-weight: 700; }
.price-group + .price-group { margin-top: 1.6rem; }

/* Tables side by side (Waxing) */
.price-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 3rem;
  margin-top: 2.8rem;
  padding: 0 3.5%;
}
.price-columns .price-table { max-width: none; margin: 0; padding: 0; }
.price-columns .price-row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.price-columns .price-table-title { font-weight: 700; }
.price-columns ~ .service-policy { padding: 0 3.5%; }
.price-group-label {
  margin: 0 0 .5rem;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.price-list { margin: 0; }
.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 1.5rem;
  padding: .42rem 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
}
.price-row dt { font-weight: 500; }
.price-row dt small { font-size: .72rem; font-style: italic; font-weight: 400; }
.price-row dd { margin: 0; }

/* ---------- Treatments ---------- */
.treatment-list { margin-top: 2.6rem; text-align: left; }
.treatment + .treatment { margin-top: 2.4rem; }

/* First items beside an image (Skin page) */
.treatment-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.4rem;
}
.treatment-split-items { padding-top: 1.5rem; }
.treatment-media { aspect-ratio: 1048 / 1143; }
.treatment-name {
  margin: 0 0 .4rem;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}
.treatment p {
  margin: 0;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.65;
}
.treatment p + p { margin-top: 1.3rem; }
.treatment .treatment-note { font-style: italic; }

.service-policy {
  margin: 4.5rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  text-align: left;
}
.service-policy strong { color: var(--ink); font-weight: 700; }

/* ---------- Two plain (ivory) sections in a row, e.g. About → Our Policies ---------- */
.service-block:not(.textured) + .service-block:not(.textured) { padding-top: 0; }

/* ---------- Embedded map / media ---------- */
.service-embed { max-width: 600px; margin: 2.2rem auto 3rem; }
.service-embed-frame { position: relative; aspect-ratio: 4 / 3; background: var(--mushroom); }
.service-embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.service-embed figcaption {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 1.125rem;
  font-style: italic;
}

/* ---------- Embedded form (JotForm) ---------- */
.service-form { max-width: 800px; margin: 2rem auto 0; }
.service-form iframe { display: block; width: 100%; border: 0; }

/* ---------- Contact Us: details + form left, map right ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem 4rem;
  align-items: start;
  margin-top: 2.5rem;
  padding: 0 3.5%;
  text-align: left;
}
.contact-card {
  color: var(--muted);
  font-size: 1.125rem;
  font-style: normal;
  line-height: 1.65;
}
.contact-card strong { color: var(--ink); font-weight: 700; }
.contact-phone {
  display: block;
  width: fit-content;
  margin-top: 2.2rem;
  color: var(--muted);
  font-weight: 700;
}
.contact-phone:hover { color: var(--ink); }
.contact-main .service-form { max-width: none; margin-top: 2.5rem; }
.contact-map { max-width: none; margin: 0; }
.contact-map .service-embed-frame { aspect-ratio: 622 / 576; }

/* ---------- Policies list ---------- */
.policy-list { text-align: left; }
.policy-item + .policy-item { margin-top: 2.2rem; }
.policy-item h3 {
  margin: 0 0 .2rem;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 700;
}
.policy-item p,
.policy-item li {
  margin: 0;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.65;
}
.policy-item strong { color: var(--ink); font-weight: 700; }
.policy-item ul { margin: 0; padding: 0; list-style: none; }
.policy-item li::before { content: "• "; }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .service-hero { padding: 0; }
  .service-hero figure { aspect-ratio: 4 / 3; }
  .price-table { margin-top: 2.2rem; }
  .treatment-split { grid-template-columns: 1fr; }
  .price-columns { grid-template-columns: 1fr; padding: 0; }
  .price-columns ~ .service-policy { padding: 0; }
  .contact-grid { grid-template-columns: 1fr; padding: 0; }
  .contact-map .service-embed-frame { aspect-ratio: 4 / 3; }
  .treatment-split-items { padding-top: 0; }
  .treatment-media { aspect-ratio: 4 / 3; }
}

@media (max-width: 600px) {
  .price-row { grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; }
  .price-row dd { text-align: right; max-width: 9rem; }
  .price-table.is-wide { padding: 0; }
  .price-table.is-wide .price-row,
  .price-columns .price-row { grid-template-columns: minmax(0, 1fr) auto; }
  .treatment-name { font-size: 1.2rem; }
}
