/* ==========================================================================
   TNP salon landing page (v0.34): custom-salon-landing.hbs with landing.hbs.
   Loaded on this page only. Its own look, from Pranay's mockup (tnp-salon-page-v17):
   Schibsted Grotesk; dark green, sage, red, parchment. The rest of the site keeps Penang.
   The sections are set out by assets/js/tnp-landing.js.
   ========================================================================== */

.tnp-l-body {
  --l-green: #1E3529;
  --l-sage: #E6E7E1;
  --l-red: #B63A2B;
  --l-red-dark: #9C3124;
  --l-parch: #F6F1E6;
  --l-muted: #3E5246;
  --l-white: #FFFFFF;
  --l-pad: clamp(16px, 5vw, 64px);
  --l-gap: clamp(96px, 13vw, 180px);
  --l-rule: 1px solid rgba(30, 53, 41, 0.25);

  margin: 0;
  background: var(--l-sage);
  color: var(--l-green);
  font-family: 'Schibsted Grotesk', Helvetica, Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* A standalone page: Ghost's announcement bar stays off here */
.tnp-l-body #announcement-bar-root { display: none !important; }

.tnp-l *, .tnp-l *::before, .tnp-l *::after { box-sizing: border-box; }
/* As in the mockup, the page's width limits are for the content, with the side space outside them */
.tnp-l-wrap, .tnp-l-header, .tnp-l-cards, .tnp-l-close, .tnp-l-footer, .tnp-l-text { box-sizing: content-box; }
/* Resets carry no weight (:where), so every rule below wins over them */
:where(.tnp-l) :where(p, h1, h2, h3, figure, blockquote) { margin: 0; }
:where(.tnp-l) img { display: block; max-width: 100%; height: auto; }
:where(.tnp-l) a { color: var(--l-green); }
:where(.tnp-l) a:hover { color: var(--l-red); }

.tnp-l-wrap {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--l-pad);
  padding-right: var(--l-pad);
}

/* Button (both "Inquire about salons" and the close) */
.tnp-l a.tnp-l-btn {
  display: inline-block;
  text-decoration: none;
  background: var(--l-red);
  color: var(--l-white);
  padding: 16px 28px;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.tnp-l a.tnp-l-btn:hover { background: var(--l-red-dark); color: var(--l-white); }

/* Header */
.tnp-l-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px var(--l-pad);
}
.tnp-l .tnp-l-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--l-green);
}
.tnp-l-brand__mark { width: 40px; height: 16px; }
.tnp-l-brand__name { font-weight: 700; font-size: 1.05rem; }

/* Top: the picture with the title over it */
.tnp-l-hero {
  display: grid;
  grid-template-columns: 1fr;
}
.tnp-l-hero__img {
  grid-area: 1 / 1;
  width: 100%;
  aspect-ratio: 2400 / 1364;
  min-height: 540px;
  object-fit: cover;
  object-position: 40% 100%;
}
.tnp-l-hero__box {
  grid-area: 1 / 1;
  align-self: start;
  justify-self: start;
  margin: 0 var(--l-pad);
  max-width: calc(100% - 2 * var(--l-pad));
  background: var(--l-green);
  color: var(--l-sage);
  padding: clamp(28px, 4vw, 56px) clamp(24px, 3.5vw, 48px) clamp(32px, 4.5vw, 60px);
}
.tnp-l-hero__title {
  font-weight: 800;
  font-size: clamp(2rem, 3.7vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 13ch;
}

/* The line beside the first button */
.tnp-l-intro { background: var(--l-white); }
.tnp-l-intro__inner {
  padding-top: clamp(32px, 4.5vw, 60px);
  padding-bottom: clamp(32px, 4.5vw, 60px);
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: center;
  justify-content: space-between;
}
.tnp-l-intro__line {
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

/* The white band: green box + rows beside it */
.tnp-l-band {
  background: var(--l-white);
  margin-bottom: var(--l-gap);
}
.tnp-l-band__grid {
  padding-top: clamp(8px, 1.5vw, 20px);
  padding-bottom: clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(20px, 6vw, 96px);
  align-items: start;
}
.tnp-l-band__grid > :only-child { grid-column: 1 / -1; max-width: 40rem; }
.tnp-l-band__grid > :nth-child(n+3) { grid-column: 2; }

.tnp-l-fit {
  background: var(--l-green);
  color: var(--l-sage);
  padding: clamp(20px, 3vw, 40px) clamp(16px, 2.5vw, 36px) clamp(24px, 3.5vw, 44px);
}
.tnp-l-fit a { color: var(--l-sage); }
.tnp-l-fit h2, .tnp-l-list h2 {
  font-weight: 800;
  font-size: clamp(1.15rem, 2.2vw, 2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.tnp-l-fit p, .tnp-l-list p { margin-bottom: 14px; }

.tnp-l-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tnp-l-rows > li {
  padding: 14px 0;
  border-top: var(--l-rule);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
}
.tnp-l-rows > li:last-child { border-bottom: var(--l-rule); }
.tnp-l-fit .tnp-l-rows > li { border-color: rgba(230, 231, 225, 0.28); }

/* Rows with a bold name: the benefit, then its quote */
.tnp-l-rows--named > li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  align-items: baseline;
}
.tnp-l-rows__name { flex: 0 0 10rem; }
.tnp-l-rows__text {
  flex: 1 1 18rem;
  font-weight: 400;
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  color: var(--l-muted);
}
.tnp-l-fit .tnp-l-rows__text { color: inherit; }

/* Two pictures, offset */
.tnp-l-gallery { padding-bottom: var(--l-gap); }
.tnp-l-gallery__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px 5vw;
}
.tnp-l-gallery__fig {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tnp-l-gallery__fig:nth-child(odd) { flex: 1 1 300px; max-width: 400px; }
.tnp-l-gallery__fig:nth-child(odd) img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.tnp-l-gallery__fig:nth-child(even) {
  flex: 1 1 460px;
  max-width: 760px;
  margin-top: clamp(0px, 12vw, 200px);
}
.tnp-l-gallery__fig:nth-child(even) img { width: 100%; }
.tnp-l-gallery__fig figcaption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1rem;
  max-width: 22rem;
}
.tnp-l-gallery__fig:nth-child(even) figcaption { align-self: flex-end; max-width: 26rem; }
.tnp-l-cap__name { font-weight: 700; font-size: 1.2rem; }

/* One picture, full width */
.tnp-l-full { margin-bottom: var(--l-gap); }
.tnp-l-full img { width: 100%; }
.tnp-l-full figcaption {
  max-width: 1280px;
  margin: 10px auto 0;
  padding: 0 var(--l-pad);
  font-size: 0.95rem;
  color: var(--l-muted);
}
.tnp-l-full .tnp-l-cap__name { font-size: inherit; margin-right: 0.4em; }

/* How a salon works: the scroll */
.tnp-l-scroll-wrap { padding: 0 var(--l-pad) var(--l-gap); }
.tnp-l-scroll {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tnp-l-rod {
  position: relative;
  z-index: 2;
  width: calc(100% + 28px);
  margin: 0 -14px;
  height: 40px;
  background:
    radial-gradient(circle at 11px 50%, var(--l-green) 10.5px, transparent 11px),
    radial-gradient(circle at calc(100% - 11px) 50%, var(--l-green) 10.5px, transparent 11px);
}
.tnp-l-rod::before {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 40px;
  border-radius: 20px;
  background: linear-gradient(to bottom, #B9AE96 0%, #EDE5D3 30%, #FBF8F1 48%, #E4DAC5 70%, #A89C82 100%);
  box-shadow: 0 6px 10px rgba(30, 53, 41, 0.18);
}
.tnp-l-sheet {
  position: relative;
  z-index: 1;
  width: 94%;
  margin: -14px 0;
  background: var(--l-parch);
  background-image: linear-gradient(to right, rgba(120, 100, 70, 0.10), rgba(120, 100, 70, 0) 6%, rgba(120, 100, 70, 0) 94%, rgba(120, 100, 70, 0.10));
  padding: clamp(48px, 6vw, 72px) clamp(24px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.tnp-l-sheet__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
  align-items: center;
}
.tnp-l-sheet h2 {
  font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.tnp-l-sheet p { font-size: 1rem; color: var(--l-muted); }
.tnp-l-sheet__head p { max-width: 30rem; text-align: left; }
.tnp-l-sheet__head p.tnp-l-facts { margin-top: -4px; max-width: none; text-align: center; }
.tnp-l-lead::first-letter {
  float: left;
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 0.82;
  margin: 4px 8px 0 0;
  color: var(--l-red);
}

.tnp-l-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: tnp-step;
}
.tnp-l-steps > li {
  counter-increment: tnp-step;
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  column-gap: 20px;
  row-gap: 2px;
  padding: 18px 0;
  border-top: var(--l-rule);
  color: var(--l-muted);
}
.tnp-l-steps > li:last-child { border-bottom: var(--l-rule); }
.tnp-l-steps > li::before {
  content: counter(tnp-step, upper-roman);
  grid-column: 1;
  grid-row: 1 / span 2;
  font-weight: 700;
  color: var(--l-red);
}
.tnp-l-steps > li > * { grid-column: 2; }
.tnp-l-steps__name { font-weight: 700; font-size: 1.35rem; color: var(--l-green); }

/* Testimonial cards */
.tnp-l-cards {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--l-pad) var(--l-gap);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  align-items: start;
  gap: 48px 64px;
}
.tnp-l-card {
  width: 100%;
  background: var(--l-parch);
  background-image: linear-gradient(to bottom, rgba(120, 100, 70, 0.08), rgba(120, 100, 70, 0) 12%, rgba(120, 100, 70, 0) 88%, rgba(120, 100, 70, 0.08));
  padding: clamp(28px, 4vw, 44px) clamp(24px, 3.5vw, 40px);
  box-shadow: 0 1px 2px rgba(30, 53, 41, 0.10), 0 14px 30px rgba(30, 53, 41, 0.14);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: rotate(-2deg);
}
.tnp-l-card:nth-child(4n+2) { transform: rotate(1.5deg); margin-top: 64px; }
.tnp-l-card:nth-child(4n+3) { transform: rotate(1deg); }
.tnp-l-card:nth-child(4n+4) { transform: rotate(-1.5deg); margin-top: 64px; }
.tnp-l-card__text {
  font-weight: 500;
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
}
.tnp-l-card__text p + p { margin-top: 0.6em; }
.tnp-l-card__text--marks > p:first-child::before { content: '“'; }
.tnp-l-card__text--marks > p:last-child::after { content: '”'; }
.tnp-l-card__name { font-size: 0.95rem; color: var(--l-muted); }

/* Close */
.tnp-l-close {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) var(--l-pad);
  border-top: 1.5px solid var(--l-green);
}
.tnp-l-close__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 6vw;
  justify-content: space-between;
  align-items: flex-end;
}
.tnp-l-close__words {
  flex: 1 1 460px;
  min-width: 0;
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.tnp-l-close__words h2 {
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.tnp-l-close__words p { max-width: 32rem; }
.tnp-l-close__words .tnp-l-close__action { padding-top: 8px; }
.tnp-l-close__photo {
  margin: 0 clamp(0px, 4vw, 64px) 0 0;
  flex: 0 1 340px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tnp-l-close__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.tnp-l-close__photo figcaption { font-size: 0.95rem; color: var(--l-muted); }

/* Any other part of the text */
.tnp-l-text { max-width: 760px; margin-bottom: var(--l-gap); }
.tnp-l-text h2 {
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.tnp-l-text p + p { margin-top: 1em; }

/* Before the script runs (or without it): the text in order, readable */
.tnp-l-content:not(.is-set) {
  max-width: 760px;
  margin: 64px auto;
  padding: 0 var(--l-pad);
}
.tnp-l-content:not(.is-set) > * + * { margin-top: 1em; }

/* Footer */
.tnp-l-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px var(--l-pad) 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 0.9rem;
  color: var(--l-muted);
}
.tnp-l-footer a { padding: 12px 0; color: var(--l-muted); }

/* Phone */
@media (max-width: 719px) {
  .tnp-l-band__grid { grid-template-columns: minmax(0, 1fr); }
  .tnp-l-band__grid > :nth-child(n+3) { grid-column: auto; }
  .tnp-l-card:nth-child(n) { margin-top: 0; }
}
