/* =========================================================
   Dark mode - activated by html[data-theme="dark"]
   Every text colour is set explicitly so all copy stays readable.
   ========================================================= */

html[data-theme="dark"] {
  --bg: #121110;
  --bg-alt: #1c1a18;
  --surface: #1f1d1a;
  --text: #f3eee6;
  --text-muted: #b5ada1;
  --border: #35312c;
  --accent: #d4ae74;
  --btn-dark: #f3eee6;
  --btn-dark-text: #121110;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

html[data-theme="dark"] body { color: var(--text); background: var(--bg); }
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] p,
html[data-theme="dark"] span,
html[data-theme="dark"] li,
html[data-theme="dark"] label,
html[data-theme="dark"] blockquote,
html[data-theme="dark"] footer { color: inherit; }

html[data-theme="dark"] .site-header { background: var(--bg); }
html[data-theme="dark"] .site-header.scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
html[data-theme="dark"] .main-nav a,
html[data-theme="dark"] .logo { color: var(--text); }
html[data-theme="dark"] .logo-icon { background: var(--text); color: var(--bg); }
html[data-theme="dark"] .icon-btn { color: var(--text); }
html[data-theme="dark"] .icon-btn:hover { background: var(--bg-alt); }
html[data-theme="dark"] .btn-outline-dark { color: var(--text); border-color: var(--text); }
html[data-theme="dark"] .btn-outline-dark:hover { background: var(--text); color: var(--bg); }
html[data-theme="dark"] .btn-dark:hover { background: #fff; }
html[data-theme="dark"] .btn-light { background: #f3eee6; color: #121110; }
html[data-theme="dark"] .btn-light:hover { background: #fff; }

html[data-theme="dark"] .collections,
html[data-theme="dark"] .testimonials { background: var(--bg-alt); }
html[data-theme="dark"] .collection-card,
html[data-theme="dark"] .testimonial-card,
html[data-theme="dark"] .price-card { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .collection-body p,
html[data-theme="dark"] .testimonial-card footer { color: var(--text-muted); }
html[data-theme="dark"] .testimonial-card footer strong { color: var(--text); }
html[data-theme="dark"] .tag { border-color: var(--text); color: var(--text); }
html[data-theme="dark"] .product-media { background: var(--bg-alt); }
html[data-theme="dark"] .product-info h3,
html[data-theme="dark"] .product-price { color: var(--text); }
html[data-theme="dark"] .product-meta,
html[data-theme="dark"] .product-price span { color: var(--text-muted); }
html[data-theme="dark"] .wish-btn { background: rgba(20, 18, 16, .85); color: var(--text); }
html[data-theme="dark"] .swatches span { border-color: #4a443d; }
html[data-theme="dark"] .price-card.featured { border-color: var(--accent); }
html[data-theme="dark"] .price-list i { color: var(--accent); }
html[data-theme="dark"] .price-note { color: var(--text-muted); }

html[data-theme="dark"] .stats { background: #f3eee6; color: #121110; }
html[data-theme="dark"] .stat-label { color: #121110; }

html[data-theme="dark"] .form-group label { color: var(--text); }
html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group select,
html[data-theme="dark"] .form-group textarea,
html[data-theme="dark"] .newsletter-form input {
  background: var(--bg); color: var(--text); border-color: var(--border);
}
html[data-theme="dark"] .form-group select option { background: var(--surface); color: var(--text); }
html[data-theme="dark"] .form-group input::placeholder,
html[data-theme="dark"] .form-group textarea::placeholder,
html[data-theme="dark"] .newsletter-form input::placeholder { color: #7d766c; }
html[data-theme="dark"] .enquiry-form { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .newsletter { background: var(--bg-alt); }
html[data-theme="dark"] .newsletter-text strong { color: var(--text); }
html[data-theme="dark"] .newsletter-text span,
html[data-theme="dark"] .enquiry-intro p,
html[data-theme="dark"] .section-sub { color: var(--text-muted); }
html[data-theme="dark"] .enquiry-points li { color: var(--text); }
html[data-theme="dark"] .error-msg { color: #ff8a80; }

html[data-theme="dark"] .promo-banner { background: #1c1a18; }
html[data-theme="dark"] .promo-content { background: #0c0b0a; }
html[data-theme="dark"] .ribbon { color: #121110; }

html[data-theme="dark"] .marquee-group span i { color: var(--accent); opacity: 1; }

/* Icon chips are <span>s. The generic span rule above sets color: inherit,
   which turned the glyph the same colour as its light disc, so restore them here. */
html[data-theme="dark"] .ct-card-icon,
html[data-theme="dark"] .pl-icon { background: var(--text); color: var(--bg); }

html[data-theme="dark"] .site-footer { background: #1a1a1a; color: #e9e3da; }
html[data-theme="dark"] .site-footer .logo { color: #f3eee6; }
html[data-theme="dark"] .site-footer .logo-icon { background: #f3eee6; color: #0a0908; }
html[data-theme="dark"] .footer-brand p,
html[data-theme="dark"] .site-footer ul a,
html[data-theme="dark"] .footer-bottom { color: #a79f93; }
html[data-theme="dark"] .site-footer h4 { color: #f3eee6; }
html[data-theme="dark"] .socials a { color: #e9e3da; border-color: #3a3530; }
html[data-theme="dark"] .socials a:hover { background: #f3eee6; color: #0a0908; }
html[data-theme="dark"] .footer-bottom { border-top-color: #2a2622; }
html[data-theme="dark"] .payments { color: #e9e3da; }
html[data-theme="dark"] .footer-contact-list li,
html[data-theme="dark"] .footer-contact-list a,
html[data-theme="dark"] .footer-legal a { color: #a79f93; }
html[data-theme="dark"] .footer-contact-list a:hover,
html[data-theme="dark"] .footer-legal a:hover { color: #f3eee6; }
html[data-theme="dark"] .footer-headline { color: #f3eee6; }
html[data-theme="dark"] .footer-cta { border-inline-start-color: #2a2622; }
html[data-theme="dark"] .footer-cta-btn { background: #b08d57; color: #0a0908; }

html[data-theme="dark"] .back-to-top { background: #f3eee6; color: #121110; }
html[data-theme="dark"] .back-to-top:hover { background: #fff; }

/* How it works, lookbook and FAQ */
html[data-theme="dark"] .process-step,
html[data-theme="dark"] .faq-item { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .process-step h3,
html[data-theme="dark"] .faq-item summary { color: var(--text); }
html[data-theme="dark"] .process-step p,
html[data-theme="dark"] .faq-item p { color: var(--text-muted); }
html[data-theme="dark"] .step-icon { background: var(--bg-alt); color: var(--text); }
html[data-theme="dark"] .faq-item[open] { border-color: var(--text); }
html[data-theme="dark"] .lookbook-item { background: var(--surface); }
html[data-theme="dark"] .lookbook-item figcaption { background: rgba(20, 18, 16, .92); color: #f3eee6; }
html[data-theme="dark"] .lookbook-item figcaption span { color: var(--text-muted); }

/* Industries and services */
html[data-theme="dark"] .industry-card { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .industry-card h3,
html[data-theme="dark"] .service-item h3 { color: var(--text); }
html[data-theme="dark"] .industry-card p,
html[data-theme="dark"] .service-item p { color: var(--text-muted); }
html[data-theme="dark"] .service-item { border-bottom-color: var(--border); }

/* Quote deck */
html[data-theme="dark"] .qd-card { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .qd-card footer { color: var(--text-muted); }
html[data-theme="dark"] .qd-card footer strong { color: var(--text); }
html[data-theme="dark"] .qd-dot { background: #4a443d; }
html[data-theme="dark"] .qd-dot.is-active { background: var(--text); }
html[data-theme="dark"] .qd-arrow:hover { color: var(--bg); }

/* Season showcase and team */
html[data-theme="dark"] .team-caption { background: rgba(20, 18, 16, .92); color: #f3eee6; }
html[data-theme="dark"] .team-portrait { background: var(--bg-alt); }

/* Mobile menu panel in dark mode */
html[data-theme="dark"] .main-nav { background: var(--bg); border-bottom-color: var(--border); }
html[data-theme="dark"] .main-nav a { border-bottom-color: var(--border); }

/* Header toggles in dark mode: outline and hover follow the dark palette */
html[data-theme="dark"] .header-toggle { border-color: #f3eee6; color: #f3eee6; }
html[data-theme="dark"] .header-toggle:hover { background: #f3eee6; color: #0a0908; }

/* Pills whose text colour is set on a solid background: keep the pill's own text colour in dark mode
   (the generic span and p rules above would otherwise make the text match its background). */
html[data-theme="dark"] .mo-token span { color: var(--bg); }
html[data-theme="dark"] .mo-mix-centre { color: var(--bg); }
/* Product cards keep a white background in dark mode, so their gold product code uses a deeper gold */
html[data-theme="dark"] .pr-polaroid .pr-code { color: #8a6a35; }
