/* ==========================================================================
   Framepath Partners: Production Extensions
   Styles that live outside the Figma design system (woop.css).
   woop.css is generated from Figma Make and should never be hand-edited.
   This file contains production-only overrides, animations, and components.
   ========================================================================== */

/* --- Focus Indicator Override (AAA: 3px instead of 2px) --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--woop-teal-light);
  outline-offset: 2px;
}

/* ==========================================================================
   Production Hero (.hero--split)
   Two-column layout with hero image and decorative gradient orbs.
   ========================================================================== */

.hero--split {
  min-height: 100vh;
  background: var(--woop-navy);
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  padding: 0;
}
.hero--split::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(10,140,150,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero--split::after {
  content: '';
  position: absolute;
  bottom: 10%; left: 5%;
  width: 30vw; height: 30vw;
  background: radial-gradient(circle, rgba(10,140,150,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero--split .hero__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 5rem 4rem 4rem;
  position: relative;
  z-index: 2;
}
.hero--split .hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--woop-teal-light);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero--split .hero__eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--woop-teal-accent);
}
.hero--split h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 2rem;
}
.hero--split h1 em,
.hero--split h1 .hero__accent {
  font-style: italic;
  color: var(--woop-teal-light);
}

/* Accent span for visual-only styling (replaces <em> where emphasis is decorative) */
.hero__accent {
  font-style: italic;
  color: var(--woop-teal-dark);
}
.section--navy .hero__accent { color: var(--woop-teal-light); }
.hero--split .hero__subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #c3c7cc;
  max-width: 480px;
  margin-bottom: 3rem;
  font-weight: 300;
  opacity: 1;
}
.hero--split .hero__actions {
  gap: 1rem;
  align-items: center;
}
.hero--split .btn--primary {
  background: var(--woop-teal);
  padding: 0.9rem 2.25rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0;
}
.hero--split .btn--primary:hover {
  box-shadow: 0 4px 16px rgba(28,197,210,0.3);
  transform: translateY(-1px);
  opacity: 1;
}
.hero--split .btn--ghost {
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding: 0;
  padding-bottom: 2px;
  background: none;
}
.hero--split .btn--ghost:hover {
  color: #fff;
  border-color: #fff;
  background: none;
}

/* Hero image, mobile-first: full-width strip above text */
.hero--split .hero__image {
  display: block;
  position: relative;
  width: 100%;
  height: 35vh;
  min-height: 200px;
  order: -1;
  overflow: hidden;
}
.hero--split .hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}
/* Override woop.css global img { height: auto } so object-fit/position work */
.hero--split .hero__image > img {
  height: 100%;
}
.hero--split .hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--woop-navy) 100%);
  pointer-events: none;
}

/* Below 1024px: single column with image strip on top */
@media (max-width: 1023px) {
  .hero--split {
    grid-template-columns: 1fr;
  }
}

/* Desktop 1024px+: image becomes absolute side panel */
@media (min-width: 1024px) {
  .hero--split .hero__image {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50%;
    height: 100%;
    min-height: 0;
    order: 0;
  }
  .hero--split .hero__image img {
    object-position: center;
  }
  .hero--split .hero__image::after {
    background: linear-gradient(to right, var(--woop-navy) 0%, rgba(15,30,53,0.6) 40%, transparent 100%);
  }
}

/* Hero scroll indicator */
.hero--split .hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 4rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero--split .hero__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 2.5rem;
  background: rgba(255,255,255,0.35);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ==========================================================================
   Section Label (production eyebrow with rule line)
   ========================================================================== */

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--woop-teal-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 1px;
  background: var(--woop-teal-dark);
}

/* Section title (production uses Playfair with em accent) */
.section-title {
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--woop-navy);
  margin-bottom: 1.5rem;
}
.section-title em {
  font-style: italic;
  color: var(--woop-teal-dark);
}

/* ==========================================================================
   Production About Section Overrides
   ========================================================================== */

.about-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--muted-foreground);
  font-weight: 300;
}
.about-body p + p { margin-top: 1.25rem; }
.about-body strong { color: var(--woop-navy); font-weight: 500; }

/* Production differentiator: uses Playfair + sand background */
.differentiator {
  border-left-width: 3px;
  border-left-color: var(--woop-teal-accent);
  background: var(--woop-sand);
}
.differentiator p {
  font-family: var(--font-family-heading);
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--woop-navy);
}

/* Production credentials: arrow bullets + rule borders */
.credentials li {
  padding-left: 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--woop-rule);
  font-size: 0.9rem;
}
.credentials li::before {
  content: '\2192';
  color: var(--woop-teal-dark);
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 1px;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  position: static;
}

/* ==========================================================================
   Animations
   ========================================================================== */

/* Fade-up on scroll, only hidden when JS is confirmed available */
.js .fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero scroll indicator pulse */
@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ==========================================================================
   Success Page Components
   ========================================================================== */

.success-page {
  background: var(--woop-navy);
  color: #fff;
}
.success-page main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}
.success-page main::before {
  content: '';
  position: absolute;
  top: -30%; right: -15%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(10,140,150,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.success-card {
  text-align: center;
  max-width: 520px;
  position: relative;
  z-index: 1;
}
.success-check {
  width: 64px;
  height: 64px;
  border: 2px solid var(--woop-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  animation: fadeScale 0.5s ease forwards;
}
.success-check svg {
  width: 28px;
  height: 28px;
  stroke: var(--woop-teal-light);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: drawCheck 0.4s 0.3s ease forwards;
}
@keyframes fadeScale {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}
.success-heading {
  font-family: var(--font-family-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.5s 0.2s ease both;
}
.success-heading em {
  font-style: italic;
  color: var(--woop-teal-light);
}
.success-body {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.75);
  font-weight: 300;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.5s 0.35s ease both;
}
.success-link {
  display: inline-block;
  background: var(--woop-teal);
  color: #fff;
  padding: 0.9rem 2.25rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
  animation: fadeUp 0.5s 0.5s ease both;
}
.success-link:hover {
  box-shadow: 0 4px 16px rgba(28,197,210,0.3);
  transform: translateY(-1px);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Responsive Overrides (production breakpoints)
   ========================================================================== */

@media (max-width: 900px) {
  .hero--split .hero__left {
    padding: 2rem 1.5rem 3rem;
  }
  .hero--split .hero__eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
  }

  /* Success page */
  .success-page footer {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* ==========================================================================
   Form Focus Override (resolve woop.css :focus vs :focus-visible conflict)
   ========================================================================== */

.form-input:focus,
.form-textarea:focus {
  outline: 3px solid var(--woop-teal-light);
  outline-offset: 2px;
}

/* ==========================================================================
   Footer Contrast Fix (AAA override, woop.css footer text is ~3.3:1)
   ========================================================================== */

.footer {
  /* AAA override: woop.css default var(--woop-footer) #080f1a produced 6.74:1
     against #8a9ab5 text, just short of the 7:1 WCAG 2.2 AAA minimum. This
     slightly darker background achieves ~7.14:1. */
  background: #020914;
}
.footer h3 {
  color: #fff;
}
.footer__links a,
.footer__brand p,
.footer__bottom p,
.footer__bottom-links a,
.footer__bottom-links span,
.footer__social a {
  color: #8a9ab5;
}
.footer__links a:hover,
.footer__bottom-links a:hover,
.footer__social a:hover {
  color: #fff;
}

/* Service card numbers (decorative but must still pass AAA large text) */
.service-card__num {
  color: #71767c;
}

/* Form placeholder contrast on sand background */
.form-input::placeholder,
.form-textarea::placeholder {
  color: #5c6370;
}

/* ==========================================================================
   Hero subtitle solid color override
   woop.css applies opacity: 0.9 which prevents pa11y from computing contrast.
   This provides the equivalent solid color (90% white over navy = #e7e9eb)
   so accessibility scanning works.
   ========================================================================== */

.hero__subtitle {
  color: #e7e9eb;
  opacity: 1;
}

/* ==========================================================================
   Hero Ghost Link (proper class instead of inline styles)
   ========================================================================== */

.hero__ghost-link {
  color: #c3c7cc;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255,255,255,0.6);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.hero__ghost-link:hover {
  color: #fff;
  border-color: #fff;
}

/* ==========================================================================
   Reduced Motion (WCAG 2.3.3 Level AAA)
   ========================================================================== */

/* ==========================================================================
   Cookie Consent Banner
   Uses design system tokens: --woop-navy, --woop-teal, --primary-foreground.
   ========================================================================== */

#fp-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--woop-navy);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
#fp-consent-banner.fp-consent--visible {
  transform: translateY(0);
}
.fp-consent__inner {
  max-width: var(--container-lg);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
#fp-consent-text {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}
#fp-consent-text a {
  color: var(--woop-teal-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}
#fp-consent-text a:hover {
  color: #fff;
}
.fp-consent__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.fp-consent__btn {
  font-family: var(--font-family);
  font-size: 0.8125rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.625rem 1.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.fp-consent__btn--accept {
  background: var(--woop-teal);
  color: var(--primary-foreground);
}
.fp-consent__btn--accept:hover {
  box-shadow: 0 4px 12px rgba(28,197,210,0.25);
  transform: translateY(-1px);
}
.fp-consent__btn--decline {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.25);
}
.fp-consent__btn--decline:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.fp-consent__btn:focus-visible {
  outline: 3px solid var(--woop-teal-light);
  outline-offset: 2px;
}

/* Cookie Settings footer button (styled as a link) */
.footer__cookie-btn {
  background: none;
  border: none;
  font-family: var(--font-family);
  font-size: 0.875rem;
  color: #8a9ab5;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.footer__cookie-btn:hover {
  color: #fff;
}
.footer__cookie-btn:focus-visible {
  outline: 3px solid var(--woop-teal-light);
  outline-offset: 2px;
}

@media (min-width: 640px) {
  .fp-consent__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Reduced Motion (WCAG 2.3.3 Level AAA)
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }

  .js .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .success-check,
  .success-check svg,
  .success-heading,
  .success-body,
  .success-link {
    animation: none;
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
