/* ==========================================================================
   Whole-site dark mode.

   Applied when <html data-lws-theme="dark"> is set. The light theme remains
   the untouched original design; this file only overrides colours and
   surfaces. The original main.css and main.js stay byte-for-byte unchanged.
   ========================================================================== */

html[data-lws-theme="dark"] {
	--ink: #f3f6ff;
	--muted: #aeb8d8;
	--soft: #111a36;
	--line: #2b3760;
	--surface: #0e1530;
	--surface-2: #141d3c;
	--lws-link: #9db1ff;
	--navy-d: #0a1130;
	--navy-dd: #05081c;
	--orange: #ff9a4d;
	--orange-d: #e8752a;
	--wa: #0b7a3c;
	--shadow: 0 20px 50px -20px rgba(0, 0, 0, .65);
	--shadow-s: 0 8px 24px -12px rgba(0, 0, 0, .65);
	color-scheme: dark;
	background: #070b1d;
}

html[data-lws-theme="dark"] body {
	color: var(--muted);
	background: var(--surface);
}

html[data-lws-theme="dark"] ::selection { background: var(--orange); color: #fff; }
html[data-lws-theme="dark"] a { color: var(--lws-link); }
html[data-lws-theme="dark"] a:hover { color: var(--orange); }
html[data-lws-theme="dark"] h1,
html[data-lws-theme="dark"] h2,
html[data-lws-theme="dark"] h3,
html[data-lws-theme="dark"] h4,
html[data-lws-theme="dark"] h5,
html[data-lws-theme="dark"] h6 { color: var(--ink); }

/* Header / navigation ---------------------------------------------------- */
html[data-lws-theme="dark"] .lws-header {
	background: var(--surface) !important;
	border-bottom-color: var(--line) !important;
}
html[data-lws-theme="dark"] .lws-header.is-scrolled { border-bottom-color: var(--line) !important; }
html[data-lws-theme="dark"] .lws-menu > li > a { color: var(--ink); }
html[data-lws-theme="dark"] .lws-menu .sub-menu {
	background: var(--surface-2);
	box-shadow: var(--shadow);
}
html[data-lws-theme="dark"] .lws-menu .sub-menu a { color: var(--ink); }
html[data-lws-theme="dark"] .lws-menu .sub-menu a:hover { background: var(--soft); }
html[data-lws-theme="dark"] .lws-burger { background: var(--soft); }
html[data-lws-theme="dark"] .lws-burger span { background: var(--lws-link); }
html[data-lws-theme="dark"] .lws-backdrop { background: rgba(0, 0, 0, .72); }

@media (max-width: 1024px) {
	html[data-lws-theme="dark"] .lws-nav { background: var(--surface) !important; }
}

/* Use the original light-wordmark logo on the dark header. The script also
   swaps the src; this filter is a no-JS fallback for the dark logo file. */
html[data-lws-theme="dark"] .lws-header .lws-logo img[src*="logo.svg"] { filter: brightness(0) invert(1); }
html[data-lws-theme="dark"] .lws-header .lws-logo img[src*="logo-light.svg"] { filter: none; }

/* Dark-mode toggle -------------------------------------------------------- */
.lws-theme-toggle {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--soft);
	color: var(--navy);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.lws-theme-toggle:hover { transform: translateY(-2px); background: var(--orange); border-color: var(--orange); color: #fff; }
.lws-theme-toggle:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.lws-theme-toggle__sun { display: none; }
html[data-lws-theme="dark"] .lws-theme-toggle { background: var(--soft); border-color: var(--line); color: #fff; }
html[data-lws-theme="dark"] .lws-theme-toggle:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
html[data-lws-theme="dark"] .lws-theme-toggle__moon { display: none; }
html[data-lws-theme="dark"] .lws-theme-toggle__sun { display: inline; }

@media (max-width: 520px) {
	.lws-theme-toggle { width: 38px; height: 38px; }
}

/* Sections and surfaces -------------------------------------------------- */
html[data-lws-theme="dark"] .lws-bg-white,
html[data-lws-theme="dark"] .lws-strip,
html[data-lws-theme="dark"] .lws-card,
html[data-lws-theme="dark"] .lws-work,
html[data-lws-theme="dark"] .lws-testi,
html[data-lws-theme="dark"] .lws-faq__item,
html[data-lws-theme="dark"] .lws-contact__form,
html[data-lws-theme="dark"] .page-numbers,
html[data-lws-theme="dark"] body { background: var(--surface); }

html[data-lws-theme="dark"] .lws-bg-soft,
html[data-lws-theme="dark"] .lws-info,
html[data-lws-theme="dark"] .lws-project__side,
html[data-lws-theme="dark"] .lws-404,
html[data-lws-theme="dark"] .lws-prose blockquote,
html[data-lws-theme="dark"] .lws-comment-list .comment-body { background: var(--soft); }

html[data-lws-theme="dark"] .lws-strip { border-bottom-color: var(--line); }
html[data-lws-theme="dark"] .lws-card,
html[data-lws-theme="dark"] .lws-work,
html[data-lws-theme="dark"] .lws-testi,
html[data-lws-theme="dark"] .lws-faq__item,
html[data-lws-theme="dark"] .lws-contact__form,
html[data-lws-theme="dark"] .page-numbers { border-color: var(--line); }

html[data-lws-theme="dark"] .lws-bg-dark { background: linear-gradient(135deg, #05081c, #0a1130 70%, #101a4a); }
html[data-lws-theme="dark"] .lws-hero { background: #040718; }
html[data-lws-theme="dark"] .lws-cta { background: linear-gradient(135deg, #05081c, #0a1130 60%, #14205c); }
html[data-lws-theme="dark"] .lws-footer { background: #040718; }
html[data-lws-theme="dark"] .lws-footer__bar { border-top-color: rgba(255, 255, 255, .08); }

/* Text and links --------------------------------------------------------- */
html[data-lws-theme="dark"] .lws-head .lws-sub,
html[data-lws-theme="dark"] .lws-prose,
html[data-lws-theme="dark"] .lws-testi small,
html[data-lws-theme="dark"] .lws-info small,
html[data-lws-theme="dark"] .lws-project__side small,
html[data-lws-theme="dark"] .lws-faq__a,
html[data-lws-theme="dark"] .lws-strip__label { color: var(--muted); }

html[data-lws-theme="dark"] .lws-checks li,
html[data-lws-theme="dark"] .lws-filters button,
html[data-lws-theme="dark"] .lws-filters a,
html[data-lws-theme="dark"] .lws-faq__q,
html[data-lws-theme="dark"] .lws-form label span,
html[data-lws-theme="dark"] .lws-info a,
html[data-lws-theme="dark"] .lws-info strong,
html[data-lws-theme="dark"] .lws-work__body h3 a,
html[data-lws-theme="dark"] .lws-testi blockquote,
html[data-lws-theme="dark"] .lws-testi strong,
html[data-lws-theme="dark"] .lws-project__side strong,
html[data-lws-theme="dark"] .lws-post__body h3 a,
html[data-lws-theme="dark"] .lws-form input,
html[data-lws-theme="dark"] .lws-form select,
html[data-lws-theme="dark"] .lws-form textarea,
html[data-lws-theme="dark"] .comment-form input[type="text"],
html[data-lws-theme="dark"] .comment-form input[type="email"],
html[data-lws-theme="dark"] .comment-form input[type="url"],
html[data-lws-theme="dark"] .comment-form textarea,
html[data-lws-theme="dark"] .search-field { color: var(--ink); }

html[data-lws-theme="dark"] .lws-btn--outline { color: var(--lws-link); border-color: var(--lws-link); }
html[data-lws-theme="dark"] .lws-btn--outline:hover { background: var(--lws-link); border-color: var(--lws-link); color: #05081c; }
html[data-lws-theme="dark"] .lws-btn--ghost:hover { background: var(--surface-2); border-color: var(--surface-2); color: var(--lws-link); }
html[data-lws-theme="dark"] .lws-marquee__item:hover { color: var(--lws-link); }

/* Icons and small controls ---------------------------------------------- */
html[data-lws-theme="dark"] .lws-ico {
	color: var(--lws-link);
	background: linear-gradient(135deg, #182247, #101a3c);
}
html[data-lws-theme="dark"] .lws-service__num { color: rgba(255, 255, 255, .07); }
html[data-lws-theme="dark"] .lws-step__ico {
	background: var(--surface);
	border-color: rgba(157, 177, 255, .35);
	color: var(--lws-link);
}
html[data-lws-theme="dark"] .lws-slider__nav button { background: var(--surface); color: var(--lws-link); border-color: var(--line); }
html[data-lws-theme="dark"] .lws-faq__q i { background: var(--soft); color: var(--lws-link); }
html[data-lws-theme="dark"] .lws-socials a { background: var(--soft); color: var(--lws-link); }
html[data-lws-theme="dark"] .lws-info:hover { background: var(--surface-2); }
html[data-lws-theme="dark"] .lws-work__media { background: var(--surface-2); }
html[data-lws-theme="dark"] .lws-top { background: var(--surface-2); color: #fff; }

/* Forms ------------------------------------------------------------------ */
html[data-lws-theme="dark"] .lws-form input,
html[data-lws-theme="dark"] .lws-form select,
html[data-lws-theme="dark"] .lws-form textarea,
html[data-lws-theme="dark"] .comment-form input[type="text"],
html[data-lws-theme="dark"] .comment-form input[type="email"],
html[data-lws-theme="dark"] .comment-form input[type="url"],
html[data-lws-theme="dark"] .comment-form textarea,
html[data-lws-theme="dark"] .search-field { background: var(--soft); border-color: var(--line); }
html[data-lws-theme="dark"] .lws-form input::placeholder,
html[data-lws-theme="dark"] .lws-form textarea::placeholder { color: #7f8bb0; }
html[data-lws-theme="dark"] .lws-form input:focus,
html[data-lws-theme="dark"] .lws-form select:focus,
html[data-lws-theme="dark"] .lws-form textarea:focus,
html[data-lws-theme="dark"] .comment-form textarea:focus,
html[data-lws-theme="dark"] .search-field:focus { background: var(--surface-2); border-color: var(--orange); }
html[data-lws-theme="dark"] .lws-form input.is-invalid,
html[data-lws-theme="dark"] .lws-form textarea.is-invalid { background: #3a1620; border-color: #e5484d; }
html[data-lws-theme="dark"] .lws-tags span { background: var(--soft); }

/* Already-dark components get slightly deeper surfaces ------------------- */
html[data-lws-theme="dark"] .lws-stat__ico { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .18); }
html[data-lws-theme="dark"] .lws-hero-slider__nav button { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); }
html[data-lws-theme="dark"] .lws-hero-kicker { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); }
html[data-lws-theme="dark"] .lws-hero-shade { background: linear-gradient(90deg, rgba(3, 5, 20, .96) 0%, rgba(5, 8, 35, .78) 55%, rgba(5, 8, 35, .5) 100%); }

/* Scrollbars ------------------------------------------------------------- */
html[data-lws-theme="dark"] ::-webkit-scrollbar { width: 12px; height: 12px; }
html[data-lws-theme="dark"] ::-webkit-scrollbar-track { background: #070b1d; }
html[data-lws-theme="dark"] ::-webkit-scrollbar-thumb { background: #2b3760; border: 2px solid #070b1d; border-radius: 8px; }
html[data-lws-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #3b4a7e; }

/* Keep the dark toggle visible above the fixed WhatsApp button on mobile. */
html[data-lws-theme="dark"] .lws-theme-toggle { z-index: 1003; }


/* High-contrast readability pass ----------------------------------------- */
/* The generic link colour must never leak into button labels. */
html[data-lws-theme="dark"] .lws-btn--primary,
html[data-lws-theme="dark"] .lws-btn--primary span,
html[data-lws-theme="dark"] .lws-btn--primary i,
html[data-lws-theme="dark"] .lws-btn--primary:hover,
html[data-lws-theme="dark"] .lws-btn--primary:hover span,
html[data-lws-theme="dark"] .lws-btn--primary:hover i { color: #05081c !important; }

html[data-lws-theme="dark"] .lws-btn--whatsapp,
html[data-lws-theme="dark"] .lws-btn--whatsapp span,
html[data-lws-theme="dark"] .lws-btn--whatsapp i,
html[data-lws-theme="dark"] .lws-btn--whatsapp:hover,
html[data-lws-theme="dark"] .lws-wa-float,
html[data-lws-theme="dark"] .lws-wa-float span,
html[data-lws-theme="dark"] .lws-wa-float i,
html[data-lws-theme="dark"] .lws-wa-float:hover { color: #fff !important; }
html[data-lws-theme="dark"] .lws-btn--whatsapp,
html[data-lws-theme="dark"] .lws-wa-float { background: var(--wa) !important; box-shadow: 0 12px 28px -12px rgba(11, 122, 60, .8) !important; }
html[data-lws-theme="dark"] .lws-btn--whatsapp:hover { background: #096b34 !important; }

html[data-lws-theme="dark"] .lws-btn--ghost,
html[data-lws-theme="dark"] .lws-btn--ghost span,
html[data-lws-theme="dark"] .lws-btn--ghost i { color: #fff !important; }
html[data-lws-theme="dark"] .lws-btn--ghost:hover {
	color: #fff !important;
	background: rgba(255, 255, 255, .14) !important;
	border-color: rgba(255, 255, 255, .55) !important;
}

html[data-lws-theme="dark"] .lws-btn--outline,
html[data-lws-theme="dark"] .lws-btn--outline span,
html[data-lws-theme="dark"] .lws-btn--outline i { color: #f3f6ff !important; border-color: #9db1ff !important; }
html[data-lws-theme="dark"] .lws-btn--outline:hover,
html[data-lws-theme="dark"] .lws-btn--outline:hover span,
html[data-lws-theme="dark"] .lws-btn--outline:hover i {
	color: #05081c !important;
	background: #9db1ff !important;
	border-color: #9db1ff !important;
}

/* Portfolio filters kept light-on-dark in every state. */
html[data-lws-theme="dark"] .lws-filters button,
html[data-lws-theme="dark"] .lws-filters a {
	background: var(--surface-2) !important;
	border-color: var(--line) !important;
	color: var(--ink) !important;
}
html[data-lws-theme="dark"] .lws-filters button:hover,
html[data-lws-theme="dark"] .lws-filters a:hover { color: var(--orange) !important; border-color: var(--orange) !important; }
html[data-lws-theme="dark"] .lws-filters .is-active,
html[data-lws-theme="dark"] .lws-filters .is-active:hover {
	background: var(--orange) !important;
	border-color: var(--orange) !important;
	color: #05081c !important;
}

/* Decorative service numbers and the orange About badge stay readable. */
html[data-lws-theme="dark"] .lws-service__num { color: #7b87b8 !important; }
html[data-lws-theme="dark"] .lws-step__ico b { color: #05081c !important; }
html[data-lws-theme="dark"] .lws-about__badge,
html[data-lws-theme="dark"] .lws-about__badge strong,
html[data-lws-theme="dark"] .lws-about__badge span { color: #05081c !important; }


/* WordPress technology strip (dark) ------------------------------------ */
html[data-lws-theme="dark"] .lws-strip__headline { color: var(--ink); }
html[data-lws-theme="dark"] .lws-strip__desc { color: var(--muted); }
html[data-lws-theme="dark"] .lws-strip__badge {
	background: var(--surface-2);
	border-color: var(--line);
	color: var(--ink);
}
