/*
Theme Name: Web3 LLC Trust Vault
Theme URI: https://web3llctrustvault.com/
Author: Web3 LLC Trust Vault
Author URI: https://web3llctrustvault.com/
Description: A complete dark, Web3-style business theme for Web3 LLC TRUST VAULT. Ships with a fully built homepage (hero, statistics, capability cards, Explore Web3 carousel, "How To Get Started" steps, wallet recovery, FAQ, partner marquee and footer) that appears automatically on activation and is edited from Appearance → Customize. Works with or without Elementor.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: web3-llc-trust-vault
Tags: dark, one-column, custom-logo, custom-menu, custom-colors, editor-style, featured-images, footer-widgets, full-width-template, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* =========================================================================
   This file holds:
   1. WordPress-required helpers (screen reader text, skip link, alignments)
   2. Global-setting bridges (heading / link / button / header / footer colours)
   3. Blog, page, archive, search and comment styles
   4. Small compatibility fixes (admin bar, Elementor, custom logo)

   The homepage design itself lives in assets/css/theme.css.
   ========================================================================= */

/* ---------------------------------------------------------- 1. WP helpers */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--surface, #0f1e2e);
	border-radius: 6px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: var(--text, #fff);
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 8px;
	line-height: normal;
	padding: 14px 22px;
	text-decoration: none;
	top: 8px;
	width: auto;
	z-index: 100000;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
	background: var(--surface, #0f1e2e);
	color: var(--text, #fff);
	padding: 0.7rem 1.1rem;
	border-radius: 8px;
	font-size: 0.9rem;
}

.alignleft {
	float: left;
	margin: 0.4em 1.4em 1em 0;
}

.alignright {
	float: right;
	margin: 0.4em 0 1em 1.4em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-inline: auto;
}

.alignwide {
	margin-inline: clamp(-2rem, -4vw, -1rem);
	max-width: none;
}

.alignfull {
	margin-inline: calc(50% - 50vw);
	max-width: 100vw;
	width: 100vw;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.wp-block-image figcaption,
figure figcaption {
	color: var(--text-muted, #dadada);
	font-size: 0.875rem;
	margin-top: 0.5rem;
}

.sticky {
	display: block;
}

.gallery-caption,
.bypostauthor {
	display: block;
}

/* ------------------------------------------ 2. Global setting bridges ---- */

h1, h2, h3, h4, h5, h6 {
	color: var(--heading, #fff);
}

.btn--primary {
	background: var(--btn-bg, var(--primary, #3a96ff));
	color: var(--btn-text, #fff);
	box-shadow: 0 0 0 3px var(--bg, #02050a),
		0 0 0 4.5px var(--btn-bg, var(--primary, #3a96ff));
}

.btn--primary:hover,
.btn--primary:focus-visible {
	background: transparent;
	color: var(--btn-bg, var(--primary, #3a96ff));
	box-shadow: 0 0 0 3px var(--bg, #02050a),
		0 0 0 4.5px var(--btn-bg, var(--primary, #3a96ff));
}

.site-header.is-stuck {
	background-color: var(--header-bg, #02050a);
}

.site-footer {
	background-color: var(--footer-bg, #09131d);
}

/* Header is fixed in the design; when "sticky header" is turned off the
   header becomes static instead of floating over the content. */
.site-header:not(.is-sticky-enabled) {
	position: relative;
}

.site-header:not(.is-sticky-enabled) + .drawer-scrim + .mobile-drawer + main .hero {
	padding-top: clamp(2.5rem, 2rem + 3vw, 5rem);
}

/* Menu items rendered flat by W3_Flat_Walker need column layout. */
.drawer-nav-list {
	display: flex;
	flex-direction: column;
	gap: 1.6rem;
}

/* If the container width is reduced in the Customizer, the 11-item desktop
   nav no longer fits: switch to the hamburger based on the header's own
   width (not the window width). */
.header-inner {
	container-type: inline-size;
}

@container (max-width: 1199px) {
	.main-nav {
		display: none;
	}

	.nav-toggle {
		display: grid;
	}
}

/* Keep the two authentication links on one line in the header. */
.header-actions .auth-link {
	white-space: nowrap;
}

/* Custom logo (Appearance → Customize → Site Identity). */
.logo .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.logo .custom-logo {
	max-height: 52px;
	width: auto;
	height: auto;
	filter: drop-shadow(0 3px 10px rgba(58, 150, 255, 0.28));
}

.logo__link {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	line-height: 1;
	white-space: nowrap;
	color: inherit;
}

/* WordPress admin bar offsets for the fixed header. */
body.admin-bar .site-header {
	top: 32px;
}

body.admin-bar .mobile-drawer {
	padding-top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}

	body.admin-bar .mobile-drawer {
		padding-top: 46px;
	}
}

/* ------------------------------------------- 3. Inner pages and the blog -- */

body.w3-inner-page {
	background: var(--bg, #02050a);
}

.w3-page-wrap {
	padding-top: calc(var(--header-h, 64px) + clamp(2.5rem, 2rem + 3vw, 4.5rem));
	padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
}

/* Comfortable reading measure for single pages and posts. */
.w3-page-wrap .w3-page-head,
.w3-page-wrap .w3-entry,
.w3-page-wrap .w3-featured,
.w3-page-wrap .w3-meta {
	max-width: 52rem;
}

/* Solid header on inner pages (the homepage header floats over the hero). */
.w3-inner-page .site-header {
	background-color: var(--header-bg, #02050a);
	border-bottom: 1px solid var(--line-soft, rgba(218, 218, 218, 0.12));
}

.w3-page-head {
	max-width: 56rem;
	margin-bottom: clamp(1.75rem, 1.2rem + 2vw, 3rem);
}

.w3-page-head .w3-eyebrow {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--primary, #3a96ff);
	margin-bottom: 0.75rem;
}

.w3-page-head h1 {
	font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem);
	line-height: 1.1;
	font-weight: 600;
	letter-spacing: -0.015em;
}

.w3-page-grid {
	display: grid;
	gap: clamp(1.5rem, 1rem + 2vw, 3rem);
}

.w3-entry {
	color: var(--text-muted, #dadada);
}

.w3-entry > * + * {
	margin-top: 1.15em;
}

.w3-entry h2,
.w3-entry h3,
.w3-entry h4 {
	margin-top: 1.6em;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.w3-entry h2 { font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem); }
.w3-entry h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); }
.w3-entry h4 { font-size: 1.15rem; }

.w3-entry p,
.w3-entry li {
	line-height: 1.75;
}

.w3-entry ul,
.w3-entry ol {
	padding-left: 1.35em;
	margin-block: 1.15em;
	list-style: disc;
}

.w3-entry ol {
	list-style: decimal;
}

.w3-entry li + li {
	margin-top: 0.4em;
}

.w3-entry a {
	color: var(--link, var(--primary, #3a96ff));
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.w3-entry a:hover {
	color: var(--secondary, #f0b90b);
}

.w3-entry blockquote {
	margin: 1.75em 0;
	padding: 1.1rem 1.4rem;
	border-left: 3px solid var(--primary, #3a96ff);
	background: var(--surface, #0f1e2e);
	border-radius: 0 var(--radius, 14px) var(--radius, 14px) 0;
	color: var(--text, #fff);
}

.w3-entry pre,
.w3-entry code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
}

.w3-entry pre {
	background: var(--bg-alt, #09131d);
	border: 1px solid var(--line, #1e2329);
	border-radius: var(--radius, 14px);
	padding: 1rem 1.2rem;
	overflow-x: auto;
}

.w3-entry code {
	background: var(--surface, #0f1e2e);
	border-radius: 5px;
	padding: 0.15em 0.4em;
}

.w3-entry pre code {
	background: none;
	padding: 0;
}

.w3-entry img,
.w3-entry video,
.w3-entry iframe,
.w3-entry embed,
.w3-entry object {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius, 14px);
}

.w3-entry table {
	width: 100%;
	border-collapse: collapse;
	margin-block: 1.5em;
	font-size: 0.95rem;
}

.w3-entry th,
.w3-entry td {
	border: 1px solid var(--line, #1e2329);
	padding: 0.6rem 0.8rem;
	text-align: left;
}

.w3-entry th {
	background: var(--surface, #0f1e2e);
	color: var(--text, #fff);
}

/* Post meta */
.w3-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1rem;
	font-size: 0.875rem;
	color: var(--text-muted, #dadada);
	margin-top: 1rem;
}

.w3-meta a {
	color: var(--primary, #3a96ff);
}

.w3-featured {
	margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.w3-featured img {
	width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: cover;
	border-radius: var(--radius-lg, 24px);
}

/* Post cards on the blog / archive index */
.w3-posts {
	display: grid;
	gap: clamp(1.25rem, 1rem + 1.5vw, 2rem);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}

.w3-post-card {
	display: flex;
	flex-direction: column;
	background: var(--surface, #0f1e2e);
	border: 1px solid var(--line, #1e2329);
	border-radius: var(--radius-lg, 18px);
	overflow: hidden;
	transition: transform 0.25s var(--ease, ease), border-color 0.25s var(--ease, ease);
}

.w3-post-card:hover {
	transform: translateY(-3px);
	border-color: var(--primary, #3a96ff);
}

.w3-post-card__thumb img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.w3-post-card__body {
	padding: 1.25rem 1.4rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	flex: 1;
}

.w3-post-card__body h2 {
	font-size: 1.2rem;
	line-height: 1.3;
}

.w3-post-card__body h2 a {
	color: var(--text, #fff);
}

.w3-post-card__body h2 a:hover {
	color: var(--primary, #3a96ff);
}

.w3-post-card__body p {
	color: var(--text-muted, #dadada);
	font-size: 0.95rem;
	line-height: 1.6;
	flex: 1;
}

.w3-post-card__more {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--primary, #3a96ff);
}

/* Pagination */
.w3-pagination {
	margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.w3-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.w3-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 2.6rem;
	height: 2.6rem;
	padding-inline: 0.7rem;
	border-radius: 999px;
	border: 1px solid var(--line, #1e2329);
	color: var(--text, #fff);
	font-size: 0.9rem;
}

.w3-pagination .page-numbers:hover,
.w3-pagination .page-numbers.current {
	background: var(--primary, #3a96ff);
	border-color: var(--primary, #3a96ff);
	color: #fff;
}

/* Search form */
.w3-searchform {
	display: flex;
	gap: 0.5rem;
	max-width: 34rem;
}

.w3-searchform input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 0.8rem 1.1rem;
	border-radius: 999px;
	border: 1px solid var(--line, #1e2329);
	background: var(--surface, #0f1e2e);
	color: var(--text, #fff);
	outline: none;
}

.w3-searchform input[type="search"]::placeholder {
	color: rgba(218, 218, 218, 0.6);
}

.w3-searchform input[type="search"]:focus {
	border-color: var(--primary, #3a96ff);
}

.w3-searchform button {
	padding: 0.8rem 1.4rem;
	border-radius: 999px;
	background: var(--btn-bg, var(--primary, #3a96ff));
	color: var(--btn-text, #fff);
	font-weight: 600;
	white-space: nowrap;
}

/* Sidebar / widgets */
.w3-sidebar {
	display: grid;
	gap: 1.5rem;
	align-content: start;
}

.widget {
	background: var(--surface, #0f1e2e);
	border: 1px solid var(--line, #1e2329);
	border-radius: var(--radius-lg, 18px);
	padding: 1.4rem 1.5rem;
	color: var(--text-muted, #dadada);
	font-size: 0.95rem;
}

.widget-title,
.widget h3 {
	font-size: 1.05rem;
	color: var(--text, #fff);
	margin-bottom: 0.9rem;
}

.widget ul {
	display: grid;
	gap: 0.55rem;
}

.widget a {
	color: var(--text-muted, #dadada);
}

.widget a:hover {
	color: var(--primary, #3a96ff);
}

.footer__widget {
	margin-top: 1.75rem;
	font-size: 0.95rem;
	color: var(--text-muted, #dadada);
}

.footer__widget .widget {
	background: transparent;
	border: 0;
	padding: 0;
	border-radius: 0;
}

.footer__widget .widget-title {
	font-size: 1rem;
}

.footer__widget ul {
	display: grid;
	gap: 0.5rem;
}

.footer__widget a {
	color: var(--text-muted, #dadada);
}

.footer__widget a:hover {
	color: var(--primary, #3a96ff);
}

/* Comments */
.w3-comments {
	margin-top: clamp(2.5rem, 2rem + 2.5vw, 4rem);
	padding-top: clamp(1.75rem, 1.5rem + 1.5vw, 2.5rem);
	border-top: 1px solid var(--line, #1e2329);
	color: var(--text-muted, #dadada);
}

.w3-comments .comments-title,
.w3-comments .comment-reply-title {
	color: var(--text, #fff);
	font-size: 1.35rem;
	margin-bottom: 1.5rem;
}

.w3-comments ol {
	display: grid;
	gap: 1.5rem;
}

.w3-comments .comment-body {
	background: var(--surface, #0f1e2e);
	border: 1px solid var(--line, #1e2329);
	border-radius: var(--radius, 14px);
	padding: 1.2rem 1.35rem;
}

.w3-comments .comment-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.9rem;
	font-size: 0.875rem;
	margin-bottom: 0.6rem;
}

.w3-comments .comment-author {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	color: var(--text, #fff);
}

.w3-comments .comment-author img {
	border-radius: 50%;
}

.w3-comments .comment-metadata a {
	color: var(--text-muted, #dadada);
}

.w3-comments .children {
	margin-top: 1.5rem;
	padding-left: clamp(0.75rem, 2vw, 2rem);
	display: grid;
	gap: 1.5rem;
}

.w3-comments .reply {
	margin-top: 0.75rem;
	font-size: 0.875rem;
}

.w3-comments .reply a {
	color: var(--primary, #3a96ff);
}

.comment-form {
	display: grid;
	gap: 1rem;
	margin-top: 2rem;
}

.comment-form label {
	display: block;
	font-size: 0.9rem;
	margin-bottom: 0.35rem;
	color: var(--text, #fff);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border-radius: var(--radius-sm, 10px);
	border: 1px solid var(--line, #1e2329);
	background: var(--surface, #0f1e2e);
	color: var(--text, #fff);
}

.comment-form input:focus,
.comment-form textarea:focus {
	border-color: var(--primary, #3a96ff);
	outline: none;
}

.comment-form .submit {
	justify-self: start;
	padding: 0.75rem 1.5rem;
	border-radius: 999px;
	background: var(--btn-bg, var(--primary, #3a96ff));
	color: var(--btn-text, #fff);
	font-weight: 600;
	cursor: pointer;
}

.comment-form .submit:hover {
	opacity: 0.9;
}

.comment-notes,
.logged-in-as,
.form-allowed-tags {
	font-size: 0.85rem;
	color: var(--text-muted, #dadada);
}

/* 404 and empty states */
.w3-empty {
	max-width: 34rem;
	color: var(--text-muted, #dadada);
}

.w3-empty .btn {
	margin-top: 1.5rem;
}

/* ------------------------------------------------ 4. Compatibility fixes - */

/* On an Elementor-built front page the fixed header would sit on top of the
   builder's first section, so let the header take part in the flow. */
body.w3-elementor-page .site-header {
	position: sticky;
	top: 0;
	background-color: var(--header-bg, #02050a);
}

/* Elementor front-page content: no theme wrapper padding. */
.w3-elementor-content > .elementor {
	width: 100%;
}

body.w3-elementor-page .w3-page-wrap {
	padding-top: 0;
	padding-bottom: 0;
}

.elementor-page .site-main {
	background: var(--bg, #02050a);
}

/* Elementor's default button colours should follow the theme. */
body:not(.elementor-editor-active) .elementor-button-link.elementor-button {
	transition: opacity 0.2s ease;
}

/* Block editor content (when using blocks inside pages). */
.wp-block-button__link {
	background: var(--btn-bg, var(--primary, #3a96ff));
	color: var(--btn-text, #fff);
}

.wp-block-quote {
	border-left: 3px solid var(--primary, #3a96ff);
	padding-left: 1.2rem;
}

/* Ensure embedded videos scale. */
.wp-embed-responsive .wp-embed-aspect-16-9 iframe,
.wp-embed-responsive .wp-embed-aspect-4-3 iframe {
	border-radius: var(--radius, 14px);
}

/* Respect reduced motion. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
