/* Dark-mode patches for the parts of the theme the template's own dark stylesheet does not cover (inner pages,
   forms, pricing, cards). Everything is scoped under html[data-theme="dark"]. */

html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] .tw-card { background: #232323; border-color: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .tw-card h2, html[data-theme="dark"] .tw-card h3 { color: #fff; }
html[data-theme="dark"] .tw-prose, html[data-theme="dark"] .tw-lead, html[data-theme="dark"] .tw-meta { color: rgba(255, 255, 255, 0.7); }
html[data-theme="dark"] .tw-prose h2, html[data-theme="dark"] .tw-prose h3, html[data-theme="dark"] .tw-postnav a { color: #fff; }
html[data-theme="dark"] .tw-side .about-list li { color: rgba(255, 255, 255, 0.7); }
html[data-theme="dark"] .price-table th, html[data-theme="dark"] .price-table td, html[data-theme="dark"] .price-table tr { border-color: rgba(255, 255, 255, 0.12); }
html[data-theme="dark"] .price-table tbody th { color: #fff; }
html[data-theme="dark"] .price-table thead th, html[data-theme="dark"] .price-table .what, html[data-theme="dark"] .price-note { color: rgba(255, 255, 255, 0.65); }
html[data-theme="dark"] .tw-input { background: #111; color: #fff; border-color: rgba(255, 255, 255, 0.2); }
html[data-theme="dark"] .tw-chip { color: #fff; }
html[data-theme="dark"] .tw-flash, html[data-theme="dark"] .alert { background: #232323; color: #fff; border-color: rgba(255, 255, 255, 0.2); }
html[data-theme="dark"] .main-footer .alert { color: #fff; }
html[data-theme="dark"] .acc-btn, html[data-theme="dark"] .accordion-box .block .acc-btn { color: #fff; }
html[data-theme="dark"] .tw-card-num { color: var(--theme-color1); }
html[data-theme="dark"] .tw-recent { color: #fff; }
html[data-theme="dark"] .tw-recent small { color: rgba(255, 255, 255, 0.6); }
html[data-theme="dark"] .tw-btn-outline-dark { color: #fff !important; }

/* Orange as TEXT on dark backgrounds: the deep brand orange (good behind white text) is too dim there, so use a brighter tint. */
html[data-theme="dark"] {
	--tw-accent-text: #ff7a2e;
}
html[data-theme="dark"] .price-table .amt,
html[data-theme="dark"] .price-tabs .nav-link:not(.active),
html[data-theme="dark"] .tw-chip,
html[data-theme="dark"] .tw-card-num,
html[data-theme="dark"] .tw-prose a,
html[data-theme="dark"] .accordion-box .acc-content a,
html[data-theme="dark"] .page-breadcrumb li a,
html[data-theme="dark"] .main-menu .navigation > li.current > a,
html[data-theme="dark"] .about-list li i,
html[data-theme="dark"] .tw-side .about-list li i,
html[data-theme="dark"] .view-more i,
html[data-theme="dark"] .acc-btn .icon {
	color: var(--tw-accent-text) !important;
}
html[data-theme="dark"] .price-tabs .nav-link:not(.active) { border-color: var(--tw-accent-text); }
html[data-theme="dark"] .tw-chip { border-color: var(--tw-accent-text); }
html[data-theme="dark"] .tw-chip:hover, html[data-theme="dark"] .price-tabs .nav-link:hover { color: #fff !important; }
html[data-theme="dark"] .tw-meta, html[data-theme="dark"] .tw-meta a, html[data-theme="dark"] .news-block-three .inner-box .content-box .post-info li { color: rgba(255, 255, 255, 0.78); }
html[data-theme="dark"] .tw-meta a:hover { color: var(--tw-accent-text); }
html[data-theme="dark"] .service-block .inner-box .content-box .view-more { color: rgba(255, 255, 255, 0.85) !important; }
html[data-theme="dark"] .about-section .content-column .inner-column .text { color: rgba(255, 255, 255, 0.78); }

/* Contact / enquiry forms (.contact-form, used on the contact page and home): readable fields in dark mode. */
html[data-theme="dark"] .contact-form input:not([type="submit"]):not([type="checkbox"]):not([type="hidden"]),
html[data-theme="dark"] .contact-form textarea,
html[data-theme="dark"] .contact-form select {
	background: #1b1b1b !important;
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.28) !important;
	-webkit-text-fill-color: #fff;
}
html[data-theme="dark"] .contact-form input::placeholder,
html[data-theme="dark"] .contact-form textarea::placeholder { color: rgba(255, 255, 255, 0.72) !important; opacity: 1; -webkit-text-fill-color: rgba(255, 255, 255, 0.72); }
html[data-theme="dark"] .contact-form input:focus,
html[data-theme="dark"] .contact-form textarea:focus,
html[data-theme="dark"] .contact-form select:focus { border-color: var(--tw-accent-text) !important; outline: 0; }
html[data-theme="dark"] .contact-form select option { background: #1b1b1b; color: #fff; }
html[data-theme="dark"] .contact-form input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #1b1b1b inset; -webkit-text-fill-color: #fff; }

/* Header logo: no grey block behind it in dark mode. */
html[data-theme="dark"] .header-style-three .header-lower .main-box .logo-box,
html[data-theme="dark"] .header-style-three .header-lower .logo-box:before,
html[data-theme="dark"] .header-style-three .header-lower::before { background: transparent !important; background-color: transparent !important; }

/* Free website audit */
html[data-theme="dark"] .tw-audit-score,
html[data-theme="dark"] .tw-audit-summary { background: #232323; border-color: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .tw-audit-summary { border-left-color: var(--theme-color1); }
html[data-theme="dark"] .tw-audit-score { border-top-color: #d33; }
html[data-theme="dark"] .tw-audit-score.ok { border-top-color: #e6a100; }
html[data-theme="dark"] .tw-audit-score.good { border-top-color: #2fbf5b; }
html[data-theme="dark"] .tw-audit-group { background: #232323; border-color: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .tw-audit-group li { border-bottom-color: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .tw-audit-group h3,
html[data-theme="dark"] .tw-audit-summary h3,
html[data-theme="dark"] .tw-audit-score strong,
html[data-theme="dark"] .tw-audit-label,
html[data-theme="dark"] .tw-audit-vitals strong { color: #fff; }
html[data-theme="dark"] .tw-audit-group li.is-pass i { color: #2fbf5b; }
html[data-theme="dark"] .tw-audit-group li.is-fail i { color: #ff6b6b; }
html[data-theme="dark"] .tw-audit-progress { background: #232323; border-color: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .tw-audit-progress h3, html[data-theme="dark"] .tw-audit-steps li.active { color: #fff; }
html[data-theme="dark"] .tw-audit-bar { background: rgba(255, 255, 255, 0.15); }
html[data-theme="dark"] .tw-audit-steps li.done i { color: #2fbf5b; }

/* Mobile menu drawer: style.css paints it orange (kept for light mode). In dark mode it goes near-black with orange accents. */
.mobile-menu .tw-when-dark, html[data-theme="dark"] .mobile-menu .tw-when-light { display: none !important; }
html[data-theme="dark"] .mobile-menu .tw-when-dark { display: inline-block !important; }
html[data-theme="dark"] .mobile-menu .menu-box { background: #191919; }
html[data-theme="dark"] .mobile-menu .navigation,
html[data-theme="dark"] .mobile-menu .navigation li,
html[data-theme="dark"] .mobile-menu .navigation li.dropdown .dropdown-btn:after,
html[data-theme="dark"] .mobile-menu .social-links,
html[data-theme="dark"] .mobile-menu .social-links li { border-color: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .mobile-menu .navigation li.current > a,
html[data-theme="dark"] .mobile-menu .navigation li.current-menu-item > a,
html[data-theme="dark"] .mobile-menu .contact-list-one li .icon,
html[data-theme="dark"] .mobile-menu .social-links li a:hover { color: var(--theme-color1); }
html[data-theme="dark"] .mobile-menu .tw-theme-toggle-menu { border-color: var(--theme-color1); }
html[data-theme="dark"] .mobile-menu .tw-theme-toggle-menu i { color: var(--theme-color1); }
/* Touch screens keep :hover after a tap; keep the icon visible on the orange hover fill. */
html[data-theme="dark"] .mobile-menu .tw-theme-toggle-menu:hover i { color: #fff; }
