/*
Theme Name: Lightwave Digital
Author: Lightwave Digital
Description: An exceptionally lightweight agency theme for web design, SEO, AEO, WooCommerce, and custom development. Includes a flexible homepage, widget-ready header and four-column footer, native sliders, and accessible reveal animations.
Version: 1.0.4
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lightwave-digital
Tags: custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, e-commerce, blog, accessibility-ready, translation-ready
*/

:root {
	--lw-accent: #1463ff;
	--lw-accent-dark: #0c47bd;
	--lw-ink: #14213d;
	--lw-muted: #5a6475;
	--lw-line: #e4e9f0;
	--lw-paper: #fff;
	--lw-soft: #f5f8fc;
	--lw-radius: 1rem;
	--lw-shadow: 0 1rem 2.5rem rgba(20, 33, 61, .09);
	--lw-wrap: 1200px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--lw-paper);
	color: var(--lw-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

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

figure {
	margin: 0;
}

a {
	color: var(--lw-accent-dark);
	text-underline-offset: .18em;
}

a:hover {
	color: var(--lw-accent);
}

button,
input,
select,
textarea {
	font: inherit;
}

button,
input[type="button"],
input[type="submit"],
.button,
.wp-element-button,
.lw-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: .68rem 1.15rem;
	border: 0;
	border-radius: .55rem;
	background: var(--lw-accent);
	color: #fff;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .18s ease, transform .18s ease;
}

button:hover,
input[type="submit"]:hover,
.button:hover,
.wp-element-button:hover,
.lw-button:hover {
	background: var(--lw-accent-dark);
	color: #fff;
	transform: translateY(-1px);
}

input,
select,
textarea {
	width: 100%;
	padding: .72rem .8rem;
	border: 1px solid #c9d2de;
	border-radius: .45rem;
	background: #fff;
	color: var(--lw-ink);
}

textarea {
	min-height: 8rem;
	resize: vertical;
}

:focus-visible {
	outline: 3px solid #ffbf47;
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	z-index: 100000;
	top: .75rem;
	left: .75rem;
	width: auto;
	height: auto;
	padding: .8rem 1rem;
	clip: auto;
	background: #fff;
	color: var(--lw-ink);
	font-weight: 700;
}

.lw-wrap {
	width: min(calc(100% - 2rem), var(--lw-wrap));
	margin-inline: auto;
}

.site-header {
	position: relative;
	z-index: 30;
	border-bottom: 1px solid var(--lw-line);
	background: rgba(255, 255, 255, .98);
}

.lw-header-grid {
	display: grid;
	grid-template-columns: minmax(150px, 1fr) minmax(280px, 2fr) minmax(150px, 1fr);
	align-items: center;
	gap: 1.25rem;
	min-height: 5.25rem;
}

.site-branding img,
.site-logo-widget img,
.custom-logo {
	display: block;
	width: auto;
	max-width: 220px;
	max-height: 64px;
	object-fit: contain;
}

.site-title {
	margin: 0;
	font-size: 1.4rem;
	line-height: 1.15;
}

.site-title a {
	color: var(--lw-ink);
	text-decoration: none;
}

.site-description {
	margin: .2rem 0 0;
	color: var(--lw-muted);
	font-size: .84rem;
	line-height: 1.3;
}

.main-navigation {
	justify-self: center;
}

.main-navigation ul {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(.7rem, 2vw, 1.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation a {
	display: block;
	padding: 1rem 0;
	color: var(--lw-ink);
	font-size: .92rem;
	font-weight: 700;
	text-decoration: none;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
	color: var(--lw-accent);
}

.main-navigation .menu-item-has-children {
	position: relative;
}

.main-navigation .sub-menu {
	position: absolute;
	top: 100%;
	left: -.8rem;
	display: none;
	min-width: 220px;
	padding: .5rem .8rem;
	border: 1px solid var(--lw-line);
	border-radius: .6rem;
	background: #fff;
	box-shadow: var(--lw-shadow);
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
	display: block;
}

.main-navigation .sub-menu a {
	padding: .55rem 0;
}

.menu-toggle {
	display: none;
}

.header-phone {
	justify-self: end;
	text-align: right;
}

.header-phone .widget,
.header-logo-area .widget {
	margin: 0;
}

.header-phone a {
	color: var(--lw-ink);
	font-size: clamp(.95rem, 1.6vw, 1.16rem);
	font-weight: 800;
	text-decoration: none;
}

.lw-hero {
	position: relative;
	isolation: isolate;
	display: grid;
	align-items: center;
	height: 150px;
	min-height: 150px;
	max-height: 150px;
	overflow: hidden;
	background: #12264c;
	color: #fff;
}

.lw-hero::after {
	position: absolute;
	z-index: -1;
	inset: 0;
	content: "";
	background: linear-gradient(90deg, rgba(7, 20, 47, .92) 0%, rgba(7, 20, 47, .72) 55%, rgba(7, 20, 47, .3) 100%);
}

.lw-hero-image {
	position: absolute;
	z-index: -2;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lw-hero-content {
	display: grid;
	grid-template-areas:
		"eyebrow text actions"
		"title text actions";
	grid-template-columns: minmax(300px, 1fr) minmax(340px, 1.2fr) auto;
	align-items: center;
	column-gap: clamp(1rem, 3vw, 2.5rem);
	row-gap: .2rem;
	max-width: none;
	padding-block: 1rem;
}

.lw-hero-content .lw-eyebrow {
	grid-area: eyebrow;
	align-self: end;
	margin: 0;
}

.lw-eyebrow {
	margin: 0 0 .75rem;
	color: #a9c7ff;
	font-size: .8rem;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.lw-hero h1 {
	grid-area: title;
	align-self: start;
	max-width: 15ch;
	margin: 0;
	font-size: clamp(1.7rem, 2.4vw, 2.35rem);
	line-height: 1.08;
	letter-spacing: -.025em;
}

.lw-hero-text {
	grid-area: text;
	max-width: 650px;
	margin: 0;
	color: #e7eefc;
	font-size: clamp(.9rem, 1.2vw, 1rem);
	line-height: 1.5;
}

.lw-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .8rem;
	margin-top: 1.75rem;
}

.lw-hero .lw-actions {
	grid-area: actions;
	flex-wrap: nowrap;
	justify-content: flex-end;
	margin-top: 0;
}

.lw-hero .lw-button {
	white-space: nowrap;
}

.lw-button--ghost {
	border: 1px solid rgba(255, 255, 255, .5);
	background: transparent;
}

.lw-section {
	padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.lw-section--soft {
	background: var(--lw-soft);
}

.lw-section-heading {
	max-width: 760px;
	margin: 0 auto 2.5rem;
	text-align: center;
}

.lw-section-heading h2 {
	margin: 0;
	font-size: clamp(1.9rem, 4vw, 3rem);
	line-height: 1.15;
	letter-spacing: -.025em;
}

.lw-section-heading p {
	margin: .7rem 0 0;
	color: var(--lw-muted);
}

#services .lw-section-heading {
	max-width: none;
}

#services .lw-section-heading h2 {
	white-space: nowrap;
}

.lw-slider {
	position: relative;
	overflow: hidden;
	background: #0f2448;
	color: #fff;
}

.lw-plugin-slider,
.lw-plugin-slider .widget {
	margin: 0;
	padding: 0;
}

.lw-plugin-slider .n2-section-smartslider {
	max-width: none;
}

.lw-slide {
	position: relative;
	display: none;
	min-height: clamp(340px, 48vw, 560px);
}

.lw-slide.is-active {
	display: grid;
	align-items: center;
}

.lw-slide img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .48;
}

.lw-slide-content {
	position: relative;
	z-index: 1;
	max-width: 700px;
	padding-block: 5rem;
}

.lw-slide h2 {
	margin: 0;
	font-size: clamp(2rem, 5vw, 4rem);
	line-height: 1.08;
}

.lw-slide p {
	font-size: 1.1rem;
}

.lw-slider-controls {
	position: absolute;
	z-index: 3;
	right: max(1rem, calc((100% - var(--lw-wrap)) / 2));
	bottom: 1.25rem;
	display: flex;
	gap: .5rem;
}

.lw-slider-control {
	width: 2.75rem;
	padding: 0;
	border: 1px solid rgba(255,255,255,.5);
	background: rgba(0,0,0,.35);
}

.lw-services-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
}

.lw-service-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--lw-line);
	border-radius: var(--lw-radius);
	background: #fff;
	box-shadow: 0 .5rem 1.5rem rgba(20,33,61,.05);
}

.lw-service-card-image {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #dce6f5;
}

.lw-service-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.lw-service-card:hover img {
	transform: scale(1.035);
}

.lw-service-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 1.25rem;
}

.lw-service-card h3 {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	line-height: 1.25;
}

.lw-service-card .lw-button {
	margin-top: auto;
}

.lw-main-content {
	max-width: 840px;
	margin-inline: auto;
}

.lw-main-content > :first-child {
	margin-top: 0;
}

.lw-main-content > :last-child {
	margin-bottom: 0;
}

.lw-main-content h2,
.lw-main-content h3 {
	line-height: 1.25;
}

.lw-testimonial {
	display: none;
	max-width: 860px;
	margin-inline: auto;
	text-align: center;
}

.lw-testimonial.is-active {
	display: block;
}

.lw-testimonial blockquote {
	margin: 0;
	font-size: clamp(1.25rem, 3vw, 2rem);
	font-weight: 600;
	line-height: 1.45;
}

.lw-testimonial cite {
	display: block;
	margin-top: 1.25rem;
	color: var(--lw-muted);
	font-style: normal;
	font-weight: 700;
}

.lw-testimonial-controls {
	display: flex;
	justify-content: center;
	gap: .55rem;
	margin-top: 1.5rem;
}

.lw-testimonial-controls button {
	width: 2.75rem;
	padding: 0;
}

.lw-contact-panel {
	padding: clamp(1.25rem, 4vw, 3rem);
	border: 1px solid var(--lw-line);
	border-radius: var(--lw-radius);
	background: #fff;
	box-shadow: var(--lw-shadow);
}

.site-main {
	min-height: 50vh;
}

.content-area {
	padding-block: 3.5rem;
}

.content-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 310px;
	gap: 3rem;
}

.entry-header,
.page-header {
	margin-bottom: 2rem;
}

.entry-title,
.page-title {
	margin: 0;
	font-size: clamp(2rem, 5vw, 3.5rem);
	line-height: 1.15;
	letter-spacing: -.025em;
}

.entry-title a {
	color: var(--lw-ink);
	text-decoration: none;
}

.entry-meta {
	margin-top: .5rem;
	color: var(--lw-muted);
	font-size: .9rem;
}

.post-card {
	margin-bottom: 2.5rem;
	padding-bottom: 2.5rem;
	border-bottom: 1px solid var(--lw-line);
}

.post-thumbnail img {
	width: 100%;
	border-radius: .8rem;
}

.widget {
	margin-bottom: 1.75rem;
}

.widget-title {
	margin: 0 0 .8rem;
	font-size: 1.1rem;
}

.widget ul {
	margin: 0;
	padding-left: 1.2rem;
}

.site-footer {
	padding-block: 3.5rem 1.25rem;
	background: #0d1b33;
	color: #dce5f5;
}

.site-footer a {
	color: #fff;
}

.lw-footer-grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr 1fr 1.25fr;
	gap: clamp(1.5rem, 4vw, 3.5rem);
}

.site-footer .widget {
	margin: 0 0 1.25rem;
}

.site-footer .widget-title {
	color: #fff;
}

.footer-logo img {
	width: auto;
	max-width: min(100%, var(--lw-footer-logo-width, 200px));
	max-height: 90px;
	object-fit: contain;
}

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

.footer-navigation a {
	display: inline-block;
	padding: .2rem 0;
	text-decoration: none;
}

.lw-copyright {
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255,255,255,.15);
	color: #aebbd1;
	font-size: .85rem;
}

.woocommerce .products ul,
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	float: none;
	width: auto;
	margin: 0;
}

.woocommerce span.onsale {
	min-width: auto;
	min-height: auto;
	padding: .35rem .65rem;
	border-radius: .35rem;
	background: var(--lw-accent);
	line-height: 1.2;
}

.js .lw-reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity .55s ease, transform .55s ease;
}

.js .lw-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (max-width: 960px) {
	.lw-header-grid {
		grid-template-columns: 1fr auto;
	}

	.main-navigation {
		grid-column: 1 / -1;
		justify-self: stretch;
	}

	.menu-toggle {
		display: inline-flex;
		justify-self: end;
	}

	.main-navigation .menu-primary-container,
	.main-navigation > ul {
		display: none;
	}

	.main-navigation.is-open .menu-primary-container,
	.main-navigation.is-open > ul {
		display: block;
	}

	.main-navigation ul {
		display: block;
		padding-bottom: 1rem;
	}

	.main-navigation a {
		padding: .6rem 0;
	}

	.main-navigation .sub-menu {
		position: static;
		display: block;
		padding: 0 0 0 1rem;
		border: 0;
		box-shadow: none;
	}

	.header-phone {
		display: none;
	}

	.lw-hero {
		height: auto;
		min-height: 250px;
		max-height: none;
	}

	.lw-hero-content {
		display: block;
		max-width: 760px;
		padding-block: 2rem;
	}

	.lw-hero-content .lw-eyebrow {
		margin: 0 0 .5rem;
	}

	.lw-hero h1 {
		font-size: clamp(2rem, 6vw, 3.2rem);
	}

	.lw-hero-text {
		margin-top: .75rem;
		font-size: 1rem;
	}

	.lw-hero .lw-actions {
		justify-content: flex-start;
		margin-top: 1rem;
	}

	.lw-services-grid,
	.lw-footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.content-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 620px) {
	.lw-services-grid,
	.lw-footer-grid,
	.woocommerce .products ul,
	.woocommerce ul.products {
		grid-template-columns: 1fr;
	}

	.lw-hero::after {
		background: rgba(7,20,47,.8);
	}

	.lw-hero h1 {
		font-size: clamp(2.25rem, 12vw, 3.4rem);
	}

	#services .lw-section-heading h2 {
		white-space: normal;
	}

	.lw-footer-grid {
		gap: .75rem;
	}
}

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

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}

	.js .lw-reveal {
		opacity: 1;
		transform: none;
	}
}
