/*
 * Ditech theme styles.
 * Colours come from the imported Elementor kit:
 *   primary #00FBF4 | secondary #FFFFFF | text #DADADA | accent #010A0A
 */

:root {
	--ditech-primary: #00fbf4;
	--ditech-secondary: #ffffff;
	--ditech-text: #dadada;
	--ditech-accent: #010a0a;
	--ditech-surface: #0d1b1b;
	--ditech-border: rgba(255, 255, 255, 0.12);
	--ditech-radius: 6px;
	--ditech-container: 1200px;
}

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background-color: var(--ditech-accent);
	color: var(--ditech-text);
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.8;
}

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

a {
	color: var(--ditech-primary);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover,
a:focus {
	color: var(--ditech-secondary);
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	color: var(--ditech-secondary);
	line-height: 1.25;
	margin: 0 0 0.6em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1.4em; }

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Layout ------------------------------------------------------------- */

#page {
	width: 100%;
}

.ditech-container {
	width: 100%;
	max-width: var(--ditech-container);
	margin: 0 auto;
	padding: 0 20px;
}

.ditech-flex {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.site-main {
	padding-top: 48px;
	padding-bottom: 64px;
}

.ditech-page {
	min-height: 40vh;
}

/* Elementor pages keep the theme chrome only (header + footer). */
body.elementor-template-full-width .site-main,
body.ditech-elementor-page .site-main {
	padding-top: 0;
	padding-bottom: 0;
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

/* Fallback header / footer (before the kit is imported) --------------- */

.ditech-fallback-header {
	background: var(--ditech-accent);
	border-bottom: 1px solid var(--ditech-border);
	padding: 18px 20px;
	position: sticky;
	top: 0;
	z-index: 100;
}

.ditech-fallback-header .site-title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 1.4rem;
	color: var(--ditech-secondary);
	letter-spacing: 1px;
}

.ditech-fallback-nav ul,
.ditech-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ditech-fallback-nav a {
	color: var(--ditech-secondary);
	font-family: 'Montserrat', sans-serif;
	font-size: 0.95rem;
	font-weight: 600;
}

.ditech-fallback-footer {
	background: var(--ditech-surface);
	border-top: 1px solid var(--ditech-border);
	padding: 28px 20px;
	font-size: 0.9rem;
}

.ditech-fallback-footer ul {
	display: flex;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ditech-fallback-footer a { color: var(--ditech-text); }

/* Cards (blog, archives, search) -------------------------------------- */

.ditech-card {
	background: rgba(13, 27, 27, 0.72);
	border: 1px solid var(--ditech-border);
	border-radius: var(--ditech-radius);
	padding: 28px;
	margin: 0 0 28px;
}

.ditech-card-row {
	display: flex;
	gap: 26px;
	align-items: flex-start;
}

.ditech-card-row .ditech-card-thumb {
	flex: 0 0 280px;
	max-width: 280px;
	overflow: hidden;
	border-radius: var(--ditech-radius);
	display: block;
}

.ditech-card-row .ditech-card-thumb img {
	display: block;
	width: 100%;
	border-radius: var(--ditech-radius);
}

.ditech-card-body { flex: 1; }

.ditech-card-thumb {
	display: block;
	overflow: hidden;
	border-radius: var(--ditech-radius);
	margin-bottom: 20px;
}

.ditech-card-thumb img {
	display: block;
	width: 100%;
	transition: transform 0.35s ease;
}

.ditech-card-thumb:hover img { transform: scale(1.05); }

.entry-title {
	font-size: 1.5rem;
	margin-bottom: 0.4em;
}

.entry-title a { color: var(--ditech-secondary); }

.entry-title a:hover { color: var(--ditech-primary); }

.entry-meta,
.entry-footer {
	font-size: 0.85rem;
	color: rgba(218, 218, 218, 0.7);
	margin-bottom: 14px;
}

.entry-meta a,
.entry-footer a { color: var(--ditech-primary); }

.entry-meta .byline { margin-left: 14px; }

.entry-summary { margin-bottom: 18px; }

.entry-footer {
	display: flex;
	gap: 16px;
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid var(--ditech-border);
}

.ditech-btn,
button,
input[type="submit"],
.wp-block-button__link {
	display: inline-block;
	background: transparent;
	color: var(--ditech-secondary);
	border: 1px solid var(--ditech-primary);
	border-radius: 4px;
	padding: 10px 24px;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.25s ease;
}

.ditech-btn:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
	background: var(--ditech-primary);
	color: var(--ditech-accent);
}

/* Single post --------------------------------------------------------- */

.ditech-single-card .entry-title { font-size: 2.4rem; }

.post-thumbnail {
	margin: 0 0 26px;
	border-radius: var(--ditech-radius);
	overflow: hidden;
}

.entry-content {
	color: var(--ditech-text);
}

.entry-content h2,
.entry-content h3 { margin-top: 1.6em; }

.entry-content a { text-decoration: underline; }

.post-navigation {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 30px;
	padding-top: 22px;
	border-top: 1px solid var(--ditech-border);
}

.post-navigation .nav-title { color: var(--ditech-secondary); }

/* 404 ----------------------------------------------------------------- */

.ditech-404 {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 55vh;
	padding: 40px 20px;
}

.ditech-404-fallback { text-align: center; max-width: 560px; }

/* Comments ------------------------------------------------------------ */

.comment-list {
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
}

.comment-body {
	border-bottom: 1px solid var(--ditech-border);
	padding: 18px 0;
}

.comment-author .avatar {
	border-radius: 50%;
	margin-right: 10px;
	vertical-align: middle;
}

.comment-form label {
	display: block;
	font-size: 0.85rem;
	margin-bottom: 6px;
	color: var(--ditech-secondary);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form input[type="search"] {
	width: 100%;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--ditech-border);
	border-radius: 4px;
	color: var(--ditech-secondary);
	padding: 11px 14px;
	font-family: inherit;
	font-size: 0.95rem;
}

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

.comment-form textarea { min-height: 140px; }

/* Pagination ---------------------------------------------------------- */

.navigation.pagination { margin-top: 10px; }

.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.navigation.pagination .page-numbers {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid var(--ditech-border);
	border-radius: 4px;
	color: var(--ditech-secondary);
}

.navigation.pagination .page-numbers.current,
.navigation.pagination .page-numbers:hover {
	border-color: var(--ditech-primary);
	color: var(--ditech-primary);
}

/* Widgets ------------------------------------------------------------- */

.widget { margin-bottom: 26px; }

.widget-title {
	font-size: 1.1rem;
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--ditech-border);
}

.widget ul { list-style: none; margin: 0; padding: 0; }

.widget li { padding: 6px 0; }

/* Misc ---------------------------------------------------------------- */

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

.sticky { border-left: 3px solid var(--ditech-primary); }

.bypostauthor { display: block; }

/* Responsive ---------------------------------------------------------- */

@media (max-width: 782px) {
	h1 { font-size: 2rem; }
	h2 { font-size: 1.6rem; }

	.ditech-card-row {
		flex-direction: column;
	}

	.ditech-card-row .ditech-card-thumb {
		flex: 1 1 auto;
		max-width: none;
		width: 100%;
	}

	.ditech-single-card .entry-title { font-size: 1.7rem; }
}
