/*
Theme Name: SDG Theme
Description: Shepherd Defense Group's own theme. A child of Hello Elementor that reproduces the site's original look (header, phone menu, page title band, typography and forms) so the site no longer depends on the Dullet theme.
Author: Shepherd Defense Group
Template: hello-elementor
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: sdg-theme
*/

/* ---------- Colors ---------- */
:root {
	--sdg-bg: #151412;
	--sdg-band: #201e1b;
	--sdg-panel: #0f0e0d;
	--sdg-text: #a5a29b;
	--sdg-heading: #ffffff;
	--sdg-gold: #fddb51;
	--sdg-field-border: #464443;
	--sdg-top-text: rgba(255, 255, 255, 0.75);
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background-color: var(--sdg-bg);
	color: var(--sdg-text);
	font-family: "Barlow", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
::selection { color: #ffffff; background: var(--sdg-gold); }

a { color: var(--sdg-gold); text-decoration: none; transition: color 0.2s ease-in-out; }
a:hover, a:focus { color: #ffffff; }
a:active, a:hover { outline: 0; }

h1, h2, h3, h4, h5, h6 {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 600;
	color: var(--sdg-heading);
	margin: 0 0 15px;
	padding: 0;
}
h1 { font-size: 30px; line-height: 1.2; }
h2 { font-size: 26px; line-height: 1.4; }
h3 { font-size: 23px; line-height: 1.4; }
h4 { font-size: 21px; line-height: 1.4; }
h5 { font-size: 19px; line-height: 1.4; }
h6 { font-size: 18px; line-height: 1.4; }

p { margin: 0 0 28px; }
strong, b { font-weight: 700; }

ul, ol { margin: 1em 0 1.75em 0.5em; padding: 0 0 0 1em; }
ul { list-style: disc; }
ol { list-style: decimal; }

blockquote {
	font-size: 1.15em;
	line-height: 1.8;
	margin: 1em 40px 1em 0;
	padding: 0 0 0 30px;
	border-left: 4px solid var(--sdg-gold);
}

hr { height: 2px; border: 0; background: #333333; margin: 35px 0 40px; }

table {
	width: 100%;
	border-collapse: collapse;
	background: #000000;
	border: 1px solid #444444;
	font-size: 15px;
	line-height: 1.8;
	margin: 0 0 30px;
}
table th, table td { border: 0; padding: 8px 12px; vertical-align: top; text-align: left; line-height: 1.8; }
table th { background: #333333; color: #ffffff; font-size: 16px; font-weight: 700; }
table td { color: #aaaaaa; }

code, pre {
	font-family: monospace, serif;
	font-size: 14px;
	color: #ffffff;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.09);
	padding: 5px;
}

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

/* Image captions (WordPress and Elementor), as the original theme had them */
.wp-caption { font-size: 11px; line-height: 1.2; }
.wp-caption img { margin: 0 0 5px; }
.wp-caption-text { font-size: 13px; line-height: 1.3; padding: 0 0 8px; }

/* ---------- Forms (contact form) ---------- */
label { display: inline; line-height: inherit; vertical-align: baseline; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="password"], input[type="search"], input[type="number"], input[type="date"],
select, textarea {
	width: auto;
	max-width: 100%;
	box-sizing: border-box;
	background-color: #000000;
	border: 1px solid var(--sdg-field-border);
	border-radius: 0;
	color: #eeeeee;
	font-family: "Barlow", sans-serif;
	font-size: 14px;
	line-height: 1.8;
	padding: 11px 18px;
	transition: border-color 0.2s ease-in-out;
}
select { display: inline-block; }
textarea { vertical-align: top; resize: vertical; overflow: auto; }

/* Contact Form 7 layout, as the original theme had it */
.wpcf7-form p { margin-bottom: 25px; }
span.wpcf7-form-control-wrap { display: block; padding-top: 3px; }
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"], .wpcf7-form input[type="number"], .wpcf7-form input[type="date"], .wpcf7 select { width: 70%; max-width: none; }
.wpcf7-form textarea { width: calc(100% - 36px); max-width: none; }
.wpcf7 input[type="radio"], .wpcf7 input[type="checkbox"] { width: auto; }
.wpcf7 select {
	-webkit-appearance: none;
	appearance: none;
	line-height: 1;
	padding: 14px 45px 14px 18px;
	font-size: 13px;
	background: #000000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a5a29b' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 18px center / 12px 8px;
}
.wpcf7-form .wpcf7-not-valid { border-color: #e54823; }
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, input[type="url"]:focus,
input[type="password"]:focus, input[type="search"]:focus, input[type="number"]:focus, input[type="date"]:focus,
select:focus, textarea:focus {
	border-color: var(--sdg-gold);
	outline: none;
}

body input[type="submit"], body button[type="submit"], body .wpcf7-form input.wpcf7-submit {
	display: inline-block;
	width: auto;
	background: transparent;
	border: 3px solid var(--sdg-gold);
	border-radius: 0;
	color: #ffffff;
	font-family: "Barlow Condensed", sans-serif;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1;
	text-transform: uppercase;
	text-align: center;
	padding: 21px 36px;
	cursor: pointer;
	transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}
body .wpcf7-form input.wpcf7-submit { margin-top: 5px; }
body input[type="submit"]:hover, body input[type="submit"]:focus,
body button[type="submit"]:hover, body button[type="submit"]:focus,
body .wpcf7-form input.wpcf7-submit:hover, body .wpcf7-form input.wpcf7-submit:focus {
	background: var(--sdg-gold);
	border-color: var(--sdg-gold);
	color: var(--sdg-bg);
}

/* ---------- Accessibility helpers ---------- */
.skip-link.screen-reader-text:focus {
	clip: auto !important;
	clip-path: none;
	height: auto;
	width: auto;
	display: block;
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100000;
	padding: 12px 20px;
	background: var(--sdg-gold);
	color: var(--sdg-bg);
	font-weight: 700;
}

/* ---------- Header ---------- */
#sdg-header { background-color: var(--sdg-bg); position: relative; z-index: 1000; }
.sdg-header-inner { padding: 0 40px; }

#sdg-top-bar { display: none; }

.sdg-logo-row { display: flex; align-items: flex-start; }

#sdg-logo { flex: 0 0 auto; line-height: 1; font-size: 5px; }
#sdg-logo a { display: block; }
#sdg-logo .sdg-logo-img { display: block; width: 100px; height: auto; max-width: 100%; }
#sdg-logo .sdg-logo-text { font-family: "Barlow Condensed", sans-serif; font-size: 28px; font-weight: 600; color: #ffffff; line-height: 134px; }

#sdg-nav { margin-left: auto; }
#sdg-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; list-style: none; margin: 0 -12px 0 0; padding: 0; }
#sdg-nav li { position: relative; margin: 0; }
#sdg-nav a {
	display: block;
	padding: 58px 20px;
	color: #ffffff;
	font-family: "Barlow Condensed", sans-serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 18px;
	text-transform: uppercase;
	letter-spacing: 0;
}
#sdg-nav a:hover, #sdg-nav a:focus, #sdg-nav .current-menu-item > a { color: #ffffff; }
/* Drop-down menus, in case sub-pages are ever added */
#sdg-nav ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 10px;
	min-width: 220px;
	flex-direction: column;
	background: var(--sdg-panel);
	padding: 10px 0;
}
#sdg-nav li:hover > ul, #sdg-nav li:focus-within > ul { display: flex; }
#sdg-nav ul ul a { padding: 10px 20px; font-size: 14px; line-height: 1.4; }

#sdg-menu-toggle {
	display: none;
	align-items: center;
	box-sizing: border-box;
	height: 133px;
	margin: 0 5px 0 auto;
	padding: 0 0 0 10px;
	background: none;
	border: 0;
	border-radius: 0;
	color: #ffffff;
	font-family: "Barlow", sans-serif;
	font-size: 24px;
	line-height: 24px;
	cursor: pointer;
	white-space: nowrap;
	text-align: right;
}
#sdg-menu-toggle:hover, #sdg-menu-toggle:focus { background: none; color: #ffffff; }
#sdg-menu-toggle svg { display: inline-block; height: 24px; width: auto; vertical-align: -4px; }
#sdg-menu-toggle .sdg-icon-close { display: none; width: 22px; }
.sdg-menu-open #sdg-menu-toggle .sdg-icon-bars { display: none; }
.sdg-menu-open #sdg-menu-toggle .sdg-icon-close { display: inline-block; }
#sdg-menu-toggle .sdg-menu-text { font-size: 18px; font-weight: 700; line-height: 18px; padding-left: 6px; vertical-align: 1px; }

#sdg-mobile-nav { background: var(--sdg-panel); font-family: "Barlow Condensed", sans-serif; font-weight: 600; line-height: 1.6; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); }
#sdg-mobile-nav[hidden] { display: none; }
#sdg-mobile-nav ul { list-style: none; margin: 0; padding: 0; }
#sdg-mobile-nav li { margin: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
#sdg-mobile-nav li:last-child { border-bottom: 0; }
#sdg-mobile-nav a {
	display: block;
	padding: 16px 3%;
	color: rgba(255, 255, 255, 0.8);
	font-size: 14px;
	line-height: 1.6;
	text-transform: uppercase;
	letter-spacing: 0;
}
#sdg-mobile-nav a:hover, #sdg-mobile-nav a:focus { color: #ffffff; }
#sdg-mobile-nav ul ul a { padding-left: 6%; }

/* Mid-size computer screens */
@media only screen and (min-width: 960px) and (max-width: 1300px) {
	.sdg-header-inner { width: 97%; margin: 0 auto; padding: 0; }
	#sdg-nav a { padding-left: 16px; padding-right: 16px; }
}

/* Pinned header on tablets and computers (phones scroll it away, as before) */
@media only screen and (min-width: 768px) {
	#sdg-header { position: sticky; top: 0; }
}
@media only screen and (min-width: 783px) {
	.admin-bar #sdg-header { top: 32px; }
}
@media only screen and (min-width: 960px) {
	#sdg-mobile-nav { display: none !important; }
}

/* Phones and tablets */
@media only screen and (max-width: 959px) {
	.sdg-header-inner { width: 94%; margin: 0 auto; padding: 0; }
	#sdg-nav { display: none; }
	#sdg-menu-toggle { display: flex; }

	#sdg-top-bar {
		display: block;
		padding: 5px 0;
		text-align: center;
		color: var(--sdg-top-text);
		font-size: 14px;
		line-height: 1;
	}
	#sdg-top-bar a { color: var(--sdg-top-text); }
	#sdg-top-bar a:hover, #sdg-top-bar a:focus { color: #ffffff; }
	#sdg-top-bar .sdg-top-item { display: inline-block; margin: 0 10px; padding: 8px 0; }
	#sdg-top-bar .sdg-top-left .sdg-top-item { padding-right: 28px; }
	#sdg-top-bar .textwidget { display: inline-block; position: relative; }
	#sdg-top-bar .widget-title { display: inline-block; margin-right: 7px; font-weight: 600; }
	#sdg-top-bar i { font-size: 110%; position: relative; margin-right: 5px; }
	#sdg-top-bar .widget_block:has(> .wp-block-buttons:empty) { display: none; }
	#sdg-top-bar p { margin: 0; }
}
/* Tablets: the top bar is one row, left and right halves */
@media only screen and (min-width: 768px) and (max-width: 959px) {
	#sdg-top-bar { margin: 0 -4%; padding: 0 25px; text-align: left; }
	#sdg-top-bar::after { content: ""; display: table; clear: both; }
	#sdg-top-bar .sdg-top-left, #sdg-top-bar .sdg-top-right { float: left; width: 50%; }
	#sdg-top-bar .sdg-top-right { text-align: right; }
	#sdg-top-bar .sdg-top-item { padding: 14px 0; }
	#sdg-top-bar .sdg-top-left .sdg-top-item { margin: 0 30px 0 0; padding-right: 28px; }
	#sdg-top-bar .sdg-top-right .sdg-top-item { margin: 0 0 0 35px; }
}
@media only screen and (max-width: 767px) {
	.sdg-header-inner { width: 92%; }
}

/* ---------- Page title band ---------- */
#sdg-page-title {
	background-color: var(--sdg-band);
	text-align: center;
	padding: 50px 0;
	margin: 0 0 50px;
}
#sdg-page-title h1 {
	display: inline-block;
	margin: 0 auto;
	padding: 0;
	color: #ffffff;
	font-family: "Barlow Condensed", sans-serif;
	font-size: 64px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	word-break: break-word;
	overflow-wrap: break-word;
}
#sdg-page-title h4 {
	margin: 20px auto 0;
	color: rgba(255, 255, 255, 0.75);
	font-family: "Barlow Condensed", sans-serif;
	font-size: 25px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}
#sdg-page-title h4 p { margin: 0; }
@media only screen and (max-width: 959px) {
	#sdg-page-title { padding: 10px 0; }
}
@media only screen and (max-width: 767px) {
	#sdg-page-title h1 { font-size: 40px; }
	#sdg-page-title h4 { font-size: 16px; margin-top: 25px; }
}

/* ---------- Content area ---------- */
body .elementor-section.elementor-section-boxed > .elementor-container { max-width: 1200px; }
#sdg-page-content { padding-bottom: 50px; }
.sdg-width { width: 1200px; max-width: 100%; margin-left: auto; margin-right: auto; }
.sdg-full { width: 100%; }
@media only screen and (max-width: 1300px) { .sdg-width { width: 94%; } }
@media only screen and (max-width: 767px) { .sdg-width { width: 92%; } }

.sdg-result { margin-bottom: 40px; }
.sdg-404 { text-align: center; }

/* ---------- Scroll to top ---------- */
#sdg-scroll-top {
	position: fixed;
	right: 30px;
	bottom: 30px;
	z-index: 100;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: rgba(100, 100, 100, 0.65);
	color: #ffffff;
	font-size: 0;
	line-height: 0;
	cursor: pointer;
	transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}
#sdg-scroll-top[hidden] { display: none; }
#sdg-scroll-top::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 55%;
	width: 12px;
	height: 12px;
	border-left: 3px solid currentColor;
	border-top: 3px solid currentColor;
	transform: translate(-50%, -50%) rotate(45deg);
}
#sdg-scroll-top:hover, #sdg-scroll-top:focus { background: var(--sdg-gold); color: var(--sdg-bg); }
