﻿/* ═══════════════════════════════════════════════════════
   ECM Theme Selector — Burgundy Theme Override
   Overrides --sage, --sage-light, --sage-pale and all
   hardcoded sage hex values when data-theme="burgundy"
   is set on <html>.
   ═══════════════════════════════════════════════════════ */

/* ── CSS variable overrides ─────────────────────────── */
:root[data-theme="burgundy"] {
  --sage:       #6B141A;
  --sage-light: #9E4D52;
  --sage-pale:  #F5E8E9;
  --mid:        #8B1A21;
  --muted:      #A05055;
}

/* ── Hero background shape (hardcoded #d4e8d8 green) ── */
[data-theme="burgundy"] .hero-bg-shape {
  background: linear-gradient(135deg, #F5E8E9 0%, #FCEAEA 100%);
}

/* ── Focus ring ─────────────────────────────────────── */
[data-theme="burgundy"] :is(a, button, input, select, textarea):focus-visible {
  outline-color: #6B141A;
}

/* ── Hover states that use hardcoded #8B1A21 ────────── */
[data-theme="burgundy"] .btn-sage:hover,
[data-theme="burgundy"] .btn-primary-lg:hover,
[data-theme="burgundy"] .woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
[data-theme="burgundy"] .package-card--popular .package-cta:hover,
[data-theme="burgundy"] .search-bar-btn:hover,
[data-theme="burgundy"] .blog-subscribe-btn:hover,
[data-theme="burgundy"] .ecm-page-content #job_package_selection .job_listing_packages_title .button:hover,
[data-theme="burgundy"] .chat-fab:hover,
[data-theme="burgundy"] .form-submit:hover,
[data-theme="burgundy"] .fp-hero-cta--primary:hover,
[data-theme="burgundy"] .fp-form-submit:hover,
[data-theme="burgundy"] .fp-cta-btn:hover,
[data-theme="burgundy"] .fp-form-wrap button[type="submit"]:hover,
[data-theme="burgundy"] .chat-text-submit:hover,
[data-theme="burgundy"] .plan-card--popular .plan-card-cta-btn:hover,
[data-theme="burgundy"] .newsletter-signup__form .wpforms-submit:hover,
[data-theme="burgundy"] .newsletter-signup__form .wpforms-submit:focus-visible {
  background: #8B1A21 !important;
  border-color: #8B1A21 !important;
}

/* ── Gradient that hardcodes #628567 as end stop ────── */
[data-theme="burgundy"] .care-card--cta {
  background: linear-gradient(160deg, #6B141A 0%, #8B1A21 100%);
}

/* ── Why-cards — hardcoded #e5eee3 sage-green background ── */
[data-theme="burgundy"] .why-card         { background: #f5dfe0; }
[data-theme="burgundy"] .why-card:hover   { background: var(--sage); }

/* ── Provider CTA section ── */
[data-theme="burgundy"] .provider-cta {
  background: linear-gradient(135deg, #FCEAEA 0%, #FDF3DC 60%, #FBE8C0 100%);
}
[data-theme="burgundy"] .provider-cta::before {
  background: radial-gradient(circle, rgba(197,155,39,0.28) 0%, transparent 70%);
}

/* ── Newsletter focus ring rgba ─────────────────────── */
[data-theme="burgundy"] .newsletter-signup__form .wpforms-submit:focus-visible {
  outline: 3px solid rgba(107, 20, 26, 0.2) !important;
}

/* ── Care card & provider card images (hardcoded sage-pale green) ── */
[data-theme="burgundy"] .care-card-img,
[data-theme="burgundy"] .provider-card-hero { background: #FCEAEA; }
[data-theme="burgundy"] .provider-card-hero--fallback { background: #F5D5D5; }

/* ── Care card hover dark flip ── */
[data-theme="burgundy"] .care-card:hover .care-card-body:not(.care-card-body--cta) {
  background: #6B141A; color: #fff;
}
[data-theme="burgundy"] .care-card:hover .care-name { color: #fff; }
[data-theme="burgundy"] .care-card:hover .care-desc { color: rgba(255,255,255,0.85); }
[data-theme="burgundy"] .care-card:hover .care-cta  { color: #C59B27; }

/* ── Provider card hover dark flip ── */
[data-theme="burgundy"] .provider-card:hover .provider-card-header,
[data-theme="burgundy"] .provider-card:hover .provider-card-body,
[data-theme="burgundy"] .provider-card:hover .provider-card-footer { background: #6B141A; color: #fff; }
[data-theme="burgundy"] .provider-card:hover .provider-card-name { color: #fff; }
[data-theme="burgundy"] .provider-card:hover .provider-card-tagline { color: rgba(255,255,255,0.85); }
[data-theme="burgundy"] .provider-card:hover .provider-card-city { color: rgba(255,255,255,0.75); }
[data-theme="burgundy"] .provider-card:hover .provider-card-arrow { color: #C59B27; }

/* ── Cross-sell band (hardcoded green gradient) ── */
[data-theme="burgundy"] .cross-sell {
  background: linear-gradient(135deg, #FCEAEA 0%, #FDF3DC 60%, #FBE8C0 100%);
}

/* ── CTA band (hardcoded dark green/charcoal) ── */
[data-theme="burgundy"] .cta-band {
  background: linear-gradient(135deg, #2A0609 0%, #5A1018 100%);
}

/* ── For-providers dark sections ── */
[data-theme="burgundy"] .fp-hero,
[data-theme="burgundy"] .fp-matters-band,
[data-theme="burgundy"] .fp-cta-band {
  background: linear-gradient(135deg, #2A0609 0%, #5A1018 100%);
}

/* ── Footer logo — gold tint on dark burgundy footer ── */
[data-theme="burgundy"] .footer-logo-image {
  filter: brightness(0) invert(1) sepia(1) brightness(0.93) saturate(0.9);
}

/* ── Footer background ──────────────────────────────── */
[data-theme="burgundy"] footer {
  background-color: #2A0609;
}

/* ── Footer link hover — #c47076 on #4D3E3A is only 2.87:1 (fail).
      Lightened to #f0b4b7 → 5.78:1 ✓                           ── */
[data-theme="burgundy"] .footer-links a:hover {
  color: #f0b4b7;
}

/* ── Logo — shift green → burgundy ── */
[data-theme="burgundy"] .nav-logo-image {
  filter: hue-rotate(222deg) saturate(1.4) brightness(0.82);
}

/* ── Visible input focus shadow ─────────────────────── */
[data-theme="burgundy"] .blog-subscribe-input:focus,
[data-theme="burgundy"] .form-field input:focus,
[data-theme="burgundy"] .form-field textarea:focus {
  box-shadow: 0 0 0 4px rgba(107, 20, 26, 0.12);
}


/* ═══════════════════════════════════════════════════════
   ECM Theme Selector — Royal Blue (Classic) Theme Override
   ═══════════════════════════════════════════════════════ */

:root[data-theme="royal"] {
  --sage:       #1E3A6E;
  --sage-light: #4A7AB8;
  --sage-pale:  #E8F0F8;
  --mid:        #2D5090;
  --muted:      #6B8FB8;
  --gold:       #C4941A;
}

[data-theme="royal"] :is(a, button, input, select, textarea):focus-visible {
  outline-color: #1E3A6E;
}

[data-theme="royal"] .btn-sage:hover,
[data-theme="royal"] .btn-primary-lg:hover,
[data-theme="royal"] .woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
[data-theme="royal"] .package-card--popular .package-cta:hover,
[data-theme="royal"] .search-bar-btn:hover,
[data-theme="royal"] .blog-subscribe-btn:hover,
[data-theme="royal"] .chat-fab:hover,
[data-theme="royal"] .form-submit:hover,
[data-theme="royal"] .fp-hero-cta--primary:hover,
[data-theme="royal"] .fp-form-submit:hover,
[data-theme="royal"] .fp-cta-btn:hover,
[data-theme="royal"] .chat-text-submit:hover,
[data-theme="royal"] .plan-card--popular .plan-card-cta-btn:hover,
[data-theme="royal"] .newsletter-signup__form .wpforms-submit:hover {
  background: #163060 !important;
  border-color: #163060 !important;
}

[data-theme="royal"] .care-card--cta {
  background: linear-gradient(160deg, #1E3A6E 0%, #2D5090 100%);
}

[data-theme="royal"] .why-card         { background: #d8ecf8; }
[data-theme="royal"] .why-card:hover   { background: var(--sage); }

[data-theme="royal"] .hero-bg-shape {
  background: linear-gradient(135deg, #E8F0F8 0%, #d0dff5 100%);
}

[data-theme="royal"] .provider-cta {
  background: linear-gradient(135deg, #E8F0F8 0%, #d8ecf8 60%, #c8ddf5 100%);
}
[data-theme="royal"] .provider-cta::before {
  background: radial-gradient(circle, rgba(74,122,184,0.25) 0%, transparent 70%);
}

[data-theme="royal"] .care-card-img,
[data-theme="royal"] .provider-card-hero { background: #E8F0F8; }
[data-theme="royal"] .provider-card-hero--fallback { background: #c8ddf5; }

[data-theme="royal"] .care-card:hover .care-card-body:not(.care-card-body--cta) {
  background: #1E3A6E; color: #fff;
}
[data-theme="royal"] .care-card:hover .care-name { color: #fff; }
[data-theme="royal"] .care-card:hover .care-desc { color: rgba(255,255,255,0.85); }
[data-theme="royal"] .care-card:hover .care-cta  { color: #C4941A; }

[data-theme="royal"] .provider-card:hover .provider-card-header,
[data-theme="royal"] .provider-card:hover .provider-card-body,
[data-theme="royal"] .provider-card:hover .provider-card-footer { background: #1E3A6E; color: #fff; }
[data-theme="royal"] .provider-card:hover .provider-card-name { color: #fff; }
[data-theme="royal"] .provider-card:hover .provider-card-tagline { color: rgba(255,255,255,0.85); }
[data-theme="royal"] .provider-card:hover .provider-card-city { color: rgba(255,255,255,0.75); }
[data-theme="royal"] .provider-card:hover .provider-card-arrow { color: #C4941A; }

[data-theme="royal"] .cross-sell {
  background: linear-gradient(135deg, #E8F0F8 0%, #d8ecf8 60%, #c8ddf5 100%);
}

[data-theme="royal"] .cta-band {
  background: linear-gradient(135deg, #0D1E3A 0%, #1E3A6E 100%);
}

[data-theme="royal"] .fp-hero,
[data-theme="royal"] .fp-matters-band,
[data-theme="royal"] .fp-cta-band {
  background: linear-gradient(135deg, #0D1E3A 0%, #1E3A6E 100%);
}

[data-theme="royal"] footer { background-color: #0D1E3A; }

[data-theme="royal"] .footer-links a:hover { color: #C4941A; }

[data-theme="royal"] .nav-logo-image {
  filter: hue-rotate(195deg) saturate(1.2) brightness(0.95);
}

[data-theme="royal"] .footer-logo-image {
  filter: brightness(0) invert(1) sepia(1) brightness(0.93) saturate(0.9);
}

[data-theme="royal"] .blog-subscribe-input:focus,
[data-theme="royal"] .form-field input:focus,
[data-theme="royal"] .form-field textarea:focus {
  box-shadow: 0 0 0 4px rgba(30, 58, 110, 0.12);
}


/* ═══════════════════════════════════════════════════════
   ECM Theme Selector — Ocean (Navy Blue) Theme Override
   ═══════════════════════════════════════════════════════ */

:root[data-theme="ocean"] {
  --sage:       #1a4571;
  --sage-light: #6a9fd4;
  --sage-pale:  #e8f3fb;
}

[data-theme="ocean"] :is(a, button, input, select, textarea):focus-visible {
  outline-color: #1a4571;
}

[data-theme="ocean"] .btn-sage:hover,
[data-theme="ocean"] .btn-primary-lg:hover,
[data-theme="ocean"] .woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
[data-theme="ocean"] .package-card--popular .package-cta:hover,
[data-theme="ocean"] .search-bar-btn:hover,
[data-theme="ocean"] .blog-subscribe-btn:hover,
[data-theme="ocean"] .ecm-page-content #job_package_selection .job_listing_packages_title .button:hover,
[data-theme="ocean"] .chat-fab:hover,
[data-theme="ocean"] .form-submit:hover,
[data-theme="ocean"] .fp-hero-cta--primary:hover,
[data-theme="ocean"] .fp-form-submit:hover,
[data-theme="ocean"] .fp-cta-btn:hover,
[data-theme="ocean"] .fp-form-wrap button[type="submit"]:hover,
[data-theme="ocean"] .chat-text-submit:hover,
[data-theme="ocean"] .plan-card--popular .plan-card-cta-btn:hover,
[data-theme="ocean"] .newsletter-signup__form .wpforms-submit:hover,
[data-theme="ocean"] .newsletter-signup__form .wpforms-submit:focus-visible {
  background: #143661 !important;
  border-color: #143661 !important;
}

[data-theme="ocean"] .care-card--cta {
  background: linear-gradient(160deg, #1a4571 0%, #2a6098 100%);
}

/* ── Why-cards ── */
[data-theme="ocean"] .why-card         { background: #d4e9f7; }
[data-theme="ocean"] .why-card:hover   { background: var(--sage); }

/* ── Provider CTA section ── */
[data-theme="ocean"] .provider-cta {
  background: linear-gradient(135deg, var(--sage-pale) 0%, #b8d4ec 100%);
}
[data-theme="ocean"] .provider-cta::before {
  background: radial-gradient(circle, rgba(106,159,212,0.25) 0%, transparent 70%);
}

[data-theme="ocean"] .newsletter-signup__form .wpforms-submit:focus-visible {
  outline: 3px solid rgba(26, 69, 113, 0.2) !important;
}

[data-theme="ocean"] footer {
  background-color: #0f2235;
}

/* ── Logo — convert to ocean navy ── */
[data-theme="ocean"] .nav-logo-image {
  filter: brightness(0) saturate(1) invert(21%) sepia(60%) saturate(700%) hue-rotate(188deg) brightness(0.96);
}

/* ── Hardcoded burgundy overrides for Ocean ── */
[data-theme="ocean"] .cta-band {
  background: linear-gradient(135deg, #0f2235 0%, #1a4571 100%);
}
[data-theme="ocean"] .care-card:hover .care-card-body:not(.care-card-body--cta) {
  background: #1a4571;
}
[data-theme="ocean"] .provider-card:hover .provider-card-header,
[data-theme="ocean"] .provider-card:hover .provider-card-body,
[data-theme="ocean"] .provider-card:hover .provider-card-footer {
  background: #1a4571;
}
[data-theme="ocean"] .care-card-img,
[data-theme="ocean"] .provider-card-hero { background: #e8f3fb; }
[data-theme="ocean"] .provider-card-hero--fallback { background: #c5d9ec; }
[data-theme="ocean"] .cross-sell {
  background: linear-gradient(135deg, #e8f3fb 0%, #d0e8f5 60%, #c5d9ec 100%);
}
[data-theme="ocean"] .fp-hero,
[data-theme="ocean"] .fp-matters-band,
[data-theme="ocean"] .fp-cta-band {
  background: linear-gradient(135deg, #0f2235 0%, #1a4571 100%);
}

[data-theme="ocean"] .blog-subscribe-input:focus,
[data-theme="ocean"] .form-field input:focus,
[data-theme="ocean"] .form-field textarea:focus {
  box-shadow: 0 0 0 4px rgba(26, 69, 113, 0.12);
}


/* ═══════════════════════════════════════════════════════
   ECM Theme Selector — Plum (Warm Purple) Theme Override
   ═══════════════════════════════════════════════════════ */

:root[data-theme="plum"] {
  --sage:       #5c2d6e;
  --sage-light: #a87cbf;
  --sage-pale:  #f5edf9;
}

[data-theme="plum"] :is(a, button, input, select, textarea):focus-visible {
  outline-color: #5c2d6e;
}

[data-theme="plum"] .btn-sage:hover,
[data-theme="plum"] .btn-primary-lg:hover,
[data-theme="plum"] .woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
[data-theme="plum"] .package-card--popular .package-cta:hover,
[data-theme="plum"] .search-bar-btn:hover,
[data-theme="plum"] .blog-subscribe-btn:hover,
[data-theme="plum"] .ecm-page-content #job_package_selection .job_listing_packages_title .button:hover,
[data-theme="plum"] .chat-fab:hover,
[data-theme="plum"] .form-submit:hover,
[data-theme="plum"] .fp-hero-cta--primary:hover,
[data-theme="plum"] .fp-form-submit:hover,
[data-theme="plum"] .fp-cta-btn:hover,
[data-theme="plum"] .fp-form-wrap button[type="submit"]:hover,
[data-theme="plum"] .chat-text-submit:hover,
[data-theme="plum"] .plan-card--popular .plan-card-cta-btn:hover,
[data-theme="plum"] .newsletter-signup__form .wpforms-submit:hover,
[data-theme="plum"] .newsletter-signup__form .wpforms-submit:focus-visible {
  background: #4a2358 !important;
  border-color: #4a2358 !important;
}

[data-theme="plum"] .care-card--cta {
  background: linear-gradient(160deg, #5c2d6e 0%, #703485 100%);
}

/* ── Why-cards ── */
[data-theme="plum"] .why-card         { background: #ecdaf5; }
[data-theme="plum"] .why-card:hover   { background: var(--sage); }

/* ── Provider CTA section ── */
[data-theme="plum"] .provider-cta {
  background: linear-gradient(135deg, var(--sage-pale) 0%, #dbc2e8 100%);
}
[data-theme="plum"] .provider-cta::before {
  background: radial-gradient(circle, rgba(168,124,191,0.25) 0%, transparent 70%);
}

[data-theme="plum"] .newsletter-signup__form .wpforms-submit:focus-visible {
  outline: 3px solid rgba(92, 45, 110, 0.2) !important;
}

[data-theme="plum"] footer {
  background-color: #2d1738;
}

/* ── Logo — convert to plum purple ── */
[data-theme="plum"] .nav-logo-image {
  filter: brightness(0) saturate(1) invert(16%) sepia(50%) saturate(900%) hue-rotate(265deg) brightness(0.85);
}

/* ── Hardcoded burgundy overrides for Plum ── */
[data-theme="plum"] .cta-band {
  background: linear-gradient(135deg, #2d1738 0%, #5c2d6e 100%);
}
[data-theme="plum"] .care-card:hover .care-card-body:not(.care-card-body--cta) {
  background: #5c2d6e;
}
[data-theme="plum"] .provider-card:hover .provider-card-header,
[data-theme="plum"] .provider-card:hover .provider-card-body,
[data-theme="plum"] .provider-card:hover .provider-card-footer {
  background: #5c2d6e;
}
[data-theme="plum"] .care-card-img,
[data-theme="plum"] .provider-card-hero { background: #f5edf9; }
[data-theme="plum"] .provider-card-hero--fallback { background: #dbc2e8; }
[data-theme="plum"] .cross-sell {
  background: linear-gradient(135deg, #f5edf9 0%, #e8d4f5 60%, #dbc2e8 100%);
}
[data-theme="plum"] .fp-hero,
[data-theme="plum"] .fp-matters-band,
[data-theme="plum"] .fp-cta-band {
  background: linear-gradient(135deg, #2d1738 0%, #5c2d6e 100%);
}

[data-theme="plum"] .blog-subscribe-input:focus,
[data-theme="plum"] .form-field input:focus,
[data-theme="plum"] .form-field textarea:focus {
  box-shadow: 0 0 0 4px rgba(92, 45, 110, 0.12);
}


/* ═══════════════════════════════════════════════════════
   ECM Theme Selector — Widget Styles
   Floating palette button + theme picker panel
   ═══════════════════════════════════════════════════════ */

.ecm-ts {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9000;
  font-family: 'DM Sans', Arial, Helvetica, sans-serif;
}

/* ── Trigger button ──────────────────────────────────── */
.ecm-ts__btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--sage);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.20);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #fff;
}

.ecm-ts__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0,0,0,0.26);
}

.ecm-ts__btn:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
}

/* ── Panel ──────────────────────────────────────────── */
.ecm-ts__panel {
  position: absolute;
  bottom: 62px;
  left: 0;
  width: 258px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 44px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.06);
  padding: 8px;
  display: none;
  transform-origin: bottom left;
}

.ecm-ts__panel.open {
  display: block;
  animation: ecmTsIn 0.18s cubic-bezier(0.34, 1.26, 0.64, 1);
}

@keyframes ecmTsIn {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Panel header ───────────────────────────────────── */
.ecm-ts__header {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #9a9a9a;
  padding: 8px 14px 6px;
}

/* ── Individual theme option ────────────────────────── */
.ecm-ts__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
  border: 2px solid transparent;
  outline: none;
}

.ecm-ts__item:hover {
  background: #f7f7f6;
}

.ecm-ts__item:focus-visible {
  border-color: var(--sage);
}

.ecm-ts__item[aria-selected="true"] {
  border-color: var(--sage);
  background: var(--sage-pale);
}

/* ── Color swatch (half-circle split) ──────────────── */
.ecm-ts__swatch {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  border: 1.5px solid rgba(0,0,0,0.09);
}

.ecm-ts__swatch span {
  display: block;
  flex: 1;
  height: 100%;
}

/* ── Text labels ────────────────────────────────────── */
.ecm-ts__info {
  flex: 1;
  min-width: 0;
}

.ecm-ts__info strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2933;
  line-height: 1.2;
}

.ecm-ts__info span {
  display: block;
  font-size: 1.1rem;
  color: #777;
  margin-top: 2px;
  line-height: 1.3;
}

/* ── Checkmark for selected ─────────────────────────── */
.ecm-ts__check {
  flex-shrink: 0;
  color: var(--sage);
  opacity: 0;
  transition: opacity 0.15s;
}

.ecm-ts__item[aria-selected="true"] .ecm-ts__check {
  opacity: 1;
}

/* ── Responsive: move up on mobile so it clears the
      iOS Safari bottom bar                           ─── */
@media (max-width: 768px) {
  .ecm-ts {
    bottom: 20px;
    left: 16px;
  }
  .ecm-ts__btn {
    width: 46px;
    height: 46px;
  }
}
