/* =========================================================
   AAA dark mode — everything scoped to html[data-theme="dark"]
   ========================================================= */

/* --- Toggle button (always loaded) --- */
.aaa-theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;border:1px solid rgba(27,42,66,.16);background:transparent;cursor:pointer;padding:0;color:#1b2a42;transition:background .2s,border-color .2s;vertical-align:middle}
.aaa-theme-toggle:hover{background:rgba(166,99,57,.1);border-color:#a66339}
.aaa-theme-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.aaa-theme-toggle svg path[d^="M20.5"]{fill:currentColor;stroke:none}
#top nav ul.buttons li.aaa-theme-li{display:flex;align-items:center;margin-right:6px}
.aaa-theme-mobile{display:none;align-items:center;margin-right:10px}
@media (max-width:999px){.aaa-theme-mobile{display:flex}#top nav ul.buttons li.aaa-theme-li{display:none}}

/* FluentCart floating cart button vs Salient "scroll to top": stack them */
body:has(.fct-cart-drawer-open-btn) #to-top{margin-bottom:74px!important}
#to-top{right:34px!important}
.fct-cart-drawer-open-btn{right:20px!important;inset-inline-end:20px!important}

/* --- Palette --- */
html[data-theme="dark"]{
  color-scheme:dark;
  --dm-bg:#111926; --dm-bg2:#162130; --dm-surface:#1c2838; --dm-surface2:#243246;
  --dm-text:#ece7dc; --dm-muted:#a9b1bd; --dm-copper:#dd956a; --dm-line:rgba(236,231,220,.12);
  --aaa-muted:#a9b1bd; --aaa-sage:#1f2c33; --aaa-sand:#2b2a30; --aaa-white:#1c2838; --aaa-cream:#162130;
  --aaa-shadow:0 10px 30px rgba(0,0,0,.35);
  --nectar-page-text-color:#ece7dc;
  /* FluentCart */
  --fct-primary-text-color:#ece7dc; --fct-secondary-text-color:#a9b1bd; --fct-border-color:rgba(236,231,220,.14); --fct-divider-color:rgba(236,231,220,.1);
  --fct-secondary-bg-color:#162130; --fct-cart-drawer-bg:#162130; --fct-secondary-btn-hover-bg-color:#243246;
  --fct-customer-dashboard-border-color:rgba(236,231,220,.14); --fct-customer-dashboard-text-color:#ece7dc; --fct-customer-dashboard-primary-text-color:#ece7dc;
  --fct-customer-dashboard-title-color:#ece7dc; --fct-customer-dashboard-card-bg:#1c2838; --fct-customer-dashboard-surface-muted:#162130;
  --fct-customer-dashboard-row-divider-color:rgba(236,231,220,.1); --fct-customer-dashboard-nav-text-color:#c9cdd4; --fct-customer-dashboard-hover-bg:#243246;
}
html[data-theme="dark"] .aaa-theme-toggle{color:#ece7dc;border-color:rgba(236,231,220,.25)}

/* --- Base surfaces --- */
html[data-theme="dark"],html[data-theme="dark"] body,html[data-theme="dark"] #ajax-content-wrap,html[data-theme="dark"] .container-wrap,
html[data-theme="dark"] .ocm-effect-wrap,html[data-theme="dark"] .ocm-effect-wrap-inner,html[data-theme="dark"] #header-space{background-color:var(--dm-bg)!important}
html[data-theme="dark"] body{color:var(--dm-text)}

/* Header */
html[data-theme="dark"] #header-outer,html[data-theme="dark"] #header-outer #top,html[data-theme="dark"] #header-secondary-outer,html[data-theme="dark"] #header-outer .centered-menu{background-color:rgba(17,25,38,.97)!important}
html[data-theme="dark"] #header-outer{box-shadow:0 1px 0 var(--dm-line)!important;border-bottom-color:var(--dm-line)!important}
html[data-theme="dark"] #top nav>ul>li>a,html[data-theme="dark"] #header-outer #top nav>ul>li>a,html[data-theme="dark"] #header-secondary-outer a,
html[data-theme="dark"] #top .icon-salient-search,html[data-theme="dark"] #top .lines,html[data-theme="dark"] #top .lines:before,html[data-theme="dark"] #top .lines:after{color:var(--dm-text)!important}
html[data-theme="dark"] #top .lines,html[data-theme="dark"] #top .lines:before,html[data-theme="dark"] #top .lines:after,html[data-theme="dark"] .slide-out-widget-area-toggle .lines-button:after{background-color:var(--dm-text)!important}
html[data-theme="dark"] #top nav>ul>li>a:hover,html[data-theme="dark"] #top nav>ul>li.current-menu-item>a,html[data-theme="dark"] #top nav>ul>li.current-menu-ancestor>a{color:var(--dm-copper)!important}
html[data-theme="dark"] #header-outer #top nav>ul>li.aaa-nav-pill>a .menu-title-text{background:var(--dm-copper);color:#111926!important}
html[data-theme="dark"] #header-outer #top nav>ul>li.aaa-nav-pill>a:hover .menu-title-text{background:#ece7dc}
html[data-theme="dark"] #top nav>ul>li>ul.sub-menu,html[data-theme="dark"] #header-outer nav>ul>li>.sub-menu{background-color:var(--dm-surface)!important}
html[data-theme="dark"] #header-outer nav .sub-menu a{color:var(--dm-text)!important}
html[data-theme="dark"] #header-outer nav .sub-menu a:hover{background:var(--dm-surface2)!important;color:var(--dm-copper)!important}
html[data-theme="dark"] #logo img.stnd,html[data-theme="dark"] #logo img.mobile-only-logo{content:url(/wp-content/uploads/2023/07/logo-inline-light.png)}
html[data-theme="dark"] #search-outer,html[data-theme="dark"] #search-outer #search{background-color:var(--dm-bg)!important}
html[data-theme="dark"] #search-outer input,html[data-theme="dark"] #search-outer #search-box input[type=text]{color:var(--dm-text)!important}

/* Rows with light inline backgrounds (WPBakery) */
html[data-theme="dark"] .row-bg[style*="#f3f3e8" i],html[data-theme="dark"] .row-bg[style*="243, 243, 232"]{background-color:var(--dm-bg)!important}
html[data-theme="dark"] .row-bg[style*="#f6f3ea" i],html[data-theme="dark"] .row-bg[style*="#f5f2ea" i],html[data-theme="dark"] .row-bg[style*="#f7f4ed" i]{background-color:var(--dm-bg2)!important}
html[data-theme="dark"] .row-bg[style*="#ffffff" i],html[data-theme="dark"] .row-bg[style*="#fff;" i],html[data-theme="dark"] .row-bg[style*="#fff " i]{background-color:var(--dm-surface)!important}
html[data-theme="dark"] .row-bg[style*="#e7ebe1" i]{background-color:#18252b!important}
html[data-theme="dark"] .row-bg[style*="#f1e6dc" i]{background-color:#231f25!important}
html[data-theme="dark"] .row-bg[style*="#1b2a42" i]{background-color:#0c1320!important}
html[data-theme="dark"] .wpb_row[style*="background" i]:not([style*="#1b2a42" i]):not([style*="#a66339" i]){background-color:transparent!important}
/* Light gradient overlays on photo headers -> dark */
html[data-theme="dark"] .row-bg-overlay[style*="#f3f3e8" i],html[data-theme="dark"] .row-bg-overlay[style*="243,243,232"],html[data-theme="dark"] .row-bg-overlay[style*="243, 243, 232"]{background:linear-gradient(to bottom,rgba(17,25,38,.15),rgba(17,25,38,.85))!important}
html[data-theme="dark"] .nectar-shape-divider-wrap svg path,html[data-theme="dark"] .nectar-shape-divider path{fill:var(--dm-bg)!important}

/* Typography */
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] h4,html[data-theme="dark"] h5,html[data-theme="dark"] h6,
html[data-theme="dark"] .container-wrap p,html[data-theme="dark"] .container-wrap li,html[data-theme="dark"] .container-wrap td,html[data-theme="dark"] .container-wrap th,
html[data-theme="dark"] .container-wrap label,html[data-theme="dark"] .container-wrap blockquote,html[data-theme="dark"] .container-wrap strong{color:var(--dm-text)}
html[data-theme="dark"] [style*="color: #1b2a42" i],html[data-theme="dark"] [style*="color:#1b2a42" i],html[data-theme="dark"] [style*="color: rgb(27, 42, 66)"],
html[data-theme="dark"] [style*="color: #000" i],html[data-theme="dark"] [style*="color: rgb(0, 0, 0)"],html[data-theme="dark"] [style*="color: #333" i],html[data-theme="dark"] [style*="color: #222" i]{color:var(--dm-text)!important}
html[data-theme="dark"] [style*="color: #a66339" i],html[data-theme="dark"] [style*="color:#a66339" i],html[data-theme="dark"] [style*="color: #a76339" i]{color:var(--dm-copper)!important}
html[data-theme="dark"] .nectar-split-heading .heading-line>div,html[data-theme="dark"] .nectar-split-heading span{color:inherit}
html[data-theme="dark"] .aaa-hero h1,html[data-theme="dark"] .aaa-tp-hero h1,html[data-theme="dark"] .aaa-tp h2,html[data-theme="dark"] .aaa-shop-head h1,
html[data-theme="dark"] .aaa-tcard h3,html[data-theme="dark"] .aaa-team .team-member .team-meta h3,html[data-theme="dark"] h3.fct-product-card-title a,
html[data-theme="dark"] .aaa-event__title a,html[data-theme="dark"] .aaa-hero__card,html[data-theme="dark"] .aaa-hero__card strong{color:var(--dm-text)!important}
html[data-theme="dark"] .aaa-lead,html[data-theme="dark"] .aaa-tp-lead,html[data-theme="dark"] .aaa-tp-bio__text p,html[data-theme="dark"] .aaa-tp-bio__text li{color:#d9d4c8!important}
html[data-theme="dark"] .aaa-eyebrow,html[data-theme="dark"] .aaa-tp-role,html[data-theme="dark"] .aaa-tp-back,html[data-theme="dark"] .aaa-link--copper,html[data-theme="dark"] .aaa-tcard .aaa-tcard__more,
html[data-theme="dark"] .fct-product-card-prices,html[data-theme="dark"] .aaa-event__place,html[data-theme="dark"] .aaa-tp-social a{color:var(--dm-copper)!important}
html[data-theme="dark"] .aaa-link{color:var(--dm-text)!important}
html[data-theme="dark"] .aaa-link:hover{color:var(--dm-copper)!important}
html[data-theme="dark"] .wpb_text_column a:not(.nectar-button):not(.aaa-btn):not(.aaa-link):not(.aaa-cta){color:var(--dm-copper)}
html[data-theme="dark"] .aaa-event__date,html[data-theme="dark"] .aaa-hero__meta,html[data-theme="dark"] .aaa-tcard .aaa-tcard__role{color:var(--dm-muted)!important}

/* Cards & surfaces */
html[data-theme="dark"] .aaa-hero__card,html[data-theme="dark"] a.aaa-tcard,html[data-theme="dark"] .aaa-team .team-member,html[data-theme="dark"] .fct-product-card,
html[data-theme="dark"] .aaa-card,html[data-theme="dark"] .nectar-fancy-box,html[data-theme="dark"] .fct_auth_message,html[data-theme="dark"] .fct-customer-dashboard-main-content,
html[data-theme="dark"] .fct-customer-navs-wrap,html[data-theme="dark"] .fct-customer-dashboard-navs-wrap{background-color:var(--dm-surface)!important;box-shadow:0 10px 30px rgba(0,0,0,.3)!important}
html[data-theme="dark"] .aaa-label,html[data-theme="dark"] .aaa-label--sand{background:#2b2a30;color:var(--dm-text)}
html[data-theme="dark"] .aaa-event__img{background:var(--dm-surface)}
html[data-theme="dark"] .aaa-cta{background:var(--dm-copper)!important;color:#111926!important}
html[data-theme="dark"] .aaa-cta:hover{background:#ece7dc!important}
html[data-theme="dark"] .aaa-btn.aaa-btn--soon{color:var(--dm-copper)!important;border-color:var(--dm-copper)!important}
html[data-theme="dark"] hr,html[data-theme="dark"] .divider-border{border-color:var(--dm-line)!important;background-color:var(--dm-line)!important}

/* Testimonials, toggles, tabs */
html[data-theme="dark"] .testimonial_slider blockquote,html[data-theme="dark"] .testimonial_slider blockquote p,html[data-theme="dark"] .testimonial_slider .title{color:var(--dm-text)!important}
html[data-theme="dark"] .testimonial_slider[data-style="multiple_visible_minimal"] blockquote .inner,html[data-theme="dark"] .testimonial_slider .slides blockquote .inner{background-color:var(--dm-surface)!important}
html[data-theme="dark"] div[data-style*="minimal"] .toggle h3 a,html[data-theme="dark"] .toggle h3 a,html[data-theme="dark"] .toggle>div{color:var(--dm-text)!important;background-color:transparent!important}
html[data-theme="dark"] .toggle{border-color:var(--dm-line)!important}
html[data-theme="dark"] .tabbed>ul li a{color:var(--dm-text)!important;background:var(--dm-surface)!important}
html[data-theme="dark"] .tabbed>ul li a.active-tab{background:var(--dm-copper)!important;color:#111926!important}

/* Forms (Fluent Forms, FluentCart, search) */
html[data-theme="dark"] input[type=text],html[data-theme="dark"] input[type=email],html[data-theme="dark"] input[type=tel],html[data-theme="dark"] input[type=password],
html[data-theme="dark"] input[type=number],html[data-theme="dark"] input[type=search],html[data-theme="dark"] textarea,html[data-theme="dark"] select,
html[data-theme="dark"] .fluentform .ff-el-form-control,html[data-theme="dark"] .fluent-cart-checkout-page .fct-input,html[data-theme="dark"] .fluent-cart-checkout-page select{background:var(--dm-surface)!important;color:var(--dm-text)!important;-webkit-text-fill-color:var(--dm-text)!important;border-color:rgba(236,231,220,.18)!important}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder,html[data-theme="dark"] .fluentform .ff-el-form-control::placeholder,html[data-theme="dark"] .fluent-cart-checkout-page .fct-input::placeholder{color:#8792a2!important;-webkit-text-fill-color:#8792a2!important}
html[data-theme="dark"] .fluentform label,html[data-theme="dark"] .ff-el-input--label label{color:var(--dm-text)!important}

/* FluentCart pages */
html[data-theme="dark"] .fct_checkout_summary,html[data-theme="dark"] .fct_checkout_form_section,html[data-theme="dark"] .fct-checkout-summary,html[data-theme="dark"] .fct_summary_box,
html[data-theme="dark"] .fct-cart-drawer,html[data-theme="dark"] .fct-product-summary,html[data-theme="dark"] .fct_payment_methods,html[data-theme="dark"] .fct_checkout_payment_methods{background-color:var(--dm-surface)!important;color:var(--dm-text)!important;border-color:var(--dm-line)!important}
html[data-theme="dark"] .fluent-cart-checkout-page *,html[data-theme="dark"] .fct-cart-drawer *,html[data-theme="dark"] .fct-single-product-page *,html[data-theme="dark"] .fct_receipt_wrap *{border-color:var(--dm-line)}
html[data-theme="dark"] .fluent-cart-checkout-page,html[data-theme="dark"] .fluent-cart-checkout-page h2,html[data-theme="dark"] .fluent-cart-checkout-page h3,html[data-theme="dark"] .fluent-cart-checkout-page h4,
html[data-theme="dark"] .fluent-cart-checkout-page span,html[data-theme="dark"] .fluent-cart-checkout-page div{color:inherit}
html[data-theme="dark"] .fluent-cart-checkout-page{color:var(--dm-text)}
html[data-theme="dark"] .fct-coupon-field,html[data-theme="dark"] [class*="fct-coupon"],html[data-theme="dark"] .fct_coupon_wrap{background:var(--dm-bg2)!important;color:var(--dm-text)!important}

/* Single posts / blog */
html[data-theme="dark"] .single .post-content,html[data-theme="dark"] .post-area article,html[data-theme="dark"] .masonry-blog-item .inner-wrap,html[data-theme="dark"] .post .content-inner{color:var(--dm-text)}
html[data-theme="dark"] article.post .post-content,html[data-theme="dark"] .blog-recent .inner-wrap,html[data-theme="dark"] .masonry-blog-item .inner-wrap{background-color:var(--dm-surface)!important}

/* Images: soften very bright photos a touch */
html[data-theme="dark"] .container-wrap img:not([src*="logo"]){filter:brightness(.94)}

/* Off-canvas menu stays as designed (gold); footer already dark */
html[data-theme="dark"] #footer-outer,html[data-theme="dark"] .aaa-footer-row .row-bg{filter:none}

/* Scroll-to-top button */
html[data-theme="dark"] #to-top{background-color:var(--dm-surface2)!important}
html[data-theme="dark"] #to-top i{color:var(--dm-text)!important}

/* fixes after review */
html[data-theme="dark"] .wpb_row{background-color:transparent!important}
html[data-theme="dark"] .fct_coupon_toggle a,html[data-theme="dark"] .fct_coupon_toggle{background:var(--dm-surface2)!important;color:var(--dm-text)!important}
html[data-theme="dark"] .fluent-cart-checkout-page .list,html[data-theme="dark"] .fluent-cart-checkout-page .nice-select .list,html[data-theme="dark"] .fluent-cart-checkout-page .nice-select{background:var(--dm-surface)!important;color:var(--dm-text)!important}
html[data-theme="dark"] .fluent-cart-checkout-page .list .option:hover,html[data-theme="dark"] .fluent-cart-checkout-page .list .option.focus,html[data-theme="dark"] .fluent-cart-checkout-page .list .option.selected{background:var(--dm-surface2)!important}
html[data-theme="dark"] .fct-checkout-modal,html[data-theme="dark"] .fct-checkout-modal-loader{background:var(--dm-surface)!important}
html[data-theme="dark"] #search-btn .icon-salient-search,html[data-theme="dark"] #top .icon-salient-search,html[data-theme="dark"] .mobile-search .icon-salient-search{color:var(--dm-text)!important}
html[data-theme="dark"] .fct-cart-drawer-open-btn{background:var(--dm-surface2)!important;color:var(--dm-text)!important;box-shadow:0 8px 24px rgba(0,0,0,.4)!important}
html[data-theme="dark"] .fct-cart-drawer-open-btn svg,html[data-theme="dark"] .fct-cart-drawer-open-btn svg *{stroke:var(--dm-text)!important;color:var(--dm-text)!important}
.aaa-theme-toggle{border-radius:50%!important;min-width:0!important;line-height:1!important;box-shadow:none!important}
@media (max-width:999px){.aaa-theme-toggle{width:34px;height:34px}.aaa-theme-mobile{margin:0 6px 0 0}}
html body #top .aaa-theme-toggle,html body .aaa-theme-toggle{border-radius:50%!important;padding:0!important}
@media (max-width:999px){#top .aaa-theme-mobile{position:absolute;right:auto;left:48px;top:50%;transform:translateY(-50%);margin:0;z-index:5}}
html[data-theme="dark"] .fct-cart-drawer-open-btn img{filter:invert(1) brightness(1.6)}
html[data-theme="dark"] #top .mobile-search .icon-salient-search,html[data-theme="dark"] #top .mobile-search span{color:var(--dm-text)!important}
html[data-theme="dark"] body #header-outer #top .icon-salient-search,html[data-theme="dark"] body #header-outer .mobile-search .icon-salient-search,html[data-theme="dark"] body #header-outer #search-btn a span{color:#ece7dc!important}
@media (max-width:999px){#top .aaa-theme-mobile .aaa-theme-toggle{width:30px;height:30px}#top .aaa-theme-mobile .aaa-theme-toggle svg{width:16px;height:16px}}
@media (max-width:379px){#top .aaa-theme-mobile{display:none!important}}
.aaa-theme-ocm{display:flex;align-items:center;gap:12px;margin:26px 0 10px;color:#fff;cursor:pointer;font-size:15px}
.aaa-theme-ocm .aaa-theme-toggle{color:#fff;border-color:rgba(255,255,255,.5)}
