/*
 * CCWC Luxury Tech experience
 * Shared geometric pattern (no wavy lines) and restrained motion across public pages.
 * Uses only the brand's existing purple, pink and white styling.
 * Private /crm intentionally excluded.
 */

/* The approved, light geometric pattern now runs through the public site. */
.ccwc-luxury-page {
  background-color: #fff;
  background-image:
    linear-gradient(180deg, rgb(255 255 255 / .73), rgb(255 255 255 / .81)),
    url("/ccwc-tech-pattern.svg");
  background-position: center center, center top;
  background-repeat: no-repeat, repeat-y;
  background-size: 100% 100%, min(1440px, 100vw) 980px;
}

/* Inner pages are narrower; continue the visual softly into the outside gutters. */
body:has(main.ccwc-luxury-page) {
  background-color: #fff;
  background-image:
    linear-gradient(180deg, rgb(255 255 255 / .83), rgb(255 255 255 / .91)),
    url("/ccwc-tech-pattern.svg");
  background-position: center center, center top;
  background-repeat: no-repeat, repeat-y;
  background-size: 100% 100%, min(1440px, 100vw) 980px;
}

/* Retain the pale sectional rhythm, but weave the pattern in as a faint layer. */
.ccwc-luxury-page > .pale-band,
.ccwc-luxury-page > .audit-band {
  background-color: var(--secondary);
  background-image:
    linear-gradient(116deg, rgb(250 247 255 / .82), rgb(255 248 253 / .85)),
    url("/ccwc-tech-pattern.svg");
  background-repeat: no-repeat, no-repeat;
  background-position: center, center center;
  background-size: cover, cover;
}

/* Cover the focused, email-campaign funnel from the first screen to the results.
   The existing backdrop already spans the full viewport behind the narrow form. */
.ccwc-luxury-capture.ccwc-capture-main--pattern::before {
  opacity: .75;
}

/* Carry a trace of the geometric pattern onto the dark footer without
   sacrificing the white logo or link contrast. */
.site-footer.ccwc-site-footer {
  position: relative;
  isolation: isolate;
}
.site-footer.ccwc-site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("/ccwc-tech-pattern.svg");
  background-position: center top;
  background-size: min(1440px, 100vw) auto;
  background-repeat: repeat-y;
  opacity: .09;
  pointer-events: none;
}
.site-footer.ccwc-site-footer > .ccwc-footer-shell {
  position: relative;
  z-index: 1;
}

/* Give actual call-to-action buttons a highlight sweep on mouse or keyboard focus.
   Decorative overlay does not block clicks and leaves existing gradients intact. */
:is(.ccwc-luxury-page, .ccwc-luxury-capture) :is(
  a.bg-primary,
  button.bg-primary,
  .hero-buttons > a:first-child,
  .final-cta > a,
  .lead-form button[type="submit"]
),
.site-header .header-cta,
.ccwc-site-footer .ccwc-footer-newsletter-controls button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
:is(.ccwc-luxury-page, .ccwc-luxury-capture) :is(
  a.bg-primary,
  button.bg-primary,
  .hero-buttons > a:first-child,
  .final-cta > a,
  .lead-form button[type="submit"]
)::after,
.site-header .header-cta::after,
.ccwc-site-footer .ccwc-footer-newsletter-controls button::after {
  content: "";
  position: absolute;
  top: -60%;
  bottom: -60%;
  left: -65%;
  width: 37%;
  transform: skewX(-20deg);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgb(255 255 255 / .10) 24%,
    rgb(255 255 255 / .54) 51%,
    rgb(255 255 255 / .11) 76%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}
:is(.ccwc-luxury-page, .ccwc-luxury-capture) :is(
  a.bg-primary,
  button.bg-primary,
  .hero-buttons > a:first-child,
  .final-cta > a,
  .lead-form button[type="submit"]
):focus-visible,
.site-header .header-cta:focus-visible,
.ccwc-site-footer .ccwc-footer-newsletter-controls button:focus-visible {
  outline: 3px solid var(--ccwc-fuchsia);
  outline-offset: 3px;
}

/* Small directional affordance on service links and selected actions. */
.ccwc-luxury-page .ccwc-service-link svg,
.ccwc-luxury-page .text-link svg,
.ccwc-site-footer .ccwc-footer-contact-cta svg {
  transition: transform .24s ease;
}
.ccwc-luxury-page .ccwc-service-link:hover svg,
.ccwc-luxury-page .ccwc-service-link:focus-visible svg,
.ccwc-luxury-page .text-link:hover svg,
.ccwc-site-footer .ccwc-footer-contact-cta:hover svg {
  transform: translateX(3px);
}

/* Touch devices get the clean static layout rather than pseudo-hover effects. */
@media (hover: hover) and (pointer: fine) {
  .ccwc-luxury-page :is(a.border-input, button.border-input):hover,
  .ccwc-luxury-capture :is(a.border-input, button.border-input):hover {
    border-color: var(--ccwc-purple);
    box-shadow: 0 8px 24px oklch(0.54 0.15 315 / .12);
  }
  .ccwc-luxury-page :is(.ccwc-stage, .ccwc-map-card, .pain-item, .process-step, .dimension) {
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  }
  .ccwc-luxury-page :is(.ccwc-stage, .ccwc-map-card, .pain-item, .process-step, .dimension):hover {
    transform: translateY(-3px);
    border-color: oklch(0.85 0.062 315);
    box-shadow: 0 14px 34px oklch(0.50 0.11 310 / .08);
  }
}

@keyframes ccwc-shine-sweep {
  from { left: -65%; }
  to { left: 145%; }
}
@keyframes ccwc-gentle-arrival {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes ccwc-dashboard-hover {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  50% { transform: translate3d(0, -9px, 0) rotate(-1.35deg); }
}
@keyframes ccwc-card-hover-one {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(3deg); }
  50% { transform: translate3d(0, -8px, 0) rotate(3.7deg); }
}
@keyframes ccwc-card-hover-two {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(2deg); }
  50% { transform: translate3d(0, 7px, 0) rotate(1.3deg); }
}
@keyframes ccwc-ambient-breathe {
  0%, 100% { opacity: .74; transform: rotate(-5deg) scale(1); }
  50% { opacity: 1; transform: rotate(-5deg) scale(1.025); }
}

/* Motion is a progressive enhancement. All content stays readable without it. */
@media (prefers-reduced-motion: no-preference) {
  :is(.ccwc-luxury-page, .ccwc-luxury-capture) :is(
    a.bg-primary,
    button.bg-primary,
    .hero-buttons > a:first-child,
    .final-cta > a,
    .lead-form button[type="submit"]
  ):is(:hover, :focus-visible)::after,
  .site-header .header-cta:is(:hover, :focus-visible)::after,
  .ccwc-site-footer .ccwc-footer-newsletter-controls button:is(:hover, :focus-visible)::after {
    animation: ccwc-shine-sweep .72s cubic-bezier(.18,.57,.34,1) both;
  }

  .ccwc-luxury-page .hero-copy > :is(.eyebrow, h1, .hero-description, .hero-buttons, .hero-trust) {
    animation: ccwc-gentle-arrival .72s cubic-bezier(.2,.7,.25,1) both;
  }
  .ccwc-luxury-page .hero-copy > .eyebrow { animation-delay: .06s; }
  .ccwc-luxury-page .hero-copy > h1 { animation-delay: .14s; }
  .ccwc-luxury-page .hero-copy > .hero-description { animation-delay: .24s; }
  .ccwc-luxury-page .hero-copy > .hero-buttons { animation-delay: .33s; }
  .ccwc-luxury-page .hero-copy > .hero-trust { animation-delay: .43s; }

  .ccwc-luxury-page .hero > .report-scene {
    animation: ccwc-gentle-arrival .9s cubic-bezier(.2,.7,.25,1) .22s both;
  }
  /* Hero-only: don't animate the compact report inside the body sections. */
  .ccwc-luxury-page .hero .report-dashboard {
    animation: ccwc-dashboard-hover 7.4s ease-in-out 1.1s infinite;
  }
  .ccwc-luxury-page .hero .floating-card.opportunity {
    animation: ccwc-card-hover-one 6s ease-in-out 1.15s infinite;
  }
  .ccwc-luxury-page .hero .floating-card.clarity {
    animation: ccwc-card-hover-two 6.8s ease-in-out 1.55s infinite;
  }
  .ccwc-luxury-page .hero .report-scene::before {
    animation: ccwc-ambient-breathe 9s ease-in-out 1.2s infinite;
  }

  .ccwc-luxury-page .ccwc-page-hero > :is(.back-link, .eyebrow, h1, .section-intro, .ccwc-hero-actions, .hero-trust) {
    animation: ccwc-gentle-arrival .65s ease-out both;
  }
  .ccwc-luxury-page .ccwc-page-hero > h1 { animation-delay: .1s; }
  .ccwc-luxury-page .ccwc-page-hero > .section-intro { animation-delay: .19s; }
  .ccwc-luxury-page .ccwc-page-hero > .ccwc-hero-actions { animation-delay: .28s; }

  .ccwc-luxury-capture .ccwc-capture-intro > :is(.eyebrow, h1, p, .ccwc-capture-trust, button) {
    animation: ccwc-gentle-arrival .62s ease-out both;
  }
  .ccwc-luxury-capture .ccwc-capture-intro > h1 { animation-delay: .10s; }
  .ccwc-luxury-capture .ccwc-capture-intro > p { animation-delay: .18s; }
  .ccwc-luxury-capture .ccwc-capture-intro > button { animation-delay: .25s; }
}

@media (max-width: 700px) {
  .ccwc-luxury-page,
  body:has(main.ccwc-luxury-page) {
    background-image:
      linear-gradient(180deg, rgb(255 255 255 / .77), rgb(255 255 255 / .88)),
      url("/ccwc-tech-pattern-mobile.svg");
    background-size: 100% 100%, min(500px, 100vw) 790px;
  }
  .ccwc-luxury-page > .pale-band,
  .ccwc-luxury-page > .audit-band {
    background-image:
      linear-gradient(115deg, rgb(250 247 255 / .83), rgb(255 248 253 / .89)),
      url("/ccwc-tech-pattern-mobile.svg");
    background-size: cover, cover;
  }
  .site-footer.ccwc-site-footer::before {
    background-image: url("/ccwc-tech-pattern-mobile.svg");
    background-size: min(500px, 100vw) auto;
    opacity: .07;
  }
}

/* Respect users who request fewer animations. No hidden content or shifting CTAs. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .ccwc-luxury-page .hero .report-dashboard { animation: none !important; transform: rotate(-2deg); }
  .ccwc-luxury-page .hero .floating-card.opportunity { animation: none !important; transform: rotate(3deg); }
  .ccwc-luxury-page .hero .floating-card.clarity { animation: none !important; transform: rotate(2deg); }
  .ccwc-luxury-page .hero .report-scene::before { animation: none !important; transform: rotate(-5deg); }
  .ccwc-luxury-page .hero-copy > *,
  .ccwc-luxury-page .ccwc-page-hero > *,
  .ccwc-luxury-capture .ccwc-capture-intro > * {
    animation: none !important;
    opacity: 1 !important;
  }
  .ccwc-luxury-page .ccwc-service-link svg,
  .ccwc-luxury-page .text-link svg,
  .ccwc-site-footer .ccwc-footer-contact-cta svg,
  .ccwc-luxury-page :is(.ccwc-stage, .ccwc-map-card, .pain-item, .process-step, .dimension) {
    transition: none !important;
    transform: none !important;
  }
}
@media print {
  .ccwc-luxury-page,
  .ccwc-luxury-capture,
  body:has(main.ccwc-luxury-page) {
    background-image: none !important;
    background-color: white !important;
  }
  .site-footer.ccwc-site-footer::before { display: none; }
}
