/* ────────────────────────────────────────────────────────────────
 * Westside Parent Page
 * Reuses About hero (.wad-about__hero) and CTA band (.wad-about__contact-band).
 * Adds: body shell, content sections (alternating image/text),
 *       auto-rotating gallery, "Booked your appointment?" cards,
 *       leaf embellishments.
 * ──────────────────────────────────────────────────────────────── */

.wad-parent {
  background: #FFFEF7;
  color: #000;
  font-family: var(--font-body, Montserrat, "Avenir Next", sans-serif);
  --wad-shell: 1290px;
  --wad-bg-light: #fffef7;
  --wad-bg-medium: #fffcec;  --wad-gold: #c0a971;
  --wad-gold-dark: #8a7346;
  --wad-ink: #111111;
  --wad-border: rgba(192, 169, 113, 0.55);
  --wad-header-offset: clamp(7.5rem, 10vw, 9.75rem);
}

/* Make wad-care render correctly when placed outside .wad-home */
.wad-parent__cta {
  --wad-shell: 1290px;
}

/* ── Body shell ─────────────────────────────────────────────── */
.wad-parent__body {
  position: relative;
  padding: 96px 0;
  /* No overflow:hidden — would break position:sticky on section media. */
}

.wad-parent__shell {
  width: min(1290px, 100% - 48px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 96px;
}

/* ── Leaf embellishments — match homepage style (size + angles) ── */
.wad-parent__leaf {
  position: absolute;
  width: 792.561px;
  height: 1306.052px;
  background: url('/wp-content/uploads/2026/05/leaf-embelishment.webp') center / 100% 100% no-repeat;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

/* Top leaf mirrors the homepage copyband leaf */
.wad-parent__leaf--top {
  top: -200px;
  right: -120px;
  transform: rotate(-31deg);
}

/* Bottom leaf mirrors the homepage story leaf */
.wad-parent__leaf--bottom {
  bottom: -60px;
  left: -280px;
  transform: rotate(34deg) scaleX(-1);
}

.wad-parent__body > .wad-parent__shell {
  position: relative;
  z-index: 1;
}

/* ── Intro section (H1 title + intro copy sit above the first H2,
   sharing the same sticky image column so the image starts at H1) ── */
.wad-parent__section--intro .wad-parent__h2--intro {
  margin-bottom: 8px;
}

.wad-parent__section--intro .wad-parent__h2:not(.wad-parent__h2--intro) {
  margin-top: 56px;
}

/* ── Sections ──────────────────────────────────────────────── */
.wad-parent__section {
  display: grid;
  gap: 60px;
  align-items: stretch; /* cells fill row height so sticky media can travel the full section */
}

.wad-parent__section--text {
  grid-template-columns: 1fr;
  max-width: 820px;
  margin-inline: auto;
  width: 100%;
}

.wad-parent__section--with-image {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
}

.wad-parent__section--image-left {
  grid-template-columns: minmax(280px, 520px) minmax(0, 1fr);
}

.wad-parent__section--image-left .wad-parent__section-media {
  order: 0;
}

.wad-parent__section--image-left .wad-parent__section-copy {
  order: 1;
}

.wad-parent__section--image-right .wad-parent__section-media {
  order: 1;
}

.wad-parent__section--image-right .wad-parent__section-copy {
  order: 0;
}

.wad-parent__section-copy > * + * {
  margin-top: 24px;
}

.wad-parent__sun {
  display: block;
  width: 110px;
  height: auto;
  margin-bottom: 8px;
}

/* Typography from Figma */
.wad-parent__h2 {
  font-family: 'Tenor Sans', serif;
  font-weight: 400;
  font-size: clamp(26px, 2.4vw, 32.44px);
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #000;
  margin: 0;
}

.wad-parent__h3 {
  font-family: 'Tenor Sans', serif;
  font-weight: 400;
  font-size: clamp(22px, 2vw, 28.83px);
  line-height: 1.3;
  text-transform: uppercase;
  color: #000;
  margin: 32px 0 0;
}

.wad-parent__h4 {
  font-family: 'Tenor Sans', serif;
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 25.63px);
  line-height: 1.1;
  text-transform: uppercase;
  color: #000;
  margin: 28px 0 0;
}

.wad-parent__h5 {
  font-family: 'Tenor Sans', serif;
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 22.78px);
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #000;
  margin: 24px 0 0;
}

.wad-parent__h6 {
  font-family: 'Tenor Sans', serif;
  font-weight: 400;
  font-size: clamp(16px, 1.4vw, 20.25px);
  line-height: 1.3;
  text-transform: uppercase;
  color: #000;
  margin: 24px 0 0;
}

.wad-parent__section-copy p {
  font-family: var(--font-body, Montserrat, "Avenir Next", sans-serif);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: #000;
  margin: 16px 0 0;
}

.wad-parent__section-copy a {
  color: #8A7346;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.wad-parent__section-copy a:hover {
  color: #C0A971;
}

/* Section media — cell stretches the full section height; inner element
   sticks at top so the image travels all the way to the section's end. */
.wad-parent__section-media {
  position: relative;
  width: 100%;
  height: 100%;
  align-self: stretch;
}

.wad-parent__section-media-inner {
  position: sticky;
  top: clamp(180px, 20vh, 220px);
  width: 100%;
  margin-bottom: 64px;
  border-radius: 4px;
  overflow: hidden;
}

.wad-parent__section-media-inner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 520 / 719;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.wad-parent__section-media-inner:hover img {
  transform: scale(1.04);
}

.wad-parent__section-media-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(192, 169, 113, 0.0);
  pointer-events: none;
  transition: border-color 0.4s ease;
}

.wad-parent__section-media-inner:hover::after {
  border-color: rgba(192, 169, 113, 0.5);
}

/* ── Gallery ──────────────────────────────────────────────── */
.wad-parent__gallery-mount {
  width: 100%;
}

.wad-parent__gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wad-parent__gallery-feature {
  position: relative;
  width: 100%;
  aspect-ratio: 1290 / 600;
  border-radius: 12px;
  overflow: hidden;
  background: #FFFCEC;
}

.wad-parent__gallery-feature-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 1.6s ease;
}

.wad-parent__gallery-feature-img.is-active {
  opacity: 1;
  transform: scale(1);
}

.wad-parent__gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
}

.wad-parent__gallery-thumb {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  aspect-ratio: 189 / 160;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.wad-parent__gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.3s ease;
  filter: saturate(0.9) brightness(0.92);
}

.wad-parent__gallery-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: border-color 0.3s ease;
  pointer-events: none;
}

.wad-parent__gallery-thumb:hover img,
.wad-parent__gallery-thumb:focus-visible img {
  transform: scale(1.06);
  filter: saturate(1) brightness(1);
}

.wad-parent__gallery-thumb.is-active::after {
  border-color: #C0A971;
}

.wad-parent__gallery-thumb.is-active img {
  filter: saturate(1) brightness(1);
}

.wad-parent__gallery-thumb:focus-visible {
  box-shadow: 0 0 0 3px rgba(192, 169, 113, 0.45);
}

/* ── Booked Your Appointment? ─────────────────────────────── */
.wad-parent__appointment {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
}

.wad-parent__appointment .wad-parent__sun {
  margin: 0;
}

.wad-parent__appointment-title {
  margin: 0;
}

.wad-parent__appointment-intro {
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
  color: #000;
  max-width: 520px;
}

.wad-parent__appointment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
  margin-top: 8px;
}

.wad-parent__appointment-card {
  position: relative;
  padding: 16px;
  border: 2px solid #C0A971;
  background: transparent;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.wad-parent__appointment-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -22px rgba(138, 115, 70, 0.45);
}

.wad-parent__appointment-card-inner {
  background: #FFFCEC;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  height: 100%;
  min-height: 220px;
}

.wad-parent__appointment-icon {
  width: 74px;
  height: 55px;
  display: flex;
  align-items: center;
}

.wad-parent__appointment-icon svg {
  display: block;
  max-width: 100%;
  max-height: 100%;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wad-parent__appointment-card:hover .wad-parent__appointment-icon svg {
  transform: scale(1.08) rotate(-3deg);
}

.wad-parent__appointment-card-title {
  font-family: 'Tenor Sans', serif;
  font-weight: 400;
  font-size: 22.78px;
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #000;
  margin: 0;
}

.wad-parent__appointment-card-body {
  font-size: 16px;
  line-height: 1.7;
  color: #000;
  margin: 0;
}

.wad-parent__appointment-card-body a {
  color: #8A7346;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wad-parent__appointment-card-body a:hover {
  color: #C0A971;
}

.wad-parent .wad-parent__hero--has-video::before {
  background: none;
}

.wad-parent .wad-parent__hero .wad-about__hero-video {
  z-index: 1;
  filter: sepia(0.4) brightness(0.9) saturate(1.5) hue-rotate(-5deg);
  opacity: 1;
}

.wad-parent .wad-parent__hero--has-video .wad-about__hero-overlay {
  z-index: 2;
  background: linear-gradient(rgba(192, 169, 113, 0.4), rgba(192, 169, 113, 0.4));
}

.wad-parent .wad-parent__hero--has-video::after {
  z-index: 3;
}

.wad-parent .wad-parent__hero--has-video .wad-about__hero-title-card {
  z-index: 4;
}

/* ── Hero entrance (mirrors child page; scoped to parent only) ──────
 *
 * Parent pages do not load child-page.css, so the keyframes are
 * redeclared here. Scoping to `.wad-parent .wad-parent__hero` keeps the
 * child page (main.wad-child) untouched — it runs its own entrance.
 */
@keyframes wad-parent-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes wad-parent-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes wad-parent-hero-veil-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes wad-parent-hero-image-settle {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

.wad-parent .wad-parent__hero {
  isolation: isolate;
  overflow: hidden;
  background: none;
}

.wad-parent .wad-parent__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(192, 169, 113, 0.4), rgba(192, 169, 113, 0.4)),
    var(--wad-about-hero-image) center/cover no-repeat;
  transform-origin: 50% 50%;
  animation: wad-parent-hero-image-settle 1.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.05s both;
  pointer-events: none;
}

.wad-parent .wad-parent__hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #FFFEF7;
  animation: wad-parent-hero-veil-out 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.05s both;
  pointer-events: none;
}

.wad-parent .wad-parent__hero .wad-about__hero-title-card {
  animation: wad-parent-fade-in 0.5s ease 0.1s both;
}

.wad-parent .wad-parent__hero .wad-about__hero-title-inner {
  animation: wad-parent-fade-up 0.6s ease 0.3s both;
}

.wad-parent .wad-parent__hero .wad-about__breadcrumbs {
  animation: wad-parent-fade-up 0.5s ease 0.35s both;
}

.wad-parent .wad-parent__hero .wad-about__display,
.wad-parent .wad-parent__hero .wad-parent__display {
  animation: wad-parent-fade-up 0.65s ease 0.5s both;
}

@media (prefers-reduced-motion: reduce) {
  .wad-parent .wad-parent__hero::before,
  .wad-parent .wad-parent__hero::after,
  .wad-parent .wad-parent__hero .wad-about__hero-title-card,
  .wad-parent .wad-parent__hero .wad-about__hero-title-inner,
  .wad-parent .wad-parent__hero .wad-about__breadcrumbs,
  .wad-parent .wad-parent__hero .wad-about__display,
  .wad-parent .wad-parent__hero .wad-parent__display {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .wad-parent .wad-parent__hero::after {
    opacity: 0 !important;
  }
}

/* ── Reveal animation ─────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 980px) {
  .wad-parent__body {
    padding: 64px 0;
  }
  .wad-parent__shell {
    gap: 64px;
  }
  .wad-parent__section--with-image,
  .wad-parent__section--image-left {
    grid-template-columns: 1fr;
  }
  .wad-parent__section--image-left .wad-parent__section-media,
  .wad-parent__section--image-right .wad-parent__section-media {
    order: 0;
  }
  .wad-parent__section-media-inner {
    position: relative;
    top: 0;
  }
  .wad-parent__section--image-left .wad-parent__section-copy,
  .wad-parent__section--image-right .wad-parent__section-copy {
    order: 1;
  }
  .wad-parent__appointment-grid {
    grid-template-columns: 1fr;
  }
  .wad-parent__gallery-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
  .wad-parent__leaf {
    width: 480px;
    height: 620px;
    opacity: 0.25;
  }
}

@media (max-width: 600px) {
  .wad-parent__gallery-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }
  .wad-parent__appointment-card-inner {
    padding: 24px;
  }
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .wad-parent__gallery-feature-img,
  .wad-parent__section-media img,
  .wad-parent__appointment-card,
  .wad-parent__appointment-icon svg {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ── Service card preview text (parent-page services band only) ────── */
.wad-parent__services .wad-services__card-preview {
  margin: 8px 0 0;
  font-family: var(--font-body, Montserrat, "Avenir Next", sans-serif);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.7);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
}

/* ── Services band sits inside .wad-parent__shell (already constrained
   to min(1290, 100%-48px)). The inner .wad-home__shell would subtract
   another 48px, shrinking the carousel viewport and clipping the last
   card. Reset to 100% so card geometry matches the homepage band. ── */
.wad-parent__services .wad-home__shell {
  width: 100%;
  max-width: none;
}
