/* ============================================================
   Parwan — Rich creative visual layer · wave198
   Gold + charcoal · decorative · professional
   Load LAST
   ============================================================ */

:root {
  --cr-gold: #C9A86E;
  --cr-gold-deep: #B89558;
  --cr-gold-soft: #F5F0E6;
  --cr-ink: #2D3238;
  --cr-muted: #6B7280;
  --cr-bg: #F0F2F5;
  --cr-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Global creative texture ---- */
body.cr-ready {
  background-color: var(--cr-bg);
}

body.cr-ready::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    radial-gradient(rgba(201, 168, 110, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Decorative blobs (injected by JS) */
.cr-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.cr-blob--gold {
  background: rgba(201, 168, 110, 0.22);
}

.cr-blob--soft {
  background: rgba(232, 234, 237, 0.5);
}

/* Section frame marker */
.cr-section {
  position: relative;
  overflow: hidden;
}

.cr-section > .container,
.cr-section > .pw-rehab-trust__grid,
.cr-section .pw-salon-hero__viewport {
  position: relative;
  z-index: 1;
}

/* Gold corner accents */
.cr-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.cr-corners::before,
.cr-corners::after {
  content: "";
  position: absolute;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(201, 168, 110, 0.25);
  opacity: 0;
  transition: opacity 0.8s var(--cr-ease);
}

.cr-section.cr-in .cr-corners::before,
.cr-section.cr-in .cr-corners::after {
  opacity: 1;
}

.cr-corners::before {
  top: 24px;
  left: 24px;
  border-right: none;
  border-bottom: none;
}

.cr-corners::after {
  bottom: 24px;
  right: 24px;
  border-left: none;
  border-top: none;
}

/* ---- Creative section headers ---- */
.cr-head {
  position: relative;
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 52px);
}

.cr-head__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cr-gold-deep);
  margin-bottom: 14px;
}

.cr-head__label::before,
.cr-head__label::after {
  content: "";
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cr-gold));
}

.cr-head__label::after {
  background: linear-gradient(90deg, var(--cr-gold), transparent);
}

.cr-head__title {
  margin: 0;
  font-family: "Libre Baskerville", "Fraunces", Georgia, serif;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--cr-ink);
}

.cr-head__title em,
.cr-head__title .cr-gold {
  font-style: italic;
  background: linear-gradient(135deg, var(--cr-gold-deep), #E8DCC4, var(--cr-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cr-head__lead {
  max-width: 560px;
  margin: 16px auto 0;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--cr-muted);
}

/* Enhance existing labels */
.pw-sl-label,
.pw-news-pro__label,
.pw-net-pro__kicker {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
}

.pw-sl-label::before,
.pw-news-pro__label::before {
  content: "";
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cr-gold));
  flex-shrink: 0;
}

.pw-sl-label--center::before,
.pw-sl-label--center::after,
.pw-news-pro__label::after {
  content: "";
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--cr-gold), transparent);
  flex-shrink: 0;
}

.pw-sl-title em,
.pw-ta-line--gold {
  background: linear-gradient(135deg, var(--cr-gold-deep), #D4BC8A);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Hero creative frame ---- */
.pw-salon-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(201, 168, 110, 0.12) 0, transparent 8%, transparent 92%, rgba(201, 168, 110, 0.08) 100%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(201, 168, 110, 0.15), transparent 55%);
}

.pw-salon-hero__title em {
  background: linear-gradient(135deg, #E8DCC4, var(--cr-gold), #F5F0E6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}

.pw-salon-hero__inner::before {
  content: "";
  position: absolute;
  left: clamp(20px, 4vw, 60px);
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: min(120px, 20vh);
  background: linear-gradient(180deg, transparent, var(--cr-gold), transparent);
  opacity: 0.7;
}

/* Hero spotlight (JS moves it) */
.cr-hero-spot {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 110, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
}

/* ---- Trust strip creative cards ---- */
.pw-rehab-trust--pro .pw-rehab-trust__item {
  position: relative;
  overflow: hidden;
}

.pw-rehab-trust--pro .pw-rehab-trust__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cr-gold-deep), var(--cr-gold), var(--cr-gold-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--cr-ease);
}

.pw-rehab-trust--pro .pw-rehab-trust__item:hover::before {
  transform: scaleX(1);
}

.pw-rehab-trust--pro .pw-rehab-trust__icon {
  background: linear-gradient(145deg, rgba(201, 168, 110, 0.15), rgba(245, 240, 230, 0.8)) !important;
  border-radius: 12px !important;
}

/* ---- Program cards — creative gradient border ---- */
.pw-pro-program {
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(201, 168, 110, 0.15), rgba(232, 234, 237, 0.8), rgba(201, 168, 110, 0.2)) border-box !important;
  border: 1px solid transparent !important;
}

.pw-pro-program::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(201, 168, 110, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.pw-pro-program:hover::after {
  opacity: 1;
}

.pw-pro-program__tag {
  background: linear-gradient(135deg, rgba(201, 168, 110, 0.14), rgba(245, 240, 230, 0.9)) !important;
  border: 1px solid rgba(201, 168, 110, 0.2);
}

/* ---- About creative visual ---- */
.pw-sl-about--pro .pw-sl-about__visual {
  position: relative;
}

.pw-sl-about--pro .pw-sl-about__visual::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(201, 168, 110, 0.2);
  border-radius: 4px;
  pointer-events: none;
  z-index: 0;
}

.pw-sl-about__highlights li {
  position: relative;
  padding-left: 28px !important;
}

.pw-sl-about__highlights li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--cr-gold);
  font-size: 0.65rem;
  top: 0.35em;
}

/* ---- Network creative ---- */
.pw-net-pro {
  background:
    linear-gradient(180deg, #fff 0%, var(--cr-bg) 100%) !important;
}

.pw-net-pro__heading {
  position: relative;
}

.pw-net-pro__photo {
  box-shadow:
    0 20px 50px rgba(45, 50, 56, 0.12),
    0 0 0 1px rgba(201, 168, 110, 0.15) !important;
}

.pw-net-pro__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 168, 110, 0.08), transparent 50%);
  pointer-events: none;
  border-radius: inherit;
}

/* ---- News cards creative ---- */
.pw-news-pro {
  background:
    linear-gradient(180deg, var(--cr-bg) 0%, #fff 50%, var(--cr-bg) 100%) !important;
}

.pw-news-pro__card {
  position: relative;
}

.pw-news-pro__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cr-gold-deep), var(--cr-gold), var(--cr-gold-deep));
  z-index: 3;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--cr-ease);
}

.pw-news-pro__card:hover::before {
  transform: scaleX(1);
}

.pw-news-pro__date {
  border-radius: 8px 0 12px 0 !important;
  background: linear-gradient(135deg, var(--cr-gold-deep), var(--cr-gold)) !important;
}

/* ---- Banner creative (skip fixed salon banner — restored in home-banner-fixed) ---- */
.pw-sl-banner:not(.pw-sl-banner--fixed) .pw-sl-banner__frame {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(12px);
}

.pw-sl-banner:not(.pw-sl-banner--fixed) .pw-sl-banner__frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201, 168, 110, 0.35);
  pointer-events: none;
}

.pw-sl-banner:not(.pw-sl-banner--fixed) .pw-sl-banner__title em {
  display: block;
  font-style: italic;
  background: linear-gradient(90deg, #E8DCC4, var(--cr-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Founder creative ---- */
.pw-sl-founder__card {
  position: relative;
}

.pw-sl-founder__photo {
  position: relative;
}

.pw-sl-founder__photo::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(201, 168, 110, 0.3);
  border-radius: 4px;
  z-index: -1;
}

.pw-sl-founder__quote {
  position: relative;
  padding-left: 48px !important;
}

.pw-sl-founder__quote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -8px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: rgba(201, 168, 110, 0.35);
}

/* ---- Testimonials creative ---- */
.pw-sl-testimonials {
  background: linear-gradient(135deg, var(--cr-ink) 0%, #374151 100%) !important;
  position: relative;
  overflow: hidden;
}

.pw-sl-testimonials::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(201, 168, 110, 0.12), transparent 65%);
  pointer-events: none;
}

.pw-sl-testimonials blockquote::before {
  content: "\201C";
  display: block;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 3rem;
  color: rgba(201, 168, 110, 0.4);
  line-height: 1;
  margin-bottom: 8px;
}

/* ---- Contact creative ---- */
.pw-sl-contact {
  background: #fff !important;
}

.pw-sl-contact__form {
  position: relative;
  padding: 28px !important;
  background: var(--cr-bg);
  border-radius: 16px;
  border: 1px solid var(--cr-line, #E8EAED);
}

.pw-sl-contact__form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 3px;
  background: linear-gradient(90deg, var(--cr-gold-deep), var(--cr-gold), var(--cr-gold-deep));
  border-radius: 0 0 4px 4px;
}

.pw-sl-contact__map,
.pw-sl-contact iframe {
  border-radius: 16px !important;
  box-shadow: 0 16px 48px rgba(45, 50, 56, 0.1) !important;
  border: 1px solid rgba(201, 168, 110, 0.15) !important;
}

/* ---- Buttons creative ---- */
.pw-sl-btn,
.pw-sl-btn--outline-dark {
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.pw-sl-btn::after,
.pw-header__cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.25) 50%, transparent 58%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  z-index: -1;
}

.pw-sl-btn:hover::after,
.pw-header__cta:hover::after {
  transform: translateX(120%);
}

/* ---- Footer creative top line ---- */
.site-footer.pw-footer-pro::before {
  height: 4px !important;
  background: linear-gradient(90deg, var(--cr-gold-deep), var(--cr-gold), #E8DCC4, var(--cr-gold), var(--cr-gold-deep)) !important;
  background-size: 200% 100% !important;
  animation: crLineFlow 8s linear infinite;
}

@keyframes crLineFlow {
  to { background-position: 200% 0; }
}

/* ---- Inner pages creative ---- */
.page-inner .pj-journal-hero {
  position: relative;
  overflow: hidden;
}

.page-inner .pj-journal-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cr-gold-deep), var(--cr-gold), var(--cr-gold-deep));
}

.page-inner .card,
.page-inner .story-card {
  border-top: 3px solid transparent !important;
  border-image: linear-gradient(90deg, var(--cr-gold-deep), var(--cr-gold)) 1 !important;
}

/* Section divider between home sections */
.page-home .pw-sl-main > section + section::before {
  content: "";
  display: block;
  width: min(120px, 30%);
  height: 3px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--cr-gold), transparent);
  opacity: 0.5;
}

.page-home .pw-sl-main > section:first-child::before {
  display: none;
}

/* Scroll progress enhanced */
.pw-scroll-progress {
  height: 4px !important;
  box-shadow: 0 0 16px rgba(201, 168, 110, 0.5) !important;
}

@media (max-width: 768px) {
  .pw-salon-hero__inner::before {
    display: none;
  }

  .cr-corners::before,
  .cr-corners::after {
    width: 28px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer.pw-footer-pro::before {
    animation: none !important;
  }
}
