/*
Theme Name:        WP Smooth Web
Theme URI:         https://sifuwebsite.com/theme/smooth-web
Description:       A lightweight, no-bloat WordPress theme built to be a clean canvas for Elementor. Its core feature is pulling any Elementor saved template in as the site Header and Footer (works with Elementor Free and Elementor Pro Theme Builder), with a global default, per-page overrides, and an optional sticky header. Ships with a minimal fallback header/footer so the site still works without Elementor.
Version:           1.9.2
Requires at least: 6.0
Tested up to:      6.5
Requires PHP:      7.4
Author:            Sifuwebsite
Author URI:        https://sifuwebsite.com
License:           GPL v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       wp-smooth-web
Tags:              elementor, lightweight, custom-header, custom-menu, custom-logo, footer-widgets, translation-ready

WP Smooth Web is free software, distributed under the terms of the GNU General
Public License version 2 (or later). See LICENSE for the full text.
*/

/* ------------------------------------------------------------------ *
 * Base reset + minimal typography.
 * Intentionally tiny: Elementor handles the heavy visual work; this is
 * only here so unstyled (non-Elementor) pages remain readable.
 * ------------------------------------------------------------------ */

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

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

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	color: #1f2933;
	background: #ffffff;
}

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

a {
	color: #2bb3c0;
}

/* Layout container used only by the fallback (non-Elementor) markup. */
.smw-container {
	width: 100%;
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

.smw-main {
	min-height: 40vh;
}

/* On a 404, centre the content within the main area so the min-height doesn't
   read as an awkward empty gap below a short message. Only affects 404 pages. */
.error404 .smw-main {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Boxed (contained) header / footer — opt-in via the Customizer "width"
   option. Default is full width (no class, no constraint). */
.smw-header--boxed,
.smw-footer--boxed {
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
}

/* Accessibility: skip link. */
.smw-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	padding: 10px 16px;
	background: #1f2933;
	color: #fff;
	text-decoration: none;
}

.smw-skip-link:focus {
	left: 8px;
	top: 8px;
}

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

/* ------------------------------------------------------------------ *
 * Fallback header / footer (only rendered when no Elementor template
 * is assigned). Deliberately plain.
 * ------------------------------------------------------------------ */

.smw-default-header {
	border-bottom: 1px solid #e5e9ee;
	background: #fff;
}

.smw-default-header .smw-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 16px;
	padding-bottom: 16px;
}

.smw-site-branding .smw-site-title {
	margin: 0;
	font-size: 22px;
	font-weight: 600;
}

.smw-site-branding .smw-site-title a {
	color: #1f2933;
	text-decoration: none;
}

.smw-site-branding .smw-site-description {
	margin: 2px 0 0;
	font-size: 13px;
	color: #6b7785;
}

.smw-primary-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.smw-primary-nav a {
	color: #1f2933;
	text-decoration: none;
	font-size: 15px;
}

.smw-primary-nav a:hover {
	color: #2bb3c0;
}

.smw-default-footer {
	border-top: 1px solid #e5e9ee;
	background: #fafbfc;
	color: #6b7785;
	font-size: 14px;
}

.smw-default-footer .smw-footer-inner {
	padding-top: 28px;
	padding-bottom: 28px;
	text-align: center;
}

.smw-default-footer .smw-footer-nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 18px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.smw-default-footer a {
	color: #6b7785;
	text-decoration: none;
}

.smw-default-footer a:hover {
	color: #2bb3c0;
}

/* Content (fallback rendering of posts/pages). */
.smw-entry {
	padding: 40px 0;
}

.smw-entry-title {
	margin-top: 0;
}

@media (max-width: 600px) {
	.smw-default-header .smw-header-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
}

/* ------------------------------------------------------------------ *
 * Accessibility defaults.
 *
 * A visible focus ring on everything reachable by keyboard, and motion
 * that respects the viewer's system setting. Both are things a builder
 * has no control for and every site needs, so they belong here rather
 * than in each site's own CSS.
 *
 * The ring takes currentColor rather than a fixed brand colour: it then
 * matches the type it surrounds, which is already contrasted against
 * that element's background, so it stays visible on a dark bar and on a
 * light one without a setting to keep in step. Sites wanting their own
 * can set --smw-accent from a widget's colour control.
 * ------------------------------------------------------------------ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
.elementor-button:focus-visible {
	outline: 2px solid var(--smw-accent, currentColor);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Focus must stay visible even where a plugin resets the outline. */
:focus-visible {
	outline-color: var(--smw-accent, currentColor);
}

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

/* ------------------------------------------------------------------ *
 * Elementor text defaults.
 *
 * A text editor's first paragraph carries the browser's top margin, so a
 * block set flush to the element above it never is; the last one does the
 * same underneath. Neither has a control, and the fix is the same on
 * every site.
 * ------------------------------------------------------------------ */
.elementor-widget-text-editor p:first-child {
	margin-top: 0;
}

.elementor-widget-text-editor p:last-child {
	margin-bottom: 0;
}

/* Headings break into even lines rather than leaving one orphaned word. */
.elementor-widget-heading .elementor-heading-title {
	text-wrap: balance;
}
