/*
Theme Name: GEM Industrial Solutions
Theme URI: https://example.com/
Author: GEM Industrial Solutions
Description: Custom block theme for General.Essential.Methodical Industrial Solutions, a UAS (drone) based provider of geospatial data solutions. Activating the theme creates the Home, About Us, Alliance, Services, Industries and Contact Us pages and the main menu.
Version: 1.4.1
Requires at least: 6.6
Tested up to: 7.1
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: gem-industrial
*/

/* ---------- Base ---------- */
.wp-site-blocks > * { margin-block-start: 0; }
.gem-main > * { margin-block-start: 0; }
.wp-block-post-content > .alignfull { margin-top: 0; margin-bottom: 0; }
img, svg { max-width: 100%; height: auto; }

/* ---------- Header ---------- */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar header.wp-block-template-part { top: 0; } }

.site-header {
	background: #0B1F33;
	color: #fff;
	padding: 0.9rem clamp(1rem, 4vw, 2rem);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header__inner { max-width: 1200px; margin: 0 auto; }
.site-header .wp-block-site-title { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: 0.01em; }
/* The site title link shows the logo image; its text stays for screen readers and search engines. */
.site-header .wp-block-site-title a,
.site-footer .wp-block-site-title a {
	display: block;
	width: 220px;
	height: 38px;
	background: url("assets/logo-horizontal-white.svg") left center / contain no-repeat;
	color: transparent;
	text-indent: -9999px;
	overflow: hidden;
	white-space: nowrap;
}
@media (max-width: 480px) {
	.site-header .wp-block-site-title a { width: 180px; height: 30px; }
}
.site-header .wp-block-navigation { gap: 1.5rem; font-weight: 600; font-size: 0.95rem; }
@media (min-width: 600px) and (max-width: 960px) {
	.site-header .wp-block-site-title a { width: 170px; height: 30px; }
	.site-header .wp-block-navigation,
	.site-header .wp-block-navigation__container { gap: 0.9rem; font-size: 0.88rem; flex-wrap: nowrap; }
}
.site-header .wp-block-navigation a { color: #fff; text-decoration: none; }
.site-header .wp-block-navigation a:hover { color: #F5A623; }
.site-header .wp-block-navigation .current-menu-item > a { color: #F5A623; }
@media (min-width: 600px) {
	.site-header .wp-block-navigation__container > .wp-block-navigation-item:last-child > a {
		background: #F5A623;
		color: #0B1F33;
		padding: 0.5rem 1.1rem;
		border-radius: 999px;
	}
	.site-header .wp-block-navigation__container > .wp-block-navigation-item:last-child > a:hover { background: #FFBE4D; }
}
.site-header .wp-block-navigation__responsive-container.is-menu-open { background: #0B1F33; color: #fff; }
.site-header .wp-block-navigation__responsive-container-open svg,
.site-header .wp-block-navigation__responsive-container-close svg { fill: #fff; }

/* ---------- Sections ---------- */
.gem-section { padding-top: clamp(3rem, 8vw, 6rem); padding-bottom: clamp(3rem, 8vw, 6rem); }
.gem-section--light { background: #F3F6F9; }
.gem-section--dark { background: #0B1F33; color: #DCE6F0; }
.gem-section--dark h1, .gem-section--dark h2, .gem-section--dark h3 { color: #fff; }
.gem-section--dark a:not(.wp-element-button) { color: #F5A623; }

.gem-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.8rem;
	font-weight: 700;
	color: #2F6E9E;
	margin-bottom: 0.5rem !important;
}
.gem-section--dark .gem-eyebrow, .gem-hero .gem-eyebrow, .gem-page-hero .gem-eyebrow { color: #F5A623; }
.gem-lead { font-size: 1.2rem; color: #55677A; }
.gem-section--dark .gem-lead { color: #B9C8D6; }

/* ---------- Hero ---------- */
.gem-hero {
	position: relative;
	overflow: hidden;
	color: #DCE6F0;
	background:
		linear-gradient(90deg, rgba(11, 31, 51, 0.97) 0%, rgba(11, 31, 51, 0.9) 50%, rgba(11, 31, 51, 0.3) 100%),
		url("assets/images/hero-drone.jpg") center right / cover no-repeat,
		#0B1F33;
	padding-top: clamp(5rem, 12vw, 9rem);
	padding-bottom: clamp(5rem, 12vw, 9rem);
}
.gem-hero > * { max-width: 1200px !important; }
.gem-hero > * > * { max-width: 620px; }
.gem-hero h1 { color: #fff; margin-top: 0.25rem; }
.gem-hero .gem-lead { color: #C3D2E0; }
@media (max-width: 781px) {
	.gem-hero {
		background:
			linear-gradient(180deg, rgba(11, 31, 51, 0.82) 0%, rgba(11, 31, 51, 0.95) 100%),
			url("assets/images/hero-drone.jpg") center / cover no-repeat,
			#0B1F33;
	}
}

.gem-page-hero {
	background:
		url("assets/hero-art.svg") right max(-40px, calc((100vw - 1200px) / 2)) bottom -60px / 300px no-repeat,
		radial-gradient(900px 400px at 90% 0%, #1B4F7A 0%, transparent 60%),
		linear-gradient(160deg, #0B1F33 0%, #123A5C 100%);
	color: #DCE6F0;
	padding-top: clamp(3rem, 7vw, 5rem);
	padding-bottom: clamp(3rem, 7vw, 5rem);
}
.gem-page-hero .wp-block-post-title { color: #fff; margin: 0; }

/* Outline button on dark backgrounds */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: inherit;
	border: 2px solid currentColor;
}
.gem-hero .wp-block-button.is-style-outline > .wp-block-button__link,
.gem-section--dark .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- Stats ---------- */
.gem-stats { gap: 1.5rem; }
.gem-stat {
	border-left: 3px solid #F5A623;
	padding-left: 1rem;
}
.gem-stat__value {
	font-size: clamp(1.8rem, 4vw, 2.4rem);
	font-weight: 800;
	line-height: 1.1;
	color: #0B1F33;
	margin: 0 !important;
}
.gem-section--dark .gem-stat__value { color: #fff; }
.gem-stat__label { margin: 0.3rem 0 0 !important; font-size: 0.95rem; color: #55677A; }
.gem-section--dark .gem-stat__label { color: #B9C8D6; }

/* ---------- Cards ---------- */
.gem-grid { gap: 1.5rem; }
.gem-card {
	background: #fff;
	border: 1px solid #DCE3EA;
	border-radius: 14px;
	padding: 1.75rem;
	box-shadow: 0 1px 2px rgba(11, 31, 51, 0.04), 0 8px 24px rgba(11, 31, 51, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gem-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(11, 31, 51, 0.06), 0 14px 32px rgba(11, 31, 51, 0.09); }
.gem-card > * + * { margin-top: 0.6rem !important; }
.gem-card h3 { margin-top: 0; }
.gem-card p { color: #55677A; }
.gem-card .gem-card__link { margin-top: 1rem !important; font-weight: 700; }
.gem-card .gem-card__link a { text-decoration: none; }
.gem-card__icon {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: #FFF4E0;
	color: #B86E00;
	display: grid;
	place-items: center;
	font-weight: 800;
	font-size: 1.1rem;
	margin: 0 0 0.75rem !important;
}
.gem-section--dark .gem-card { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.12); box-shadow: none; }
.gem-section--dark .gem-card p { color: #B9C8D6; }

/* ---------- Lists ---------- */
ul.gem-chips {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}
ul.gem-chips li {
	margin: 0;
	padding: 0.45rem 1rem;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #DCE3EA;
	font-weight: 600;
	font-size: 0.95rem;
	color: #123A5C;
}
.gem-section--dark ul.gem-chips li { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.15); color: #fff; }

ul.gem-checklist { list-style: none; padding: 0; }
ul.gem-checklist li { position: relative; padding-left: 2rem; margin: 0.55rem 0; }
ul.gem-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.3em;
	width: 1.2rem;
	height: 1.2rem;
	border-radius: 50%;
	background: #F5A623 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%230B1F33' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
ul.gem-checklist.gem-checklist--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 2rem; }

/* ---------- Services page ---------- */
.gem-jumplinks { gap: 0.6rem; }
.gem-jumplinks .wp-block-button__link { background: #fff; color: #123A5C; border: 1px solid #DCE3EA; font-size: 0.9rem; padding: 0.5rem 1.1rem; }
.gem-jumplinks .wp-block-button__link:hover { background: #F3F6F9; color: #0B1F33; }
.gem-service { scroll-margin-top: 90px; }
.gem-service + .gem-service { border-top: 1px solid #DCE3EA; }
.gem-service .gem-service__number {
	font-weight: 800;
	color: #F5A623;
	font-size: 0.95rem;
	letter-spacing: 0.1em;
	margin-bottom: 0.25rem !important;
}
.gem-callout {
	background: #F3F6F9;
	border-left: 4px solid #2F6E9E;
	border-radius: 0 12px 12px 0;
	padding: 1.25rem 1.5rem;
}

/* ---------- Photos ---------- */
.gem-photo { margin: 0; }
.gem-photo img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 16px;
	box-shadow: 0 18px 40px rgba(11, 31, 51, 0.18);
}
.gem-photo--wide img { aspect-ratio: 16 / 9; }
.gem-card { overflow: hidden; }
.gem-card > .gem-card__img { margin: -1.75rem -1.75rem 1.25rem !important; }
.gem-card__img img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.gem-card:hover .gem-card__img img { transform: scale(1.04); }
.gem-card__img + .gem-card__icon { display: none; }

/* ---------- Process steps ---------- */
.gem-steps { gap: 1.5rem; counter-reset: gem-step; }
.gem-step { position: relative; padding-top: 3.25rem !important; }
.gem-step::before {
	counter-increment: gem-step;
	content: counter(gem-step);
	position: absolute;
	top: 0;
	left: 0;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: #F5A623;
	color: #0B1F33;
	font-weight: 800;
}
.gem-step h3 { margin: 0; }
.gem-step p { color: #55677A; margin-top: 0.5rem; }
.gem-section--dark .gem-step p { color: #B9C8D6; }

/* ---------- FAQ ---------- */
.gem-faq .wp-block-details {
	border: 1px solid #DCE3EA;
	border-radius: 12px;
	padding: 1rem 1.25rem;
	background: #fff;
	margin-top: 0.75rem;
}
.gem-faq .wp-block-details summary { font-weight: 700; color: #0B1F33; cursor: pointer; }
.gem-faq .wp-block-details[open] summary { margin-bottom: 0.5rem; }
.gem-faq .wp-block-details p { color: #55677A; margin: 0; }

/* ---------- Image credit ---------- */
.gem-credit { font-size: 0.8rem; color: #8597A8; }

/* ---------- CTA ---------- */
.gem-cta {
	background: linear-gradient(120deg, #F5A623 0%, #FFC861 100%);
	color: #0B1F33;
	padding-top: clamp(3rem, 6vw, 4.5rem);
	padding-bottom: clamp(3rem, 6vw, 4.5rem);
}
.gem-cta h2 { color: #0B1F33; }
.gem-cta .wp-block-button__link { background: #0B1F33; color: #fff; }
.gem-cta .wp-block-button__link:hover { background: #123A5C; color: #fff; }

/* ---------- Contact form ---------- */
.gem-form { display: grid; gap: 1.1rem; }
.gem-form p { margin: 0; }
.gem-form label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.35rem; color: #0B1F33; }
.gem-form input[type="text"],
.gem-form input[type="email"],
.gem-form input[type="tel"],
.gem-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.75rem 0.9rem;
	border: 1px solid #C5D1DC;
	border-radius: 10px;
	font: inherit;
	background: #fff;
	color: #14212E;
}
.gem-form input:focus, .gem-form textarea:focus { outline: 3px solid rgba(47, 110, 158, 0.3); border-color: #2F6E9E; }
.gem-form textarea { min-height: 160px; resize: vertical; }
.gem-form__row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gem-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.gem-form button {
	justify-self: start;
	background: #F5A623;
	color: #0B1F33;
	border: 0;
	border-radius: 999px;
	padding: 0.85rem 1.8rem;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.gem-form button:hover { background: #FFBE4D; }
.gem-form__notice { padding: 0.9rem 1.1rem; border-radius: 10px; font-weight: 600; }
.gem-form__notice--success { background: #E6F6EC; color: #145C32; }
.gem-form__notice--error { background: #FDECEC; color: #8A1C1C; }

/* ---------- Footer ---------- */
.site-footer {
	background: #071626;
	color: #9FB2C4;
	padding: clamp(3rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2rem) 2rem;
	font-size: 0.95rem;
}
.site-footer__inner { max-width: 1200px; margin: 0 auto; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; }
.site-footer a { color: #DCE6F0; text-decoration: none; }
.site-footer a:hover { color: #F5A623; }
.site-footer .wp-block-site-title { font-size: 1.15rem; font-weight: 800; margin: 0; }

.site-footer .wp-block-navigation { gap: 0.5rem; }
.site-footer .gem-footer-list { list-style: none; padding: 0; }
.site-footer .gem-footer-list li { margin: 0.35rem 0; }
.site-footer .gem-footer-contact p { margin: 0.35rem 0; }
.site-footer .gem-footer-contact a { overflow-wrap: anywhere; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 2.5rem !important; padding-top: 1.5rem; font-size: 0.85rem; }
