/* ==========================================================================
   SKIIN - GLOBAL COMPONENTS  (assets/css/skiin-components.css)
   Loaded on EVERY page, after style.css + header + footer.
   One definition per component, so Home, About, Services, Gallery ... all look
   identical.  Contains ONLY what style.css does not already provide
   (tokens, .sk-container, .sk-title, .sk-btn, .sk-field live in style.css).

   Order: 0 page base | 1 layout primitives | 2 rating card | 3 split + photo
          4 accordion | 5 forms | 6 CTA banner | 7 booking CTA | 8 page banner
          8b image cards | 9 disclaimer | 10 tick list | 11 responsive
   Breakpoints: 991 (tablet) | 767 (mobile) | 480 (small)
   ========================================================================== */

/* ---------- 0. page base (put class "sk-page" on <main> of every page) ---------- */
.sk-page {
  font-family: var(--font-main);
  font-size: 16px; line-height: 1.7; color: var(--color-body);
  background: var(--color-white);
  overflow-x: hidden;
}
.sk-page img { height: auto; }
.sk-page h1, .sk-page h2, .sk-page h3, .sk-page h4 { font-family: var(--font-main); font-weight: 400; color: var(--sk-dark); }
.sk-page p { margin: 0 0 14px; }
.sk-page p:last-child { margin-bottom: 0; }
.sk-page a { color: var(--color-rose-accent); }
.sk-page .sk-btn { color: var(--color-white); }
.sk-page .sk-btn--outline { color: var(--sk-dark); }
.sk-page .sk-btn--outline:hover { color: var(--color-white); }
.sk-page .sk-btn--light { color: var(--sk-dark); }
.sk-page .sk-btn--light:hover { color: var(--color-white); }
.sk-page strong { font-weight: 600; }

/* ---------- 1. layout primitives ---------- */
.sk-section { padding: clamp(48px, 6vw, 96px) 0; }
.sk-section--tight { padding: clamp(24px, 3vw, 48px) 0; }
.sk-center { text-align: center; margin-top: 40px; }
.sk-head { max-width: 760px; }
.sk-head--center { margin: 0 auto 44px; text-align: center; }
.sk-head--center .sk-btns { justify-content: center; }
.sk-prose p { margin-bottom: 14px; }
.sk-prose a { text-decoration: underline; }
.sk-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.sk-btns--center { justify-content: center; }
.sk-req { color: var(--color-notice-red); }
.sk-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* spam honeypot */

/* ---------- 2. stars + rating card ---------- */
.sk-stars {
  --r: 5; display: inline-block; font-size: 17px; line-height: 1; letter-spacing: 3px;
  background: linear-gradient(90deg, var(--sk-star) calc(var(--r) / 5 * 100%), #E0E0E0 0);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.sk-rating {
  display: inline-flex; align-items: center; gap: 16px; margin-top: 30px;
  padding: 14px 24px 14px 18px; background: var(--color-white);
  border-radius: 14px; border-left: 3px solid var(--color-rose-accent);
  box-shadow: 0 12px 34px rgba(35, 31, 32, .1);
}
.sk-rating--flat { margin: 0; box-shadow: none; border: 1px solid var(--color-border); border-left-width: 1px; }
.sk-rating__g { width: 30px; height: 30px; flex: none; }
.sk-rating p { margin: 0; }
.sk-rating__score { font-size: 24px; font-weight: 500; line-height: 1.1; color: var(--sk-dark); }
.sk-rating__score span { font-size: 14px; color: var(--color-muted); margin-left: 2px; }
.sk-rating__label { font-size: 13px; color: var(--color-muted); line-height: 1.3; }
.sk-rating__div { width: 1px; align-self: stretch; background: var(--color-border); }
.sk-rating__stars .sk-stars { font-size: 15px; margin-bottom: 2px; }

/* ---------- 3. split layout + photo ---------- */
.sk-split { display: grid; gap: clamp(28px, 4vw, 72px); align-items: center; }
.sk-split--half { grid-template-columns: 1fr 1fr; }      /* 50 / 50 (page-specific ratios use their own modifier) */
.sk-photo { border-radius: 20px; overflow: hidden; height: 100%; min-height: 320px; }
.sk-photo img { width: 100%; height: 100%; object-fit: cover; }
.sk-split--reverse .sk-photo { order: 2; }               /* photo on the right on desktop, first on mobile */

/* ---------- 4. accordion (FAQ, skin concerns, terms ...) ---------- */
.sk-acc { display: grid; gap: 14px; }
.sk-acc__item { border: 1px solid var(--color-border); border-radius: 14px; background: var(--color-white); transition: background .25s ease, border-color .25s ease; }
.sk-acc__item.is-open { background: var(--color-bg-blush); border-color: #E6C9C9; }
.sk-acc__h { margin: 0; font-size: inherit; }
.sk-acc__btn {
  position: relative; display: block; width: 100%; padding: 20px 64px 20px 24px; text-align: left;
  font-family: var(--font-main); font-size: 17px; font-weight: 500; line-height: 1.4; color: var(--sk-dark);
  background: none; border: 0; cursor: pointer;
}
.sk-acc__btn::before, .sk-acc__btn::after {
  content: ""; position: absolute; right: 26px; top: 50%; width: 14px; height: 2px; background: var(--sk-dark); transition: transform .25s ease;
}
.sk-acc__btn::after { transform: rotate(90deg); }
.sk-acc__item.is-open .sk-acc__btn::after { transform: rotate(0); }
.sk-acc__panel { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.sk-acc__body { padding: 0 24px 22px; font-size: 15px; }

/* ---------- 5. forms (built-in form + Contact Form 7 + Newsletter) ---------- */
.sk-form { display: grid; gap: 14px; }
.sk-form label { font-size: 14px; font-weight: 500; color: var(--sk-dark); margin-bottom: -6px; }
.sk-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sk-form .sk-btn { justify-self: start; min-width: 160px; }
.sk-form-msg { padding: 12px 16px; border-radius: 10px; font-size: 14.5px; margin-bottom: 14px; }
.sk-form-msg--ok { background: #E7F4EA; color: #1E6B35; }
.sk-form-msg--err { background: #FDE8E8; color: #A12626; }
/* third-party form plugins inherit the same look (no extra classes needed in the plugin form) */
.sk-page .wpcf7 input[type="text"], .sk-page .wpcf7 input[type="email"], .sk-page .wpcf7 input[type="tel"], .sk-page .wpcf7 textarea,
.sk-page .tnp-field input[type="text"], .sk-page .tnp-field input[type="email"] {
  display: block; width: 100%; padding: 14px 20px; min-height: 52px; font-family: var(--font-main); font-size: 15px;
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: 12px; margin-bottom: 14px;
}
.sk-page .wpcf7-submit, .sk-page .tnp-submit {
  padding: 14px 28px; min-height: 48px; font-family: var(--font-main); font-size: 14px; font-weight: 600; text-transform: uppercase;
  color: var(--color-white); background: var(--sk-dark); border: 1px solid var(--sk-dark); border-radius: 8px; cursor: pointer;
}
.sk-page .tnp-field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--sk-dark); }

/* ---------- 6. CTA banner (image + white card)  - template-parts/components/cta-banner.php ---------- */
.sk-cta {
  position: relative; overflow: hidden; display: flex; align-items: center;
  min-height: 380px; max-width: 1480px; margin: 40px auto;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 60px);
  background: var(--color-bg-blush) center / cover no-repeat; border-radius: 24px;
}
.sk-cta__body {
  max-width: 634px; padding: 47px 37px; border-radius: 20px;
  background: rgba(255, 255, 255, .76); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
}
.sk-cta__body p { font-size: 16px; }

/* ---------- 7. booking CTA (rose overlay + form)  - template-parts/components/booking-cta.php ---------- */
.sk-bookcta {
  position: relative; z-index: 1; padding: clamp(48px, 7vw, 110px) 0;
  background: var(--color-rose-accent) center / cover no-repeat;
}
.sk-bookcta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(206, 155, 155, .85); } /* rose tint over the photo */
.sk-bookcta__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 4vw, 72px); align-items: center; }
.sk-bookcta__text p { max-width: 520px; }
.sk-bookcta__card { background: var(--color-bg-cream); border-radius: 24px; padding: clamp(24px, 4vw, 56px); }
.sk-bookcta .sk-title span { color: var(--color-heading) !important; }

/* ---------- 8. page banner (inner pages)  - template-parts/components/page-banner.php ---------- */
.sk-banner {
  position: relative; overflow: hidden;
  padding: clamp(40px, 5vw, 72px) 0 clamp(36px, 4vw, 56px);
  background: linear-gradient(115deg, #F9ECE4 0%, var(--color-bg-beige) 100%);
}
/* two faint concentric circles, top-right corner */
.sk-banner::before, .sk-banner::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; border: 1px solid rgba(138, 129, 119, .22); }
.sk-banner::before { width: 560px; height: 560px; top: -300px; right: -150px; }
.sk-banner::after { width: 400px; height: 400px; top: -220px; right: -70px; }
.sk-banner .sk-container { position: relative; z-index: 1; }
.sk-banner__title { display: block; margin: 0 0 14px; font-size: clamp(32px, 3.4vw, 48px); font-weight: 500; line-height: 1.1; color: var(--sk-dark); }
.sk-crumbs { display: flex; flex-wrap: wrap; align-items: center; margin: 0 0 30px; padding: 0; list-style: none; font-size: 14px; font-weight: 500; color: var(--sk-dark); }
.sk-crumbs a { color: var(--sk-dark); }
.sk-crumbs a:hover { color: var(--color-rose-accent); }
.sk-crumbs li + li::before { content: "/"; margin: 0 10px; }
.sk-crumbs .is-active { color: var(--color-rose-accent); }
.sk-banner .sk-rating { margin-top: 0; }

/* ---------- 8b. image cards (home treatments + Services page)  - template-parts/components/service-cards.php ---------- */
/* Flex (not grid) so an incomplete last row stays CENTERED, as on the live Services page.
   Columns are controlled by --cols: 4 desktop | 3 tablet | 2 mobile */
.sk-cards { --cols: 4; --gap: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.sk-card { margin: 0; flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
.sk-card__img { position: relative; display: block; overflow: hidden; border-radius: 16px; aspect-ratio: 395 / 465; margin-bottom: 18px; background: var(--color-bg-cream); }
.sk-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.sk-card:hover .sk-card__img img { transform: scale(1.06); }
.sk-card__icon { position: absolute; inset: 0; background: rgba(206, 155, 155, .55); opacity: 0; transition: opacity .3s ease; }
.sk-card__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  background: var(--color-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23231F20' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.sk-card:hover .sk-card__icon { opacity: 1; }
.sk-card h3 { font-size: 22px; line-height: 1.3; margin: 0 0 10px; }
.sk-card h3 a { color: var(--sk-dark); text-decoration: none; }
.sk-card h3 a:hover { color: var(--color-rose-accent); }
.sk-card p { font-size: 15px; color: var(--color-body); }
/* centered variant (Services page): smaller title, centered text */
.sk-cards--center .sk-card { text-align: center; }
.sk-cards--center .sk-card h3 { font-size: 18px; }
.sk-cards--center .sk-card p { font-size: 14px; }

/* ---------- 9. disclaimer ---------- */
.sk-disclaimer { padding: 26px 30px; background: var(--color-rose-accent); border-radius: 24px; color: var(--sk-dark); }
.sk-disclaimer p { font-size: 14px; line-height: 1.75; }

/* ---------- 10. tick list (two columns, rose circle-check) ---------- */
.sk-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; margin: 0; padding: 0; list-style: none; }
.sk-checklist li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--sk-dark); }
.sk-checklist svg { flex: none; color: var(--color-rose-accent); }

/* ======================= 11. RESPONSIVE ======================= */
@media (max-width: 991px) {
  .sk-cards { --cols: 3; }
  .sk-split--half, .sk-bookcta__grid { grid-template-columns: 1fr; }
  .sk-split--reverse .sk-photo { order: 0; }
  .sk-photo { min-height: 280px; max-height: 480px; }
}
@media (max-width: 767px) {
  .sk-cards { --cols: 2; --gap: 14px; }
  .sk-card h3, .sk-cards--center .sk-card h3 { font-size: 18px; }
  .sk-card p, .sk-cards--center .sk-card p { font-size: 13.5px; }
  .sk-rating { gap: 12px; padding: 12px 16px 12px 14px; flex-wrap: wrap; }
  .sk-btns .sk-btn { flex: 1 1 100%; }
  .sk-cta { min-height: 0; }
  .sk-cta__body { padding: 32px 22px; }
  .sk-form__row { grid-template-columns: 1fr; }
  .sk-form .sk-btn { width: 100%; justify-self: stretch; }
  .sk-acc__btn { font-size: 16px; padding: 18px 54px 18px 18px; }
  .sk-acc__body { padding: 0 18px 20px; }
  .sk-checklist { grid-template-columns: 1fr; }
  .sk-disclaimer { padding: 20px; }
}
@media (max-width: 480px) {
  .sk-rating__div { display: none; }
}
