/**
 * ThatWorx Base – Base styles
 *
 * @package ThatWorx_Base
 */

:root {
	--space-xs: 10px;
	--space-sm: 20px;
	--space-lg: 40px;
	--twxb-container: 1200px;
	--twxb-radius: 4px;
	--twxb-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--twxb-text: #1a1a1a;
	--twxb-text-muted: #666;
	--twxb-border: #ddd;
	--twxb-accent: #2563eb;
}

section {
	padding-top: var(--space-lg);
	padding-bottom: var(--space-lg);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--twxb-font-sans);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--twxb-text);
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--twxb-accent);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.twxb-container {
	width: 100%;
	max-width: var(--twxb-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

/* Header */
.twxb-header {
	background-color: #fff;
	padding: 1rem 0;
	border-bottom: 1px solid var(--twxb-border);
}

.twxb-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.twxb-header__site-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--twxb-text);
}

.twxb-header__site-title:hover {
	text-decoration: none;
}

.twxb-header__logo {
	display: block;
	transition: transform 0.3s ease;
}

.twxb-header__logo:hover {
	transform: scale(1.03);
}

.twxb-header__logo-img {
	display: block;
	max-height: 84px;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15)) drop-shadow(0 0 12px rgba(13, 148, 136, 0.12));
	transition: filter 0.3s ease;
}

.twxb-header__logo:hover .twxb-header__logo-img {
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2)) drop-shadow(0 0 20px rgba(13, 148, 136, 0.18));
}

.twxb-nav-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.twxb-nav-menu a {
	color: var(--twxb-text);
}

.twxb-nav-menu a:hover {
	color: var(--twxb-accent);
}

/* Main */
.twxb-main {
	min-height: 50vh;
	padding: 2rem 0;
}

.twxb-content {
	padding-top: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
	margin-top: 0;
}

h1, h2, h3 {
	margin-bottom: var(--space-sm);
}

h4, h5, h6 {
	margin-bottom: 0.5em;
}

p {
	margin-top: 0;
	margin-bottom: var(--space-sm);
}

.card {
	padding: var(--space-sm);
}

/* Buttons */
.twxb-btn {
	display: inline-block;
	padding: 0.5em 1em;
	font-size: 1rem;
	font-weight: 600;
	border-radius: var(--twxb-radius);
	text-decoration: none;
}

.twxb-btn--primary {
	background: var(--twxb-accent);
	color: #fff;
}

.twxb-btn--primary:hover {
	opacity: 0.9;
	text-decoration: none;
}

/* Footer */
.twxb-footer {
	padding: 1.5rem 0;
	border-top: 1px solid var(--twxb-border);
	text-align: center;
	font-size: 0.875rem;
	color: var(--twxb-text-muted);
}

.twxb-footer__credit {
	margin: 0;
}

.twxb-footer__attribution {
	margin: 0.5rem 0 0;
	font-size: 0.8125rem;
}

.twxb-footer__attribution a {
	color: inherit;
}

.twxb-footer__attribution a:hover {
	text-decoration: underline;
}

/* 404 */
.twxb-404 {
	text-align: center;
}
