/*
Theme Name: SEOlith Starter
Theme URI: https://github.com/seolith-llc/seolith-wp-suite
Author: SEOlith
Author URI: https://github.com/seolith-llc
Description: Lightweight Elementor-compatible theme with a full-width canvas. Header and footer use an Elementor Pro location when that function exists, an Elementor template ID from the Customizer, or a WordPress menu. Inner pages can show a title bar. Services have a content and sidebar grid. Posts use a reading layout.
Version: 0.2.4
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: seolith-starter
Tags: full-width-template, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* The canvas stays full width so Elementor pages are not boxed by the theme. */

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

html,
body {
	width: 100%;
	max-width: 100%;
	overflow-x: clip;
}

body {
	margin: 0;
	color: #555;
	background: #fff;
	font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.618;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: Poppins, "Open Sans", sans-serif;
}

img,
video,
svg,
canvas {
	max-width: 100%;
	height: auto;
}

iframe,
embed,
object {
	max-width: 100% !important;
}

:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.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;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: #fff;
	clip: auto !important;
	clip-path: none;
	color: #111;
	display: block;
	font-size: 0.875rem;
	height: auto;
	left: 0.5rem;
	line-height: normal;
	padding: 0.75rem 1rem;
	text-decoration: none;
	top: 0.5rem;
	width: auto;
	z-index: 100000;
}

.skip-link:focus {
	position: absolute;
}

.site-main {
	width: 100%;
	max-width: none;
}

.site-header,
.site-footer {
	width: 100%;
}

.header-inner,
.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 1.25rem;
}

.site-title {
	color: inherit;
	font-weight: 700;
	text-decoration: none;
}

.site-navigation {
	margin-left: auto;
}

.primary-menu,
.footer-menu,
.primary-menu .sub-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-menu .sub-menu {
	flex-direction: column;
	gap: 0.35rem;
	padding-left: 0.75rem;
}

.primary-menu a,
.footer-menu a {
	color: inherit;
	text-decoration: none;
}

.menu-toggle {
	display: none;
	background: transparent;
	border: 1px solid currentColor;
	color: inherit;
	font: inherit;
	padding: 0.4rem 0.75rem;
}

.page-header,
.entry-header,
.entry-content,
.comments-area {
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

.elementor-page .site-main,
.elementor-page .entry-content,
.elementor-page .entry-header,
.elementor-template-full-width .site-main,
.elementor-template-full-width .entry-content,
.elementor-location-header,
.elementor-location-footer {
	margin: 0;
	padding: 0;
	max-width: none;
}

.site-credit {
	margin: 0;
}

@media (max-width: 782px) {
	.header-inner {
		flex-wrap: wrap;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.site-navigation {
		flex: 1 0 100%;
		margin-left: 0;
	}

	.primary-menu {
		display: none;
		flex-direction: column;
		gap: 0.75rem;
		padding-bottom: 0.5rem;
	}

	.primary-menu.is-open {
		display: flex;
	}
}

html {
	scroll-behavior: smooth;
}

.title-bar,
.breadcrumb_area.title-bar {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 100%;
	min-height: 266px;
	overflow: hidden;
	background-color: #16324f;
	background-position: center;
	background-size: cover;
	color: #fff;
}

.title-bar__inner {
	width: 100%;
	padding: 1.5rem 1.25rem;
	overflow-wrap: anywhere;
}

.title-bar__heading {
	margin: 0;
	font-size: 2.25rem;
	line-height: 1.2;
}

.service-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
	gap: 1.5rem;
	width: 100%;
	padding: 1.25rem;
}

.service-sidebar {
	min-width: 0;
}

.entry-reading,
.entry-card {
	max-width: 46rem;
	margin: 0 auto;
	padding: 1.25rem;
}

.entry-reading__image,
.entry-card__image {
	display: block;
	width: 100%;
	height: auto;
}

.entry-date {
	display: block;
	margin: 0.35rem 0 0;
}

.scroll-up {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 1000;
	width: 2.75rem;
	height: 2.75rem;
	border: 0;
	border-radius: 999px;
	background: #16324f;
	color: #fff;
	cursor: pointer;
}

.scroll-up[hidden] {
	display: none;
}

.seolith-preloader {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
}

@media (max-width: 782px) {
	.service-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.title-bar__heading {
		font-size: 1.75rem;
	}
}

/* Elementor full-bleed sections and Contact Form 7 rows were wider than a 390px viewport.
   Clipping did not change the measured scroll width, so the overflowing boxes are capped. */

.elementor-section,
.elementor-container,
.elementor-column,
.elementor-column-wrap,
.elementor-widget-wrap,
.elementor-widget,
.elementor-widget-container,
.e-con,
.e-con-inner,
.service-layout,
.service-sidebar,
.site-main,
.entry-content {
	min-width: 0;
	max-width: 100%;
}

.elementor-section-stretched,
.elementor-section.elementor-section-stretched {
	width: 100% !important;
	max-width: 100% !important;
	left: 0 !important;
	right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.wpcf7,
.wpcf7-form,
.wpcf7 form {
	max-width: 100%;
	min-width: 0;
}

.wpcf7 .row,
.seolith-airtech .row,
.elementor-widget-shortcode .row,
.elementor-widget-text-editor .row {
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: 100%;
}

.elementor-widget-container table,
.entry-content table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

@media (max-width: 782px) {
	.elementor-top-section,
	.elementor-location-header,
	.elementor-location-header .elementor-section,
	.elementor-location-footer,
	.elementor-location-footer .elementor-section,
	.e-con.e-parent {
		max-width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		left: auto !important;
		right: auto !important;
	}

	.seolith-nav__link,
	.elementor-nav-menu a,
	.elementor-item,
	.elementor-icon-list-text,
	.elementor-heading-title {
		white-space: normal;
		max-width: 100%;
	}

	.elementor-icon-list-item,
	.elementor-accordion,
	.elementor-toggle,
	.elementor-tab-title,
	.elementor-widget-accordion,
	.elementor-widget-toggle {
		max-width: 100%;
		min-width: 0;
	}
}

.link_widget,
.payment_widget {
	margin-left: 0;
	max-width: 100%;
}

@media (max-width: 782px) {
	.contract_discount h4,
	.s_comment_list .media .media-body .media {
		margin-left: 0 !important;
		margin-right: 0 !important;
		max-width: 100%;
	}

	.schedule_box {
		float: none;
		max-width: 100%;
	}

	.schedule_box::before {
		content: none;
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.seolith-preloader {
		display: none !important;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition: none !important;
		animation: none !important;
	}
}
